// // CMS_EnvelopedData_create from 0xa87a54 to 0xa87b50 (252 bytes) // // 1 xrefs: // > @ 0x83adc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:08:53 +0000 // 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; }