{"type": "func", "start": 8293736, "end": 8293880, "name": "EC_KEY_generate_key", "pseudocode": "// \n// EC_KEY_generate_key from 0x7e8d68 to 0x7e8df8 (144 bytes)\n// \n// 2 xrefs:\n// > sub_88B048 @ 0x88b0ac\n// > <???> @ 0x616bc\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_KEY_generate_key(_DWORD *a1)\n{\n  int (*v1)(void); // r3\n\n  if ( a1 && a1[3] )\n  {\n    v1 = *(int (**)(void))(*a1 + 32);\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 0x7e8d68 to 0x7e8df8 (144 bytes)\n; \n; 2 xrefs:\n; > sub_88B048 @ 0x88b0ac\n; > <???> @ 0x616bc\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\nSUBS            R3, R0, #0                                             ; +0x0, 0x7e8d68\nPUSH            {LR}                                                   ; +0x4, 0x7e8d6c\nSUB             SP, SP, #0xC                                           ; +0x8, 0x7e8d70\nBEQ             loc_7E8DCC                                             ; +0xc, 0x7e8d74\nLDR             R2, [R3,#0xC]                                          ; +0x10, 0x7e8d78\nCMP             R2, #0                                                 ; +0x14, 0x7e8d7c\nBEQ             loc_7E8DCC                                             ; +0x18, 0x7e8d80\nLDR             R3, [R3]                                               ; +0x1c, 0x7e8d84\nLDR             R3, [R3,#0x20]                                         ; +0x20, 0x7e8d88\nCMP             R3, #0                                                 ; +0x24, 0x7e8d8c\nBEQ             loc_7E8DA0                                             ; +0x28, 0x7e8d90\nADD             SP, SP, #0xC                                           ; +0x2c, 0x7e8d94\nPOP             {LR}                                                   ; +0x30, 0x7e8d98\nBX              R3                                                     ; +0x34, 0x7e8d9c\nMOV             R3, #0xBC                                              ; +0x38, 0x7e8da0\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x3c, 0x7e8da4\nLDR             R3, =(aCryptoEcEcKeyC - 0x7E8DC0); \"crypto/ec/ec_key.c\" ; +0x40, 0x7e8da8\nMOV             R0, #0x10                                              ; +0x44, 0x7e8dac\nMOV             R1, #0xB3                                              ; +0x48, 0x7e8db0\nMOV             R2, #0x98                                              ; +0x4c, 0x7e8db4\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x50, 0x7e8db8\nBL              ERR_put_error                                          ; +0x54, 0x7e8dbc\nMOV             R0, #0                                                 ; +0x58, 0x7e8dc0\nADD             SP, SP, #0xC                                           ; +0x5c, 0x7e8dc4\nPOP             {PC}                                                   ; +0x60, 0x7e8dc8\nMOV             R3, #0xB7                                              ; +0x64, 0x7e8dcc\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x68, 0x7e8dd0\nLDR             R3, =(aCryptoEcEcKeyC - 0x7E8DEC); \"crypto/ec/ec_key.c\" ; +0x6c, 0x7e8dd4\nMOV             R0, #0x10                                              ; +0x70, 0x7e8dd8\nMOV             R1, #0xB3                                              ; +0x74, 0x7e8ddc\nMOV             R2, #0x43 ; 'C'                                        ; +0x78, 0x7e8de0\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x7c, 0x7e8de4\nBL              ERR_put_error                                          ; +0x80, 0x7e8de8\nMOV             R0, #0                                                 ; +0x84, 0x7e8dec\nADD             SP, SP, #0xC                                           ; +0x88, 0x7e8df0\nPOP             {PC}                                                   ; +0x8c, 0x7e8df4", "xrefs": ["sub_88B048 @ 0x88b0ac", "<???> @ 0x616bc"], "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"}