// // cocos2d::ZipUtils::encryptDecrypt from 0x1800a7cb0 to 0x1800a7d5b (171 bytes) // // 4 xrefs: // > cocos2d::ZipUtils::decompressString2 @ 0x1800a7851 // > cocos2d::ZipUtils::decompressString @ 0x1800a7b2e // > @ 0x18014cf68 // > @ 0x1801c1e00 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:22:16 +0000 // // Hidden C++ exception states: #wind=1 _QWORD *__fastcall cocos2d::ZipUtils::encryptDecrypt(_QWORD *a1, _QWORD *a2, char a3) { unsigned int v6; // esi unsigned __int64 v7; // r14 __int64 v8; // r8 _QWORD *v9; // rdx _QWORD *v10; // rcx v6 = 0; *(_OWORD *)a1 = 0; a1[2] = 0; a1[3] = 15; *(_BYTE *)a1 = 0; v7 = a2[2]; if ( v7 ) { sub_180078E30(a1, a2[2], 0); 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 ); } else { a1[2] = 0; *(_BYTE *)a1 = 0; } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source