mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-22 19:36:11 +00:00
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: 516D8B44-4448-4D2C-8B8E-FFBB3FFE472B
|
|||
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Expiro.w-69bb73081eac86b8cf86f45e33515d0095855636967076e2b593d7a30cd80a07.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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|