mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-25 12:55:28 +00:00
f2ac1ece55
add
68 lines
2.0 KiB
C#
68 lines
2.0 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Microsoft.InfoCards.RemoteCryptoDecryptRequest
|
|
// 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.IO;
|
|
|
|
namespace Microsoft.InfoCards
|
|
{
|
|
internal class RemoteCryptoDecryptRequest : RpcCryptoRequest
|
|
{
|
|
private byte[] m_buffer;
|
|
private int m_index;
|
|
private int m_length;
|
|
private bool m_final;
|
|
private int m_flags;
|
|
private int m_hashAlg;
|
|
private byte[] m_hash;
|
|
|
|
public RemoteCryptoDecryptRequest(
|
|
RpcCryptoContext context,
|
|
int flags,
|
|
bool final,
|
|
byte[] buffer,
|
|
int index,
|
|
int length,
|
|
int hashAlg,
|
|
byte[] hashValue)
|
|
: base(context)
|
|
{
|
|
this.m_buffer = buffer;
|
|
this.m_length = length;
|
|
this.m_index = index;
|
|
this.m_flags = flags;
|
|
this.m_final = final;
|
|
this.m_hashAlg = hashAlg;
|
|
this.m_hash = hashValue;
|
|
}
|
|
|
|
public override string Name => "RpcCryptoDecryptRequest";
|
|
|
|
public byte[] GetBuffer() => this.m_buffer;
|
|
|
|
public int Length => this.m_length;
|
|
|
|
public int Index => this.m_index;
|
|
|
|
protected override void MarshalOutArgs(Stream stream)
|
|
{
|
|
BinaryWriter writer = new BinaryWriter(stream);
|
|
writer.Write(this.m_flags);
|
|
writer.Write(this.m_final);
|
|
writer.Write(this.m_length);
|
|
writer.Write(this.m_buffer, this.m_index, this.m_length);
|
|
writer.Write(this.m_hashAlg);
|
|
Utility.SerializeBytes(writer, this.m_hash);
|
|
}
|
|
|
|
protected override void MarshalReturnArgs(Stream stream)
|
|
{
|
|
BinaryReader binaryReader = (BinaryReader) new InfoCardBinaryReader(stream);
|
|
this.m_length = binaryReader.ReadInt32();
|
|
binaryReader.Read(this.m_buffer, this.m_index, this.m_length);
|
|
}
|
|
}
|
|
}
|