{"type": "func", "start": 6443067024, "end": 6443067146, "name": "base64Encode", "pseudocode": "// \n// base64Encode from 0x180096690 to 0x18009670a (122 bytes)\n// \n// 5 xrefs:\n// > cocos2d::ZipUtils::base64EncodeEnc @ 0x1800a6975\n// > cocos2d::ZipUtils::base64URLEncode @ 0x1800a6bf6\n// > cocos2d::ZipUtils::compressString @ 0x1800a75dd\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c06e4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:10 +0000\n// \n\n__int64 __fastcall base64Encode(unsigned __int8 *a1, unsigned int a2, _QWORD *a3, char a4)\n{\n  unsigned int v8; // edi\n  _BYTE *v9; // rax\n\n  v8 = 4 * ((a2 + 2) / 3);\n  v9 = malloc(v8 + 1);\n  *a3 = v9;\n  if ( v9 )\n    sub_1800963F0(a1, a2, v9, a4);\n  return v8;\n}", "assembly": "; \n; base64Encode from 0x180096690 to 0x18009670a (122 bytes)\n; \n; 5 xrefs:\n; > cocos2d::ZipUtils::base64EncodeEnc @ 0x1800a6975\n; > cocos2d::ZipUtils::base64URLEncode @ 0x1800a6bf6\n; > cocos2d::ZipUtils::compressString @ 0x1800a75dd\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c06e4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:10 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180096690\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180096695\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18009669a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18009669f\npush    r14                                                            ; +0x14, 0x1800966a4\nsub     rsp, 20h                                                       ; +0x16, 0x1800966a6\nlea     r10d, [rdx+2]                                                  ; +0x1a, 0x1800966aa\nmov     esi, edx                                                       ; +0x1e, 0x1800966ae\nmov     eax, 0AAAAAAABh                                                ; +0x20, 0x1800966b0\nmov     r14, rcx                                                       ; +0x25, 0x1800966b5\nmul     r10d                                                           ; +0x28, 0x1800966b8\nmovzx   ebp, r9b                                                       ; +0x2b, 0x1800966bb\nmov     rbx, r8                                                        ; +0x2f, 0x1800966bf\nshr     edx, 1                                                         ; +0x32, 0x1800966c2\nlea     edi, ds:0[rdx*4]                                               ; +0x34, 0x1800966c4\nlea     ecx, [rdi+1]; Size                                             ; +0x3b, 0x1800966cb\ncall    cs:__imp_malloc                                                ; +0x3e, 0x1800966ce\nmov     [rbx], rax                                                     ; +0x44, 0x1800966d4\ntest    rax, rax                                                       ; +0x47, 0x1800966d7\njz      short loc_1800966ED                                            ; +0x4a, 0x1800966da\nmovzx   r9d, bpl                                                       ; +0x4c, 0x1800966dc\nmov     r8, rax                                                        ; +0x50, 0x1800966e0\nmov     edx, esi                                                       ; +0x53, 0x1800966e3\nmov     rcx, r14                                                       ; +0x55, 0x1800966e5\ncall    sub_1800963F0                                                  ; +0x58, 0x1800966e8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5d, 0x1800966ed\nmov     eax, edi                                                       ; +0x62, 0x1800966f2\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x64, 0x1800966f4\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x69, 0x1800966f9\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x6e, 0x1800966fe\nadd     rsp, 20h                                                       ; +0x73, 0x180096703\npop     r14                                                            ; +0x77, 0x180096707\nretn                                                                   ; +0x79, 0x180096709", "xrefs": ["cocos2d::ZipUtils::base64EncodeEnc @ 0x1800a6975", "cocos2d::ZipUtils::base64URLEncode @ 0x1800a6bf6", "cocos2d::ZipUtils::compressString @ 0x1800a75dd", "<???> @ 0x18014cf68", "<???> @ 0x1801c06e4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}