UnloadModuleImage
function · os · host
- Address
0x7a7d80· 95 bytes, up to0x7a7dde- Signature
void __thiscall (WardenModule *this)- Meaning
- Frees the libraries a module loaded, last first, and tries to release its image
- Confidence
- verified, proof one
- Finding
- warden/modules#unloading-and-exports
- Test
warden::loader_whole
Finding: Unloading and exports in warden: module decoding and loading
0x7a7d80 frees a module's libraries, last loaded first (GetModuleHandleA of each import name, then
FreeLibrary), then calls VirtualFree(base, size, MEM_RELEASE), which Windows rejects for a nonzero size, so
the image stays mapped. It zeroes the base and size. 0x7a7de0 returns the address of export n:
the image base plus the table's dword n minus the first ordinal, or 0 when that index is not below the export count or
the base is 0.
The derivation is in the doc.
Callers 4
- FreePendingModule warden
- UnloadActiveModule warden
- LoadWardenModule warden
- LoadModuleImage os
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.