mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-23 20:05:26 +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: ADE0A079-11DB-4A46-8BDE-D2A592CA8DEA
|
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Virus.Win32.Expiro.w-1f15ee7e9f7da02b6bfb4c5a5e6484eb9fa71b82d3699c54bcc7a31794b4a66d.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());
|
|
}
|
|
}
|
|
}
|