// // cms_env_asn1_ctrl from 0xe1d7a8 to 0xe1d88c (228 bytes) // // 6 xrefs: // > CMS_RecipientInfo_decrypt @ 0xe1dfac // > CMS_RecipientInfo_encrypt @ 0xe1e4a4 // > CMS_add1_recipient_cert @ 0xe1eb08 // > CMS_RecipientInfo_kari_decrypt @ 0xe1f16c // > cms_RecipientInfo_kari_encrypt @ 0xe1f5fc // > @ 0xb82d8 // // 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 cms_env_asn1_ctrl(int *a1) { int v2; // w0 __int64 v3; // x0 __int64 v4; // x4 __int64 (*v5)(void); // x4 int v6; // w0 __int64 v8; // x0 v2 = *a1; if ( v2 ) { if ( v2 != 1 ) return 0; v8 = *(_QWORD *)(*((_QWORD *)a1 + 1) + 40LL); if ( !v8 ) return 0; v3 = EVP_PKEY_CTX_get0_pkey(v8); if ( !v3 ) return 0; } else { v3 = *(_QWORD *)(*((_QWORD *)a1 + 1) + 40LL); } v4 = *(_QWORD *)(v3 + 16); if ( v4 ) { v5 = *(__int64 (**)(void))(v4 + 176); if ( v5 ) { v6 = v5(); if ( v6 == -2 ) { ERR_put_error(46, 171, 125, (__int64)"crypto/cms/cms_env.c", 71); return 0; } if ( v6 <= 0 ) { ERR_put_error(46, 171, 111, (__int64)"crypto/cms/cms_env.c", 75); return 0; } } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source