{"type": "func", "start": 14813364, "end": 14813480, "name": "CMS_RecipientInfo_set0_password", "pseudocode": "// \n// CMS_RecipientInfo_set0_password from 0xe208b4 to 0xe20928 (116 bytes)\n// \n// 2 xrefs:\n// > CMS_add0_recipient_password @ 0xe20afc\n// > <???> @ 0x4f6f8\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_RecipientInfo_set0_password(__int64 a1, char *a2, size_t a3)\n{\n  __int64 v3; // x19\n\n  if ( *(_DWORD *)a1 == 3 )\n  {\n    v3 = *(_QWORD *)(a1 + 8);\n    *(_QWORD *)(v3 + 32) = a2;\n    if ( a2 )\n    {\n      if ( (a3 & 0x8000000000000000LL) != 0 )\n        a3 = strlen(a2);\n    }\n    *(_QWORD *)(v3 + 40) = a3;\n    return 1;\n  }\n  else\n  {\n    ERR_put_error(46, 168, 177, (__int64)\"crypto/cms/cms_pwri.c\", 26);\n    return 0;\n  }\n}", "assembly": "; \n; CMS_RecipientInfo_set0_password from 0xe208b4 to 0xe20928 (116 bytes)\n; \n; 2 xrefs:\n; > CMS_add0_recipient_password @ 0xe20afc\n; > <???> @ 0x4f6f8\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_20]!                                ; +0x0, 0xe208b4\nMOV             X29, SP                                                ; +0x4, 0xe208b8\nLDR             W3, [X0]                                               ; +0x8, 0xe208bc\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0xe208c0\nCMP             W3, #3                                                 ; +0x10, 0xe208c4\nB.NE            loc_E208FC                                             ; +0x14, 0xe208c8\nLDR             X19, [X0,#8]                                           ; +0x18, 0xe208cc\nSTR             X1, [X19,#0x20]                                        ; +0x1c, 0xe208d0\nCBZ             X1, loc_E208E8                                         ; +0x20, 0xe208d4\nTBZ             X2, #0x3F, loc_E208E8 ; '?'                            ; +0x24, 0xe208d8\nMOV             X0, X1; char *                                         ; +0x28, 0xe208dc\nBL              .strlen                                                ; +0x2c, 0xe208e0\nMOV             X2, X0                                                 ; +0x30, 0xe208e4\nSTR             X2, [X19,#0x28]                                        ; +0x34, 0xe208e8\nMOV             W0, #1                                                 ; +0x38, 0xe208ec\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x3c, 0xe208f0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x40, 0xe208f4\nRET                                                                    ; +0x44, 0xe208f8\nADRP            X3, #aCryptoCmsCmsPw@PAGE; \"crypto/cms/cms_pwri.c\"     ; +0x48, 0xe208fc\nMOV             W0, #0x2E ; '.'                                        ; +0x4c, 0xe20900\nMOV             W1, #0xA8                                              ; +0x50, 0xe20904\nMOV             W2, #0xB1                                              ; +0x54, 0xe20908\nADD             X3, X3, #aCryptoCmsCmsPw@PAGEOFF; \"crypto/cms/cms_pwri.c\" ; +0x58, 0xe2090c\nMOV             W4, #0x1A                                              ; +0x5c, 0xe20910\nBL              ERR_put_error                                          ; +0x60, 0xe20914\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x64, 0xe20918\nMOV             W0, #0                                                 ; +0x68, 0xe2091c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x6c, 0xe20920\nRET                                                                    ; +0x70, 0xe20924", "xrefs": ["CMS_add0_recipient_password @ 0xe20afc", "<???> @ 0x4f6f8"], "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"}