{"type": "func", "start": 15185416, "end": 15185692, "name": "CMS_EncryptedData_set1_key", "pseudocode": "// \n// CMS_EncryptedData_set1_key from 0xe7b608 to 0xe7b71c (276 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x3a0e0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 0xe7b608 to 0xe7b71c (276 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x3a0e0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xe7b608\nMOV             X29, SP                                                ; +0x4, 0xe7b60c\nSTR             X19, [SP,#0x40+var_30]                                 ; +0x8, 0xe7b610\nMOV             X19, X0                                                ; +0xc, 0xe7b614\nCBZ             X2, loc_E7B68C                                         ; +0x10, 0xe7b618\nCBZ             X3, loc_E7B68C                                         ; +0x14, 0xe7b61c\nSTR             X3, [X29,#0x40+var_18]                                 ; +0x18, 0xe7b620\nSTR             X2, [X29,#0x40+var_10]                                 ; +0x1c, 0xe7b624\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x20, 0xe7b628\nCBZ             X1, loc_E7B6B8                                         ; +0x24, 0xe7b62c\nADRP            X0, #CMS_EncryptedData_it_ptr@PAGE                     ; +0x28, 0xe7b630\nLDR             X0, [X0,#CMS_EncryptedData_it_ptr@PAGEOFF]; CMS_EncryptedData_it ; +0x2c, 0xe7b634\nBL              ASN1_item_new                                          ; +0x30, 0xe7b638\nSTR             X0, [X19,#8]                                           ; +0x34, 0xe7b63c\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x38, 0xe7b640\nLDR             X2, [X29,#0x40+var_10]                                 ; +0x3c, 0xe7b644\nLDR             X3, [X29,#0x40+var_18]                                 ; +0x40, 0xe7b648\nCBZ             X0, loc_E7B6DC                                         ; +0x44, 0xe7b64c\nMOV             W0, #0x1A                                              ; +0x48, 0xe7b650\nSTR             X3, [X29,#0x40+var_18]                                 ; +0x4c, 0xe7b654\nSTR             X2, [X29,#0x40+var_10]                                 ; +0x50, 0xe7b658\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x54, 0xe7b65c\nBL              OBJ_nid2obj                                            ; +0x58, 0xe7b660\nLDR             X4, [X19,#8]                                           ; +0x5c, 0xe7b664\nSTR             X0, [X19]                                              ; +0x60, 0xe7b668\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x64, 0xe7b66c\nLDR             X2, [X29,#0x40+var_10]                                 ; +0x68, 0xe7b670\nLDR             X3, [X29,#0x40+var_18]                                 ; +0x6c, 0xe7b674\nSTR             XZR, [X4]                                              ; +0x70, 0xe7b678\nLDR             X19, [SP,#0x40+var_30]                                 ; +0x74, 0xe7b67c\nLDR             X0, [X4,#8]                                            ; +0x78, 0xe7b680\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x7c, 0xe7b684\nB               cms_EncryptedContent_init                              ; +0x80, 0xe7b688\nADRP            X3, #aCryptoCmsCmsEn_0@PAGE; \"crypto/cms/cms_enc.c\"    ; +0x84, 0xe7b68c\nMOV             W0, #0x2E ; '.'                                        ; +0x88, 0xe7b690\nMOV             W1, #0x7B ; '{'                                        ; +0x8c, 0xe7b694\nMOV             W2, #0x82                                              ; +0x90, 0xe7b698\nADD             X3, X3, #aCryptoCmsCmsEn_0@PAGEOFF; \"crypto/cms/cms_enc.c\" ; +0x94, 0xe7b69c\nMOV             W4, #0xBB                                              ; +0x98, 0xe7b6a0\nBL              ERR_put_error                                          ; +0x9c, 0xe7b6a4\nMOV             W0, #0                                                 ; +0xa0, 0xe7b6a8\nLDR             X19, [SP,#0x40+var_30]                                 ; +0xa4, 0xe7b6ac\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa8, 0xe7b6b0\nRET                                                                    ; +0xac, 0xe7b6b4\nLDR             X0, [X0]                                               ; +0xb0, 0xe7b6b8\nBL              OBJ_obj2nid                                            ; +0xb4, 0xe7b6bc\nCMP             W0, #0x1A                                              ; +0xb8, 0xe7b6c0\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xbc, 0xe7b6c4\nLDR             X2, [X29,#0x40+var_10]                                 ; +0xc0, 0xe7b6c8\nLDR             X3, [X29,#0x40+var_18]                                 ; +0xc4, 0xe7b6cc\nB.NE            loc_E7B6FC                                             ; +0xc8, 0xe7b6d0\nLDR             X4, [X19,#8]                                           ; +0xcc, 0xe7b6d4\nB               loc_E7B67C                                             ; +0xd0, 0xe7b6d8\nADRP            X3, #aCryptoCmsCmsEn_0@PAGE; \"crypto/cms/cms_enc.c\"    ; +0xd4, 0xe7b6dc\nMOV             W0, #0x2E ; '.'                                        ; +0xd8, 0xe7b6e0\nMOV             W1, #0x7B ; '{'                                        ; +0xdc, 0xe7b6e4\nMOV             W2, #0x41 ; 'A'                                        ; +0xe0, 0xe7b6e8\nADD             X3, X3, #aCryptoCmsCmsEn_0@PAGEOFF; \"crypto/cms/cms_enc.c\" ; +0xe4, 0xe7b6ec\nMOV             W4, #0xC1                                              ; +0xe8, 0xe7b6f0\nBL              ERR_put_error                                          ; +0xec, 0xe7b6f4\nB               loc_E7B6A8                                             ; +0xf0, 0xe7b6f8\nADRP            X3, #aCryptoCmsCmsEn_0@PAGE; \"crypto/cms/cms_enc.c\"    ; +0xf4, 0xe7b6fc\nMOV             W0, #0x2E ; '.'                                        ; +0xf8, 0xe7b700\nMOV             W1, #0x7B ; '{'                                        ; +0xfc, 0xe7b704\nMOV             W2, #0x7A ; 'z'                                        ; +0x100, 0xe7b708\nADD             X3, X3, #aCryptoCmsCmsEn_0@PAGEOFF; \"crypto/cms/cms_enc.c\" ; +0x104, 0xe7b70c\nMOV             W4, #0xC7                                              ; +0x108, 0xe7b710\nBL              ERR_put_error                                          ; +0x10c, 0xe7b714\nB               loc_E7B6A8                                             ; +0x110, 0xe7b718", "xrefs": ["<???> @ 0x3a0e0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}