{"type": "func", "start": 10475880, "end": 10476024, "name": "EC_KEY_generate_key", "pseudocode": "// \n// EC_KEY_generate_key from 0x9fd968 to 0x9fd9f8 (144 bytes)\n// \n// 2 xrefs:\n// > sub_A9FC48 @ 0xa9fcac\n// > <???> @ 0x7b13c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:36 +0000\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 0x9fd968 to 0x9fd9f8 (144 bytes)\n; \n; 2 xrefs:\n; > sub_A9FC48 @ 0xa9fcac\n; > <???> @ 0x7b13c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:36 +0000\n; \nSUBS            R3, R0, #0                                             ; +0x0, 0x9fd968\nPUSH            {LR}                                                   ; +0x4, 0x9fd96c\nSUB             SP, SP, #0xC                                           ; +0x8, 0x9fd970\nBEQ             loc_9FD9CC                                             ; +0xc, 0x9fd974\nLDR             R2, [R3,#0xC]                                          ; +0x10, 0x9fd978\nCMP             R2, #0                                                 ; +0x14, 0x9fd97c\nBEQ             loc_9FD9CC                                             ; +0x18, 0x9fd980\nLDR             R3, [R3]                                               ; +0x1c, 0x9fd984\nLDR             R3, [R3,#0x20]                                         ; +0x20, 0x9fd988\nCMP             R3, #0                                                 ; +0x24, 0x9fd98c\nBEQ             loc_9FD9A0                                             ; +0x28, 0x9fd990\nADD             SP, SP, #0xC                                           ; +0x2c, 0x9fd994\nPOP             {LR}                                                   ; +0x30, 0x9fd998\nBX              R3                                                     ; +0x34, 0x9fd99c\nMOV             R3, #0xBC                                              ; +0x38, 0x9fd9a0\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x3c, 0x9fd9a4\nLDR             R3, =(aCryptoEcEcKeyC - 0x9FD9C0); \"crypto/ec/ec_key.c\" ; +0x40, 0x9fd9a8\nMOV             R0, #0x10                                              ; +0x44, 0x9fd9ac\nMOV             R1, #0xB3                                              ; +0x48, 0x9fd9b0\nMOV             R2, #0x98                                              ; +0x4c, 0x9fd9b4\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x50, 0x9fd9b8\nBL              ERR_put_error                                          ; +0x54, 0x9fd9bc\nMOV             R0, #0                                                 ; +0x58, 0x9fd9c0\nADD             SP, SP, #0xC                                           ; +0x5c, 0x9fd9c4\nPOP             {PC}                                                   ; +0x60, 0x9fd9c8\nMOV             R3, #0xB7                                              ; +0x64, 0x9fd9cc\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x68, 0x9fd9d0\nLDR             R3, =(aCryptoEcEcKeyC - 0x9FD9EC); \"crypto/ec/ec_key.c\" ; +0x6c, 0x9fd9d4\nMOV             R0, #0x10                                              ; +0x70, 0x9fd9d8\nMOV             R1, #0xB3                                              ; +0x74, 0x9fd9dc\nMOV             R2, #0x43 ; 'C'                                        ; +0x78, 0x9fd9e0\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x7c, 0x9fd9e4\nBL              ERR_put_error                                          ; +0x80, 0x9fd9e8\nMOV             R0, #0                                                 ; +0x84, 0x9fd9ec\nADD             SP, SP, #0xC                                           ; +0x88, 0x9fd9f0\nPOP             {PC}                                                   ; +0x8c, 0x9fd9f4", "xrefs": ["sub_A9FC48 @ 0xa9fcac", "<???> @ 0x7b13c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}