mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-21 10:56:10 +00:00
58 lines
1.8 KiB
C#
58 lines
1.8 KiB
C#
|
// Decompiled with JetBrains decompiler
|
|||
|
// Type: Microsoft.InfoCards.DisplayClaim
|
|||
|
// Assembly: infocard, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
|||
|
// MVID: ADE0A079-11DB-4A46-8BDE-D2A592CA8DEA
|
|||
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Expiro.w-67b630ead60119692b9abbdfd8717c96904ef041127c2cae033c86b718eaa61e.exe
|
|||
|
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.IO;
|
|||
|
|
|||
|
namespace Microsoft.InfoCards
|
|||
|
{
|
|||
|
internal class DisplayClaim
|
|||
|
{
|
|||
|
private string m_name;
|
|||
|
private List<string> m_value;
|
|||
|
private string m_description;
|
|||
|
private string m_uri;
|
|||
|
|
|||
|
public string Name
|
|||
|
{
|
|||
|
get => this.m_name;
|
|||
|
set => this.m_name = value;
|
|||
|
}
|
|||
|
|
|||
|
public string Id => this.m_uri;
|
|||
|
|
|||
|
public DisplayClaim(BinaryReader reader) => this.Deserialize(reader);
|
|||
|
|
|||
|
public DisplayClaim(string name, List<string> value, string description, string uri)
|
|||
|
{
|
|||
|
this.m_name = name;
|
|||
|
this.m_value = value;
|
|||
|
this.m_description = description;
|
|||
|
this.m_uri = uri;
|
|||
|
}
|
|||
|
|
|||
|
public void Serialize(BinaryWriter writer)
|
|||
|
{
|
|||
|
Utility.SerializeString(writer, this.m_name);
|
|||
|
writer.Write((uint) this.m_value.Count);
|
|||
|
foreach (string str in this.m_value)
|
|||
|
Utility.SerializeString(writer, str);
|
|||
|
Utility.SerializeString(writer, this.m_description);
|
|||
|
Utility.SerializeString(writer, this.m_uri);
|
|||
|
}
|
|||
|
|
|||
|
public void Deserialize(BinaryReader reader)
|
|||
|
{
|
|||
|
this.m_name = Utility.DeserializeString(reader);
|
|||
|
uint num = reader.ReadUInt32();
|
|||
|
for (uint index = 0; index < num; ++index)
|
|||
|
this.m_value.Add(Utility.DeserializeString(reader));
|
|||
|
this.m_description = Utility.DeserializeString(reader);
|
|||
|
this.m_uri = Utility.DeserializeString(reader);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|