benilla-re systems structs docs

warden

rowsnamedverifiedproof twotested
functions2929 (100%)29 (100%)8 (27%)7 (24%)
globals1515 (100%)15 (100%)6 (40%)–
structs44 (100%)4 (100%)2 (50%)–
fields1616 (100%)16 (100%)11 (68%)–
all6464 (100%)64 (100%)27 (42%)7 (24%)

Docs

warden: the module cache

Where a module is kept between sessions. The wow cache, 0xc0e084, is one of the thirteen DBCache objects (dbcache): a hash table of nodes keyed by a 16-byte id, each holding one WardenBuffer, written to WDB/wowcache.wdb at exit and read at start-up. The services 1 and 2 are its only users. The table code lives in DBCache.cpp; this page states what Warden asks of it and what the file holds.

warden: the built-in module

The module the exe carries, the one that runs first and, in the code read here, performs the whole wire protocol: the cipher, the download of further modules and the answer to the hash request. It is a signed module like any other, stored encrypted in the exe's data. Its addresses below are offsets inside its own image, four hex digits, not exe addresses. Nothing here describes a module the server sends.

warden: module decoding and loading

How a module blob becomes a running image: decrypted, checked against a fixed public key, inflated, mapped, relocated, linked and protected, and how it is unloaded. The blob's RC4 layer, its SHA-1 and RSA check and its zlib stream are the exe's Storm and zlib routines (0x66ec20, 0x66ecc0, 0x66cdd0, 0x66ce40, 0x66cf10, 0x734810); this page states what the client feeds them and what it takes from them. The loader 0x7a79d0 is called from one place only.

warden: overview

The client's side of Warden, the server's anticheat channel. WardenClient.cpp (path string 0x86f074, code 0x6c9f80 to 0x6ca9cd, initializers 0x82cdac and 0x82cdb0) holds no check and no cipher of its own. It carries one message pair, 0x2e6 from the server and 0x2e7 back, and hosts one module at a time: a signed, encrypted, compressed code image that it decodes, maps into the process and calls. The first module is built into the exe; later ones are stored in the module cache, WDB/wowcache.wdb. The module does the wire work (the cipher, the download protocol); this file hands it packets, time and seven services. The methods of its buffer class begin at 0x6c9f30, in rows still unassigned (0x6c9f30, 0x6c9f40, 0x6c9f60).

The system is split by topic: wire (the messages, the services, the module's interface, activation, the tick), modules (decoding, the signature, the image and its loader), cache (the disk cache), embedded (the built-in module and its cipher). This page holds the state, what the server can reach and the unreached code. Neighbours this system uses and others own: the cache objects (dbcache), the image loader (rows owned by os), and Storm's RC4, SHA-1, RSA and zlib.

warden: the wire and the services

The messages the client exchanges with the server for Warden, the seven services it gives a module, the four slots it calls in a module, and when it starts, ticks, switches and stops a module. The client reads no field of the payload and applies no cipher to it: both belong to the active module.

Closure

19 roots. A walk of direct calls and jumps from them reaches 27 of the 29 functions the system owns, and stops at 33 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.

Roots

Boundary

Functions 29

addressnameclassconfidencetestclosure
0x6c9f80FreeWardenBufferhostverified, proof one✓
0x6c9fa0WardenBuffersEqualunreachedverified, proof one
0x6c9ff0AssignWardenBufferorchestrationverified, proof one✓
0x6ca010SetWardenBufferhostverified, proof one✓
0x6ca070WriteWardenBufferorchestrationverified, proof one✓✓
0x6ca0c0ReadWardenBufferorchestrationverified, proof one✓✓
0x6ca120GetWowCacheVersionprimitiveverified, proof two✓
0x6ca130InitWardenCritSect1Thunkorchestrationverified, proof one✓
0x6ca140InitWardenCritSect1orchestrationverified, proof one✓
0x6ca150RegisterDestroyWardenCritSect1orchestrationverified, proof one✓
0x6ca160DestroyWardenCritSect1orchestrationverified, proof one
0x6ca170InitWardenClientTable1Thunkorchestrationverified, proof one✓
0x6ca180InitWardenClientTable1orchestrationverified, proof one✓
0x6ca190WardenTickprimitiveverified, proof one✓✓
0x6ca1e0ActivateNextModuleorchestrationverified, proof one✓
0x6ca250FreePendingModuleorchestrationverified, proof one✓
0x6ca290UnloadActiveModuleorchestrationverified, proof one✓
0x6ca2f0InitWardenHandlerorchestrationverified, proof one✓
0x6ca360LoadWardenModuleprimitiveverified, proof one✓✓
0x6ca5c0HandleWardenDataPacketprimitiveverified, proof two✓✓
0x6ca640ShutdownWardenHandlerorchestrationverified, proof one✓
0x6ca6a0WardenSendPacketorchestrationverified, proof two✓
0x6ca770WardenLoadCachedModuleorchestrationverified, proof two✓
0x6ca810CopyWardenIdorchestrationverified, proof two✓
0x6ca840WardenStoreModuleorchestrationverified, proof two✓
0x6ca8c0WardenAllochostverified, proof two✓
0x6ca8e0WardenFreehostverified, proof two✓
0x6ca900WardenStashBufferhostverified, proof one✓✓
0x6ca960WardenTakeBufferhostverified, proof one✓✓

Globals 15

addressnametypeconfidence
0x811320s_wardenNameTableconst uint8_t[10]verified, proof two
0x811330s_wardenModulusconst uint8_t[256]verified, proof two
0x811430s_wardenExponentconst uint32_tverified, proof two
0x811434WardenClient::vftablevoid *[7]verified, proof two
0x86ddb0s_wardenModuleBlobconst uint8_t[4787]verified, proof two
0x86f064s_wardenModuleKeyconst uint8_t[16]verified, proof two
0x86f074s_wardenSourcePathconst char[62]verified, proof one
0xce8954s_wardenClientWardenClientverified, proof one
0xce8958s_wardenLockuint8_t[24]verified, proof one
0xce8974s_pendingModuleWardenModule *verified, proof one
0xce8978s_activeModuleWardenModule *verified, proof one
0xce897cs_moduleObjectvoid *verified, proof one
0xce8980s_handoverDatauint8_t *verified, proof one
0xce8984s_handoverSizeuint32_tverified, proof one
0xce8988s_lastTickMsuint32_tverified, proof one

Structs