// // EVP_PKEY_CTX_new_id from 0xdae1e8 to 0xdae330 (328 bytes) // // 8 xrefs: // > ssl_generate_pkey_curve @ 0xd387d4 // > ssl_generate_pkey_curve @ 0xd38860 // > tls_process_key_exchange @ 0xd4b5e4 // > sub_D60980 @ 0xd609d4 // > tls1_final_finish_mac @ 0xd61428 // > tls1_generate_master_secret @ 0xd615fc // > EVP_PKEY_new_mac_key @ 0xdadc64 // > @ 0xb4e28 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall EVP_PKEY_CTX_new_id(unsigned int a1, __int64 a2) { __int64 pkey_meth_engine; // x20 __int64 pkey_meth; // x21 __int64 result; // x0 __int64 v6; // x19 int (*v7)(void); // x1 bool v8; // cc pkey_meth_engine = a2; if ( a1 == -1 ) return 0; if ( a2 ) { if ( !(unsigned int)ENGINE_init(a2) ) { ERR_put_error(6, 157, 38, (__int64)"crypto/evp/pmeth_lib.c", 97); return 0; } goto LABEL_4; } pkey_meth_engine = ENGINE_get_pkey_meth_engine(a1); if ( pkey_meth_engine ) { LABEL_4: pkey_meth = ENGINE_get_pkey_meth(pkey_meth_engine, a1); goto LABEL_5; } pkey_meth = EVP_PKEY_meth_find(a1); LABEL_5: if ( pkey_meth ) { result = CRYPTO_zalloc(80, "crypto/evp/pmeth_lib.c", 119); v6 = result; if ( result ) { v7 = *(int (**)(void))(pkey_meth + 8); *(_QWORD *)(result + 8) = pkey_meth_engine; *(_QWORD *)result = pkey_meth; *(_DWORD *)(result + 32) = 0; *(_QWORD *)(result + 16) = 0; if ( v7 ) { v8 = v7() <= 0; result = v6; if ( v8 ) { EVP_PKEY_CTX_free(v6); return 0; } } } else { ENGINE_finish(pkey_meth_engine); ERR_put_error(6, 157, 65, (__int64)"crypto/evp/pmeth_lib.c", 124); return 0; } } else { ERR_put_error(6, 157, 156, (__int64)"crypto/evp/pmeth_lib.c", 115); return 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source