// // ssl3_digest_cached_records from 0xd5f4d0 to 0xd5f60c (316 bytes) // // 11 xrefs: // > tls_construct_client_verify @ 0xd4b060 // > tls_prepare_client_certificate @ 0xd4c61c // > tls_post_process_client_hello @ 0xd51680 // > tls_construct_server_done @ 0xd519ec // > tls_post_process_client_key_exchange @ 0xd53534 // > tls_post_process_client_key_exchange @ 0xd53554 // > tls_process_client_certificate @ 0xd53ccc // > ssl3_final_finish_mac @ 0xd5f634 // > tls1_final_finish_mac @ 0xd613bc // > tls1_generate_master_secret @ 0xd61754 // > @ 0x3c1c8 // // 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 ssl3_digest_cached_records(__int64 a1, int a2) { __int64 v3; // x0 __int64 v5; // x19 __int64 v7; // x0 __int64 v8; // x22 __int64 v9; // x23 __int64 v10; // x0 __int64 v11; // x1 __int64 v12; // x0 __int64 v13; // [xsp+48h] [xbp+48h] BYREF v3 = *(_QWORD *)(a1 + 144); v5 = *(_QWORD *)(v3 + 224); if ( v5 ) goto LABEL_2; v7 = BIO_ctrl(*(_QWORD *)(v3 + 216), 3, 0, &v13); v8 = v7; if ( v7 <= 0 ) { ERR_put_error(20, 293, 332, "ssl/s3_enc.c", 378); return (unsigned int)v5; } v9 = *(_QWORD *)(a1 + 144); v10 = EVP_MD_CTX_new(v7); v11 = *(_QWORD *)(a1 + 144); *(_QWORD *)(v9 + 224) = v10; if ( !*(_QWORD *)(v11 + 224) ) { LODWORD(v5) = 0; ERR_put_error(20, 293, 65, "ssl/s3_enc.c", 384); return (unsigned int)v5; } v12 = ssl_handshake_md(a1); if ( v12 && (unsigned int)EVP_DigestInit_ex(*(_QWORD *)(*(_QWORD *)(a1 + 144) + 224LL), v12, 0) && (unsigned int)EVP_DigestUpdate(*(_QWORD *)(*(_QWORD *)(a1 + 144) + 224LL), v13, v8) ) { LABEL_2: LODWORD(v5) = 1; if ( !a2 ) { BIO_free(*(_QWORD *)(*(_QWORD *)(a1 + 144) + 216LL)); *(_QWORD *)(*(_QWORD *)(a1 + 144) + 216LL) = 0; } } else { LODWORD(v5) = 0; ERR_put_error(20, 293, 68, "ssl/s3_enc.c", 391); } return (unsigned int)v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source