{"type": "func", "start": 8457816, "end": 8457904, "name": "CRYPTO_ccm128_init", "pseudocode": "// \n// CRYPTO_ccm128_init from 0x810e58 to 0x810eb0 (88 bytes)\n// \n// 2 xrefs:\n// > sub_7FD7F4 @ 0x7fd860\n// > <???> @ 0x62c8c\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\nvoid *__fastcall CRYPTO_ccm128_init(_BYTE *a1, char a2, char a3, int a4, int a5)\n{\n  char v7; // r4\n  void *result; // r0\n\n  v7 = (4 * (a2 - 2)) & 0x38 | (a3 - 1) & 7;\n  result = memset(a1, 0, 0x10u);\n  *((_DWORD *)a1 + 11) = a4;\n  *a1 = v7;\n  *((_DWORD *)a1 + 10) = a5;\n  *((_QWORD *)a1 + 4) = 0;\n  return result;\n}", "assembly": "; \n; CRYPTO_ccm128_init from 0x810e58 to 0x810eb0 (88 bytes)\n; \n; 2 xrefs:\n; > sub_7FD7F4 @ 0x7fd860\n; > <???> @ 0x62c8c\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\nPUSH            {R4-R8,LR}                                             ; +0x0, 0x810e58\nMOV             R5, R1                                                 ; +0x4, 0x810e5c\nMOV             R4, R2                                                 ; +0x8, 0x810e60\nSUB             R5, R5, #2                                             ; +0xc, 0x810e64\nMOV             R5, R5,LSL#2                                           ; +0x10, 0x810e68\nSUB             R4, R4, #1                                             ; +0x14, 0x810e6c\nMOV             R2, #0x10; size_t                                      ; +0x18, 0x810e70\nMOV             R1, #0; int                                            ; +0x1c, 0x810e74\nAND             R5, R5, #0x38 ; '8'                                    ; +0x20, 0x810e78\nAND             R4, R4, #7                                             ; +0x24, 0x810e7c\nMOV             R7, R0                                                 ; +0x28, 0x810e80\nMOV             R8, R3                                                 ; +0x2c, 0x810e84\nLDR             R6, [SP,#arg_0]                                        ; +0x30, 0x810e88\nORR             R4, R5, R4                                             ; +0x34, 0x810e8c\nBL              memset                                                 ; +0x38, 0x810e90\nMOV             R2, #0                                                 ; +0x3c, 0x810e94\nMOV             R3, #0                                                 ; +0x40, 0x810e98\nSTR             R8, [R7,#0x2C]                                         ; +0x44, 0x810e9c\nSTRB            R4, [R7]                                               ; +0x48, 0x810ea0\nSTR             R6, [R7,#0x28]                                         ; +0x4c, 0x810ea4\nSTRD            R2, R3, [R7,#0x20]                                     ; +0x50, 0x810ea8\nPOP             {R4-R8,PC}                                             ; +0x54, 0x810eac", "xrefs": ["sub_7FD7F4 @ 0x7fd860", "<???> @ 0x62c8c"], "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"}