// // PKCS7_dataVerify from 0xdce0d0 to 0xdce2a8 (472 bytes) // // 1 xrefs: // > @ 0x2acc0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall PKCS7_dataVerify(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4, __int64 a5) { __int64 v10; // x23 __int64 v11; // x21 if ( !a4 ) { ERR_put_error(33, 107, 143, (__int64)"crypto/pkcs7/pk7_doit.c", 885); return 0; } if ( !*(_QWORD *)(a4 + 32) ) { ERR_put_error(33, 107, 122, (__int64)"crypto/pkcs7/pk7_doit.c", 890); return 0; } if ( (unsigned int)OBJ_obj2nid(*(_QWORD *)(a4 + 24)) == 22 || (unsigned int)OBJ_obj2nid(*(_QWORD *)(a4 + 24)) == 24 ) { v10 = *(_QWORD *)(*(_QWORD *)(a4 + 32) + 16LL); v11 = X509_find_by_issuer_and_serial(v10, **(_QWORD **)(a5 + 8), *(_QWORD *)(*(_QWORD *)(a5 + 8) + 8LL)); if ( v11 ) { if ( (unsigned int)X509_STORE_CTX_init(a2, a1, v11, v10) ) { X509_STORE_CTX_set_purpose(a2, 4); if ( (int)X509_verify_cert(a2) > 0 ) { X509_STORE_CTX_cleanup(a2); return PKCS7_signatureVerify(a3, a4, a5, v11); } ERR_put_error(33, 107, 11, (__int64)"crypto/pkcs7/pk7_doit.c", 922); X509_STORE_CTX_cleanup(a2); } else { ERR_put_error(33, 107, 11, (__int64)"crypto/pkcs7/pk7_doit.c", 916); } } else { ERR_put_error(33, 107, 106, (__int64)"crypto/pkcs7/pk7_doit.c", 910); } return 0; } ERR_put_error(33, 107, 114, (__int64)"crypto/pkcs7/pk7_doit.c", 899); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source