// // X509_ocspid_print from 0xa51c60 to 0xa51df4 (404 bytes) // // 1 xrefs: // > @ 0x805cc // // 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:23 +0000 // int __fastcall X509_ocspid_print(int a1, int a2) { int subject_name; // r7 void *v5; // r4 void *v6; // r5 void *v7; // r0 _BYTE *v8; // r10 _BYTE *v9; // r4 int v10; // t1 int v11; // r0 int v12; // r4 int v13; // r5 int v14; // r4 void *v15; // r0 int v16; // t1 void *v18; // [sp+8h] [bp-1Ch] BYREF _BYTE v19[19]; // [sp+Ch] [bp-18h] BYREF _BYTE v20[5]; // [sp+1Fh] [bp-5h] BYREF if ( BIO_printf(a1, " Subject OCSP hash: ") > 0 && (subject_name = X509_get_subject_name(a2), v5 = (void *)i2d_X509_NAME(subject_name, 0), v6 = CRYPTO_malloc(v5, (int)"crypto/x509/t_x509.c", 227), (v18 = v6) != nullptr) ) { i2d_X509_NAME(subject_name, &v18); v7 = EVP_sha1(); if ( EVP_Digest((int)v6, (int)v5, (int)v19, nullptr, (int)v7, nullptr) ) { v8 = (char *)&v18 + 3; v9 = (char *)&v18 + 3; while ( 1 ) { v10 = (unsigned __int8)*++v9; if ( BIO_printf(a1, "%02X", v10) <= 0 ) break; if ( v9 == v20 ) { CRYPTO_free(v6, (int)"crypto/x509/t_x509.c", 237); if ( BIO_printf(a1, "\n Public key OCSP hash: ") > 0 ) { v11 = X509_get0_pubkey_bitstr(a2); v12 = v11; if ( v11 ) { v13 = ASN1_STRING_get0_data(v11); v14 = ASN1_STRING_length(v12); v15 = EVP_sha1(); if ( EVP_Digest(v13, v14, (int)v19, nullptr, (int)v15, nullptr) ) { while ( 1 ) { v16 = (unsigned __int8)*++v8; if ( BIO_printf(a1, "%02X", v16) <= 0 ) break; if ( v8 == v20 ) { BIO_printf(a1, "\n"); return 1; } } } } } goto LABEL_13; } } } } else { LABEL_13: v6 = nullptr; } CRYPTO_free(v6, (int)"crypto/x509/t_x509.c", 263); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source