SFile::VerifyArchiveSignature
function · storm · boundary
- Address
0x653160· 447 bytes, up to0x65331e- Signature
uint32_t __stdcall (void *archive, uint32_t *result, const void *key, uint32_t keySize, const void *exponent, uint32_t exponentSize)- Meaning
- Checks the signature after an archive's data with a key, setting 5 when it passes and 1 otherwise
- Confidence
- verified, proof two
- Finding
- storm/format#archive-signature-check
Finding: Archive signature check in storm: the archive format
0x653160(archive, &result, key, keySize, exponent, exponentSize) checks an archive's signature.
With no key and no exponent it takes the built-in 256-byte key 0x80e648 and the exponent
0x80e748 (4 bytes, 0x10001). It feeds the archive's first N bytes, N being its record's +0x154,
to a check context in 64 KiB reads, then the seven bytes ARCHIVE, then the bytes that follow the N,
as many as the context asks for, and verifies them with the key. The result is 5 when the check
passes and 1 otherwise, and the function returns 1 only for 5. Patching calls it with the built-in
key; the survey passes its own.
The derivation is in the doc.
Callers 2
Callees 8
- SMemAlloc storm
- SMemFree storm
- 0x650780 storm
- 0x6507e0 storm
- 0x66cdd0 storm
- 0x66ce30 storm
- 0x66ce40 storm
- 0x66cf10 storm
Calls and jumps by a bare address, from tables/calls.tsv.