{"type": "func", "start": 8299900, "end": 8300136, "name": "EC_POINT_new", "pseudocode": "// \n// EC_POINT_new from 0x7ea57c to 0x7ea668 (236 bytes)\n// \n// 27 xrefs:\n// > EC_GROUP_new_from_ecparameters @ 0x7e6d5c\n// > d2i_ECPrivateKey @ 0x7e74f8\n// > EC_GROUP_new_by_curve_name @ 0x7e822c\n// > EC_KEY_copy @ 0x7e8b88\n// > ec_key_simple_generate_key @ 0x7e8f58\n// > ec_key_simple_check_key @ 0x7e90c8\n// > EC_KEY_set_public_key_affine_coordinates @ 0x7e94cc\n// > EC_KEY_oct2key @ 0x7e97b4\n// > EC_GROUP_copy @ 0x7eaab8\n// > EC_POINT_dup @ 0x7eab88\n// > EC_GROUP_set_generator @ 0x7eb9f8\n// > ec_wNAF_mul @ 0x7ec270\n// > ec_wNAF_mul @ 0x7ec788\n// > ec_wNAF_precompute_mult @ 0x7ecd04\n// > ec_wNAF_precompute_mult @ 0x7ecdd4\n// > ec_wNAF_precompute_mult @ 0x7ecde4\n// > ecdh_simple_compute_key @ 0x7ed698\n// > ossl_ecdsa_sign_setup @ 0x7edacc\n// > ossl_ecdsa_sign_sig @ 0x7ee12c\n// > ossl_ecdsa_verify_sig @ 0x7eee50\n// > sub_7F0594 @ 0x7f06d8\n// > sub_7F1BA0 @ 0x7f1c78\n// > sub_7F1BA0 @ 0x7f1c84\n// > EC_POINT_bn2point @ 0x88b540\n// > ec_GF2m_simple_mul @ 0x8d19f4\n// > ec_GF2m_simple_mul @ 0x8d1a04\n// > <???> @ 0x6149c\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_DWORD *__fastcall EC_POINT_new(int *a1)\n{\n  _DWORD *v2; // r0\n  _DWORD *v3; // r4\n  int v4; // r2\n  int v5; // r5\n  _DWORD *result; // r0\n\n  if ( a1 )\n  {\n    if ( *(_DWORD *)(*a1 + 44) )\n    {\n      v2 = (_DWORD *)CRYPTO_zalloc(20, \"crypto/ec/ec_lib.c\", 559);\n      v3 = v2;\n      if ( v2 )\n      {\n        v4 = *a1;\n        *v2 = *a1;\n        v5 = (*(int (**)(void))(v4 + 44))();\n        result = v3;\n        if ( !v5 )\n        {\n          CRYPTO_free(v3, \"crypto/ec/ec_lib.c\", 568);\n          return nullptr;\n        }\n      }\n      else\n      {\n        ERR_put_error(16, 121, 65, \"crypto/ec/ec_lib.c\", 561);\n        return nullptr;\n      }\n    }\n    else\n    {\n      ERR_put_error(16, 121, 66, \"crypto/ec/ec_lib.c\", 555);\n      return nullptr;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 121, 67, \"crypto/ec/ec_lib.c\", 551);\n    return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; EC_POINT_new from 0x7ea57c to 0x7ea668 (236 bytes)\n; \n; 27 xrefs:\n; > EC_GROUP_new_from_ecparameters @ 0x7e6d5c\n; > d2i_ECPrivateKey @ 0x7e74f8\n; > EC_GROUP_new_by_curve_name @ 0x7e822c\n; > EC_KEY_copy @ 0x7e8b88\n; > ec_key_simple_generate_key @ 0x7e8f58\n; > ec_key_simple_check_key @ 0x7e90c8\n; > EC_KEY_set_public_key_affine_coordinates @ 0x7e94cc\n; > EC_KEY_oct2key @ 0x7e97b4\n; > EC_GROUP_copy @ 0x7eaab8\n; > EC_POINT_dup @ 0x7eab88\n; > EC_GROUP_set_generator @ 0x7eb9f8\n; > ec_wNAF_mul @ 0x7ec270\n; > ec_wNAF_mul @ 0x7ec788\n; > ec_wNAF_precompute_mult @ 0x7ecd04\n; > ec_wNAF_precompute_mult @ 0x7ecdd4\n; > ec_wNAF_precompute_mult @ 0x7ecde4\n; > ecdh_simple_compute_key @ 0x7ed698\n; > ossl_ecdsa_sign_setup @ 0x7edacc\n; > ossl_ecdsa_sign_sig @ 0x7ee12c\n; > ossl_ecdsa_verify_sig @ 0x7eee50\n; > sub_7F0594 @ 0x7f06d8\n; > sub_7F1BA0 @ 0x7f1c78\n; > sub_7F1BA0 @ 0x7f1c84\n; > EC_POINT_bn2point @ 0x88b540\n; > ec_GF2m_simple_mul @ 0x8d19f4\n; > ec_GF2m_simple_mul @ 0x8d1a04\n; > <???> @ 0x6149c\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, 0x7ea57c\nSUBS            R5, R0, #0                                             ; +0x4, 0x7ea580\nSUB             SP, SP, #8                                             ; +0x8, 0x7ea584\nBEQ             loc_7EA640                                             ; +0xc, 0x7ea588\nLDR             R3, [R5]                                               ; +0x10, 0x7ea58c\nLDR             R4, [R3,#0x2C]                                         ; +0x14, 0x7ea590\nCMP             R4, #0                                                 ; +0x18, 0x7ea594\nBEQ             loc_7EA5F4                                             ; +0x1c, 0x7ea598\nLDR             R6, =(aCryptoEcEcLibC - 0x7EA5AC); \"crypto/ec/ec_lib.c\" ; +0x20, 0x7ea59c\nMOV             R0, #0x14                                              ; +0x24, 0x7ea5a0\nADD             R6, PC, R6; \"crypto/ec/ec_lib.c\"                       ; +0x28, 0x7ea5a4\nMOV             R1, R6                                                 ; +0x2c, 0x7ea5a8\nLDR             R2, =0x22F                                             ; +0x30, 0x7ea5ac\nBL              CRYPTO_zalloc                                          ; +0x34, 0x7ea5b0\nSUBS            R4, R0, #0                                             ; +0x38, 0x7ea5b4\nBEQ             loc_7EA61C                                             ; +0x3c, 0x7ea5b8\nLDR             R2, [R5]                                               ; +0x40, 0x7ea5bc\nSTR             R2, [R4]                                               ; +0x44, 0x7ea5c0\nLDR             R3, [R2,#0x2C]                                         ; +0x48, 0x7ea5c4\nBLX             R3                                                     ; +0x4c, 0x7ea5c8\nSUBS            R5, R0, #0                                             ; +0x50, 0x7ea5cc\nMOV             R0, R4                                                 ; +0x54, 0x7ea5d0\nBEQ             loc_7EA5E0                                             ; +0x58, 0x7ea5d4\nADD             SP, SP, #8                                             ; +0x5c, 0x7ea5d8\nPOP             {R4-R6,PC}                                             ; +0x60, 0x7ea5dc\nMOV             R1, R6                                                 ; +0x64, 0x7ea5e0\nMOV             R2, #0x238                                             ; +0x68, 0x7ea5e4\nBL              CRYPTO_free                                            ; +0x6c, 0x7ea5e8\nMOV             R0, R5                                                 ; +0x70, 0x7ea5ec\nB               loc_7EA5D8                                             ; +0x74, 0x7ea5f0\nLDR             R3, =0x22B                                             ; +0x78, 0x7ea5f4\nSTR             R3, [SP,#8+var_8]                                      ; +0x7c, 0x7ea5f8\nLDR             R3, =(aCryptoEcEcLibC - 0x7EA614); \"crypto/ec/ec_lib.c\" ; +0x80, 0x7ea5fc\nMOV             R0, #0x10                                              ; +0x84, 0x7ea600\nMOV             R1, #0x79 ; 'y'                                        ; +0x88, 0x7ea604\nMOV             R2, #0x42 ; 'B'                                        ; +0x8c, 0x7ea608\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x90, 0x7ea60c\nBL              ERR_put_error                                          ; +0x94, 0x7ea610\nMOV             R0, R4                                                 ; +0x98, 0x7ea614\nB               loc_7EA5D8                                             ; +0x9c, 0x7ea618\nLDR             R2, =0x231                                             ; +0xa0, 0x7ea61c\nSTR             R2, [SP,#8+var_8]                                      ; +0xa4, 0x7ea620\nMOV             R0, #0x10                                              ; +0xa8, 0x7ea624\nMOV             R3, R6                                                 ; +0xac, 0x7ea628\nMOV             R1, #0x79 ; 'y'                                        ; +0xb0, 0x7ea62c\nMOV             R2, #0x41 ; 'A'                                        ; +0xb4, 0x7ea630\nBL              ERR_put_error                                          ; +0xb8, 0x7ea634\nMOV             R0, R4                                                 ; +0xbc, 0x7ea638\nB               loc_7EA5D8                                             ; +0xc0, 0x7ea63c\nLDR             R3, =0x227                                             ; +0xc4, 0x7ea640\nSTR             R3, [SP,#8+var_8]                                      ; +0xc8, 0x7ea644\nLDR             R3, =(aCryptoEcEcLibC - 0x7EA660); \"crypto/ec/ec_lib.c\" ; +0xcc, 0x7ea648\nMOV             R0, #0x10                                              ; +0xd0, 0x7ea64c\nMOV             R1, #0x79 ; 'y'                                        ; +0xd4, 0x7ea650\nMOV             R2, #0x43 ; 'C'                                        ; +0xd8, 0x7ea654\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xdc, 0x7ea658\nBL              ERR_put_error                                          ; +0xe0, 0x7ea65c\nMOV             R0, R5                                                 ; +0xe4, 0x7ea660\nB               loc_7EA5D8                                             ; +0xe8, 0x7ea664", "xrefs": ["EC_GROUP_new_from_ecparameters @ 0x7e6d5c", "d2i_ECPrivateKey @ 0x7e74f8", "EC_GROUP_new_by_curve_name @ 0x7e822c", "EC_KEY_copy @ 0x7e8b88", "ec_key_simple_generate_key @ 0x7e8f58", "ec_key_simple_check_key @ 0x7e90c8", "EC_KEY_set_public_key_affine_coordinates @ 0x7e94cc", "EC_KEY_oct2key @ 0x7e97b4", "EC_GROUP_copy @ 0x7eaab8", "EC_POINT_dup @ 0x7eab88", "EC_GROUP_set_generator @ 0x7eb9f8", "ec_wNAF_mul @ 0x7ec270", "ec_wNAF_mul @ 0x7ec788", "ec_wNAF_precompute_mult @ 0x7ecd04", "ec_wNAF_precompute_mult @ 0x7ecdd4", "ec_wNAF_precompute_mult @ 0x7ecde4", "ecdh_simple_compute_key @ 0x7ed698", "ossl_ecdsa_sign_setup @ 0x7edacc", "ossl_ecdsa_sign_sig @ 0x7ee12c", "ossl_ecdsa_verify_sig @ 0x7eee50", "sub_7F0594 @ 0x7f06d8", "sub_7F1BA0 @ 0x7f1c78", "sub_7F1BA0 @ 0x7f1c84", "EC_POINT_bn2point @ 0x88b540", "ec_GF2m_simple_mul @ 0x8d19f4", "ec_GF2m_simple_mul @ 0x8d1a04", "<???> @ 0x6149c"], "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"}