// // cocos2d::ZipUtils::encryptDecryptWKey from 0x1800a43c0 to 0x1800a44ef (303 bytes) // // 4 xrefs: // > cocos2d::ZipUtils::base64DecodeEnc @ 0x1800a2d2f // > cocos2d::ZipUtils::base64EncodeEnc @ 0x1800a2ed4 // > @ 0x1801438a8 // > @ 0x1801b7b60 // // 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=2 _QWORD *__fastcall cocos2d::ZipUtils::encryptDecryptWKey(_QWORD *a1, _QWORD *a2, __int64 a3) { unsigned __int64 v6; // rbp unsigned int v7; // r14d unsigned int v8; // r10d __int64 v9; // r9 _QWORD *v10; // rax _QWORD *v11; // r8 _QWORD *v12; // rcx unsigned __int64 v13; // rdx _QWORD *v14; // rcx *(_OWORD *)a1 = 0; a1[2] = 0; a1[3] = 15; *(_BYTE *)a1 = 0; v6 = a2[2]; sub_180078760(a1, v6, 0); v7 = *(_DWORD *)(a3 + 16); v8 = 0; if ( v6 ) { v9 = 0; do { v10 = a2; if ( a2[3] > 0xFu ) v10 = (_QWORD *)*a2; v11 = (_QWORD *)a3; if ( *(_QWORD *)(a3 + 24) > 0xFu ) v11 = *(_QWORD **)a3; v12 = a1; if ( a1[3] > 0xFu ) v12 = (_QWORD *)*a1; *((_BYTE *)v12 + v9) = *((_BYTE *)v10 + v9) ^ *((_BYTE *)v11 + v8 % v7); v9 = ++v8; } while ( v8 < v6 ); } v13 = *(_QWORD *)(a3 + 24); if ( v13 > 0xF ) { v14 = *(_QWORD **)a3; if ( v13 + 1 >= 0x1000 ) { if ( (unsigned __int64)v14 - *(v14 - 1) - 8 > 0x1F ) invalid_parameter_noinfo_noreturn(); v14 = (_QWORD *)*(v14 - 1); } j_j_free_0(v14); } *(_QWORD *)(a3 + 16) = 0; *(_QWORD *)(a3 + 24) = 15; *(_BYTE *)a3 = 0; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source