mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-30 15:05:27 +00:00
77 lines
2.5 KiB
C#
77 lines
2.5 KiB
C#
|
// Decompiled with JetBrains decompiler
|
|||
|
// Type: Microsoft.InfoCards.GetLedgerEntryForRecipientRequest
|
|||
|
// 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 Microsoft.InfoCards.Diagnostics;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.IO;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace Microsoft.InfoCards
|
|||
|
{
|
|||
|
internal class GetLedgerEntryForRecipientRequest : UIAgentRequest
|
|||
|
{
|
|||
|
private Uri m_cardId;
|
|||
|
private string m_recipientId;
|
|||
|
private byte[] m_bytes;
|
|||
|
|
|||
|
public GetLedgerEntryForRecipientRequest(
|
|||
|
IntPtr rpcHandle,
|
|||
|
Stream inArgs,
|
|||
|
Stream outArgs,
|
|||
|
ClientUIRequest parent)
|
|||
|
: base(rpcHandle, inArgs, outArgs, parent)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
protected override void OnMarshalInArgs()
|
|||
|
{
|
|||
|
InfoCardTrace.Assert(this.InArgs.Length > 0L, "The user preferences must be specified");
|
|||
|
BinaryReader reader = (BinaryReader) new InfoCardBinaryReader(this.InArgs, Encoding.Unicode);
|
|||
|
this.m_cardId = Utility.DeserializeUri(reader);
|
|||
|
this.m_recipientId = Utility.DeserializeString(reader);
|
|||
|
}
|
|||
|
|
|||
|
protected override void OnProcess()
|
|||
|
{
|
|||
|
InfoCardTrace.Assert((Uri) null != this.m_cardId, "The card Id must not be null");
|
|||
|
InfoCardTrace.Assert(!string.IsNullOrEmpty(this.m_recipientId), "The thumbPrint must be specified");
|
|||
|
List<QueryParameter> queryParameterList = new List<QueryParameter>();
|
|||
|
queryParameterList.Add(new QueryParameter("ix_objecttype", new object[1]
|
|||
|
{
|
|||
|
(object) -1
|
|||
|
}));
|
|||
|
queryParameterList.Add(new QueryParameter("ix_parentid", new object[1]
|
|||
|
{
|
|||
|
(object) GlobalId.DeriveFrom(this.m_cardId.ToString())
|
|||
|
}));
|
|||
|
queryParameterList.Add(new QueryParameter("ix_name", new object[1]
|
|||
|
{
|
|||
|
(object) this.m_recipientId
|
|||
|
}));
|
|||
|
StoreConnection connection = StoreConnection.GetConnection();
|
|||
|
try
|
|||
|
{
|
|||
|
DataRow singleRow = connection.GetSingleRow(queryParameterList.ToArray());
|
|||
|
if (singleRow == null)
|
|||
|
return;
|
|||
|
this.m_bytes = singleRow.GetDataField();
|
|||
|
}
|
|||
|
finally
|
|||
|
{
|
|||
|
connection.Close();
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
protected override void OnMarshalOutArgs()
|
|||
|
{
|
|||
|
if (this.m_bytes == null)
|
|||
|
return;
|
|||
|
this.OutArgs.Write(this.m_bytes, 0, this.m_bytes.Length);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|