LoadModuleImage
function · os · primitive
- Address
0x7a79d0· 939 bytes, up to0x7a7d7a- Signature
bool __thiscall (WardenModule *this, const uint8_t *image, uint32_t length)- Meaning
- Maps a decompressed module: runs, relocations, imports and protections; ignores its length
- Confidence
- verified, proof one
- Finding
- warden/modules#loading-an-image
- Test
warden::loader_whole,warden::loader_library_missing,warden::loader_library_fails_after_some_load,warden::loader_alloc_failed,warden::loader_header_too_large,warden::loader_relocation_forms,warden::loader_run_past_the_image_end
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.
Callers 1
- LoadWardenModule warden
Callees 3
- SErrDisplayAppFatal storm
- _sprintf crt
- UnloadModuleImage os
Calls and jumps by a bare address, from tables/calls.tsv.