// // cocos2d::ZipUtils::encryptDecrypt from 0x7fb0e2 to 0x7fb12e (76 bytes) // // 3 xrefs: // > cocos2d::ZipUtils::decompressString2 @ 0x7fb194 // > cocos2d::ZipUtils::decompressString @ 0x7fb2ce // > cocos2d::ZipUtils::compressString @ 0x7fb424 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:01:14 +0000 // int __fastcall cocos2d::ZipUtils::encryptDecrypt(int a1, unsigned __int8 *a2, char a3) { int v5; // r5 unsigned int v7; // r5 int i; // r3 int v9; // r2 unsigned __int8 *v10; // r1 _BYTE *v11; // r2 unsigned __int8 v12; // r1 *(_DWORD *)a1 = 0; *(_DWORD *)(a1 + 4) = 0; *(_DWORD *)(a1 + 8) = 0; v5 = *a2; if ( (v5 & 1) != 0 ) v7 = *((_DWORD *)a2 + 1); else v7 = v5 >> 1; std::string::resize((unsigned __int8 *)a1, v7, 0); for ( i = 0; i != v7; ++i ) { if ( (*(_BYTE *)a1 & 1) != 0 ) v9 = *(_DWORD *)(a1 + 8); else v9 = a1 + 1; if ( (*a2 & 1) != 0 ) v10 = *((unsigned __int8 **)a2 + 2); else v10 = a2 + 1; v11 = (_BYTE *)(v9 + i); v12 = v10[i]; *v11 = v12 ^ a3; } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source