home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / LiuTaoTao / crhwinfo.txt < prev    next >
Text File  |  2000-05-25  |  2KB  |  54 lines

  1. Software name:
  2.        HWiNFO  Version 4.2.2  Oct-20-1997
  3.  
  4.   The file 'hwinfo.exe' begin with:
  5.             V  V                     V  V
  6. 0000: 4D 5A 50 01 65 01 00 00  02 00 F3 4B FF FF 00 00 MZP.e......K....
  7. 0010: 30 00 00 00 40 00 00 00  1C 00 48 57 69 4E 46 4F 0...@.....HWiNFO
  8.  
  9.   This means it needs
  10.         150h*200h + 4bf30h = 75f30h
  11.   bytes memory to run ! But we only have 0-9ffff, DOS will use some,
  12.   TR will use 120K, How can I trace it in TR ?
  13.  
  14.   Does it really need so much memory ? Lets have a test:
  15.  
  16. (1) Change 'hwinfo.exe' offset 0ah from 'f3 4b' to 'f3 0b'.
  17. --------------------------------------------------------
  18.   Run new hwinfo.exe, OK!
  19.  
  20. (2) Now lets unpack it:
  21.  
  22.         TR hwinfo.exe           ;modified
  23.                 getknl
  24.         MKEXE
  25.  
  26.     This will create file MEM.EXE. It runs OK!
  27.  
  28. (3) File mem.exe still has a shell. I have tried to  unpack it:
  29.  
  30.         copy mem.exe mem1.exe
  31.         TR mem1.exe     ;please pay attention to SS.
  32.                         ;if SS>a000, you should optimize your memory first
  33.                 exe1
  34.                 reload
  35.                 goreg cs ax=0   ;wait a moment
  36.                 wexe1           ;wait
  37.                 exe2
  38.                 reload
  39.                 goreg cs ax=0
  40.                 wexe2
  41.                 q
  42.         MKEXE
  43.  
  44.     This make new MEM.exe, but it doesnt work !
  45.  
  46.   I donot know why the second mem.exe doesnt work, but I think it must
  47.   concern to its large size. I have tried UPC(v1.06.3) and TEU(v1.73e),
  48.   they all find the file is compiled by Borland C v3, but they all can
  49.   not get a usable new EXE file.
  50.  
  51.   TR can successfully unpack the first shell of hwinfo. And TR can unpack
  52.   the second shell, but still has some problem to solve. This is what I
  53.   can do today.
  54.