krot

vmware detection

Nov 11th, 2017
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. unsigned vmware(void)
  2. {
  3. __asm{
  4.         mov eax, 0x564d5868
  5.         mov cl, 0xa
  6.         mov dx, 0x5658
  7.         in eax, dx
  8.         cmp ebx, 0
  9.         jne matrix
  10.         xor eax, eax
  11.         ret
  12.         matrix:
  13.         mov eax, 1};
  14. }
  15.   if(vmware()) try
RAW Paste Data