{"type": "func", "start": 16834756, "end": 16834896, "name": "EC_KEY_generate_key", "pseudocode": "// \n// EC_KEY_generate_key from 0x100e0c4 to 0x100e150 (140 bytes)\n// \n// 2 xrefs:\n// > sub_10B2CA4 @ 0x10b2d08\n// > <???> @ 0xd5808\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:01 +0000\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 0x100e0c4 to 0x100e150 (140 bytes)\n; \n; 2 xrefs:\n; > sub_10B2CA4 @ 0x10b2d08\n; > <???> @ 0xd5808\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:01 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x100e0c4\nMOV             X29, SP                                                ; +0x4, 0x100e0c8\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x100e0cc\nCBZ             X0, loc_100E124                                        ; +0xc, 0x100e0d0\nLDR             X2, [X0,#0x18]                                         ; +0x10, 0x100e0d4\nCBZ             X2, loc_100E124                                        ; +0x14, 0x100e0d8\nLDR             X1, [X0]                                               ; +0x18, 0x100e0dc\nLDR             X19, [X1,#0x40]                                        ; +0x1c, 0x100e0e0\nCBZ             X19, loc_100E0F8                                       ; +0x20, 0x100e0e4\nBLR             X19                                                    ; +0x24, 0x100e0e8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x28, 0x100e0ec\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x2c, 0x100e0f0\nRET                                                                    ; +0x30, 0x100e0f4\nADRP            X3, #aCryptoEcEcKeyC@PAGE; \"crypto/ec/ec_key.c\"        ; +0x34, 0x100e0f8\nMOV             W0, #0x10                                              ; +0x38, 0x100e0fc\nMOV             W1, #0xB3                                              ; +0x3c, 0x100e100\nMOV             W2, #0x98                                              ; +0x40, 0x100e104\nADD             X3, X3, #aCryptoEcEcKeyC@PAGEOFF; \"crypto/ec/ec_key.c\" ; +0x44, 0x100e108\nMOV             W4, #0xBC                                              ; +0x48, 0x100e10c\nBL              ERR_put_error                                          ; +0x4c, 0x100e110\nMOV             W0, W19                                                ; +0x50, 0x100e114\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x54, 0x100e118\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x58, 0x100e11c\nRET                                                                    ; +0x5c, 0x100e120\nADRP            X3, #aCryptoEcEcKeyC@PAGE; \"crypto/ec/ec_key.c\"        ; +0x60, 0x100e124\nMOV             W0, #0x10                                              ; +0x64, 0x100e128\nMOV             W1, #0xB3                                              ; +0x68, 0x100e12c\nMOV             W2, #0x43 ; 'C'                                        ; +0x6c, 0x100e130\nADD             X3, X3, #aCryptoEcEcKeyC@PAGEOFF; \"crypto/ec/ec_key.c\" ; +0x70, 0x100e134\nMOV             W4, #0xB7                                              ; +0x74, 0x100e138\nBL              ERR_put_error                                          ; +0x78, 0x100e13c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x7c, 0x100e140\nMOV             W0, #0                                                 ; +0x80, 0x100e144\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x84, 0x100e148\nRET                                                                    ; +0x88, 0x100e14c", "xrefs": ["sub_10B2CA4 @ 0x10b2d08", "<???> @ 0xd5808"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}