{"type": "func", "start": 8298516, "end": 8298836, "name": "EC_GROUP_new", "pseudocode": "// \n// EC_GROUP_new from 0x7ea014 to 0x7ea154 (320 bytes)\n// \n// 7 xrefs:\n// > EC_GROUP_new_by_curve_name @ 0x7e8064\n// > EC_GROUP_new_by_curve_name @ 0x7e80d8\n// > EC_GROUP_new_curve_GFp @ 0x7e88a8\n// > EC_GROUP_new_curve_GF2m @ 0x7e890c\n// > EC_KEY_copy @ 0x7e8b50\n// > EC_GROUP_dup @ 0x7eab34\n// > <???> @ 0x615ac\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(int *a1)\n{\n  int **v2; // r0\n  int **v3; // r4\n  int v4; // r3\n  int (__fastcall *v5)(int **); // r3\n  int v7; // r0\n  int v8; // r0\n\n  if ( a1 )\n  {\n    if ( a1[2] )\n    {\n      v2 = (int **)CRYPTO_zalloc(100, \"crypto/ec/ec_lib.c\", 38);\n      v3 = v2;\n      if ( v2 )\n      {\n        v4 = *a1;\n        *v2 = a1;\n        if ( (v4 & 2) != 0 )\n          goto LABEL_5;\n        v7 = BN_new();\n        v3[2] = (int *)v7;\n        if ( !v7 )\n        {\nLABEL_10:\n          BN_free(v7);\n          BN_free((int)v3[3]);\n          CRYPTO_free(v3, \"crypto/ec/ec_lib.c\", 62);\n          return nullptr;\n        }\n        v8 = BN_new();\n        v3[3] = (int *)v8;\n        if ( v8 )\n        {\nLABEL_5:\n          v5 = (int (__fastcall *)(int **))a1[2];\n          v3[5] = &dword_0 + 1;\n          v3[6] = (_DWORD *)byte_4;\n          if ( v5(v3) )\n            return v3;\n        }\n        v7 = (int)v3[2];\n        goto LABEL_10;\n      }\n      ERR_put_error(16, 108, 65, \"crypto/ec/ec_lib.c\", 40);\n      return nullptr;\n    }\n    else\n    {\n      ERR_put_error(16, 108, 66, \"crypto/ec/ec_lib.c\", 34);\n      return nullptr;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 108, 108, \"crypto/ec/ec_lib.c\", 30);\n    return nullptr;\n  }\n}", "assembly": "; \n; EC_GROUP_new from 0x7ea014 to 0x7ea154 (320 bytes)\n; \n; 7 xrefs:\n; > EC_GROUP_new_by_curve_name @ 0x7e8064\n; > EC_GROUP_new_by_curve_name @ 0x7e80d8\n; > EC_GROUP_new_curve_GFp @ 0x7e88a8\n; > EC_GROUP_new_curve_GF2m @ 0x7e890c\n; > EC_KEY_copy @ 0x7e8b50\n; > EC_GROUP_dup @ 0x7eab34\n; > <???> @ 0x615ac\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, 0x7ea014\nSUBS            R5, R0, #0                                             ; +0x4, 0x7ea018\nSUB             SP, SP, #8                                             ; +0x8, 0x7ea01c\nBEQ             loc_7EA108                                             ; +0xc, 0x7ea020\nLDR             R4, [R5,#8]                                            ; +0x10, 0x7ea024\nCMP             R4, #0                                                 ; +0x14, 0x7ea028\nBEQ             loc_7EA0E0                                             ; +0x18, 0x7ea02c\nLDR             R6, =(aCryptoEcEcLibC - 0x7EA040); \"crypto/ec/ec_lib.c\" ; +0x1c, 0x7ea030\nMOV             R0, #0x64 ; 'd'                                        ; +0x20, 0x7ea034\nADD             R6, PC, R6; \"crypto/ec/ec_lib.c\"                       ; +0x24, 0x7ea038\nMOV             R1, R6                                                 ; +0x28, 0x7ea03c\nMOV             R2, #0x26 ; '&'                                        ; +0x2c, 0x7ea040\nBL              CRYPTO_zalloc                                          ; +0x30, 0x7ea044\nSUBS            R4, R0, #0                                             ; +0x34, 0x7ea048\nBEQ             loc_7EA130                                             ; +0x38, 0x7ea04c\nLDR             R3, [R5]                                               ; +0x3c, 0x7ea050\nSTR             R5, [R4]                                               ; +0x40, 0x7ea054\nTST             R3, #2                                                 ; +0x44, 0x7ea058\nBEQ             loc_7EA090                                             ; +0x48, 0x7ea05c\nMOV             R1, #1                                                 ; +0x4c, 0x7ea060\nMOV             R2, #4                                                 ; +0x50, 0x7ea064\nLDR             R3, [R5,#8]                                            ; +0x54, 0x7ea068\nMOV             R0, R4                                                 ; +0x58, 0x7ea06c\nSTR             R1, [R4,#0x14]                                         ; +0x5c, 0x7ea070\nSTR             R2, [R4,#0x18]                                         ; +0x60, 0x7ea074\nBLX             R3                                                     ; +0x64, 0x7ea078\nCMP             R0, #0                                                 ; +0x68, 0x7ea07c\nBEQ             loc_7EA0B0                                             ; +0x6c, 0x7ea080\nMOV             R0, R4                                                 ; +0x70, 0x7ea084\nADD             SP, SP, #8                                             ; +0x74, 0x7ea088\nPOP             {R4-R6,PC}                                             ; +0x78, 0x7ea08c\nBL              BN_new                                                 ; +0x7c, 0x7ea090\nCMP             R0, #0                                                 ; +0x80, 0x7ea094\nSTR             R0, [R4,#8]                                            ; +0x84, 0x7ea098\nBEQ             loc_7EA0B4                                             ; +0x88, 0x7ea09c\nBL              BN_new                                                 ; +0x8c, 0x7ea0a0\nCMP             R0, #0                                                 ; +0x90, 0x7ea0a4\nSTR             R0, [R4,#0xC]                                          ; +0x94, 0x7ea0a8\nBNE             loc_7EA060                                             ; +0x98, 0x7ea0ac\nLDR             R0, [R4,#8]                                            ; +0x9c, 0x7ea0b0\nBL              BN_free                                                ; +0xa0, 0x7ea0b4\nLDR             R0, [R4,#0xC]                                          ; +0xa4, 0x7ea0b8\nBL              BN_free                                                ; +0xa8, 0x7ea0bc\nLDR             R1, =(aCryptoEcEcLibC - 0x7EA0D0); \"crypto/ec/ec_lib.c\" ; +0xac, 0x7ea0c0\nMOV             R0, R4                                                 ; +0xb0, 0x7ea0c4\nADD             R1, PC, R1; \"crypto/ec/ec_lib.c\"                       ; +0xb4, 0x7ea0c8\nMOV             R2, #0x3E ; '>'                                        ; +0xb8, 0x7ea0cc\nBL              CRYPTO_free                                            ; +0xbc, 0x7ea0d0\nMOV             R0, #0                                                 ; +0xc0, 0x7ea0d4\nADD             SP, SP, #8                                             ; +0xc4, 0x7ea0d8\nPOP             {R4-R6,PC}                                             ; +0xc8, 0x7ea0dc\nMOV             R3, #0x22 ; '\"'                                        ; +0xcc, 0x7ea0e0\nSTR             R3, [SP,#8+var_8]                                      ; +0xd0, 0x7ea0e4\nLDR             R3, =(aCryptoEcEcLibC - 0x7EA100); \"crypto/ec/ec_lib.c\" ; +0xd4, 0x7ea0e8\nMOV             R0, #0x10                                              ; +0xd8, 0x7ea0ec\nMOV             R1, #0x6C ; 'l'                                        ; +0xdc, 0x7ea0f0\nMOV             R2, #0x42 ; 'B'                                        ; +0xe0, 0x7ea0f4\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xe4, 0x7ea0f8\nBL              ERR_put_error                                          ; +0xe8, 0x7ea0fc\nMOV             R0, R4                                                 ; +0xec, 0x7ea100\nB               loc_7EA088                                             ; +0xf0, 0x7ea104\nMOV             R3, #0x1E                                              ; +0xf4, 0x7ea108\nSTR             R3, [SP,#8+var_8]                                      ; +0xf8, 0x7ea10c\nLDR             R3, =(aCryptoEcEcLibC - 0x7EA128); \"crypto/ec/ec_lib.c\" ; +0xfc, 0x7ea110\nMOV             R1, #0x6C ; 'l'                                        ; +0x100, 0x7ea114\nMOV             R0, #0x10                                              ; +0x104, 0x7ea118\nMOV             R2, R1                                                 ; +0x108, 0x7ea11c\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x10c, 0x7ea120\nBL              ERR_put_error                                          ; +0x110, 0x7ea124\nMOV             R0, R5                                                 ; +0x114, 0x7ea128\nB               loc_7EA088                                             ; +0x118, 0x7ea12c\nMOV             R2, #0x28 ; '('                                        ; +0x11c, 0x7ea130\nSTR             R2, [SP,#8+var_8]                                      ; +0x120, 0x7ea134\nMOV             R0, #0x10                                              ; +0x124, 0x7ea138\nMOV             R3, R6                                                 ; +0x128, 0x7ea13c\nMOV             R1, #0x6C ; 'l'                                        ; +0x12c, 0x7ea140\nMOV             R2, #0x41 ; 'A'                                        ; +0x130, 0x7ea144\nBL              ERR_put_error                                          ; +0x134, 0x7ea148\nMOV             R0, R4                                                 ; +0x138, 0x7ea14c\nB               loc_7EA088                                             ; +0x13c, 0x7ea150", "xrefs": ["EC_GROUP_new_by_curve_name @ 0x7e8064", "EC_GROUP_new_by_curve_name @ 0x7e80d8", "EC_GROUP_new_curve_GFp @ 0x7e88a8", "EC_GROUP_new_curve_GF2m @ 0x7e890c", "EC_KEY_copy @ 0x7e8b50", "EC_GROUP_dup @ 0x7eab34", "<???> @ 0x615ac"], "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"}