mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-22 19:36:11 +00:00
f2ac1ece55
add
50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Microsoft.InfoCards.RemoteCryptoSignHashRequest
|
|
// Assembly: infocard, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
|
// MVID: 1D4D5564-A025-490C-AF1D-DF4FBB709D1F
|
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Virus.Win32.Expiro.w-f8f9f26e940480624825f6bddbea86e70fc4aa746c4dd8efa7d98dcb477000ed.exe
|
|
|
|
using System.IO;
|
|
|
|
namespace Microsoft.InfoCards
|
|
{
|
|
internal class RemoteCryptoSignHashRequest : RpcCryptoRequest
|
|
{
|
|
private byte[] m_signature;
|
|
private byte[] m_hash;
|
|
private int m_hashType;
|
|
private int m_flags;
|
|
|
|
public RemoteCryptoSignHashRequest(
|
|
RpcCryptoContext context,
|
|
int hashType,
|
|
int flags,
|
|
byte[] hash)
|
|
: base(context)
|
|
{
|
|
this.m_hash = hash;
|
|
this.m_hashType = hashType;
|
|
this.m_flags = flags;
|
|
}
|
|
|
|
public override string Name => "RpcCryptoSignHashRequest";
|
|
|
|
public byte[] GetSignature() => this.m_signature;
|
|
|
|
protected override void MarshalOutArgs(Stream stream)
|
|
{
|
|
BinaryWriter binaryWriter = new BinaryWriter(stream);
|
|
binaryWriter.Write(this.m_hashType);
|
|
binaryWriter.Write(this.m_flags);
|
|
binaryWriter.Write(this.m_hash.Length);
|
|
binaryWriter.Write(this.m_hash, 0, this.m_hash.Length);
|
|
}
|
|
|
|
protected override void MarshalReturnArgs(Stream stream)
|
|
{
|
|
BinaryReader binaryReader = (BinaryReader) new InfoCardBinaryReader(stream);
|
|
this.m_signature = binaryReader.ReadBytes(binaryReader.ReadInt32());
|
|
}
|
|
}
|
|
}
|