benilla-re systems structs docs

DecodePinGridOrder

function · net · primitive

Address
0x5b1e70 · 88 bytes, up to 0x5b1ec7
Signature
void __thiscall (void *this, uint32_t seed)
Meaning
Writes the digits 0-9 into the PIN grid in the order the seed encodes, taking seed mod 10, 9, ..., 1 as picks
Confidence
verified, proof one
Finding
net/logonlink#pin-challenge
Test
net::pin_shuffle

Finding: Pin challenge in net: logon link

When the logon challenge carries a non-zero security byte, the logon object keeps a pin grid and a salt. 0x5b1ed0(flag, seed, salt) stores the flag at +0x1ac; with the flag set it fills the 10-byte grid at +0x1ae from the 32-bit seed and copies the 16-byte salt to +0x1b8. The grid is a permutation of 0 to 9: its ith entry is the remaining digit at index seed mod (10 − i), after which the seed is divided by 10 − i. The checksum salt callback then reports state 7, the pin state, when the flag is set, and 9, the checksum state, when it is not.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.