{"type": "func", "start": 10482576, "end": 10482716, "name": "EC_GROUP_clear_free", "pseudocode": "// \n// EC_GROUP_clear_free from 0x9ff390 to 0x9ff41c (140 bytes)\n// \n// 6 xrefs:\n// > EC_GROUP_new_from_ecparameters @ 0x9fb580\n// > d2i_ECPKParameters @ 0x9fbf04\n// > d2i_ECPrivateKey @ 0x9fc098\n// > EC_GROUP_new_curve_GFp @ 0x9fd4e4\n// > EC_GROUP_new_curve_GF2m @ 0x9fd548\n// > <???> @ 0x7aeec\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:37 +0000\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 0x9ff390 to 0x9ff41c (140 bytes)\n; \n; 6 xrefs:\n; > EC_GROUP_new_from_ecparameters @ 0x9fb580\n; > d2i_ECPKParameters @ 0x9fbf04\n; > d2i_ECPrivateKey @ 0x9fc098\n; > EC_GROUP_new_curve_GFp @ 0x9fd4e4\n; > EC_GROUP_new_curve_GF2m @ 0x9fd548\n; > <???> @ 0x7aeec\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:37 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x9ff390\nSUBS            R4, R0, #0                                             ; +0x4, 0x9ff394\nPOPEQ           {R4-R6,PC}                                             ; +0x8, 0x9ff398\nLDR             R2, [R4]                                               ; +0xc, 0x9ff39c\nLDR             R3, [R2,#0x10]                                         ; +0x10, 0x9ff3a0\nCMP             R3, #0                                                 ; +0x14, 0x9ff3a4\nBEQ             loc_9FF40C                                             ; +0x18, 0x9ff3a8\nBLX             R3                                                     ; +0x1c, 0x9ff3ac\nMOV             R0, R4                                                 ; +0x20, 0x9ff3b0\nBL              EC_pre_comp_free                                       ; +0x24, 0x9ff3b4\nLDR             R0, [R4,#0x58]                                         ; +0x28, 0x9ff3b8\nBL              BN_MONT_CTX_free                                       ; +0x2c, 0x9ff3bc\nLDR             R5, =(aCryptoEcEcLibC - 0x9FF3DC); \"crypto/ec/ec_lib.c\" ; +0x30, 0x9ff3c0\nLDR             R0, [R4,#4]                                            ; +0x34, 0x9ff3c4\nBL              EC_POINT_clear_free                                    ; +0x38, 0x9ff3c8\nLDR             R0, [R4,#8]                                            ; +0x3c, 0x9ff3cc\nBL              BN_clear_free                                          ; +0x40, 0x9ff3d0\nADD             R5, PC, R5; \"crypto/ec/ec_lib.c\"                       ; +0x44, 0x9ff3d4\nLDR             R0, [R4,#0xC]                                          ; +0x48, 0x9ff3d8\nBL              BN_clear_free                                          ; +0x4c, 0x9ff3dc\nMOV             R2, R5                                                 ; +0x50, 0x9ff3e0\nLDR             R0, [R4,#0x1C]                                         ; +0x54, 0x9ff3e4\nLDR             R1, [R4,#0x20]                                         ; +0x58, 0x9ff3e8\nMOV             R3, #0x7E ; '~'                                        ; +0x5c, 0x9ff3ec\nBL              CRYPTO_clear_free                                      ; +0x60, 0x9ff3f0\nMOV             R0, R4                                                 ; +0x64, 0x9ff3f4\nMOV             R2, R5                                                 ; +0x68, 0x9ff3f8\nMOV             R1, #0x64 ; 'd'                                        ; +0x6c, 0x9ff3fc\nMOV             R3, #0x7F                                              ; +0x70, 0x9ff400\nPOP             {R4-R6,LR}                                             ; +0x74, 0x9ff404\nB               CRYPTO_clear_free                                      ; +0x78, 0x9ff408\nLDR             R3, [R2,#0xC]                                          ; +0x7c, 0x9ff40c\nCMP             R3, #0                                                 ; +0x80, 0x9ff410\nBNE             loc_9FF3AC                                             ; +0x84, 0x9ff414\nB               loc_9FF3B0                                             ; +0x88, 0x9ff418", "xrefs": ["EC_GROUP_new_from_ecparameters @ 0x9fb580", "d2i_ECPKParameters @ 0x9fbf04", "d2i_ECPrivateKey @ 0x9fc098", "EC_GROUP_new_curve_GFp @ 0x9fd4e4", "EC_GROUP_new_curve_GF2m @ 0x9fd548", "<???> @ 0x7aeec"], "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"}