daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest May 16th, 2018 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var name = Encoding.ASCII.GetBytes(textBox1.Text);
  2.             if (allocmem == 0)
  3.             {
  4.                 allocmem = lib.AllocateMemory(0x100);
  5.                 lib.WriteBytes(allocmem, name); // name    
  6.  
  7.                 lib.WriteByte((uint)(allocmem + name.Length), 0);
  8.  
  9.                 lib.WriteByte(allocmem + 48, 5);   //race
  10.                 lib.WriteByte(allocmem + 49, 1);   //class
  11.                 lib.WriteByte(allocmem + 50, 1);   //sexID
  12.                 lib.WriteByte(allocmem + 51, 1);   //skin
  13.                 lib.WriteByte(allocmem + 52, 1);   //face
  14.                 lib.WriteByte(allocmem + 53, 2);   //hairStyleID;
  15.                 lib.WriteByte(allocmem + 54, 8);   //hairColorID;
  16.                 lib.WriteByte(allocmem + 55, 5);   //facialHairStyleID;
  17.             }
  18.    
  19.  
  20.             lib.Asm.AddLine("mov ecx, {0}", allocmem);
  21.             lib.Asm.AddLine("call {0}", 0x0046B290);
  22.             lib.Asm.AddLine("ret");
  23.  
  24.             uint cave2 = lib.AllocateMemory(0x100);
  25.             lib.Asm.InjectAndExecute(cave2);
  26.  
  27.           //  lib.FreeMemory(allocmem);
  28.             lib.FreeMemory(cave2);
  29.             lib.Asm.Clear();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top