{"type": "func", "start": 17798664, "end": 17798940, "name": "CMS_EncryptedData_set1_key", "pseudocode": "// \n// CMS_EncryptedData_set1_key from 0x10f9608 to 0x10f971c (276 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x547c0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:18:13 +0000\n// \n\n__int64 __fastcall CMS_EncryptedData_set1_key(__int64 *a1, char **a2, const void *a3, void *a4)\n{\n  __int64 v5; // x0\n  char **v6; // x0\n  __int64 v7; // x4\n  char **v8; // x1\n  const void *v9; // x2\n  void *v10; // x3\n  int v12; // w0\n\n  if ( a3 && a4 )\n  {\n    if ( a2 )\n    {\n      v5 = ASN1_item_new((__int64)&CMS_EncryptedData_it);\n      a1[1] = v5;\n      if ( v5 )\n      {\n        v6 = OBJ_nid2obj(0x1Au);\n        v7 = a1[1];\n        *a1 = (__int64)v6;\n        v8 = a2;\n        v9 = a3;\n        v10 = a4;\n        *(_QWORD *)v7 = 0;\n        return cms_EncryptedContent_init(*(char ****)(v7 + 8), v8, v9, v10);\n      }\n      ERR_put_error(46, 123, 65, (__int64)\"crypto/cms/cms_enc.c\", 193);\n    }\n    else\n    {\n      v12 = OBJ_obj2nid(*a1);\n      v8 = nullptr;\n      v9 = a3;\n      v10 = a4;\n      if ( v12 == 26 )\n      {\n        v7 = a1[1];\n        return cms_EncryptedContent_init(*(char ****)(v7 + 8), v8, v9, v10);\n      }\n      ERR_put_error(46, 123, 122, (__int64)\"crypto/cms/cms_enc.c\", 199);\n    }\n  }\n  else\n  {\n    ERR_put_error(46, 123, 130, (__int64)\"crypto/cms/cms_enc.c\", 187);\n  }\n  return 0;\n}", "assembly": "; \n; CMS_EncryptedData_set1_key from 0x10f9608 to 0x10f971c (276 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x547c0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:18:13 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x10f9608\nMOV             X29, SP                                                ; +0x4, 0x10f960c\nSTR             X19, [SP,#0x40+var_30]                                 ; +0x8, 0x10f9610\nMOV             X19, X0                                                ; +0xc, 0x10f9614\nCBZ             X2, loc_10F968C                                        ; +0x10, 0x10f9618\nCBZ             X3, loc_10F968C                                        ; +0x14, 0x10f961c\nSTR             X3, [X29,#0x40+var_18]                                 ; +0x18, 0x10f9620\nSTR             X2, [X29,#0x40+var_10]                                 ; +0x1c, 0x10f9624\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x20, 0x10f9628\nCBZ             X1, loc_10F96B8                                        ; +0x24, 0x10f962c\nADRP            X0, #CMS_EncryptedData_it_ptr@PAGE                     ; +0x28, 0x10f9630\nLDR             X0, [X0,#CMS_EncryptedData_it_ptr@PAGEOFF]; CMS_EncryptedData_it ; +0x2c, 0x10f9634\nBL              ASN1_item_new                                          ; +0x30, 0x10f9638\nSTR             X0, [X19,#8]                                           ; +0x34, 0x10f963c\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x38, 0x10f9640\nLDR             X2, [X29,#0x40+var_10]                                 ; +0x3c, 0x10f9644\nLDR             X3, [X29,#0x40+var_18]                                 ; +0x40, 0x10f9648\nCBZ             X0, loc_10F96DC                                        ; +0x44, 0x10f964c\nMOV             W0, #0x1A                                              ; +0x48, 0x10f9650\nSTR             X3, [X29,#0x40+var_18]                                 ; +0x4c, 0x10f9654\nSTR             X2, [X29,#0x40+var_10]                                 ; +0x50, 0x10f9658\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x54, 0x10f965c\nBL              OBJ_nid2obj                                            ; +0x58, 0x10f9660\nLDR             X4, [X19,#8]                                           ; +0x5c, 0x10f9664\nSTR             X0, [X19]                                              ; +0x60, 0x10f9668\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x64, 0x10f966c\nLDR             X2, [X29,#0x40+var_10]                                 ; +0x68, 0x10f9670\nLDR             X3, [X29,#0x40+var_18]                                 ; +0x6c, 0x10f9674\nSTR             XZR, [X4]                                              ; +0x70, 0x10f9678\nLDR             X19, [SP,#0x40+var_30]                                 ; +0x74, 0x10f967c\nLDR             X0, [X4,#8]                                            ; +0x78, 0x10f9680\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x7c, 0x10f9684\nB               cms_EncryptedContent_init                              ; +0x80, 0x10f9688\nADRP            X3, #aCryptoCmsCmsEn_0@PAGE; \"crypto/cms/cms_enc.c\"    ; +0x84, 0x10f968c\nMOV             W0, #0x2E ; '.'                                        ; +0x88, 0x10f9690\nMOV             W1, #0x7B ; '{'                                        ; +0x8c, 0x10f9694\nMOV             W2, #0x82                                              ; +0x90, 0x10f9698\nADD             X3, X3, #aCryptoCmsCmsEn_0@PAGEOFF; \"crypto/cms/cms_enc.c\" ; +0x94, 0x10f969c\nMOV             W4, #0xBB                                              ; +0x98, 0x10f96a0\nBL              ERR_put_error                                          ; +0x9c, 0x10f96a4\nMOV             W0, #0                                                 ; +0xa0, 0x10f96a8\nLDR             X19, [SP,#0x40+var_30]                                 ; +0xa4, 0x10f96ac\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa8, 0x10f96b0\nRET                                                                    ; +0xac, 0x10f96b4\nLDR             X0, [X0]                                               ; +0xb0, 0x10f96b8\nBL              OBJ_obj2nid                                            ; +0xb4, 0x10f96bc\nCMP             W0, #0x1A                                              ; +0xb8, 0x10f96c0\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xbc, 0x10f96c4\nLDR             X2, [X29,#0x40+var_10]                                 ; +0xc0, 0x10f96c8\nLDR             X3, [X29,#0x40+var_18]                                 ; +0xc4, 0x10f96cc\nB.NE            loc_10F96FC                                            ; +0xc8, 0x10f96d0\nLDR             X4, [X19,#8]                                           ; +0xcc, 0x10f96d4\nB               loc_10F967C                                            ; +0xd0, 0x10f96d8\nADRP            X3, #aCryptoCmsCmsEn_0@PAGE; \"crypto/cms/cms_enc.c\"    ; +0xd4, 0x10f96dc\nMOV             W0, #0x2E ; '.'                                        ; +0xd8, 0x10f96e0\nMOV             W1, #0x7B ; '{'                                        ; +0xdc, 0x10f96e4\nMOV             W2, #0x41 ; 'A'                                        ; +0xe0, 0x10f96e8\nADD             X3, X3, #aCryptoCmsCmsEn_0@PAGEOFF; \"crypto/cms/cms_enc.c\" ; +0xe4, 0x10f96ec\nMOV             W4, #0xC1                                              ; +0xe8, 0x10f96f0\nBL              ERR_put_error                                          ; +0xec, 0x10f96f4\nB               loc_10F96A8                                            ; +0xf0, 0x10f96f8\nADRP            X3, #aCryptoCmsCmsEn_0@PAGE; \"crypto/cms/cms_enc.c\"    ; +0xf4, 0x10f96fc\nMOV             W0, #0x2E ; '.'                                        ; +0xf8, 0x10f9700\nMOV             W1, #0x7B ; '{'                                        ; +0xfc, 0x10f9704\nMOV             W2, #0x7A ; 'z'                                        ; +0x100, 0x10f9708\nADD             X3, X3, #aCryptoCmsCmsEn_0@PAGEOFF; \"crypto/cms/cms_enc.c\" ; +0x104, 0x10f970c\nMOV             W4, #0xC7                                              ; +0x108, 0x10f9710\nBL              ERR_put_error                                          ; +0x10c, 0x10f9714\nB               loc_10F96A8                                            ; +0x110, 0x10f9718", "xrefs": ["<???> @ 0x547c0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}