PrepareCryptTable
function · storm · primitive
- Address
0x654f60· 171 bytes, up to0x65500a- Signature
void __cdecl ()- Meaning
- Builds the 0x500-dword crypt table on first use
- Confidence
- verified, proof two
- Finding
- storm/format#crypt-table
Finding: Crypt table in storm: the archive format
table below is Storm's crypt table, 0x500 dwords built at the first use: from the seed 1,048,577, twice per entry
seed = (seed·125 + 3) mod 2,796,203; the entry is the first value's low 16 bits shifted up, OR the second's, which
is the next seed. Five groups of 256 entries, 0x1400 bytes. The fill is entry-major: for i = 0 to 255, for g = 0 to 4, table[g·256 + i] takes the next pair, so one seed run feeds the five groups' entry i in turn.
The derivation is in the doc.
Callers 5
- 0x654920 storm
- 0x655010 storm
- ArchiveOpen storm
- ArchiveOpenChild storm
- SFileOpenFileInArchives storm
Callees 1
- SMemAlloc storm
Calls and jumps by a bare address, from tables/calls.tsv.