benilla-re systems structs docs

s_maskIndex

global · ui

Address
0xb6e5f0 · 4 bytes, up to 0xb6e5f3
Type
uint32_t
Meaning
Holds the index of the next mask character, advanced by each masked byte and wrapped at 8
Confidence
verified, proof one
Finding
ui/chatfilter#masking

Finding: Masking in ui: the spam and profanity filters

0x4a1a60(text, useCache) replaces each match of each profanity pattern with the next character of !@#$%^&*, one byte for one byte of the match. The next-character index 0xb6e5f0 is shared by the whole process: it starts at 0, advances after every replaced byte and wraps at 8, so the mask continues from one match, line and caller to the next. All patterns of the list are applied in list order, not in text order, and every occurrence of each is masked.

The derivation is in the doc.