home *** CD-ROM | disk | FTP | other *** search
/ Cracking 1 / Cracking I..iso / Tools / Debuggery / TRW2000 / PLUGSDK / PEDUMP / PEDUMPA.ASM < prev    next >
Encoding:
Assembly Source File  |  2000-02-24  |  677 b   |  39 lines

  1.  
  2.     .386
  3.     NO_SEGMENTS=1
  4.     MASM6    EQU    1
  5.     MASM    EQU    1
  6.  
  7.     include vmm.inc        ;it will reset model
  8.  
  9.     .model    flat,stdcall
  10.     include    ..\include\macro.inc
  11.  
  12.     PUBLIC    R3_read
  13.     PUBLIC    DOSEXE
  14.  
  15. .data
  16. DOSEXE    db 4Dh,5Ah,90h,00,03,00,00,00,04,00,00h,00,0FFh,0FFh,00,00
  17.     db 0B8h,00,00,00,00,00,00,00,40h,00h,00h,00,00,00,00,00
  18.     db 20h-4 dup(0)
  19.     dd 80h        ;pe head ptr
  20.  
  21.     db 0eh, 1fh, 0BAh, 0eh, 00, 0B4h, 09, 0CDh, 21h, 0B8h, 01, 4Ch,0CDh, 21h
  22.     db 'This program cannot'
  23.     db ' be run in DOS mode.'
  24.     db 0dh,0dh,0ah,'$'
  25.  
  26. .code
  27. R3_read    PROC    p:DWORD,len:DWORD
  28.     pushad
  29.     mov    ebx,p
  30.     xor    ecx,ecx
  31.     .while    ecx<len
  32.     mov    al,[ebx+ecx]
  33.     inc    ecx
  34.     .endw
  35.     popad
  36.     ret
  37. R3_read    ENDP
  38.  
  39.     END