home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Programming / pespin132.exe / pespin132 / Examples / pespin.inc < prev   
Encoding:
Text File  |  2005-07-21  |  1.1 KB  |  42 lines

  1. ;PESpin v1.1 - v1.3 encryption markers
  2. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3. ;Define this include file in your ASM project like:
  4. ;include pespin.inc
  5. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  6.  
  7. ;CLEAR_markers
  8. ;this macro is for define start of block for encryption (it will decoded before use and removed after use)
  9. ;tip: This type of blocks is very good use in initialize part of program
  10. ;(load DLL(s), initialize data, fill some special variables and etc.)
  11.  
  12.     CLEAR_START    macro
  13.     db    0EBh,24h
  14.     db    20h dup (0FBh)
  15.     dd    0000BD66h      
  16.     endm
  17.  
  18.         CLEAR_END    macro
  19.     db    0EBh,33h
  20.     db    02Fh  dup (0FAh)
  21.     dd    0000BD66h
  22.         endm
  23.  
  24. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  25.  
  26. ;CRYPT_markers
  27. ;this macro is for define start of block for encryption (it will decoded before use and encrypted again after use)
  28.  
  29.         CRYPT_START    macro
  30.            db    0EBh,08h
  31.            db    6 dup(0FCh)
  32.            db    27h,54h
  33.         endm
  34.  
  35.         CRYPT_END macro
  36.         db    0EBh,08h
  37.         db    6 dup(0FDh)
  38.         db    54h,37h
  39.         endm
  40.         
  41. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  42.