benilla-re systems structs docs

MaskProfanity

function · ui · primitive

Address
0x4a1a60 · 564 bytes, up to 0x4a1c93
Meaning
Overwrites each match of a profanity pattern with the next mask characters and returns whether any matched
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.

Callers 11

Callees 9

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