LoadWardenModule
function · warden · primitive
- Address
0x6ca360· 596 bytes, up to0x6ca5b3- Signature
WardenModule * __fastcall (const uint8_t *blob, uint32_t length, const uint8_t *key)- Meaning
- Decrypts, signature-checks, inflates and loads a module blob, returning its object or null
- Confidence
- verified, proof one
- Finding
- warden/modules#decoding-a-module
- Test
warden::decoder_real_signature,warden::decoder_after_the_signature,warden::decoder_loader_failure,warden::signature_name_loop
Finding: Decoding a module in warden: module decoding and loading
LoadWardenModule(blob, length, key) returns a 12-byte module object or null. A length under 0x108 returns
null at once. Otherwise it copies the blob, decrypts the copy whole with RC4 under the 16-byte key, checks the
signature (next entry), reads the first dword of the decrypted copy as the decompressed size, inflates the zlib
stream that follows it into a buffer of that size, and gives the buffer to the loader. It frees the copy and
the buffer and returns the object; any failure frees what it holds and returns null. Both callers pass
ecx the blob, edx its length and the key on the stack. The loader is given the length and never reads it.
The derivation is in the doc.
Callers 2
- InitWardenHandler warden
- WardenLoadCachedModule warden
Callees 12
- SMemAlloc storm
- SMemFree storm
- SStrLen storm
- SStrUpper storm
- 0x66cdd0 storm
- 0x66ce40 storm
- 0x66cf10 storm
- 0x66ec20 unassigned
- 0x66ecc0 unassigned
- 0x734810 unassigned
- LoadModuleImage os
- UnloadModuleImage os
Calls and jumps by a bare address, from tables/calls.tsv.