// // cocos2d::ZipUtils::encryptDecrypt from 0x1800a4310 to 0x1800a43b8 (168 bytes) // // 4 xrefs: // > cocos2d::ZipUtils::decompressString2 @ 0x1800a3ef9 // > cocos2d::ZipUtils::decompressString @ 0x1800a419e // > @ 0x1801438a8 // > @ 0x1801b7b54 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=1 _QWORD *__fastcall cocos2d::ZipUtils::encryptDecrypt(_QWORD *a1, _QWORD *a2, char a3) { unsigned int v6; // esi unsigned __int64 v7; // rbp __int64 v8; // rcx _QWORD *v9; // rax _QWORD *v10; // rdx v6 = 0; *(_OWORD *)a1 = 0; a1[2] = 0; a1[3] = 15; *(_BYTE *)a1 = 0; v7 = a2[2]; sub_180078760(a1, v7, 0); if ( v7 ) { v8 = 0; do { v9 = a2; if ( a2[3] > 0xFu ) v9 = (_QWORD *)*a2; v10 = a1; if ( a1[3] > 0xFu ) v10 = (_QWORD *)*a1; *((_BYTE *)v10 + v8) = *((_BYTE *)v9 + v8) ^ a3; v8 = ++v6; } while ( v6 < v7 ); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source