{"type": "func", "start": 8292912, "end": 8293048, "name": "EC_KEY_new_by_curve_name", "pseudocode": "// \n// EC_KEY_new_by_curve_name from 0x7e8a30 to 0x7e8ab8 (136 bytes)\n// \n// 2 xrefs:\n// > sub_7BB73C @ 0x7bb758\n// > <???> @ 0x5e09c\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_KEY_new_by_curve_name(int a1)\n{\n  _DWORD *v2; // r4\n  int v3; // r1\n  _DWORD *result; // r0\n  int (__fastcall *v5)(_DWORD *, int); // r3\n  int v6; // r5\n\n  v2 = (_DWORD *)EC_KEY_new();\n  if ( !v2 )\n    return nullptr;\n  v3 = EC_GROUP_new_by_curve_name(a1);\n  v2[3] = v3;\n  if ( !v3\n    || (result = v2, (v5 = *(int (__fastcall **)(_DWORD *, int))(*v2 + 20)) != nullptr)\n    && (v6 = v5(v2, v3), result = v2, !v6) )\n  {\n    EC_KEY_free((int)v2);\n    return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; EC_KEY_new_by_curve_name from 0x7e8a30 to 0x7e8ab8 (136 bytes)\n; \n; 2 xrefs:\n; > sub_7BB73C @ 0x7bb758\n; > <???> @ 0x5e09c\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,R5,LR}                                             ; +0x0, 0x7e8a30\nSUB             SP, SP, #0xC                                           ; +0x4, 0x7e8a34\nMOV             R5, R0                                                 ; +0x8, 0x7e8a38\nBL              EC_KEY_new                                             ; +0xc, 0x7e8a3c\nSUBS            R4, R0, #0                                             ; +0x10, 0x7e8a40\nBEQ             loc_7E8A8C                                             ; +0x14, 0x7e8a44\nMOV             R0, R5                                                 ; +0x18, 0x7e8a48\nBL              EC_GROUP_new_by_curve_name                             ; +0x1c, 0x7e8a4c\nCMP             R0, #0                                                 ; +0x20, 0x7e8a50\nMOV             R1, R0                                                 ; +0x24, 0x7e8a54\nSTR             R0, [R4,#0xC]                                          ; +0x28, 0x7e8a58\nBEQ             loc_7E8AA0                                             ; +0x2c, 0x7e8a5c\nLDR             R3, [R4]                                               ; +0x30, 0x7e8a60\nMOV             R0, R4                                                 ; +0x34, 0x7e8a64\nLDR             R3, [R3,#0x14]                                         ; +0x38, 0x7e8a68\nCMP             R3, #0                                                 ; +0x3c, 0x7e8a6c\nBEQ             loc_7E8A84                                             ; +0x40, 0x7e8a70\nBLX             R3                                                     ; +0x44, 0x7e8a74\nSUBS            R5, R0, #0                                             ; +0x48, 0x7e8a78\nMOV             R0, R4                                                 ; +0x4c, 0x7e8a7c\nBEQ             loc_7E8A94                                             ; +0x50, 0x7e8a80\nADD             SP, SP, #0xC                                           ; +0x54, 0x7e8a84\nPOP             {R4,R5,PC}                                             ; +0x58, 0x7e8a88\nMOV             R0, R4                                                 ; +0x5c, 0x7e8a8c\nB               loc_7E8A84                                             ; +0x60, 0x7e8a90\nBL              EC_KEY_free                                            ; +0x64, 0x7e8a94\nMOV             R0, R5                                                 ; +0x68, 0x7e8a98\nB               loc_7E8A84                                             ; +0x6c, 0x7e8a9c\nSTR             R0, [SP,#0xC+var_8]                                    ; +0x70, 0x7e8aa0\nMOV             R0, R4                                                 ; +0x74, 0x7e8aa4\nBL              EC_KEY_free                                            ; +0x78, 0x7e8aa8\nLDR             R1, [SP,#0xC+var_8]                                    ; +0x7c, 0x7e8aac\nMOV             R0, R1                                                 ; +0x80, 0x7e8ab0\nB               loc_7E8A84                                             ; +0x84, 0x7e8ab4", "xrefs": ["sub_7BB73C @ 0x7bb758", "<???> @ 0x5e09c"], "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"}