warden
| rows | named | verified | proof two | tested | |
|---|---|---|---|---|---|
| functions | 29 | 29 (100%) | 29 (100%) | 8 (27%) | 7 (24%) |
| globals | 15 | 15 (100%) | 15 (100%) | 6 (40%) | – |
| structs | 4 | 4 (100%) | 4 (100%) | 2 (50%) | – |
| fields | 16 | 16 (100%) | 16 (100%) | 11 (68%) | – |
| all | 64 | 64 (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
- WriteWardenBuffer warden
- ReadWardenBuffer warden
- LoadWardenModule warden
- InitWardenCritSect1Thunk warden
- InitWardenClientTable1Thunk warden
- InitWardenHandler warden
- WardenTick warden
- ShutdownWardenHandler warden
- HandleWardenDataPacket warden
- WardenSendPacket warden
- WardenLoadCachedModule warden
- WardenStoreModule warden
- WardenAlloc warden
- WardenFree warden
- WardenStashBuffer warden
- WardenTakeBuffer warden
- AssignWardenBuffer warden
- FreeWardenBuffer warden
- GetWowCacheVersion warden
Boundary
- _atexit crt
- CDataStore::PutInt8 base
- CDataStore::PutUInt32 base
- CDataStore::PutUInt32_3 base
- CDataStore::GetUInt8 base
- CDataStore::GetUInt32 base
- CDataStore::GetDataInSitu base
- OsGetAsyncTimeMs core
- NetClient::GetSessionKey net
- 0x56b430 dbcache
- 0x56b6f0 dbcache
- 0x56c5f0 dbcache
- ClientServices::GetCurrent net
- ClientServices::Send net
- ClientServices::SetMessageHandler net
- ClientServices::ClearMessageHandler net
- SMemAlloc storm
- SMemFree storm
- SStrLen storm
- SStrUpper storm
- SCritSect::SCritSect storm
- SCritSect::Enter storm
- SCritSect::Leave storm
- 0x66cdd0 storm
- 0x66ce40 storm
- 0x66cf10 storm
- 0x66ec20 unassigned
- 0x66ecc0 unassigned
- 0x6c9f60 unassigned
- 0x734810 unassigned
- LoadModuleImage os
- UnloadModuleImage os
- GetModuleExport os
Functions 29
| address | name | class | confidence | test | closure |
|---|---|---|---|---|---|
0x6c9f80 | FreeWardenBuffer | host | verified, proof one | ✓ | |
0x6c9fa0 | WardenBuffersEqual | unreached | verified, proof one | ||
0x6c9ff0 | AssignWardenBuffer | orchestration | verified, proof one | ✓ | |
0x6ca010 | SetWardenBuffer | host | verified, proof one | ✓ | |
0x6ca070 | WriteWardenBuffer | orchestration | verified, proof one | ✓ | ✓ |
0x6ca0c0 | ReadWardenBuffer | orchestration | verified, proof one | ✓ | ✓ |
0x6ca120 | GetWowCacheVersion | primitive | verified, proof two | ✓ | |
0x6ca130 | InitWardenCritSect1Thunk | orchestration | verified, proof one | ✓ | |
0x6ca140 | InitWardenCritSect1 | orchestration | verified, proof one | ✓ | |
0x6ca150 | RegisterDestroyWardenCritSect1 | orchestration | verified, proof one | ✓ | |
0x6ca160 | DestroyWardenCritSect1 | orchestration | verified, proof one | ||
0x6ca170 | InitWardenClientTable1Thunk | orchestration | verified, proof one | ✓ | |
0x6ca180 | InitWardenClientTable1 | orchestration | verified, proof one | ✓ | |
0x6ca190 | WardenTick | primitive | verified, proof one | ✓ | ✓ |
0x6ca1e0 | ActivateNextModule | orchestration | verified, proof one | ✓ | |
0x6ca250 | FreePendingModule | orchestration | verified, proof one | ✓ | |
0x6ca290 | UnloadActiveModule | orchestration | verified, proof one | ✓ | |
0x6ca2f0 | InitWardenHandler | orchestration | verified, proof one | ✓ | |
0x6ca360 | LoadWardenModule | primitive | verified, proof one | ✓ | ✓ |
0x6ca5c0 | HandleWardenDataPacket | primitive | verified, proof two | ✓ | ✓ |
0x6ca640 | ShutdownWardenHandler | orchestration | verified, proof one | ✓ | |
0x6ca6a0 | WardenSendPacket | orchestration | verified, proof two | ✓ | |
0x6ca770 | WardenLoadCachedModule | orchestration | verified, proof two | ✓ | |
0x6ca810 | CopyWardenId | orchestration | verified, proof two | ✓ | |
0x6ca840 | WardenStoreModule | orchestration | verified, proof two | ✓ | |
0x6ca8c0 | WardenAlloc | host | verified, proof two | ✓ | |
0x6ca8e0 | WardenFree | host | verified, proof two | ✓ | |
0x6ca900 | WardenStashBuffer | host | verified, proof one | ✓ | ✓ |
0x6ca960 | WardenTakeBuffer | host | verified, proof one | ✓ | ✓ |
Globals 15
| address | name | type | confidence |
|---|---|---|---|
0x811320 | s_wardenNameTable | const uint8_t[10] | verified, proof two |
0x811330 | s_wardenModulus | const uint8_t[256] | verified, proof two |
0x811430 | s_wardenExponent | const uint32_t | verified, proof two |
0x811434 | WardenClient::vftable | void *[7] | verified, proof two |
0x86ddb0 | s_wardenModuleBlob | const uint8_t[4787] | verified, proof two |
0x86f064 | s_wardenModuleKey | const uint8_t[16] | verified, proof two |
0x86f074 | s_wardenSourcePath | const char[62] | verified, proof one |
0xce8954 | s_wardenClient | WardenClient | verified, proof one |
0xce8958 | s_wardenLock | uint8_t[24] | verified, proof one |
0xce8974 | s_pendingModule | WardenModule * | verified, proof one |
0xce8978 | s_activeModule | WardenModule * | verified, proof one |
0xce897c | s_moduleObject | void * | verified, proof one |
0xce8980 | s_handoverData | uint8_t * | verified, proof one |
0xce8984 | s_handoverSize | uint32_t | verified, proof one |
0xce8988 | s_lastTickMs | uint32_t | verified, proof one |