// // OCSP_REQUEST_print from 0xdc4b6c to 0xdc4e08 (668 bytes) // // 1 xrefs: // > @ 0x4a4c0 // // 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 OCSP_REQUEST_print(__int64 a1, _QWORD *a2, __int64 a3) { __int64 v5; // d8 __int64 v7; // x0 int v8; // w21 __int64 v9; // x25 __int64 *v10; // x22 bool v11; // cc __int64 v12; // x1 unsigned int v13; // w20 __int64 v14; // x0 __int64 v15; // x1 int v16; // w0 v5 = a2[4]; if ( (int)BIO_write(a1, (__int64)"OCSP Request Data:\n", 0x13u) <= 0 ) return 0; v7 = ASN1_INTEGER_get(*a2); if ( (int)BIO_printf(a1, " Version: %lu (0x%lx)", v7 + 1, v7) <= 0 ) return 0; if ( a2[1] ) { if ( (int)BIO_write(a1, (__int64)"\n Requestor Name: ", 0x15u) > 0 ) { GENERAL_NAME_print(a1, a2[1]); goto LABEL_6; } return 0; } LABEL_6: if ( (int)BIO_write(a1, (__int64)"\n Requestor List:\n", 0x15u) <= 0 ) return 0; v8 = 0; while ( 1 ) { v11 = v8 < (int)OPENSSL_sk_num(a2[2]); v12 = (unsigned int)v8++; if ( !v11 ) break; v9 = OPENSSL_sk_value(a2[2], v12); v10 = *(__int64 **)v9; BIO_printf(a1, "%*sCertificate ID:\n", 8, &byte_F288A0); BIO_printf(a1, "%*sHash Algorithm: ", 10, &byte_F288A0); i2a_ASN1_OBJECT(a1, *v10); BIO_printf(a1, "\n%*sIssuer Name Hash: ", 10, &byte_F288A0); i2a_ASN1_STRING(a1, v10 + 2, 0); BIO_printf(a1, "\n%*sIssuer Key Hash: ", 10, &byte_F288A0); i2a_ASN1_STRING(a1, v10 + 5, 0); BIO_printf(a1, "\n%*sSerial Number: ", 10, &byte_F288A0); i2a_ASN1_INTEGER(a1, v10 + 8); BIO_printf(a1, &byte_F1AB78); if ( !(unsigned int)X509V3_extensions_print(a1, "Request Single Extensions", *(_QWORD *)(v9 + 8), a3, 8) ) return 0; } if ( !(unsigned int)X509V3_extensions_print(a1, "Request Extensions", a2[3], a3, 4) ) return 0; if ( v5 ) { v13 = 0; X509_signature_print(a1, v5, *(_QWORD *)(v5 + 16)); while ( (int)v13 < (int)OPENSSL_sk_num(*(_QWORD *)(v5 + 24)) ) { v14 = OPENSSL_sk_value(*(_QWORD *)(v5 + 24), v13); X509_print(a1, v14); v15 = v13++; v16 = OPENSSL_sk_value(*(_QWORD *)(v5 + 24), v15); PEM_write_bio_X509(a1, v16); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source