{"type": "func", "start": 10482044, "end": 10482280, "name": "EC_POINT_new", "pseudocode": "// \n// EC_POINT_new from 0x9ff17c to 0x9ff268 (236 bytes)\n// \n// 27 xrefs:\n// > EC_GROUP_new_from_ecparameters @ 0x9fb95c\n// > d2i_ECPrivateKey @ 0x9fc0f8\n// > EC_GROUP_new_by_curve_name @ 0x9fce2c\n// > EC_KEY_copy @ 0x9fd788\n// > ec_key_simple_generate_key @ 0x9fdb58\n// > ec_key_simple_check_key @ 0x9fdcc8\n// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe0cc\n// > EC_KEY_oct2key @ 0x9fe3b4\n// > EC_GROUP_copy @ 0x9ff6b8\n// > EC_POINT_dup @ 0x9ff788\n// > EC_GROUP_set_generator @ 0xa005f8\n// > ec_wNAF_mul @ 0xa00e70\n// > ec_wNAF_mul @ 0xa01388\n// > ec_wNAF_precompute_mult @ 0xa01904\n// > ec_wNAF_precompute_mult @ 0xa019d4\n// > ec_wNAF_precompute_mult @ 0xa019e4\n// > ecdh_simple_compute_key @ 0xa02298\n// > ossl_ecdsa_sign_setup @ 0xa026cc\n// > ossl_ecdsa_sign_sig @ 0xa02d2c\n// > ossl_ecdsa_verify_sig @ 0xa03a50\n// > sub_A05194 @ 0xa052d8\n// > sub_A067A0 @ 0xa06878\n// > sub_A067A0 @ 0xa06884\n// > EC_POINT_bn2point @ 0xaa0140\n// > ec_GF2m_simple_mul @ 0xae69f4\n// > ec_GF2m_simple_mul @ 0xae6a04\n// > <???> @ 0x7af1c\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\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 0x9ff17c to 0x9ff268 (236 bytes)\n; \n; 27 xrefs:\n; > EC_GROUP_new_from_ecparameters @ 0x9fb95c\n; > d2i_ECPrivateKey @ 0x9fc0f8\n; > EC_GROUP_new_by_curve_name @ 0x9fce2c\n; > EC_KEY_copy @ 0x9fd788\n; > ec_key_simple_generate_key @ 0x9fdb58\n; > ec_key_simple_check_key @ 0x9fdcc8\n; > EC_KEY_set_public_key_affine_coordinates @ 0x9fe0cc\n; > EC_KEY_oct2key @ 0x9fe3b4\n; > EC_GROUP_copy @ 0x9ff6b8\n; > EC_POINT_dup @ 0x9ff788\n; > EC_GROUP_set_generator @ 0xa005f8\n; > ec_wNAF_mul @ 0xa00e70\n; > ec_wNAF_mul @ 0xa01388\n; > ec_wNAF_precompute_mult @ 0xa01904\n; > ec_wNAF_precompute_mult @ 0xa019d4\n; > ec_wNAF_precompute_mult @ 0xa019e4\n; > ecdh_simple_compute_key @ 0xa02298\n; > ossl_ecdsa_sign_setup @ 0xa026cc\n; > ossl_ecdsa_sign_sig @ 0xa02d2c\n; > ossl_ecdsa_verify_sig @ 0xa03a50\n; > sub_A05194 @ 0xa052d8\n; > sub_A067A0 @ 0xa06878\n; > sub_A067A0 @ 0xa06884\n; > EC_POINT_bn2point @ 0xaa0140\n; > ec_GF2m_simple_mul @ 0xae69f4\n; > ec_GF2m_simple_mul @ 0xae6a04\n; > <???> @ 0x7af1c\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, 0x9ff17c\nSUBS            R5, R0, #0                                             ; +0x4, 0x9ff180\nSUB             SP, SP, #8                                             ; +0x8, 0x9ff184\nBEQ             loc_9FF240                                             ; +0xc, 0x9ff188\nLDR             R3, [R5]                                               ; +0x10, 0x9ff18c\nLDR             R4, [R3,#0x2C]                                         ; +0x14, 0x9ff190\nCMP             R4, #0                                                 ; +0x18, 0x9ff194\nBEQ             loc_9FF1F4                                             ; +0x1c, 0x9ff198\nLDR             R6, =(aCryptoEcEcLibC - 0x9FF1AC); \"crypto/ec/ec_lib.c\" ; +0x20, 0x9ff19c\nMOV             R0, #0x14                                              ; +0x24, 0x9ff1a0\nADD             R6, PC, R6; \"crypto/ec/ec_lib.c\"                       ; +0x28, 0x9ff1a4\nMOV             R1, R6                                                 ; +0x2c, 0x9ff1a8\nLDR             R2, =0x22F                                             ; +0x30, 0x9ff1ac\nBL              CRYPTO_zalloc                                          ; +0x34, 0x9ff1b0\nSUBS            R4, R0, #0                                             ; +0x38, 0x9ff1b4\nBEQ             loc_9FF21C                                             ; +0x3c, 0x9ff1b8\nLDR             R2, [R5]                                               ; +0x40, 0x9ff1bc\nSTR             R2, [R4]                                               ; +0x44, 0x9ff1c0\nLDR             R3, [R2,#0x2C]                                         ; +0x48, 0x9ff1c4\nBLX             R3                                                     ; +0x4c, 0x9ff1c8\nSUBS            R5, R0, #0                                             ; +0x50, 0x9ff1cc\nMOV             R0, R4                                                 ; +0x54, 0x9ff1d0\nBEQ             loc_9FF1E0                                             ; +0x58, 0x9ff1d4\nADD             SP, SP, #8                                             ; +0x5c, 0x9ff1d8\nPOP             {R4-R6,PC}                                             ; +0x60, 0x9ff1dc\nMOV             R1, R6                                                 ; +0x64, 0x9ff1e0\nMOV             R2, #0x238                                             ; +0x68, 0x9ff1e4\nBL              CRYPTO_free                                            ; +0x6c, 0x9ff1e8\nMOV             R0, R5                                                 ; +0x70, 0x9ff1ec\nB               loc_9FF1D8                                             ; +0x74, 0x9ff1f0\nLDR             R3, =0x22B                                             ; +0x78, 0x9ff1f4\nSTR             R3, [SP,#8+var_8]                                      ; +0x7c, 0x9ff1f8\nLDR             R3, =(aCryptoEcEcLibC - 0x9FF214); \"crypto/ec/ec_lib.c\" ; +0x80, 0x9ff1fc\nMOV             R0, #0x10                                              ; +0x84, 0x9ff200\nMOV             R1, #0x79 ; 'y'                                        ; +0x88, 0x9ff204\nMOV             R2, #0x42 ; 'B'                                        ; +0x8c, 0x9ff208\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x90, 0x9ff20c\nBL              ERR_put_error                                          ; +0x94, 0x9ff210\nMOV             R0, R4                                                 ; +0x98, 0x9ff214\nB               loc_9FF1D8                                             ; +0x9c, 0x9ff218\nLDR             R2, =0x231                                             ; +0xa0, 0x9ff21c\nSTR             R2, [SP,#8+var_8]                                      ; +0xa4, 0x9ff220\nMOV             R0, #0x10                                              ; +0xa8, 0x9ff224\nMOV             R3, R6                                                 ; +0xac, 0x9ff228\nMOV             R1, #0x79 ; 'y'                                        ; +0xb0, 0x9ff22c\nMOV             R2, #0x41 ; 'A'                                        ; +0xb4, 0x9ff230\nBL              ERR_put_error                                          ; +0xb8, 0x9ff234\nMOV             R0, R4                                                 ; +0xbc, 0x9ff238\nB               loc_9FF1D8                                             ; +0xc0, 0x9ff23c\nLDR             R3, =0x227                                             ; +0xc4, 0x9ff240\nSTR             R3, [SP,#8+var_8]                                      ; +0xc8, 0x9ff244\nLDR             R3, =(aCryptoEcEcLibC - 0x9FF260); \"crypto/ec/ec_lib.c\" ; +0xcc, 0x9ff248\nMOV             R0, #0x10                                              ; +0xd0, 0x9ff24c\nMOV             R1, #0x79 ; 'y'                                        ; +0xd4, 0x9ff250\nMOV             R2, #0x43 ; 'C'                                        ; +0xd8, 0x9ff254\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xdc, 0x9ff258\nBL              ERR_put_error                                          ; +0xe0, 0x9ff25c\nMOV             R0, R5                                                 ; +0xe4, 0x9ff260\nB               loc_9FF1D8                                             ; +0xe8, 0x9ff264", "xrefs": ["EC_GROUP_new_from_ecparameters @ 0x9fb95c", "d2i_ECPrivateKey @ 0x9fc0f8", "EC_GROUP_new_by_curve_name @ 0x9fce2c", "EC_KEY_copy @ 0x9fd788", "ec_key_simple_generate_key @ 0x9fdb58", "ec_key_simple_check_key @ 0x9fdcc8", "EC_KEY_set_public_key_affine_coordinates @ 0x9fe0cc", "EC_KEY_oct2key @ 0x9fe3b4", "EC_GROUP_copy @ 0x9ff6b8", "EC_POINT_dup @ 0x9ff788", "EC_GROUP_set_generator @ 0xa005f8", "ec_wNAF_mul @ 0xa00e70", "ec_wNAF_mul @ 0xa01388", "ec_wNAF_precompute_mult @ 0xa01904", "ec_wNAF_precompute_mult @ 0xa019d4", "ec_wNAF_precompute_mult @ 0xa019e4", "ecdh_simple_compute_key @ 0xa02298", "ossl_ecdsa_sign_setup @ 0xa026cc", "ossl_ecdsa_sign_sig @ 0xa02d2c", "ossl_ecdsa_verify_sig @ 0xa03a50", "sub_A05194 @ 0xa052d8", "sub_A067A0 @ 0xa06878", "sub_A067A0 @ 0xa06884", "EC_POINT_bn2point @ 0xaa0140", "ec_GF2m_simple_mul @ 0xae69f4", "ec_GF2m_simple_mul @ 0xae6a04", "<???> @ 0x7af1c"], "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"}