// // X509_ocspid_print from 0x1063258 to 0x1063418 (448 bytes) // // 1 xrefs: // > @ 0xae070 // // 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:51 +0000 // __int64 __fastcall X509_ocspid_print(__int64 a1, __int64 a2) { __int64 subject_name; // x22 __int64 v5; // x19 void *v6; // x20 void *v7; // x0 _BYTE *v8; // x27 _BYTE *v9; // x19 int v10; // w2 __int64 v11; // x0 unsigned int *v12; // x19 __int64 v13; // x20 int v14; // w19 void *v15; // x0 int v16; // w2 void *v18; // [xsp+60h] [xbp+60h] BYREF _BYTE v19[20]; // [xsp+68h] [xbp+68h] BYREF _BYTE v20[4]; // [xsp+7Ch] [xbp+7Ch] BYREF if ( (int)BIO_printf(a1, " Subject OCSP hash: ") > 0 && (subject_name = X509_get_subject_name(a2), v5 = (int)i2d_X509_NAME(subject_name, 0), v18 = CRYPTO_malloc((void *)v5, (__int64)"crypto/x509/t_x509.c", 227), (v6 = v18) != nullptr) ) { i2d_X509_NAME(subject_name, &v18); v7 = EVP_sha1(); if ( (unsigned int)EVP_Digest((__int64)v6, v5, (__int64)v19, nullptr, (__int64)v7, 0) ) { v8 = v19; v9 = v19; while ( 1 ) { v10 = (unsigned __int8)*v9++; if ( (int)BIO_printf(a1, "%02X", v10) <= 0 ) break; if ( v9 == v20 ) { CRYPTO_free(v6, (__int64)"crypto/x509/t_x509.c", 237); if ( (int)BIO_printf(a1, "\n Public key OCSP hash: ") > 0 ) { v11 = X509_get0_pubkey_bitstr(a2); v12 = (unsigned int *)v11; if ( v11 ) { v13 = ASN1_STRING_get0_data(v11); v14 = ASN1_STRING_length(v12); v15 = EVP_sha1(); if ( (unsigned int)EVP_Digest(v13, v14, (__int64)v19, nullptr, (__int64)v15, 0) ) { while ( 1 ) { v16 = (unsigned __int8)*v8++; if ( (int)BIO_printf(a1, "%02X", v16) <= 0 ) break; if ( v8 == v20 ) { BIO_printf(a1, &byte_11AAA48); return 1; } } } } } goto LABEL_13; } } } } else { LABEL_13: v6 = nullptr; } CRYPTO_free(v6, (__int64)"crypto/x509/t_x509.c", 263); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source