Go to the source code of this file.
◆ general_heap_create_obfuscated()
void general_heap_create_obfuscated |
( |
void | | ) |
|
Definition at line 13 of file general_heap_create_obfuscated.c.
13 {
14 s32(*readFunc)(OSPiHandle*, u32, u32*) = osEPiReadIo;
15 s32 seed = 0x3C016C07 + 0xFEFEFEF;
17 u32 hash = 0;
18 u32 thisInsn;
19 u32* it;
20 u32 prevInsn;
21
22 readFunc(nuPiCartHandle, 0xB0000574, &thisInsn);
23 seed -= thisInsn;
24
25 prevInsn = 0;
26
27 for (it = (u32*) load_engine_data_obfuscated_ROM_START; it < (u32*) load_engine_data_obfuscated_ROM_END; it++) {
28 readFunc(nuPiCartHandle, (u32) it, &thisInsn);
30
33 hash -=
LOWER(thisInsn);
34 hash -=
LOWER(prevInsn);
35 }
36 }
37
39 hash -=
LOWER(thisInsn) + (
UPPER(thisInsn) & 0xFC00);
40 }
41
42 prevInsn = thisInsn;
43 }
44
45
47
48
50
52 }
53}
HeapNode * general_heap_create(void)
u8 obfuscated_general_heap_create[]
Referenced by shim_general_heap_create_obfuscated().
◆ obfuscated_general_heap_create
u8 obfuscated_general_heap_create[] |
|
extern |