{"type": "func", "start": 6443052608, "end": 6443052753, "name": "base64Encode", "pseudocode": "// \n// base64Encode from 0x180092e40 to 0x180092ed1 (145 bytes)\n// \n// 5 xrefs:\n// > cocos2d::ZipUtils::base64EncodeEnc @ 0x1800a2ef6\n// > cocos2d::ZipUtils::base64URLEncode @ 0x1800a321b\n// > cocos2d::ZipUtils::compressString @ 0x1800a3c0d\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6444\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall base64Encode(unsigned __int8 *a1, unsigned int a2, _QWORD *a3, char a4)\n{\n  int v6; // edi\n  unsigned int v9; // edi\n  _BYTE *v10; // rax\n\n  v6 = 0;\n  if ( a2 != 3 * (a2 / 3) )\n    v6 = 4;\n  v9 = 4 * a2 / 3 + v6;\n  v10 = malloc(v9 + 1);\n  *a3 = v10;\n  if ( v10 )\n    sub_180092B70(a1, a2, v10, a4);\n  return v9;\n}", "assembly": "; \n; base64Encode from 0x180092e40 to 0x180092ed1 (145 bytes)\n; \n; 5 xrefs:\n; > cocos2d::ZipUtils::base64EncodeEnc @ 0x1800a2ef6\n; > cocos2d::ZipUtils::base64URLEncode @ 0x1800a321b\n; > cocos2d::ZipUtils::compressString @ 0x1800a3c0d\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6444\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180092e40\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180092e45\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180092e4a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x180092e4f\npush    r14                                                            ; +0x14, 0x180092e54\nsub     rsp, 20h                                                       ; +0x16, 0x180092e56\nmov     esi, edx                                                       ; +0x1a, 0x180092e5a\nmov     r14, rcx                                                       ; +0x1c, 0x180092e5c\nxor     edi, edi                                                       ; +0x1f, 0x180092e5f\nmov     ecx, 4                                                         ; +0x21, 0x180092e61\nmov     eax, 0AAAAAAABh                                                ; +0x26, 0x180092e66\nmovzx   ebp, r9b                                                       ; +0x2b, 0x180092e6b\nmul     edx                                                            ; +0x2f, 0x180092e6f\nmov     eax, 0AAAAAAABh                                                ; +0x31, 0x180092e71\nmov     rbx, r8                                                        ; +0x36, 0x180092e76\nshr     edx, 1                                                         ; +0x39, 0x180092e79\nlea     r10d, [rdx+rdx*2]                                              ; +0x3b, 0x180092e7b\ncmp     esi, r10d                                                      ; +0x3f, 0x180092e7f\ncmovnz  edi, ecx                                                       ; +0x42, 0x180092e82\nlea     ecx, ds:0[rsi*4]                                               ; +0x45, 0x180092e85\nmul     ecx                                                            ; +0x4c, 0x180092e8c\nshr     edx, 1                                                         ; +0x4e, 0x180092e8e\nadd     edi, edx                                                       ; +0x50, 0x180092e90\nlea     ecx, [rdi+1]; Size                                             ; +0x52, 0x180092e92\ncall    cs:__imp_malloc                                                ; +0x55, 0x180092e95\nmov     [rbx], rax                                                     ; +0x5b, 0x180092e9b\ntest    rax, rax                                                       ; +0x5e, 0x180092e9e\njz      short loc_180092EB4                                            ; +0x61, 0x180092ea1\nmovzx   r9d, bpl                                                       ; +0x63, 0x180092ea3\nmov     r8, rax                                                        ; +0x67, 0x180092ea7\nmov     edx, esi                                                       ; +0x6a, 0x180092eaa\nmov     rcx, r14                                                       ; +0x6c, 0x180092eac\ncall    sub_180092B70                                                  ; +0x6f, 0x180092eaf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x74, 0x180092eb4\nmov     eax, edi                                                       ; +0x79, 0x180092eb9\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x7b, 0x180092ebb\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x80, 0x180092ec0\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x85, 0x180092ec5\nadd     rsp, 20h                                                       ; +0x8a, 0x180092eca\npop     r14                                                            ; +0x8e, 0x180092ece\nretn                                                                   ; +0x90, 0x180092ed0", "xrefs": ["cocos2d::ZipUtils::base64EncodeEnc @ 0x1800a2ef6", "cocos2d::ZipUtils::base64URLEncode @ 0x1800a321b", "cocos2d::ZipUtils::compressString @ 0x1800a3c0d", "<???> @ 0x1801438a8", "<???> @ 0x1801b6444"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}