{"type": "func", "start": 8871648, "end": 8871776, "name": "CMS_RecipientInfo_set0_password", "pseudocode": "// \n// CMS_RecipientInfo_set0_password from 0x875ee0 to 0x875f60 (128 bytes)\n// \n// 2 xrefs:\n// > CMS_add0_recipient_password @ 0x876140\n// > <???> @ 0x6a52c\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\nint __fastcall CMS_RecipientInfo_set0_password(_DWORD *a1, char *a2, size_t a3)\n{\n  int v3; // r4\n  size_t v4; // r3\n\n  if ( *a1 == 3 )\n  {\n    v3 = a1[1];\n    if ( a2 )\n      v4 = a3 >> 31;\n    else\n      v4 = 0;\n    *(_DWORD *)(v3 + 16) = a2;\n    if ( v4 )\n      a3 = strlen(a2);\n    *(_DWORD *)(v3 + 20) = a3;\n    return 1;\n  }\n  else\n  {\n    ERR_put_error(46, 168, 177, (int)\"crypto/cms/cms_pwri.c\", 26);\n    return 0;\n  }\n}", "assembly": "; \n; CMS_RecipientInfo_set0_password from 0x875ee0 to 0x875f60 (128 bytes)\n; \n; 2 xrefs:\n; > CMS_add0_recipient_password @ 0x876140\n; > <???> @ 0x6a52c\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\nLDR             R3, [R0]                                               ; +0x0, 0x875ee0\nPUSH            {R4,LR}                                                ; +0x4, 0x875ee4\nCMP             R3, #3                                                 ; +0x8, 0x875ee8\nSUB             SP, SP, #8                                             ; +0xc, 0x875eec\nBNE             loc_875F34                                             ; +0x10, 0x875ef0\nMOV             R3, R2,LSR#31                                          ; +0x14, 0x875ef4\nLDR             R4, [R0,#4]                                            ; +0x18, 0x875ef8\nCMP             R1, #0                                                 ; +0x1c, 0x875efc\nMOVEQ           R3, #0                                                 ; +0x20, 0x875f00\nANDNE           R3, R3, #1                                             ; +0x24, 0x875f04\nCMP             R3, #0                                                 ; +0x28, 0x875f08\nSTR             R1, [R4,#0x10]                                         ; +0x2c, 0x875f0c\nBNE             loc_875F24                                             ; +0x30, 0x875f10\nMOV             R0, #1                                                 ; +0x34, 0x875f14\nSTR             R2, [R4,#0x14]                                         ; +0x38, 0x875f18\nADD             SP, SP, #8                                             ; +0x3c, 0x875f1c\nPOP             {R4,PC}                                                ; +0x40, 0x875f20\nMOV             R0, R1; char *                                         ; +0x44, 0x875f24\nBL              strlen                                                 ; +0x48, 0x875f28\nMOV             R2, R0                                                 ; +0x4c, 0x875f2c\nB               loc_875F14                                             ; +0x50, 0x875f30\nMOV             R3, #0x1A                                              ; +0x54, 0x875f34\nSTR             R3, [SP,#8+var_8]                                      ; +0x58, 0x875f38\nLDR             R3, =(aCryptoCmsCmsPw - 0x875F54); \"crypto/cms/cms_pwri.c\" ; +0x5c, 0x875f3c\nMOV             R0, #0x2E ; '.'                                        ; +0x60, 0x875f40\nMOV             R1, #0xA8                                              ; +0x64, 0x875f44\nMOV             R2, #0xB1                                              ; +0x68, 0x875f48\nADD             R3, PC, R3; \"crypto/cms/cms_pwri.c\"                    ; +0x6c, 0x875f4c\nBL              ERR_put_error                                          ; +0x70, 0x875f50\nMOV             R0, #0                                                 ; +0x74, 0x875f54\nADD             SP, SP, #8                                             ; +0x78, 0x875f58\nPOP             {R4,PC}                                                ; +0x7c, 0x875f5c", "xrefs": ["CMS_add0_recipient_password @ 0x876140", "<???> @ 0x6a52c"], "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"}