// // OCSP_RESPONSE_print from 0xa33e94 to 0xa3437c (1256 bytes) // // 1 xrefs: // > @ 0x7e7cc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:08:07 +0000 // int __fastcall OCSP_RESPONSE_print(int a1, _DWORD *a2, int a3) { int *v5; // r7 int v7; // r8 const char *v8; // r0 int v10; // r2 int v11; // r3 _DWORD *v12; // r5 int v13; // r4 _DWORD *v14; // r0 int v15; // r0 int v16; // r3 int v17; // r2 int v18; // r3 int i; // r7 int v20; // r2 int v21; // r3 int v22; // r2 int v23; // r3 int **v24; // r0 int *v25; // r10 int **v26; // r8 int v27; // r2 int v28; // r3 int *v29; // r10 const char *v30; // r0 _DWORD *v31; // r10 int v32; // r2 int v33; // r3 int v34; // r0 int v35; // r10 const char *v36; // r0 int j; // r6 int v38; // r0 int v39; // r0 v5 = (int *)a2[1]; if ( BIO_puts(a1, (int)"OCSP Response Data:\n") <= 0 ) goto LABEL_9; v7 = ASN1_ENUMERATED_get(*a2); v8 = OCSP_response_status_str(v7); if ( BIO_printf(a1, " OCSP Response Status: %s (0x%lx)\n", v8, v7) <= 0 ) goto LABEL_9; if ( !v5 ) return 1; if ( BIO_puts(a1, (int)" Response Type: ") <= 0 || i2a_ASN1_OBJECT(a1, *v5, v10, v11) <= 0 ) goto LABEL_9; if ( OBJ_obj2nid(*v5) != (_BYTE *)&dword_16C + 1 ) { BIO_puts(a1, (int)" (unknown response type)\n"); return 1; } v14 = (_DWORD *)OCSP_response_get1_basic((int)a2); v12 = v14; if ( v14 ) { v15 = ASN1_INTEGER_get(*v14); if ( BIO_printf(a1, "\n Version: %lu (0x%lx)\n", v15 + 1, v15) <= 0 || BIO_puts(a1, (int)" Responder Id: ") <= 0 ) { goto LABEL_19; } v16 = v12[1]; if ( v16 ) { if ( v16 == 1 ) i2a_ASN1_STRING(a1, v12[2], 0); } else { X509_NAME_print_ex(a1, v12[2], 0, 8520479); } if ( BIO_printf(a1, "\n Produced At: ") <= 0 || !ASN1_GENERALIZEDTIME_print(a1, v12[3], v17, v18) || BIO_printf(a1, "\n Responses:\n") <= 0 ) { goto LABEL_19; } for ( i = 0; i < OPENSSL_sk_num(v12[4]); ++i ) { if ( OPENSSL_sk_value(v12[4], i) ) { v24 = (int **)OPENSSL_sk_value(v12[4], i); v25 = *v24; v26 = v24; BIO_printf(a1, "%*sCertificate ID:\n", 4, &byte_BF4ECA); BIO_printf(a1, "%*sHash Algorithm: ", 6, &byte_BF4ECA); i2a_ASN1_OBJECT(a1, *v25, v27, v28); BIO_printf(a1, "\n%*sIssuer Name Hash: ", 6, &byte_BF4ECA); i2a_ASN1_STRING(a1, v25 + 2, 0); BIO_printf(a1, "\n%*sIssuer Key Hash: ", 6, &byte_BF4ECA); i2a_ASN1_STRING(a1, v25 + 6, 0); BIO_printf(a1, "\n%*sSerial Number: ", 6, &byte_BF4ECA); i2a_ASN1_INTEGER(a1, v25 + 10); BIO_printf(a1, "\n"); v29 = v26[1]; v30 = OCSP_cert_status_str(*v29); if ( BIO_printf(a1, " Cert Status: %s", v30) <= 0 ) goto LABEL_19; if ( *v29 == 1 ) { v31 = (_DWORD *)v29[1]; if ( BIO_printf(a1, "\n Revocation Time: ") <= 0 ) goto LABEL_19; if ( !ASN1_GENERALIZEDTIME_print(a1, *v31, v32, v33) ) goto LABEL_19; v34 = v31[1]; if ( v34 ) { v35 = ASN1_ENUMERATED_get(v34); v36 = OCSP_crl_reason_str(v35); if ( BIO_printf(a1, "\n Revocation Reason: %s (0x%lx)", v36, v35) <= 0 ) goto LABEL_19; } } if ( BIO_printf(a1, "\n This Update: ") <= 0 || !ASN1_GENERALIZEDTIME_print(a1, v26[2], v20, v21) || v26[3] && (BIO_printf(a1, "\n Next Update: ") <= 0 || !ASN1_GENERALIZEDTIME_print(a1, v26[3], v22, v23)) || BIO_write(a1, (int)"\n", 1) <= 0 || !X509V3_extensions_print(a1, "Response Single Extensions", v26[4], a3, 8) || BIO_write(a1, (int)"\n", 1) <= 0 ) { goto LABEL_19; } } } if ( X509V3_extensions_print(a1, "Response Extensions", v12[5], a3, 4) && X509_signature_print(a1, v12 + 6, v12[8]) > 0 ) { for ( j = 0; j < OPENSSL_sk_num(v12[9]); ++j ) { v38 = OPENSSL_sk_value(v12[9], j); X509_print(a1, v38); v39 = OPENSSL_sk_value(v12[9], j); PEM_write_bio_X509(a1, v39); } v13 = 1; } else { LABEL_19: v13 = 0; } } else { LABEL_9: v12 = nullptr; v13 = 0; } OCSP_BASICRESP_free(v12); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source