// // PKCS12_pbe_crypt from 0xe65c28 to 0xe65df4 (460 bytes) // // 3 xrefs: // > PKCS12_item_decrypt_d2i @ 0xe65e28 // > PKCS12_item_i2d_encrypt @ 0xe65f4c // > @ 0x84a38 // // 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 // char *__fastcall PKCS12_pbe_crypt( __int64 *a1, const char *a2, unsigned int a3, char *a4, int a5, char **a6, _DWORD *a7, unsigned int a8) { __int64 *v13; // x19 int v14; // w0 char *v15; // x20 int v16; // w22 char *v18; // x0 char *v19; // x0 int v23; // [xsp+7Ch] [xbp+7Ch] BYREF v13 = (__int64 *)EVP_CIPHER_CTX_new(); if ( v13 ) { if ( (unsigned int)EVP_PBE_CipherInit(*a1, a2, a3, a1[1], (__int64)v13, a8) ) { v14 = EVP_CIPHER_CTX_block_size((__int64)v13); v15 = (char *)CRYPTO_malloc((void *)(v14 + a5), (__int64)"crypto/pkcs12/p12_decr.c", 45); if ( v15 ) { if ( (unsigned int)EVP_CipherUpdate(v13, v15, &v23, a4, a5) ) { v16 = v23; if ( (unsigned int)EVP_CipherFinal_ex(v13, &v15[v23], &v23) ) { if ( a7 ) *a7 = v16 + v23; if ( a6 ) *a6 = v15; } else { v19 = v15; v15 = nullptr; CRYPTO_free(v19, (__int64)"crypto/pkcs12/p12_decr.c", 60); ERR_put_error(35, 119, 116, (__int64)"crypto/pkcs12/p12_decr.c", 63); } } else { v18 = v15; v15 = nullptr; CRYPTO_free(v18, (__int64)"crypto/pkcs12/p12_decr.c", 52); ERR_put_error(35, 119, 6, (__int64)"crypto/pkcs12/p12_decr.c", 54); } } else { ERR_put_error(35, 119, 65, (__int64)"crypto/pkcs12/p12_decr.c", 47); } } else { v15 = nullptr; ERR_put_error(35, 119, 115, (__int64)"crypto/pkcs12/p12_decr.c", 41); } } else { v15 = nullptr; ERR_put_error(35, 119, 65, (__int64)"crypto/pkcs12/p12_decr.c", 33); } EVP_CIPHER_CTX_free(v13); return v15; }
GD Web Decomp Icon

GD Web Decomp

Raw Source