SFileHashString
function · storm · primitive
- Address
0x6530d0· 108 bytes, up to0x65313b- Signature
uint32_t __fastcall (const char *name, int type)- Meaning
- Hashes an upper-cased name with backslashes to one of the four types
- 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.
Callers 2
- 0x652930 storm
- ArchiveLookup storm
Callees 1
- _toupper crt
Calls and jumps by a bare address, from tables/calls.tsv.