WardenClient
struct · warden · 4 bytes
- Vtable
0x811434- Meaning
- Holds the service table pointer that a module receives
- Confidence
- verified, proof two
- Finding
- warden/wire#the-service-table
Finding: The service table in warden: the wire and the services
The module receives 0xce8954, whose dword points at the table 0x811434: seven stdcall services, in this
order. The service functions take no lock and none reads ecx before writing it, so what a module passes there is
unused. A service called from inside a module slot runs under the client's lock, which every call into a slot
holds (inferred: a call from another thread would run without it).
| slot | function | arguments | does |
|---|---|---|---|
| 0 | 0x6ca6a0 | bytes, length | sends the bytes as message 0x2e7 |
| 1 | 0x6ca770 | id16, key16 | looks the 16-byte id up in the cache; if found, frees the pending module and decodes the record with the key into the pending slot; returns whether it did |
| 2 | 0x6ca840 | id16, bytes, length | removes the id's record, then stores a copy of the bytes under it |
| 3 | 0x6ca8c0 | size | allocates, returns the pointer |
| 4 | 0x6ca8e0 | pointer | frees |
| 5 | 0x6ca900 | bytes, length | replaces the handover buffer with a copy |
| 6 | 0x6ca960 | destination, length pointer | copies out up to the length, stores the count, frees the buffer; returns 0 with no buffer |
The derivation is in the doc.
Fields 1
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | void ** | __vfptr | Holds the service table 0x811434 | verified, proof two | warden/wire#the-service-table |
Globals of this type
0xce8954s_wardenClient