mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-26 13:25:26 +00:00
55 lines
1.4 KiB
C#
55 lines
1.4 KiB
C#
|
// Decompiled with JetBrains decompiler
|
|||
|
// Type: au
|
|||
|
// Assembly: SpeechGridService, Version=1.0.0.81, Culture=neutral, PublicKeyToken=0b1522110151bc44
|
|||
|
// MVID: EC73F2A1-74C8-4B65-87F0-244E72253AC2
|
|||
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Trojan.Win32.Patched.mf-e8127d5ac262f8a18c98990240938f5b10bb0eb14e19d9b9912199b94bd711a1.exe
|
|||
|
|
|||
|
using System;
|
|||
|
using System.IO;
|
|||
|
using System.Reflection;
|
|||
|
|
|||
|
internal static class au
|
|||
|
{
|
|||
|
internal static bool a(string A_0)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
if (!Directory.Exists(A_0))
|
|||
|
Directory.CreateDirectory(A_0);
|
|||
|
string path = Path.Combine(A_0, new Random().Next().ToString());
|
|||
|
File.Create(path).Dispose();
|
|||
|
File.Delete(path);
|
|||
|
return true;
|
|||
|
}
|
|||
|
catch
|
|||
|
{
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
internal static string a(params ax[] A_0)
|
|||
|
{
|
|||
|
foreach (int num in A_0)
|
|||
|
{
|
|||
|
string A_0_1;
|
|||
|
switch (num)
|
|||
|
{
|
|||
|
case 0:
|
|||
|
A_0_1 = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
|||
|
break;
|
|||
|
case 1:
|
|||
|
A_0_1 = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "SpeechGrid");
|
|||
|
break;
|
|||
|
case 2:
|
|||
|
A_0_1 = Path.GetTempPath();
|
|||
|
break;
|
|||
|
default:
|
|||
|
continue;
|
|||
|
}
|
|||
|
if (au.a(A_0_1))
|
|||
|
return A_0_1;
|
|||
|
}
|
|||
|
return (string) null;
|
|||
|
}
|
|||
|
}
|