benilla-re systems structs docs

s_cryptTable

global · storm

Address
0xc53fbc · 4 bytes, up to 0xc53fbf
Type
uint32_t *
Meaning
Holds the crypt table, 0x500 dwords built at first use
Confidence
verified, proof two
Finding
storm/format#name-hash

Finding: Name hash in storm: the archive format

A name hashes to a value of type 0 to 3. The state is two dwords, 0x7fed7fed and 0xeeeeeeee. For each byte c of the name, upper-cased by toupper (0x41089b) with / turned into \: first = table[type·0x100 + c] ^ (first + second), then second = c + second·0x21 + first + 3. The value is first. Type 0 picks the slot (& (count − 1)), types 1 and 2 are name hashes A and B, type 3 is a key.

The derivation is in the doc.