benilla-re systems structs docs

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

offsetsizetypenamemeaningconfidencefinding
0x00004void *m_imageBaseHolds the base of the mapped image, or 0verified, proof onewarden/modules#loading-an-image
0x00044uint32_tm_imageSizeHolds the size of the imageverified, proof onewarden/modules#loading-an-image
0x00084uint32_tm_libraryCountHolds the number of import libraries loaded, which the unloader freesverified, proof onewarden/modules#loading-an-image

Globals of this type