{"type": "func", "start": 17427380, "end": 17427496, "name": "CMS_RecipientInfo_set0_password", "pseudocode": "// \n// CMS_RecipientInfo_set0_password from 0x109ebb4 to 0x109ec28 (116 bytes)\n// \n// 2 xrefs:\n// > CMS_add0_recipient_password @ 0x109edfc\n// > <???> @ 0x6efe0\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:17:30 +0000\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 0x109ebb4 to 0x109ec28 (116 bytes)\n; \n; 2 xrefs:\n; > CMS_add0_recipient_password @ 0x109edfc\n; > <???> @ 0x6efe0\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:17:30 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x109ebb4\nMOV             X29, SP                                                ; +0x4, 0x109ebb8\nLDR             W3, [X0]                                               ; +0x8, 0x109ebbc\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x109ebc0\nCMP             W3, #3                                                 ; +0x10, 0x109ebc4\nB.NE            loc_109EBFC                                            ; +0x14, 0x109ebc8\nLDR             X19, [X0,#8]                                           ; +0x18, 0x109ebcc\nSTR             X1, [X19,#0x20]                                        ; +0x1c, 0x109ebd0\nCBZ             X1, loc_109EBE8                                        ; +0x20, 0x109ebd4\nTBZ             X2, #0x3F, loc_109EBE8 ; '?'                           ; +0x24, 0x109ebd8\nMOV             X0, X1; char *                                         ; +0x28, 0x109ebdc\nBL              .strlen                                                ; +0x2c, 0x109ebe0\nMOV             X2, X0                                                 ; +0x30, 0x109ebe4\nSTR             X2, [X19,#0x28]                                        ; +0x34, 0x109ebe8\nMOV             W0, #1                                                 ; +0x38, 0x109ebec\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x3c, 0x109ebf0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x40, 0x109ebf4\nRET                                                                    ; +0x44, 0x109ebf8\nADRP            X3, #aCryptoCmsCmsPw@PAGE; \"crypto/cms/cms_pwri.c\"     ; +0x48, 0x109ebfc\nMOV             W0, #0x2E ; '.'                                        ; +0x4c, 0x109ec00\nMOV             W1, #0xA8                                              ; +0x50, 0x109ec04\nMOV             W2, #0xB1                                              ; +0x54, 0x109ec08\nADD             X3, X3, #aCryptoCmsCmsPw@PAGEOFF; \"crypto/cms/cms_pwri.c\" ; +0x58, 0x109ec0c\nMOV             W4, #0x1A                                              ; +0x5c, 0x109ec10\nBL              ERR_put_error                                          ; +0x60, 0x109ec14\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x64, 0x109ec18\nMOV             W0, #0                                                 ; +0x68, 0x109ec1c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x6c, 0x109ec20\nRET                                                                    ; +0x70, 0x109ec24", "xrefs": ["CMS_add0_recipient_password @ 0x109edfc", "<???> @ 0x6efe0"], "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"}