// // CMS_EnvelopedData_create from 0x872e54 to 0x872f50 (252 bytes) // // 1 xrefs: // > @ 0x6a05c // // 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 // int *__fastcall CMS_EnvelopedData_create(int a1) { int *v2; // r0 int *v3; // r4 int v4; // r3 _DWORD *v6; // r0 char ***v7; // r5 char **v8; // r0 v2 = (int *)CMS_ContentInfo_new(); v3 = v2; if ( !v2 ) goto LABEL_8; if ( v2[1] ) { v4 = cms_get0_enveloped(v2); } else { v6 = ASN1_item_new((int)&CMS_EnvelopedData_it); v3[1] = (int)v6; if ( !v6 ) { ERR_put_error(46, 126, 65, (int)"crypto/cms/cms_env.c", 38); goto LABEL_8; } *v6 = 0; v7 = (char ***)v6[3]; *v7 = OBJ_nid2obj(0x15u); ASN1_OBJECT_free((_DWORD *)*v3); v8 = OBJ_nid2obj(0x17u); v4 = v3[1]; *v3 = (int)v8; } if ( v4 && cms_EncryptedContent_init(*(_DWORD *)(v4 + 12), a1, 0, 0) ) return v3; LABEL_8: CMS_ContentInfo_free(v3); ERR_put_error(46, 124, 65, (int)"crypto/cms/cms_env.c", 120); return nullptr; }