{"type": "func", "start": 8864932, "end": 8865040, "name": "CMS_RecipientInfo_kari_get0_alg", "pseudocode": "// \n// CMS_RecipientInfo_kari_get0_alg from 0x8744a4 to 0x874510 (108 bytes)\n// \n// 5 xrefs:\n// > sub_7DF150 @ 0x7df2b8\n// > sub_7DF150 @ 0x7df48c\n// > sub_7E3D80 @ 0x7e4078\n// > sub_7E3D80 @ 0x7e41ac\n// > <???> @ 0x6097c\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_kari_get0_alg(_DWORD *a1, _DWORD *a2, _DWORD *a3)\n{\n  int result; // r0\n\n  if ( *a1 == 1 )\n  {\n    if ( a2 )\n      *a2 = *(_DWORD *)(a1[1] + 12);\n    if ( a3 )\n      a2 = (_DWORD *)a1[1];\n    result = 1;\n    if ( a3 )\n      *a3 = a2[2];\n  }\n  else\n  {\n    ERR_put_error(46, 175, 181, (int)\"crypto/cms/cms_kari.c\", 28);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; CMS_RecipientInfo_kari_get0_alg from 0x8744a4 to 0x874510 (108 bytes)\n; \n; 5 xrefs:\n; > sub_7DF150 @ 0x7df2b8\n; > sub_7DF150 @ 0x7df48c\n; > sub_7E3D80 @ 0x7e4078\n; > sub_7E3D80 @ 0x7e41ac\n; > <???> @ 0x6097c\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, 0x8744a4\nCMP             R3, #1                                                 ; +0x4, 0x8744a8\nBNE             loc_8744D8                                             ; +0x8, 0x8744ac\nCMP             R1, #0                                                 ; +0xc, 0x8744b0\nLDRNE           R12, [R0,#4]                                           ; +0x10, 0x8744b4\nLDRNE           R12, [R12,#0xC]                                        ; +0x14, 0x8744b8\nSTRNE           R12, [R1]                                              ; +0x18, 0x8744bc\nCMP             R2, #0                                                 ; +0x1c, 0x8744c0\nLDRNE           R1, [R0,#4]                                            ; +0x20, 0x8744c4\nMOV             R0, R3                                                 ; +0x24, 0x8744c8\nLDRNE           R1, [R1,#8]                                            ; +0x28, 0x8744cc\nSTRNE           R1, [R2]                                               ; +0x2c, 0x8744d0\nBX              LR                                                     ; +0x30, 0x8744d4\nPUSH            {LR}                                                   ; +0x34, 0x8744d8\nMOV             R3, #0x1C                                              ; +0x38, 0x8744dc\nSUB             SP, SP, #0xC                                           ; +0x3c, 0x8744e0\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x40, 0x8744e4\nLDR             R3, =(aCryptoCmsCmsKa - 0x874500); \"crypto/cms/cms_kari.c\" ; +0x44, 0x8744e8\nMOV             R0, #0x2E ; '.'                                        ; +0x48, 0x8744ec\nMOV             R1, #0xAF                                              ; +0x4c, 0x8744f0\nMOV             R2, #0xB5                                              ; +0x50, 0x8744f4\nADD             R3, PC, R3; \"crypto/cms/cms_kari.c\"                    ; +0x54, 0x8744f8\nBL              ERR_put_error                                          ; +0x58, 0x8744fc\nMOV             R3, #0                                                 ; +0x5c, 0x874500\nMOV             R0, R3                                                 ; +0x60, 0x874504\nADD             SP, SP, #0xC                                           ; +0x64, 0x874508\nPOP             {PC}                                                   ; +0x68, 0x87450c", "xrefs": ["sub_7DF150 @ 0x7df2b8", "sub_7DF150 @ 0x7df48c", "sub_7E3D80 @ 0x7e4078", "sub_7E3D80 @ 0x7e41ac", "<???> @ 0x6097c"], "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"}