{"type": "func", "start": 14220644, "end": 14220784, "name": "EC_KEY_generate_key", "pseudocode": "// \n// EC_KEY_generate_key from 0xd8fd64 to 0xd8fdf0 (140 bytes)\n// \n// 2 xrefs:\n// > sub_E349A4 @ 0xe34a08\n// > <???> @ 0xa2630\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__int64 __fastcall EC_KEY_generate_key(_QWORD *a1)\n{\n  __int64 (*v1)(void); // x19\n\n  if ( a1 && a1[3] )\n  {\n    v1 = *(__int64 (**)(void))(*a1 + 64LL);\n    if ( v1 )\n    {\n      return v1();\n    }\n    else\n    {\n      ERR_put_error(16, 179, 152, \"crypto/ec/ec_key.c\", 188);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 179, 67, \"crypto/ec/ec_key.c\", 183);\n    return 0;\n  }\n}", "assembly": "; \n; EC_KEY_generate_key from 0xd8fd64 to 0xd8fdf0 (140 bytes)\n; \n; 2 xrefs:\n; > sub_E349A4 @ 0xe34a08\n; > <???> @ 0xa2630\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xd8fd64\nMOV             X29, SP                                                ; +0x4, 0xd8fd68\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xd8fd6c\nCBZ             X0, loc_D8FDC4                                         ; +0xc, 0xd8fd70\nLDR             X2, [X0,#0x18]                                         ; +0x10, 0xd8fd74\nCBZ             X2, loc_D8FDC4                                         ; +0x14, 0xd8fd78\nLDR             X1, [X0]                                               ; +0x18, 0xd8fd7c\nLDR             X19, [X1,#0x40]                                        ; +0x1c, 0xd8fd80\nCBZ             X19, loc_D8FD98                                        ; +0x20, 0xd8fd84\nBLR             X19                                                    ; +0x24, 0xd8fd88\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x28, 0xd8fd8c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x2c, 0xd8fd90\nRET                                                                    ; +0x30, 0xd8fd94\nADRP            X3, #aCryptoEcEcKeyC@PAGE; \"crypto/ec/ec_key.c\"        ; +0x34, 0xd8fd98\nMOV             W0, #0x10                                              ; +0x38, 0xd8fd9c\nMOV             W1, #0xB3                                              ; +0x3c, 0xd8fda0\nMOV             W2, #0x98                                              ; +0x40, 0xd8fda4\nADD             X3, X3, #aCryptoEcEcKeyC@PAGEOFF; \"crypto/ec/ec_key.c\" ; +0x44, 0xd8fda8\nMOV             W4, #0xBC                                              ; +0x48, 0xd8fdac\nBL              ERR_put_error                                          ; +0x4c, 0xd8fdb0\nMOV             W0, W19                                                ; +0x50, 0xd8fdb4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x54, 0xd8fdb8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x58, 0xd8fdbc\nRET                                                                    ; +0x5c, 0xd8fdc0\nADRP            X3, #aCryptoEcEcKeyC@PAGE; \"crypto/ec/ec_key.c\"        ; +0x60, 0xd8fdc4\nMOV             W0, #0x10                                              ; +0x64, 0xd8fdc8\nMOV             W1, #0xB3                                              ; +0x68, 0xd8fdcc\nMOV             W2, #0x43 ; 'C'                                        ; +0x6c, 0xd8fdd0\nADD             X3, X3, #aCryptoEcEcKeyC@PAGEOFF; \"crypto/ec/ec_key.c\" ; +0x70, 0xd8fdd4\nMOV             W4, #0xB7                                              ; +0x74, 0xd8fdd8\nBL              ERR_put_error                                          ; +0x78, 0xd8fddc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x7c, 0xd8fde0\nMOV             W0, #0                                                 ; +0x80, 0xd8fde4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x84, 0xd8fde8\nRET                                                                    ; +0x88, 0xd8fdec", "xrefs": ["sub_E349A4 @ 0xe34a08", "<???> @ 0xa2630"], "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"}