Skip to content

Instantly share code, notes, and snippets.

@blaquee
Last active October 16, 2015 13:50
Show Gist options
  • Select an option

  • Save blaquee/4d75fb7d0017bc5ab312 to your computer and use it in GitHub Desktop.

Select an option

Save blaquee/4d75fb7d0017bc5ab312 to your computer and use it in GitHub Desktop.
junk code emu
push 20 ;push random value on stack
mov eax, 0x11111111 ;assign eax a random value
mov ecx, 10 ;assign ecx a value
mov ebx, 0x33333333 ;assign ebx a random value
xor eax, ebx ;exclusive or eax with ebx
mov ebx, 20 ;assign new value to ebx
add eax, ecx ;compute a sum of eax and ecx
pop eax ;overwrite everything we just did on eax
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment