// // sub_1043648 from 0x1043648 to 0x10437c0 (376 bytes) // // 3 xrefs: // > sub_1043648 @ 0x10436c8 // > OCSP_basic_verify @ 0x1043a34 // > OCSP_basic_verify @ 0x1043a54 // // 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 sub_1043648(__int64 a1, __int64 *a2, __int64 a3) { __int64 *v3; // x19 unsigned int v6; // w0 char *v7; // x0 __int64 digestbyname; // x0 __int64 v9; // x22 int v10; // w0 size_t v11; // x20 __int64 result; // x0 _QWORD *v13; // x0 __int64 subject_name; // x0 _BYTE v15[64]; // [xsp+40h] [xbp+40h] BYREF v3 = a2; if ( a2 ) { v6 = OBJ_obj2nid(*a2); v7 = OBJ_nid2sn(v6); digestbyname = EVP_get_digestbyname((__int64)v7); v9 = digestbyname; if ( !digestbyname ) { ERR_put_error(39, 109, 119, (__int64)"crypto/ocsp/ocsp_vfy.c", 277); return 0xFFFFFFFFLL; } v10 = EVP_MD_size(digestbyname); v11 = v10; if ( (v10 & 0x80000000) == 0 ) { if ( v10 != *((_DWORD *)v3 + 4) || v10 != *((_DWORD *)v3 + 10) ) return 0; subject_name = X509_get_subject_name(a1); if ( (unsigned int)X509_NAME_digest(subject_name, v9, v15, 0) ) { if ( !memcmp(v15, (const void *)v3[3], v11) ) { X509_pubkey_digest(a1, v9, v15, 0); return memcmp(v15, (const void *)v3[6], v11) == 0; } return 0; } } return 0xFFFFFFFFLL; } while ( (int)v3 < (int)OPENSSL_sk_num(a3) ) { v13 = (_QWORD *)OPENSSL_sk_value(a3, (unsigned int)v3); LODWORD(v3) = (_DWORD)v3 + 1; result = sub_1043648(a1, *v13, 0); if ( (int)result <= 0 ) return result; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source