Exemplo n.º 1
0
 private static void GenPPO(X86Generator gen, IntPtr baseaddr, int codeoff, int stroff)
 {
     gen.Clear();
     gen.SetInstall(baseaddr + codeoff);
     gen.PushReg(X86Generator.Registers.ESI);
     gen.PushR(baseaddr + stroff);
 }
Exemplo n.º 2
0
 private static void GenSPM(X86Generator gen, IntPtr baseaddr, int codeoff)
 {
     gen.Clear();
     gen.SetInstall(baseaddr + codeoff);
     gen.SubRI(X86Generator.Registers.ESP, 0x28);
     gen.PushReg(X86Generator.Registers.ESI);
     gen.MovRR(X86Generator.Registers.ESI, X86Generator.Registers.ECX);
 }