{"type": "func", "start": 14157024, "end": 14157120, "name": "CMAC_CTX_cleanup", "pseudocode": "// \n// CMAC_CTX_cleanup from 0xd804e0 to 0xd80540 (96 bytes)\n// \n// 2 xrefs:\n// > CMAC_CTX_free @ 0xd8055c\n// > <???> @ 0x66708\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 CMAC_CTX_cleanup(__int64 a1)\n{\n  _BYTE *v2; // x20\n\n  v2 = (_BYTE *)(a1 + 72);\n  EVP_CIPHER_CTX_free(*(_QWORD *)a1);\n  OPENSSL_cleanse(v2, 0x20u);\n  OPENSSL_cleanse((_BYTE *)(a1 + 8), 0x20u);\n  OPENSSL_cleanse((_BYTE *)(a1 + 40), 0x20u);\n  OPENSSL_cleanse((_BYTE *)(a1 + 104), 0x20u);\n  *(_DWORD *)(a1 + 136) = -1;\n  return 0xFFFFFFFFLL;\n}", "assembly": "; \n; CMAC_CTX_cleanup from 0xd804e0 to 0xd80540 (96 bytes)\n; \n; 2 xrefs:\n; > CMAC_CTX_free @ 0xd8055c\n; > <???> @ 0x66708\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xd804e0\nMOV             X29, SP                                                ; +0x4, 0xd804e4\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xd804e8\nMOV             X20, X0                                                ; +0xc, 0xd804ec\nMOV             X19, X0                                                ; +0x10, 0xd804f0\nLDR             X0, [X20],#0x48                                        ; +0x14, 0xd804f4\nBL              EVP_CIPHER_CTX_free                                    ; +0x18, 0xd804f8\nMOV             X0, X20                                                ; +0x1c, 0xd804fc\nMOV             X1, #0x20 ; ' '                                        ; +0x20, 0xd80500\nBL              OPENSSL_cleanse                                        ; +0x24, 0xd80504\nADD             X0, X19, #8                                            ; +0x28, 0xd80508\nMOV             X1, #0x20 ; ' '                                        ; +0x2c, 0xd8050c\nBL              OPENSSL_cleanse                                        ; +0x30, 0xd80510\nADD             X0, X19, #0x28 ; '('                                   ; +0x34, 0xd80514\nMOV             X1, #0x20 ; ' '                                        ; +0x38, 0xd80518\nBL              OPENSSL_cleanse                                        ; +0x3c, 0xd8051c\nADD             X0, X19, #0x68 ; 'h'                                   ; +0x40, 0xd80520\nMOV             X1, #0x20 ; ' '                                        ; +0x44, 0xd80524\nBL              OPENSSL_cleanse                                        ; +0x48, 0xd80528\nMOV             W0, #0xFFFFFFFF                                        ; +0x4c, 0xd8052c\nSTR             W0, [X19,#0x88]                                        ; +0x50, 0xd80530\nLDP             X19, X20, [SP,#var_s10]                                ; +0x54, 0xd80534\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x58, 0xd80538\nRET                                                                    ; +0x5c, 0xd8053c", "xrefs": ["CMAC_CTX_free @ 0xd8055c", "<???> @ 0x66708"], "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"}