{"type": "func", "start": 10411016, "end": 10411096, "name": "CMAC_CTX_cleanup", "pseudocode": "// \n// CMAC_CTX_cleanup from 0x9edc08 to 0x9edc58 (80 bytes)\n// \n// 2 xrefs:\n// > CMAC_CTX_free @ 0x9edc70\n// > <???> @ 0x79abc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:27 +0000\n// \n\n_BYTE *__fastcall CMAC_CTX_cleanup(int a1)\n{\n  _BYTE *v2; // r5\n  _BYTE *result; // r0\n\n  v2 = (_BYTE *)(a1 + 68);\n  EVP_CIPHER_CTX_free(*(_DWORD *)a1);\n  OPENSSL_cleanse(v2, 0x20u);\n  OPENSSL_cleanse((_BYTE *)(a1 + 4), 0x20u);\n  OPENSSL_cleanse((_BYTE *)(a1 + 36), 0x20u);\n  result = OPENSSL_cleanse((_BYTE *)(a1 + 100), 0x20u);\n  *(_DWORD *)(a1 + 132) = -1;\n  return result;\n}", "assembly": "; \n; CMAC_CTX_cleanup from 0x9edc08 to 0x9edc58 (80 bytes)\n; \n; 2 xrefs:\n; > CMAC_CTX_free @ 0x9edc70\n; > <???> @ 0x79abc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:27 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x9edc08\nMOV             R5, R0                                                 ; +0x4, 0x9edc0c\nMOV             R4, R0                                                 ; +0x8, 0x9edc10\nLDR             R0, [R5],#0x44                                         ; +0xc, 0x9edc14\nBL              EVP_CIPHER_CTX_free                                    ; +0x10, 0x9edc18\nMOV             R0, R5                                                 ; +0x14, 0x9edc1c\nMOV             R1, #0x20 ; ' '                                        ; +0x18, 0x9edc20\nBL              OPENSSL_cleanse                                        ; +0x1c, 0x9edc24\nADD             R0, R4, #4                                             ; +0x20, 0x9edc28\nMOV             R1, #0x20 ; ' '                                        ; +0x24, 0x9edc2c\nBL              OPENSSL_cleanse                                        ; +0x28, 0x9edc30\nADD             R0, R4, #0x24 ; '$'                                    ; +0x2c, 0x9edc34\nMOV             R1, #0x20 ; ' '                                        ; +0x30, 0x9edc38\nBL              OPENSSL_cleanse                                        ; +0x34, 0x9edc3c\nADD             R0, R4, #0x64 ; 'd'                                    ; +0x38, 0x9edc40\nMOV             R1, #0x20 ; ' '                                        ; +0x3c, 0x9edc44\nBL              OPENSSL_cleanse                                        ; +0x40, 0x9edc48\nMOV             R3, #0xFFFFFFFF                                        ; +0x44, 0x9edc4c\nSTR             R3, [R4,#0x84]                                         ; +0x48, 0x9edc50\nPOP             {R3-R5,PC}                                             ; +0x4c, 0x9edc54", "xrefs": ["CMAC_CTX_free @ 0x9edc70", "<???> @ 0x79abc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}