Advertisement
zenware

PoC Polymorphic Assembly

Apr 18th, 2012
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mov al, 12h ; set the key
  2. mov edi, codeEnd ; starting address
  3. mov ecx, codeEnd - codeStart ; length of encrypted block
  4.  
  5. ; now decrypt the code, starting from the last byte
  6. decryptLoop:
  7. xor byte [edi], al ; decrypt byte
  8. dec edi ; move to the next byte
  9. loop decryptLoop
  10.  
  11. codeStart:
  12. ; put encrypted code here
  13. codeEnd:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement