// // sub_104A4A8 from 0x104a4a8 to 0x104a664 (444 bytes) // // 2 xrefs: // > PKCS7_dataDecode @ 0x104b260 // > PKCS7_dataDecode @ 0x104b530 // // 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:36 +0000 // __int64 __fastcall sub_104A4A8(_BYTE **a1, int *a2, __int64 a3, __int64 a4) { __int64 *v6; // x0 __int64 *v7; // x19 void *v8; // x24 unsigned int v9; // w20 void *v11; // [xsp+58h] [xbp+58h] BYREF v6 = (__int64 *)EVP_PKEY_CTX_new(a4, 0); v7 = v6; if ( !v6 ) return 0xFFFFFFFFLL; if ( (int)EVP_PKEY_decrypt_init(v6) > 0 ) { if ( (int)EVP_PKEY_CTX_ctrl(v7, -1, 512) <= 0 ) { v9 = -1; ERR_put_error(33, 133, 152, (__int64)"crypto/pkcs7/pk7_doit.c", 157); goto LABEL_9; } if ( (int)EVP_PKEY_decrypt(v7, 0, &v11) > 0 ) { v8 = CRYPTO_malloc(v11, (__int64)"crypto/pkcs7/pk7_doit.c", 165); if ( v8 ) { if ( (int)EVP_PKEY_decrypt(v7, (__int64)v8, &v11) <= 0 ) { ERR_put_error(33, 133, 6, (__int64)"crypto/pkcs7/pk7_doit.c", 175); EVP_PKEY_CTX_free((__int64)v7); CRYPTO_free(v8, (__int64)"crypto/pkcs7/pk7_doit.c", 188); return 0; } v9 = 1; CRYPTO_clear_free(*a1, *a2, (__int64)"crypto/pkcs7/pk7_doit.c", 0xB5u); *a1 = v8; *a2 = (int)v11; } else { v9 = -1; ERR_put_error(33, 133, 65, (__int64)"crypto/pkcs7/pk7_doit.c", 168); } goto LABEL_9; } } v9 = -1; LABEL_9: EVP_PKEY_CTX_free((__int64)v7); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source