Possible create generator exe? Php?


namespace ECBC_CDKEY
{
using System;
using System.Management;
using System.Text;

public class SoftReg
{
public char[] Charcode = new char[0x19];
public int[] intCode = new int[0x7f];
public int[] intNumber = new int[0x19];

public string getCpu()
{
string str = null;
ManagementClass class2 = new ManagementClass("win32_Processor");
using (ManagementObjectCollection.ManagementObjectEnumer ator enumerator = class2.GetInstances().GetEnumerator())
{
if (enumerator.MoveNext())
{
ManagementObject current = (ManagementObject) enumerator.Current;
str = current.Properties["Processorid"].Value.ToString();
}
}
return str;
}

public string GetDiskVolumeSerialNumber()
{
new ManagementClass("Win32_NetworkAdapterConfiguration ");
ManagementObject obj2 = new ManagementObject("win32_logicaldisk.deviceid=\"c:\ "");
obj2.Get();
return obj2.GetPropertyValue("VolumeSerialNumber").ToStri ng();
}

public string getMNum()
{
return (this.getCpu() + this.GetDiskVolumeSerialNumber()).Substring(0, 0x18);
}

public string getRNum(string MNum)
{
this.setIntCode();
for (int i = 1; i < this.Charcode.Length; i++)
{
this.Charcode[i] = Convert.ToChar(MNum.Substring(i – 1, 1));
}
for (int j = 1; j < this.intNumber.Length; j++)
{
this.intNumber[j] = this.intCode[Convert.ToInt32(this.Charcode[j])] + Convert.ToInt32(this.Charcode[j]);
}
string str = "";
for (int k = 1; k < this.intNumber.Length; k++)
{
if ((this.intNumber[k] >= 0x30) && (this.intNumber[k] <= 0x39))
{
str = str + Convert.ToChar(this.intNumber[k]).ToString();
}
else if ((this.intNumber[k] >= 0x41) && (this.intNumber[k] <= 90))
{
str = str + Convert.ToChar(this.intNumber[k]).ToString();
}
else if ((this.intNumber[k] >= 0x61) && (this.intNumber[k] <= 0x7a))
{
str = str + Convert.ToChar(this.intNumber[k]).ToString();
}
else if (this.intNumber[k] > 0x7a)
{
str = str + Convert.ToChar((int) (this.intNumber[k] – 10)).ToString();
}
else
{
str = str + Convert.ToChar((int) (this.intNumber[k] – 9)).ToString();
}
}
return str;
}

public string getRNumHEX(string MNum)
{
string str = "";
string s = this.getRNum(MNum);
byte[] bytes = Encoding.Default.GetBytes(s);
int num = 0;
foreach (byte num2 in bytes)
{
num++;
str = string.Concat(new object[] { str, num2.ToString("x"), num2, num });
}
return (str + s);
}

public void setIntCode()
{
for (int i = 1; i < this.intCode.Length; i++)
{
this.intCode[i] = i % 9;
}
}
}
}