{"type": "func", "start": 8300432, "end": 8300572, "name": "EC_GROUP_clear_free", "pseudocode": "// \n// EC_GROUP_clear_free from 0x7ea790 to 0x7ea81c (140 bytes)\n// \n// 6 xrefs:\n// > EC_GROUP_new_from_ecparameters @ 0x7e6980\n// > d2i_ECPKParameters @ 0x7e7304\n// > d2i_ECPrivateKey @ 0x7e7498\n// > EC_GROUP_new_curve_GFp @ 0x7e88e4\n// > EC_GROUP_new_curve_GF2m @ 0x7e8948\n// > <???> @ 0x6146c\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\nint __fastcall EC_GROUP_clear_free(int result)\n{\n  int v1; // r4\n  void (*v2)(void); // r3\n\n  v1 = result;\n  if ( result )\n  {\n    v2 = *(void (**)(void))(*(_DWORD *)result + 16);\n    if ( v2 || (v2 = *(void (**)(void))(*(_DWORD *)result + 12)) != nullptr )\n      v2();\n    EC_pre_comp_free(v1);\n    BN_MONT_CTX_free(*(_BYTE **)(v1 + 88));\n    EC_POINT_clear_free(*(_DWORD *)(v1 + 4));\n    BN_clear_free(*(_BYTE **)(v1 + 8));\n    BN_clear_free(*(_BYTE **)(v1 + 12));\n    CRYPTO_clear_free(*(_DWORD *)(v1 + 28), *(_DWORD *)(v1 + 32), \"crypto/ec/ec_lib.c\", 126);\n    return CRYPTO_clear_free(v1, 100, \"crypto/ec/ec_lib.c\", 127);\n  }\n  return result;\n}", "assembly": "; \n; EC_GROUP_clear_free from 0x7ea790 to 0x7ea81c (140 bytes)\n; \n; 6 xrefs:\n; > EC_GROUP_new_from_ecparameters @ 0x7e6980\n; > d2i_ECPKParameters @ 0x7e7304\n; > d2i_ECPrivateKey @ 0x7e7498\n; > EC_GROUP_new_curve_GFp @ 0x7e88e4\n; > EC_GROUP_new_curve_GF2m @ 0x7e8948\n; > <???> @ 0x6146c\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-R6,LR}                                             ; +0x0, 0x7ea790\nSUBS            R4, R0, #0                                             ; +0x4, 0x7ea794\nPOPEQ           {R4-R6,PC}                                             ; +0x8, 0x7ea798\nLDR             R2, [R4]                                               ; +0xc, 0x7ea79c\nLDR             R3, [R2,#0x10]                                         ; +0x10, 0x7ea7a0\nCMP             R3, #0                                                 ; +0x14, 0x7ea7a4\nBEQ             loc_7EA80C                                             ; +0x18, 0x7ea7a8\nBLX             R3                                                     ; +0x1c, 0x7ea7ac\nMOV             R0, R4                                                 ; +0x20, 0x7ea7b0\nBL              EC_pre_comp_free                                       ; +0x24, 0x7ea7b4\nLDR             R0, [R4,#0x58]                                         ; +0x28, 0x7ea7b8\nBL              BN_MONT_CTX_free                                       ; +0x2c, 0x7ea7bc\nLDR             R5, =(aCryptoEcEcLibC - 0x7EA7DC); \"crypto/ec/ec_lib.c\" ; +0x30, 0x7ea7c0\nLDR             R0, [R4,#4]                                            ; +0x34, 0x7ea7c4\nBL              EC_POINT_clear_free                                    ; +0x38, 0x7ea7c8\nLDR             R0, [R4,#8]                                            ; +0x3c, 0x7ea7cc\nBL              BN_clear_free                                          ; +0x40, 0x7ea7d0\nADD             R5, PC, R5; \"crypto/ec/ec_lib.c\"                       ; +0x44, 0x7ea7d4\nLDR             R0, [R4,#0xC]                                          ; +0x48, 0x7ea7d8\nBL              BN_clear_free                                          ; +0x4c, 0x7ea7dc\nMOV             R2, R5                                                 ; +0x50, 0x7ea7e0\nLDR             R0, [R4,#0x1C]                                         ; +0x54, 0x7ea7e4\nLDR             R1, [R4,#0x20]                                         ; +0x58, 0x7ea7e8\nMOV             R3, #0x7E ; '~'                                        ; +0x5c, 0x7ea7ec\nBL              CRYPTO_clear_free                                      ; +0x60, 0x7ea7f0\nMOV             R0, R4                                                 ; +0x64, 0x7ea7f4\nMOV             R2, R5                                                 ; +0x68, 0x7ea7f8\nMOV             R1, #0x64 ; 'd'                                        ; +0x6c, 0x7ea7fc\nMOV             R3, #0x7F                                              ; +0x70, 0x7ea800\nPOP             {R4-R6,LR}                                             ; +0x74, 0x7ea804\nB               CRYPTO_clear_free                                      ; +0x78, 0x7ea808\nLDR             R3, [R2,#0xC]                                          ; +0x7c, 0x7ea80c\nCMP             R3, #0                                                 ; +0x80, 0x7ea810\nBNE             loc_7EA7AC                                             ; +0x84, 0x7ea814\nB               loc_7EA7B0                                             ; +0x88, 0x7ea818", "xrefs": ["EC_GROUP_new_from_ecparameters @ 0x7e6980", "d2i_ECPKParameters @ 0x7e7304", "d2i_ECPrivateKey @ 0x7e7498", "EC_GROUP_new_curve_GFp @ 0x7e88e4", "EC_GROUP_new_curve_GF2m @ 0x7e8948", "<???> @ 0x6146c"], "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"}