// // OCSP_RESPONSE_print from 0x1043168 to 0x1043648 (1248 bytes) // // 1 xrefs: // > @ 0x9c568 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:16:32 +0000 // __int64 __fastcall OCSP_RESPONSE_print(__int64 a1, _QWORD *a2, __int64 a3) { __int64 *v6; // x21 __int64 v7; // x22 const char *v8; // x0 __int64 v10; // x21 unsigned int v11; // w19 _QWORD *v12; // x0 __int64 v13; // x0 int v14; // w0 __int64 v15; // x22 __int64 *v16; // x26 int *v17; // x26 char *v18; // x0 _QWORD *v19; // x26 __int64 v20; // x0 const char *v21; // x0 __int64 v22; // x0 __int64 v23; // x1 int v24; // w0 __int64 v25; // [xsp+78h] [xbp+78h] v6 = (__int64 *)a2[1]; if ( (int)BIO_puts(a1, (__int64)"OCSP Response Data:\n") <= 0 ) goto LABEL_8; v7 = ASN1_ENUMERATED_get(*a2); v8 = OCSP_response_status_str(v7); if ( (int)BIO_printf(a1, " OCSP Response Status: %s (0x%lx)\n", v8, v7) <= 0 ) goto LABEL_8; if ( v6 ) { if ( (int)BIO_puts(a1, (__int64)" Response Type: ") > 0 && (int)i2a_ASN1_OBJECT(a1, *v6) > 0 ) { if ( (unsigned int)OBJ_obj2nid(*v6) != 365 ) { BIO_puts(a1, (__int64)" (unknown response type)\n"); return 1; } v12 = (_QWORD *)OCSP_response_get1_basic((__int64)a2); v10 = (__int64)v12; if ( v12 ) { v11 = 0; v13 = ASN1_INTEGER_get(*v12); if ( (int)BIO_printf(a1, "\n Version: %lu (0x%lx)\n", v13 + 1, v13) > 0 && (int)BIO_puts(a1, (__int64)" Responder Id: ") > 0 ) { v14 = *(_DWORD *)(v10 + 8); if ( v14 ) { if ( v14 == 1 ) i2a_ASN1_STRING(a1, *(_QWORD *)(v10 + 16), 0); } else { X509_NAME_print_ex(a1, *(_QWORD *)(v10 + 16), 0, 8520479); } v11 = 0; if ( (int)BIO_printf(a1, "\n Produced At: ") > 0 && (unsigned int)ASN1_GENERALIZEDTIME_print(a1, *(_QWORD *)(v10 + 24)) && (int)BIO_printf(a1, "\n Responses:\n") > 0 ) { while ( (int)v11 < (int)OPENSSL_sk_num(*(_QWORD *)(v10 + 32)) ) { if ( OPENSSL_sk_value(*(_QWORD *)(v10 + 32), v11) ) { v15 = OPENSSL_sk_value(*(_QWORD *)(v10 + 32), v11); v16 = *(__int64 **)v15; BIO_printf(a1, "%*sCertificate ID:\n", 4, &byte_11B8890); BIO_printf(a1, "%*sHash Algorithm: ", 6, &byte_11B8890); i2a_ASN1_OBJECT(a1, *v16); BIO_printf(a1, "\n%*sIssuer Name Hash: ", 6, &byte_11B8890); i2a_ASN1_STRING(a1, v16 + 2, 0); BIO_printf(a1, "\n%*sIssuer Key Hash: ", 6, &byte_11B8890); i2a_ASN1_STRING(a1, v16 + 5, 0); BIO_printf(a1, "\n%*sSerial Number: ", 6, &byte_11B8890); i2a_ASN1_INTEGER(a1, v16 + 8); BIO_printf(a1, &byte_11AAA48); v17 = *(int **)(v15 + 8); v18 = OCSP_cert_status_str(*v17); if ( (int)BIO_printf(a1, " Cert Status: %s", v18) <= 0 ) goto LABEL_37; if ( *v17 == 1 ) { v19 = *((_QWORD **)v17 + 1); if ( (int)BIO_printf(a1, "\n Revocation Time: ") <= 0 ) goto LABEL_37; if ( !(unsigned int)ASN1_GENERALIZEDTIME_print(a1, *v19) ) goto LABEL_37; v20 = v19[1]; if ( v20 ) { v25 = ASN1_ENUMERATED_get(v20); v21 = OCSP_crl_reason_str(v25); if ( (int)BIO_printf(a1, "\n Revocation Reason: %s (0x%lx)", v21, v25) <= 0 ) goto LABEL_37; } } if ( (int)BIO_printf(a1, "\n This Update: ") <= 0 || !(unsigned int)ASN1_GENERALIZEDTIME_print(a1, *(_QWORD *)(v15 + 16)) || *(_QWORD *)(v15 + 24) && ((int)BIO_printf(a1, "\n Next Update: ") <= 0 || !(unsigned int)ASN1_GENERALIZEDTIME_print(a1, *(_QWORD *)(v15 + 24))) || (int)BIO_write(a1, (__int64)&byte_11AAA48, 1u) <= 0 || !(unsigned int)X509V3_extensions_print( a1, "Response Single Extensions", *(_QWORD *)(v15 + 32), a3, 8) || (int)BIO_write(a1, (__int64)&byte_11AAA48, 1u) <= 0 ) { LABEL_37: v11 = 0; goto LABEL_9; } } ++v11; } v11 = 0; if ( (unsigned int)X509V3_extensions_print(a1, "Response Extensions", *(_QWORD *)(v10 + 40), a3, 4) && (int)X509_signature_print(a1, v10 + 48, *(_QWORD *)(v10 + 64)) > 0 ) { while ( (int)v11 < (int)OPENSSL_sk_num(*(_QWORD *)(v10 + 72)) ) { v22 = OPENSSL_sk_value(*(_QWORD *)(v10 + 72), v11); X509_print(a1, v22); v23 = v11++; v24 = OPENSSL_sk_value(*(_QWORD *)(v10 + 72), v23); PEM_write_bio_X509(a1, v24); } v11 = 1; } } } goto LABEL_9; } } LABEL_8: v10 = 0; v11 = 0; LABEL_9: OCSP_BASICRESP_free(v10); return v11; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source