WardenModule
struct · warden · 12 bytes
- Meaning
- Holds a loaded module: its image base, its size and its count of libraries
- Confidence
- verified, proof one
- Finding
- warden/modules#loading-an-image
Finding: Loading an image in warden: module decoding and loading
0x7a79d0(image, length) allocates size bytes (VirtualAlloc, commit, read-write), copies the header, unpacks the
runs, relocates, resolves the imports, protects each section and returns 1. It never reads length. A size of
0x80000000 or more builds Improper header received: [ and the first 32 bytes as %02X and calls
SErrDisplayAppFatal, which ends the client. A null allocation or a library that does not load returns 0 after the
unloader runs.
The derivation is in the doc.
Fields 3
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | void * | m_imageBase | Holds the base of the mapped image, or 0 | verified, proof one | warden/modules#loading-an-image |
0x0004 | 4 | uint32_t | m_imageSize | Holds the size of the image | verified, proof one | warden/modules#loading-an-image |
0x0008 | 4 | uint32_t | m_libraryCount | Holds the number of import libraries loaded, which the unloader frees | verified, proof one | warden/modules#loading-an-image |
Globals of this type
0xce8974s_pendingModule0xce8978s_activeModule