mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-21 02:46:10 +00:00
f2ac1ece55
add
48 lines
1.6 KiB
C#
48 lines
1.6 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Microsoft.InfoCards.KeyBlock
|
|
// 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.Runtime.InteropServices;
|
|
|
|
namespace Microsoft.InfoCards
|
|
{
|
|
[StructLayout(LayoutKind.Explicit, Size = 592)]
|
|
internal struct KeyBlock
|
|
{
|
|
public const int StructSize = 592;
|
|
public const int EncryptedKeyBlockSize = 512;
|
|
public const int Pkcs5IVBlockSize = 32;
|
|
public const int SaltBlockSize = 32;
|
|
public const int IVOffset = 0;
|
|
public const int SaltOffset = 32;
|
|
public const int IterationCountOffset = 64;
|
|
public const int EncryptedKeySizeOffset = 68;
|
|
public const int EncryptedKeyOffset = 72;
|
|
public const int ReservedPaddingOffset = 584;
|
|
public const int KeyTypeOffset = 588;
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
|
|
[FieldOffset(0)]
|
|
public byte IV;
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
|
|
[FieldOffset(32)]
|
|
public byte Salt;
|
|
[MarshalAs(UnmanagedType.I4)]
|
|
[FieldOffset(64)]
|
|
public int IterationCount;
|
|
[MarshalAs(UnmanagedType.I4)]
|
|
[FieldOffset(68)]
|
|
public int EncryptedKeySize;
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)]
|
|
[FieldOffset(72)]
|
|
public byte EncryptedKey;
|
|
[MarshalAs(UnmanagedType.I4)]
|
|
[FieldOffset(584)]
|
|
private int ReservedPadding;
|
|
[MarshalAs(UnmanagedType.I4)]
|
|
[FieldOffset(588)]
|
|
public int KeyType;
|
|
}
|
|
}
|