{"type": "func", "start": 8300228, "end": 8300344, "name": "EC_GROUP_free", "pseudocode": "// \n// EC_GROUP_free from 0x7ea6c4 to 0x7ea738 (116 bytes)\n// \n// 10 xrefs:\n// > sub_7E3C64 @ 0x7e3cc4\n// > sub_7E47E0 @ 0x7e4824\n// > EC_GROUP_new_by_curve_name @ 0x7e8140\n// > EC_KEY_free @ 0x7e89f8\n// > EC_KEY_copy @ 0x7e8b48\n// > EC_KEY_set_group @ 0x7e9354\n// > EC_GROUP_dup @ 0x7eab54\n// > sub_88AA4C @ 0x88aa64\n// > sub_88AA9C @ 0x88abb8\n// > <???> @ 0x610cc\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_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 + 12);\n    if ( v2 )\n      v2();\n    EC_pre_comp_free(v1);\n    BN_MONT_CTX_free(*(_BYTE **)(v1 + 88));\n    EC_POINT_free(*(_DWORD *)(v1 + 4));\n    BN_free(*(_DWORD *)(v1 + 8));\n    BN_free(*(_DWORD *)(v1 + 12));\n    CRYPTO_free(*(_DWORD *)(v1 + 28), \"crypto/ec/ec_lib.c\", 107);\n    return CRYPTO_free(v1, \"crypto/ec/ec_lib.c\", 108);\n  }\n  return result;\n}", "assembly": "; \n; EC_GROUP_free from 0x7ea6c4 to 0x7ea738 (116 bytes)\n; \n; 10 xrefs:\n; > sub_7E3C64 @ 0x7e3cc4\n; > sub_7E47E0 @ 0x7e4824\n; > EC_GROUP_new_by_curve_name @ 0x7e8140\n; > EC_KEY_free @ 0x7e89f8\n; > EC_KEY_copy @ 0x7e8b48\n; > EC_KEY_set_group @ 0x7e9354\n; > EC_GROUP_dup @ 0x7eab54\n; > sub_88AA4C @ 0x88aa64\n; > sub_88AA9C @ 0x88abb8\n; > <???> @ 0x610cc\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            {R3-R5,LR}                                             ; +0x0, 0x7ea6c4\nSUBS            R4, R0, #0                                             ; +0x4, 0x7ea6c8\nPOPEQ           {R3-R5,PC}                                             ; +0x8, 0x7ea6cc\nLDR             R3, [R4]                                               ; +0xc, 0x7ea6d0\nLDR             R3, [R3,#0xC]                                          ; +0x10, 0x7ea6d4\nCMP             R3, #0                                                 ; +0x14, 0x7ea6d8\nBEQ             loc_7EA6E4                                             ; +0x18, 0x7ea6dc\nBLX             R3                                                     ; +0x1c, 0x7ea6e0\nMOV             R0, R4                                                 ; +0x20, 0x7ea6e4\nBL              EC_pre_comp_free                                       ; +0x24, 0x7ea6e8\nLDR             R0, [R4,#0x58]                                         ; +0x28, 0x7ea6ec\nBL              BN_MONT_CTX_free                                       ; +0x2c, 0x7ea6f0\nLDR             R5, =(aCryptoEcEcLibC - 0x7EA710); \"crypto/ec/ec_lib.c\" ; +0x30, 0x7ea6f4\nLDR             R0, [R4,#4]                                            ; +0x34, 0x7ea6f8\nBL              EC_POINT_free                                          ; +0x38, 0x7ea6fc\nLDR             R0, [R4,#8]                                            ; +0x3c, 0x7ea700\nBL              BN_free                                                ; +0x40, 0x7ea704\nADD             R5, PC, R5; \"crypto/ec/ec_lib.c\"                       ; +0x44, 0x7ea708\nLDR             R0, [R4,#0xC]                                          ; +0x48, 0x7ea70c\nBL              BN_free                                                ; +0x4c, 0x7ea710\nMOV             R1, R5                                                 ; +0x50, 0x7ea714\nLDR             R0, [R4,#0x1C]                                         ; +0x54, 0x7ea718\nMOV             R2, #0x6B ; 'k'                                        ; +0x58, 0x7ea71c\nBL              CRYPTO_free                                            ; +0x5c, 0x7ea720\nMOV             R0, R4                                                 ; +0x60, 0x7ea724\nMOV             R1, R5                                                 ; +0x64, 0x7ea728\nMOV             R2, #0x6C ; 'l'                                        ; +0x68, 0x7ea72c\nPOP             {R3-R5,LR}                                             ; +0x6c, 0x7ea730\nB               CRYPTO_free                                            ; +0x70, 0x7ea734", "xrefs": ["sub_7E3C64 @ 0x7e3cc4", "sub_7E47E0 @ 0x7e4824", "EC_GROUP_new_by_curve_name @ 0x7e8140", "EC_KEY_free @ 0x7e89f8", "EC_KEY_copy @ 0x7e8b48", "EC_KEY_set_group @ 0x7e9354", "EC_GROUP_dup @ 0x7eab54", "sub_88AA4C @ 0x88aa64", "sub_88AA9C @ 0x88abb8", "<???> @ 0x610cc"], "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"}