{"type": "func", "start": 8290188, "end": 8291436, "name": "EC_GROUP_new_by_curve_name", "pseudocode": "// \n// EC_GROUP_new_by_curve_name from 0x7e7f8c to 0x7e846c (1248 bytes)\n// \n// 5 xrefs:\n// > sub_7E3C64 @ 0x7e3c98\n// > EC_GROUP_new_from_ecpkparameters @ 0x7e71f4\n// > EC_KEY_new_by_curve_name @ 0x7e8a4c\n// > sub_88AA9C @ 0x88aba4\n// > <???> @ 0x6109c\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_new_by_curve_name(int a1)\n{\n  int v2; // r3\n  int v3; // r2\n  int v4; // r0\n  _DWORD *v5; // r5\n  int (*v6)(void); // r9\n  int v7; // r8\n  int v8; // r6\n  _BYTE *v9; // r11\n  _BYTE *v10; // r7\n  int *v11; // r10\n  int v12; // r0\n  int v13; // r0\n  int v14; // r7\n  int *v15; // r6\n  int v16; // r9\n  int v17; // r0\n  int *v19; // [sp+8h] [bp-40h]\n  int *v20; // [sp+Ch] [bp-3Ch]\n  _BYTE *v21; // [sp+10h] [bp-38h]\n  int *v22; // [sp+10h] [bp-38h]\n  int *v23; // [sp+14h] [bp-34h]\n  _BYTE *v24; // [sp+14h] [bp-34h]\n  int v25; // [sp+18h] [bp-30h]\n  _BYTE *v26; // [sp+1Ch] [bp-2Ch]\n\n  if ( a1 <= 0 )\n    return 0;\n  v2 = 0;\n  while ( 1 )\n  {\n    v3 = *((_DWORD *)&unk_AB2154 + 4 * v2);\n    v4 = 16 * v2++;\n    if ( v3 == a1 )\n      break;\n    if ( v2 == 81 )\n      goto LABEL_24;\n  }\n  v5 = *(_DWORD **)((char *)&unk_AB2154 + v4 + 4);\n  v6 = *(int (**)(void))((char *)&unk_AB2154 + v4 + 8);\n  if ( !v5 )\n  {\n    if ( v6 )\n      v17 = v6();\n    else\n      v17 = 0;\n    v14 = EC_GROUP_new(v17);\n    goto LABEL_18;\n  }\n  v7 = BN_CTX_new();\n  if ( !v7 )\n  {\n    ERR_put_error(16, 175, 65, \"crypto/ec/ec_curve.c\", 2998);\n    v15 = nullptr;\n    v23 = nullptr;\n    v22 = nullptr;\n    v19 = nullptr;\n    v11 = nullptr;\n    v20 = nullptr;\n    v16 = 0;\n    v14 = 0;\n    goto LABEL_22;\n  }\n  v25 = v5[1];\n  v8 = v5[2];\n  v9 = (char *)v5 + v25 + 16;\n  v20 = BN_bin2bn(v9, v8, nullptr);\n  if ( !v20 || (v10 = &v9[v8], (v11 = BN_bin2bn(&v9[v8], v8, nullptr)) == nullptr) )\n  {\n    v11 = nullptr;\n    goto LABEL_21;\n  }\n  v21 = &v10[v8];\n  v19 = BN_bin2bn(&v10[v8], v8, nullptr);\n  if ( !v19 )\n  {\nLABEL_21:\n    v15 = nullptr;\n    v16 = 0;\n    v14 = 0;\n    ERR_put_error(16, 175, 3, \"crypto/ec/ec_curve.c\", 3011);\n    v23 = nullptr;\n    v22 = nullptr;\n    v19 = nullptr;\n    goto LABEL_22;\n  }\n  if ( !v6 )\n  {\n    if ( *v5 == 406 )\n    {\n      v14 = EC_GROUP_new_curve_GFp(v20, v11, v19, v7);\n      if ( v14 )\n        goto LABEL_28;\n      ERR_put_error(16, 175, 16, \"crypto/ec/ec_curve.c\", 3024);\n    }\n    else\n    {\n      v14 = EC_GROUP_new_curve_GF2m(v20, v11, v19, v7);\n      if ( v14 )\n        goto LABEL_28;\n      ERR_put_error(16, 175, 16, \"crypto/ec/ec_curve.c\", 3033);\n    }\n    v15 = nullptr;\n    v23 = nullptr;\n    v22 = nullptr;\n    v16 = 0;\n    goto LABEL_22;\n  }\n  v12 = v6();\n  v13 = EC_GROUP_new(v12);\n  v14 = v13;\n  if ( !v13 || !(*(int (__fastcall **)(int, int *, int *, int *, int))(*(_DWORD *)v13 + 24))(v13, v20, v11, v19, v7) )\n  {\n    v15 = nullptr;\n    ERR_put_error(16, 175, 16, \"crypto/ec/ec_curve.c\", 3019);\n    v16 = 0;\n    v23 = nullptr;\n    v22 = nullptr;\n    goto LABEL_22;\n  }\nLABEL_28:\n  v16 = EC_POINT_new(v14);\n  if ( v16 )\n  {\n    v24 = &v21[v8];\n    v22 = BN_bin2bn(&v21[v8], v8, nullptr);\n    if ( v22 && (v26 = &v24[v8], (v23 = BN_bin2bn(&v24[v8], v8, nullptr)) != nullptr) )\n    {\n      if ( EC_POINT_set_affine_coordinates_GFp(v14, v16, v22) )\n      {\n        v15 = BN_bin2bn(&v26[v8], v8, nullptr);\n        if ( v15 && BN_set_word((int **)v22, v5[3]) )\n        {\n          if ( EC_GROUP_set_generator(v14, v16, v15, v22) )\n          {\n            if ( !v25 || EC_GROUP_set_seed(v14, v5 + 4, v25) )\n              goto LABEL_23;\n            ERR_put_error(16, 175, 16, \"crypto/ec/ec_curve.c\", 3064);\n          }\n          else\n          {\n            ERR_put_error(16, 175, 16, \"crypto/ec/ec_curve.c\", 3059);\n          }\n        }\n        else\n        {\n          ERR_put_error(16, 175, 3, \"crypto/ec/ec_curve.c\", 3055);\n        }\n      }\n      else\n      {\n        v15 = nullptr;\n        ERR_put_error(16, 175, 16, \"crypto/ec/ec_curve.c\", 3050);\n      }\n    }\n    else\n    {\n      v15 = nullptr;\n      ERR_put_error(16, 175, 3, \"crypto/ec/ec_curve.c\", 3046);\n      v23 = nullptr;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 175, 16, \"crypto/ec/ec_curve.c\", 3040);\n    v15 = nullptr;\n    v23 = nullptr;\n    v22 = nullptr;\n  }\nLABEL_22:\n  EC_GROUP_free(v14);\n  v14 = 0;\nLABEL_23:\n  EC_POINT_free(v16);\n  BN_CTX_free(v7);\n  BN_free((int)v20);\n  BN_free((int)v11);\n  BN_free((int)v19);\n  BN_free((int)v15);\n  BN_free((int)v22);\n  BN_free((int)v23);\nLABEL_18:\n  if ( v14 )\n  {\n    EC_GROUP_set_curve_name(v14, a1);\n    return v14;\n  }\nLABEL_24:\n  ERR_put_error(16, 174, 129, \"crypto/ec/ec_curve.c\", 3100);\n  return 0;\n}", "assembly": "; \n; EC_GROUP_new_by_curve_name from 0x7e7f8c to 0x7e846c (1248 bytes)\n; \n; 5 xrefs:\n; > sub_7E3C64 @ 0x7e3c98\n; > EC_GROUP_new_from_ecpkparameters @ 0x7e71f4\n; > EC_KEY_new_by_curve_name @ 0x7e8a4c\n; > sub_88AA9C @ 0x88aba4\n; > <???> @ 0x6109c\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\nCMP             R0, #0                                                 ; +0x0, 0x7e7f8c\nBLE             loc_7E8380                                             ; +0x4, 0x7e7f90\nLDR             R1, =(unk_AB2154 - 0x7E7FA4)                           ; +0x8, 0x7e7f94\nPUSH            {R4-R11,LR}                                            ; +0xc, 0x7e7f98\nADD             R1, PC, R1; unk_AB2154                                 ; +0x10, 0x7e7f9c\nSUB             SP, SP, #0x24 ; '$'                                    ; +0x14, 0x7e7fa0\nMOV             R4, R0                                                 ; +0x18, 0x7e7fa4\nMOV             R3, #0                                                 ; +0x1c, 0x7e7fa8\nB               loc_7E7FB8                                             ; +0x20, 0x7e7fac\nCMP             R3, #0x51 ; 'Q'                                        ; +0x24, 0x7e7fb0\nBEQ             loc_7E818C                                             ; +0x28, 0x7e7fb4\nLDR             R2, [R1,R3,LSL#4]                                      ; +0x2c, 0x7e7fb8\nMOV             R0, R3,LSL#4                                           ; +0x30, 0x7e7fbc\nCMP             R2, R4                                                 ; +0x34, 0x7e7fc0\nADD             R3, R3, #1                                             ; +0x38, 0x7e7fc4\nBNE             loc_7E7FB0                                             ; +0x3c, 0x7e7fc8\nADD             R1, R1, R0                                             ; +0x40, 0x7e7fcc\nLDMIB           R1, {R5,R9}                                            ; +0x44, 0x7e7fd0\nCMP             R5, #0                                                 ; +0x48, 0x7e7fd4\nBEQ             loc_7E80C8                                             ; +0x4c, 0x7e7fd8\nBL              BN_CTX_new                                             ; +0x50, 0x7e7fdc\nSUBS            R8, R0, #0                                             ; +0x54, 0x7e7fe0\nBEQ             loc_7E81B8                                             ; +0x58, 0x7e7fe4\nLDR             R3, [R5,#4]                                            ; +0x5c, 0x7e7fe8\nSTR             R3, [SP,#0x48+var_30]                                  ; +0x60, 0x7e7fec\nLDR             R6, [R5,#8]                                            ; +0x64, 0x7e7ff0\nADD             R3, R3, #0x10                                          ; +0x68, 0x7e7ff4\nADD             R11, R5, R3                                            ; +0x6c, 0x7e7ff8\nMOV             R0, R11                                                ; +0x70, 0x7e7ffc\nMOV             R1, R6                                                 ; +0x74, 0x7e8000\nMOV             R2, #0                                                 ; +0x78, 0x7e8004\nBL              BN_bin2bn                                              ; +0x7c, 0x7e8008\nSUBS            R3, R0, #0                                             ; +0x80, 0x7e800c\nSTR             R3, [SP,#0x48+var_3C]                                  ; +0x84, 0x7e8010\nBEQ             loc_7E8100                                             ; +0x88, 0x7e8014\nADD             R7, R11, R6                                            ; +0x8c, 0x7e8018\nMOV             R0, R7                                                 ; +0x90, 0x7e801c\nMOV             R1, R6                                                 ; +0x94, 0x7e8020\nMOV             R2, #0                                                 ; +0x98, 0x7e8024\nBL              BN_bin2bn                                              ; +0x9c, 0x7e8028\nSUBS            R10, R0, #0                                            ; +0xa0, 0x7e802c\nBEQ             loc_7E8100                                             ; +0xa4, 0x7e8030\nADD             R3, R7, R6                                             ; +0xa8, 0x7e8034\nMOV             R0, R3                                                 ; +0xac, 0x7e8038\nMOV             R1, R6                                                 ; +0xb0, 0x7e803c\nMOV             R2, #0                                                 ; +0xb4, 0x7e8040\nSTR             R3, [SP,#0x48+var_38]                                  ; +0xb8, 0x7e8044\nBL              BN_bin2bn                                              ; +0xbc, 0x7e8048\nSUBS            R3, R0, #0                                             ; +0xc0, 0x7e804c\nSTR             R3, [SP,#0x48+var_40]                                  ; +0xc4, 0x7e8050\nBEQ             loc_7E8104                                             ; +0xc8, 0x7e8054\nCMP             R9, #0                                                 ; +0xcc, 0x7e8058\nBEQ             loc_7E81FC                                             ; +0xd0, 0x7e805c\nBLX             R9                                                     ; +0xd4, 0x7e8060\nBL              EC_GROUP_new                                           ; +0xd8, 0x7e8064\nSUBS            R7, R0, #0                                             ; +0xdc, 0x7e8068\nBEQ             loc_7E8094                                             ; +0xe0, 0x7e806c\nLDR             R3, [R7]                                               ; +0xe4, 0x7e8070\nLDR             R1, [SP,#0x48+var_3C]                                  ; +0xe8, 0x7e8074\nSTR             R8, [SP,#0x48+var_48]                                  ; +0xec, 0x7e8078\nMOV             R2, R10                                                ; +0xf0, 0x7e807c\nLDR             R9, [R3,#0x18]                                         ; +0xf4, 0x7e8080\nLDR             R3, [SP,#0x48+var_40]                                  ; +0xf8, 0x7e8084\nBLX             R9                                                     ; +0xfc, 0x7e8088\nCMP             R0, #0                                                 ; +0x100, 0x7e808c\nBNE             loc_7E8228                                             ; +0x104, 0x7e8090\nLDR             R3, =0xBCB                                             ; +0x108, 0x7e8094\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x10c, 0x7e8098\nLDR             R3, =(aCryptoEcEcCurv - 0x7E80B8); \"crypto/ec/ec_curve.c\" ; +0x110, 0x7e809c\nMOV             R0, #0x10                                              ; +0x114, 0x7e80a0\nMOV             R6, #0                                                 ; +0x118, 0x7e80a4\nMOV             R2, R0                                                 ; +0x11c, 0x7e80a8\nMOV             R1, #0xAF                                              ; +0x120, 0x7e80ac\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x124, 0x7e80b0\nBL              ERR_put_error                                          ; +0x128, 0x7e80b4\nMOV             R9, R6                                                 ; +0x12c, 0x7e80b8\nSTR             R6, [SP,#0x48+var_34]                                  ; +0x130, 0x7e80bc\nSTR             R6, [SP,#0x48+var_38]                                  ; +0x134, 0x7e80c0\nB               loc_7E813C                                             ; +0x138, 0x7e80c4\nCMP             R9, #0                                                 ; +0x13c, 0x7e80c8\nMOVEQ           R0, R9                                                 ; +0x140, 0x7e80cc\nBEQ             loc_7E80D8                                             ; +0x144, 0x7e80d0\nBLX             R9                                                     ; +0x148, 0x7e80d4\nBL              EC_GROUP_new                                           ; +0x14c, 0x7e80d8\nMOV             R7, R0                                                 ; +0x150, 0x7e80dc\nCMP             R7, #0                                                 ; +0x154, 0x7e80e0\nBEQ             loc_7E818C                                             ; +0x158, 0x7e80e4\nMOV             R0, R7                                                 ; +0x15c, 0x7e80e8\nMOV             R1, R4                                                 ; +0x160, 0x7e80ec\nBL              EC_GROUP_set_curve_name                                ; +0x164, 0x7e80f0\nMOV             R0, R7                                                 ; +0x168, 0x7e80f4\nADD             SP, SP, #0x24 ; '$'                                    ; +0x16c, 0x7e80f8\nPOP             {R4-R11,PC}                                            ; +0x170, 0x7e80fc\nMOV             R10, #0                                                ; +0x174, 0x7e8100\nLDR             R3, =0xBC3                                             ; +0x178, 0x7e8104\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x17c, 0x7e8108\nLDR             R3, =(aCryptoEcEcCurv - 0x7E8128); \"crypto/ec/ec_curve.c\" ; +0x180, 0x7e810c\nMOV             R6, #0                                                 ; +0x184, 0x7e8110\nMOV             R0, #0x10                                              ; +0x188, 0x7e8114\nMOV             R1, #0xAF                                              ; +0x18c, 0x7e8118\nMOV             R2, #3                                                 ; +0x190, 0x7e811c\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x194, 0x7e8120\nMOV             R9, R6                                                 ; +0x198, 0x7e8124\nMOV             R7, R6                                                 ; +0x19c, 0x7e8128\nBL              ERR_put_error                                          ; +0x1a0, 0x7e812c\nSTR             R6, [SP,#0x48+var_34]                                  ; +0x1a4, 0x7e8130\nSTR             R6, [SP,#0x48+var_38]                                  ; +0x1a8, 0x7e8134\nSTR             R6, [SP,#0x48+var_40]                                  ; +0x1ac, 0x7e8138\nMOV             R0, R7                                                 ; +0x1b0, 0x7e813c\nBL              EC_GROUP_free                                          ; +0x1b4, 0x7e8140\nMOV             R7, #0                                                 ; +0x1b8, 0x7e8144\nMOV             R0, R9                                                 ; +0x1bc, 0x7e8148\nBL              EC_POINT_free                                          ; +0x1c0, 0x7e814c\nMOV             R0, R8                                                 ; +0x1c4, 0x7e8150\nBL              BN_CTX_free                                            ; +0x1c8, 0x7e8154\nLDR             R0, [SP,#0x48+var_3C]                                  ; +0x1cc, 0x7e8158\nBL              BN_free                                                ; +0x1d0, 0x7e815c\nMOV             R0, R10                                                ; +0x1d4, 0x7e8160\nBL              BN_free                                                ; +0x1d8, 0x7e8164\nLDR             R0, [SP,#0x48+var_40]                                  ; +0x1dc, 0x7e8168\nBL              BN_free                                                ; +0x1e0, 0x7e816c\nMOV             R0, R6                                                 ; +0x1e4, 0x7e8170\nBL              BN_free                                                ; +0x1e8, 0x7e8174\nLDR             R0, [SP,#0x48+var_38]                                  ; +0x1ec, 0x7e8178\nBL              BN_free                                                ; +0x1f0, 0x7e817c\nLDR             R0, [SP,#0x48+var_34]                                  ; +0x1f4, 0x7e8180\nBL              BN_free                                                ; +0x1f8, 0x7e8184\nB               loc_7E80E0                                             ; +0x1fc, 0x7e8188\nLDR             R3, =0xC1C                                             ; +0x200, 0x7e818c\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x204, 0x7e8190\nLDR             R3, =(aCryptoEcEcCurv - 0x7E81AC); \"crypto/ec/ec_curve.c\" ; +0x208, 0x7e8194\nMOV             R0, #0x10                                              ; +0x20c, 0x7e8198\nMOV             R1, #0xAE                                              ; +0x210, 0x7e819c\nMOV             R2, #0x81                                              ; +0x214, 0x7e81a0\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x218, 0x7e81a4\nBL              ERR_put_error                                          ; +0x21c, 0x7e81a8\nMOV             R0, #0                                                 ; +0x220, 0x7e81ac\nADD             SP, SP, #0x24 ; '$'                                    ; +0x224, 0x7e81b0\nPOP             {R4-R11,PC}                                            ; +0x228, 0x7e81b4\nLDR             R3, =0xBB6                                             ; +0x22c, 0x7e81b8\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x230, 0x7e81bc\nLDR             R3, =(aCryptoEcEcCurv - 0x7E81D8); \"crypto/ec/ec_curve.c\" ; +0x234, 0x7e81c0\nMOV             R0, #0x10                                              ; +0x238, 0x7e81c4\nMOV             R1, #0xAF                                              ; +0x23c, 0x7e81c8\nMOV             R2, #0x41 ; 'A'                                        ; +0x240, 0x7e81cc\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x244, 0x7e81d0\nBL              ERR_put_error                                          ; +0x248, 0x7e81d4\nMOV             R6, R8                                                 ; +0x24c, 0x7e81d8\nSTR             R8, [SP,#0x48+var_34]                                  ; +0x250, 0x7e81dc\nSTR             R8, [SP,#0x48+var_38]                                  ; +0x254, 0x7e81e0\nSTR             R8, [SP,#0x48+var_40]                                  ; +0x258, 0x7e81e4\nMOV             R10, R8                                                ; +0x25c, 0x7e81e8\nSTR             R8, [SP,#0x48+var_3C]                                  ; +0x260, 0x7e81ec\nMOV             R9, R8                                                 ; +0x264, 0x7e81f0\nMOV             R7, R8                                                 ; +0x268, 0x7e81f4\nB               loc_7E813C                                             ; +0x26c, 0x7e81f8\nLDR             R3, =0x196                                             ; +0x270, 0x7e81fc\nLDR             R2, [R5]                                               ; +0x274, 0x7e8200\nLDR             R0, [SP,#0x48+var_3C]                                  ; +0x278, 0x7e8204\nCMP             R2, R3                                                 ; +0x27c, 0x7e8208\nMOV             R1, R10                                                ; +0x280, 0x7e820c\nLDR             R2, [SP,#0x48+var_40]                                  ; +0x284, 0x7e8210\nMOV             R3, R8                                                 ; +0x288, 0x7e8214\nBEQ             loc_7E83B8                                             ; +0x28c, 0x7e8218\nBL              EC_GROUP_new_curve_GF2m                                ; +0x290, 0x7e821c\nSUBS            R7, R0, #0                                             ; +0x294, 0x7e8220\nBEQ             loc_7E8320                                             ; +0x298, 0x7e8224\nMOV             R0, R7                                                 ; +0x29c, 0x7e8228\nBL              EC_POINT_new                                           ; +0x2a0, 0x7e822c\nSUBS            R9, R0, #0                                             ; +0x2a4, 0x7e8230\nBEQ             loc_7E8388                                             ; +0x2a8, 0x7e8234\nLDR             R3, [SP,#0x48+var_38]                                  ; +0x2ac, 0x7e8238\nMOV             R1, R6                                                 ; +0x2b0, 0x7e823c\nADD             R3, R3, R6                                             ; +0x2b4, 0x7e8240\nMOV             R0, R3                                                 ; +0x2b8, 0x7e8244\nMOV             R2, #0                                                 ; +0x2bc, 0x7e8248\nSTR             R3, [SP,#0x48+var_34]                                  ; +0x2c0, 0x7e824c\nBL              BN_bin2bn                                              ; +0x2c4, 0x7e8250\nSUBS            R3, R0, #0                                             ; +0x2c8, 0x7e8254\nSTR             R3, [SP,#0x48+var_38]                                  ; +0x2cc, 0x7e8258\nLDR             R3, [SP,#0x48+var_34]                                  ; +0x2d0, 0x7e825c\nBEQ             loc_7E8354                                             ; +0x2d4, 0x7e8260\nADD             R3, R3, R6                                             ; +0x2d8, 0x7e8264\nMOV             R0, R3                                                 ; +0x2dc, 0x7e8268\nMOV             R1, R6                                                 ; +0x2e0, 0x7e826c\nMOV             R2, #0                                                 ; +0x2e4, 0x7e8270\nSTR             R3, [SP,#0x48+var_2C]                                  ; +0x2e8, 0x7e8274\nBL              BN_bin2bn                                              ; +0x2ec, 0x7e8278\nSUBS            R3, R0, #0                                             ; +0x2f0, 0x7e827c\nSTR             R3, [SP,#0x48+var_34]                                  ; +0x2f4, 0x7e8280\nBEQ             loc_7E8354                                             ; +0x2f8, 0x7e8284\nSTR             R8, [SP,#0x48+var_48]                                  ; +0x2fc, 0x7e8288\nMOV             R0, R7                                                 ; +0x300, 0x7e828c\nMOV             R1, R9                                                 ; +0x304, 0x7e8290\nLDR             R2, [SP,#0x48+var_38]                                  ; +0x308, 0x7e8294\nBL              EC_POINT_set_affine_coordinates_GFp                    ; +0x30c, 0x7e8298\nSUBS            LR, R0, #0                                             ; +0x310, 0x7e829c\nBEQ             loc_7E82F8                                             ; +0x314, 0x7e82a0\nLDR             R3, [SP,#0x48+var_2C]                                  ; +0x318, 0x7e82a4\nMOV             R1, R6                                                 ; +0x31c, 0x7e82a8\nADD             R0, R3, R6                                             ; +0x320, 0x7e82ac\nMOV             R2, #0                                                 ; +0x324, 0x7e82b0\nBL              BN_bin2bn                                              ; +0x328, 0x7e82b4\nSUBS            R6, R0, #0                                             ; +0x32c, 0x7e82b8\nBEQ             loc_7E82D4                                             ; +0x330, 0x7e82bc\nLDR             R1, [R5,#0xC]                                          ; +0x334, 0x7e82c0\nLDR             R0, [SP,#0x48+var_38]                                  ; +0x338, 0x7e82c4\nBL              BN_set_word                                            ; +0x33c, 0x7e82c8\nCMP             R0, #0                                                 ; +0x340, 0x7e82cc\nBNE             loc_7E83E4                                             ; +0x344, 0x7e82d0\nLDR             R3, =0xBEF                                             ; +0x348, 0x7e82d4\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x34c, 0x7e82d8\nLDR             R3, =(aCryptoEcEcCurv - 0x7E82F4); \"crypto/ec/ec_curve.c\" ; +0x350, 0x7e82dc\nMOV             R0, #0x10                                              ; +0x354, 0x7e82e0\nMOV             R1, #0xAF                                              ; +0x358, 0x7e82e4\nMOV             R2, #3                                                 ; +0x35c, 0x7e82e8\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x360, 0x7e82ec\nBL              ERR_put_error                                          ; +0x364, 0x7e82f0\nB               loc_7E813C                                             ; +0x368, 0x7e82f4\nLDR             R3, =0xBEA                                             ; +0x36c, 0x7e82f8\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x370, 0x7e82fc\nLDR             R3, =(aCryptoEcEcCurv - 0x7E8318); \"crypto/ec/ec_curve.c\" ; +0x374, 0x7e8300\nMOV             R0, #0x10                                              ; +0x378, 0x7e8304\nMOV             R2, R0                                                 ; +0x37c, 0x7e8308\nMOV             R1, #0xAF                                              ; +0x380, 0x7e830c\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x384, 0x7e8310\nMOV             R6, LR                                                 ; +0x388, 0x7e8314\nBL              ERR_put_error                                          ; +0x38c, 0x7e8318\nB               loc_7E813C                                             ; +0x390, 0x7e831c\nLDR             R3, =0xBD9                                             ; +0x394, 0x7e8320\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x398, 0x7e8324\nLDR             R3, =(aCryptoEcEcCurv - 0x7E8340); \"crypto/ec/ec_curve.c\" ; +0x39c, 0x7e8328\nMOV             R0, #0x10                                              ; +0x3a0, 0x7e832c\nMOV             R2, R0                                                 ; +0x3a4, 0x7e8330\nMOV             R1, #0xAF                                              ; +0x3a8, 0x7e8334\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x3ac, 0x7e8338\nBL              ERR_put_error                                          ; +0x3b0, 0x7e833c\nMOV             R6, R7                                                 ; +0x3b4, 0x7e8340\nSTR             R7, [SP,#0x48+var_34]                                  ; +0x3b8, 0x7e8344\nSTR             R7, [SP,#0x48+var_38]                                  ; +0x3bc, 0x7e8348\nMOV             R9, R7                                                 ; +0x3c0, 0x7e834c\nB               loc_7E813C                                             ; +0x3c4, 0x7e8350\nLDR             R3, =0xBE6                                             ; +0x3c8, 0x7e8354\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x3cc, 0x7e8358\nLDR             R3, =(aCryptoEcEcCurv - 0x7E8374); \"crypto/ec/ec_curve.c\" ; +0x3d0, 0x7e835c\nMOV             R0, #0x10                                              ; +0x3d4, 0x7e8360\nMOV             R1, #0xAF                                              ; +0x3d8, 0x7e8364\nMOV             R2, #3                                                 ; +0x3dc, 0x7e8368\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x3e0, 0x7e836c\nMOV             R6, #0                                                 ; +0x3e4, 0x7e8370\nBL              ERR_put_error                                          ; +0x3e8, 0x7e8374\nSTR             R6, [SP,#0x48+var_34]                                  ; +0x3ec, 0x7e8378\nB               loc_7E813C                                             ; +0x3f0, 0x7e837c\nMOV             R0, #0                                                 ; +0x3f4, 0x7e8380\nBX              LR                                                     ; +0x3f8, 0x7e8384\nMOV             R3, #0xBE0                                             ; +0x3fc, 0x7e8388\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x400, 0x7e838c\nLDR             R3, =(aCryptoEcEcCurv - 0x7E83A8); \"crypto/ec/ec_curve.c\" ; +0x404, 0x7e8390\nMOV             R0, #0x10                                              ; +0x408, 0x7e8394\nMOV             R2, R0                                                 ; +0x40c, 0x7e8398\nMOV             R1, #0xAF                                              ; +0x410, 0x7e839c\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x414, 0x7e83a0\nBL              ERR_put_error                                          ; +0x418, 0x7e83a4\nMOV             R6, R9                                                 ; +0x41c, 0x7e83a8\nSTR             R9, [SP,#0x48+var_34]                                  ; +0x420, 0x7e83ac\nSTR             R9, [SP,#0x48+var_38]                                  ; +0x424, 0x7e83b0\nB               loc_7E813C                                             ; +0x428, 0x7e83b4\nBL              EC_GROUP_new_curve_GFp                                 ; +0x42c, 0x7e83b8\nSUBS            R7, R0, #0                                             ; +0x430, 0x7e83bc\nBNE             loc_7E8228                                             ; +0x434, 0x7e83c0\nMOV             R3, #0xBD0                                             ; +0x438, 0x7e83c4\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x43c, 0x7e83c8\nLDR             R3, =(aCryptoEcEcCurv - 0x7E83E4); \"crypto/ec/ec_curve.c\" ; +0x440, 0x7e83cc\nMOV             R0, #0x10                                              ; +0x444, 0x7e83d0\nMOV             R2, R0                                                 ; +0x448, 0x7e83d4\nMOV             R1, #0xAF                                              ; +0x44c, 0x7e83d8\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x450, 0x7e83dc\nB               loc_7E833C                                             ; +0x454, 0x7e83e0\nMOV             R0, R7                                                 ; +0x458, 0x7e83e4\nMOV             R1, R9                                                 ; +0x45c, 0x7e83e8\nMOV             R2, R6                                                 ; +0x460, 0x7e83ec\nLDR             R3, [SP,#0x48+var_38]                                  ; +0x464, 0x7e83f0\nBL              EC_GROUP_set_generator                                 ; +0x468, 0x7e83f4\nCMP             R0, #0                                                 ; +0x46c, 0x7e83f8\nBEQ             loc_7E8448                                             ; +0x470, 0x7e83fc\nLDR             R3, [SP,#0x48+var_30]                                  ; +0x474, 0x7e8400\nCMP             R3, #0                                                 ; +0x478, 0x7e8404\nBEQ             loc_7E8148                                             ; +0x47c, 0x7e8408\nRSB             R1, R3, R11                                            ; +0x480, 0x7e840c\nMOV             R2, R3                                                 ; +0x484, 0x7e8410\nMOV             R0, R7                                                 ; +0x488, 0x7e8414\nBL              EC_GROUP_set_seed                                      ; +0x48c, 0x7e8418\nCMP             R0, #0                                                 ; +0x490, 0x7e841c\nBNE             loc_7E8148                                             ; +0x494, 0x7e8420\nLDR             R3, =0xBF8                                             ; +0x498, 0x7e8424\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x49c, 0x7e8428\nLDR             R3, =(aCryptoEcEcCurv - 0x7E8444); \"crypto/ec/ec_curve.c\" ; +0x4a0, 0x7e842c\nMOV             R0, #0x10                                              ; +0x4a4, 0x7e8430\nMOV             R2, R0                                                 ; +0x4a8, 0x7e8434\nMOV             R1, #0xAF                                              ; +0x4ac, 0x7e8438\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x4b0, 0x7e843c\nBL              ERR_put_error                                          ; +0x4b4, 0x7e8440\nB               loc_7E813C                                             ; +0x4b8, 0x7e8444\nLDR             R3, =0xBF3                                             ; +0x4bc, 0x7e8448\nSTR             R3, [SP,#0x48+var_48]                                  ; +0x4c0, 0x7e844c\nLDR             R3, =(aCryptoEcEcCurv - 0x7E8468); \"crypto/ec/ec_curve.c\" ; +0x4c4, 0x7e8450\nMOV             R0, #0x10                                              ; +0x4c8, 0x7e8454\nMOV             R2, R0                                                 ; +0x4cc, 0x7e8458\nMOV             R1, #0xAF                                              ; +0x4d0, 0x7e845c\nADD             R3, PC, R3; \"crypto/ec/ec_curve.c\"                     ; +0x4d4, 0x7e8460\nBL              ERR_put_error                                          ; +0x4d8, 0x7e8464\nB               loc_7E813C                                             ; +0x4dc, 0x7e8468", "xrefs": ["sub_7E3C64 @ 0x7e3c98", "EC_GROUP_new_from_ecpkparameters @ 0x7e71f4", "EC_KEY_new_by_curve_name @ 0x7e8a4c", "sub_88AA9C @ 0x88aba4", "<???> @ 0x6109c"], "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"}