// // ssl_get_server_send_pkey from 0xd419d8 to 0xd41ab0 (216 bytes) // // 5 xrefs: // > ssl3_ctrl @ 0xd38b08 // > tls_construct_server_certificate @ 0xd53e00 // > ssl_check_clienthello_tlsext_late @ 0xd56b70 // > ssl_get_auto_dh @ 0xd5b97c // > @ 0x30648 // // 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 ssl_get_server_send_pkey(__int64 a1) { __int64 v1; // x2 __int64 v2; // x20 int cert_index; // w0 _QWORD *v5; // x1 v1 = *(_QWORD *)(a1 + 144); v2 = *(_QWORD *)(a1 + 328); if ( !v1 || !*(_QWORD *)(v1 + 552) ) return 0; ssl_set_masks(a1); cert_index = ssl_cipher_get_cert_index(*(_QWORD *)(*(_QWORD *)(a1 + 144) + 552LL)); if ( !cert_index ) { cert_index = *(_QWORD *)(*(_QWORD *)(a1 + 328) + 32LL) == 0; LABEL_8: if ( (cert_index & 0x80000000) == 0 ) return v2 + 40LL * cert_index + 32; return 0; } if ( cert_index == 8 ) { v5 = *(_QWORD **)(a1 + 328); cert_index = 6; if ( !v5[34] ) { cert_index = 5; if ( !v5[29] ) { cert_index = 4; if ( !v5[24] ) goto LABEL_11; } } return v2 + 40LL * cert_index + 32; } if ( cert_index != -1 ) goto LABEL_8; LABEL_11: ERR_put_error(20, 322, 68, "ssl/ssl_lib.c", 2768); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source