PEÎļþ¸ñʽ֮win32Ó¦ÓóÌÐò³õ̽
ºº×Ö×îºÃ--2008.1
¼¸ÄêÇ°Ôø´òËãѧϰPEÎļþ¸ñʽ£¬µ«ÂúƪµÄÓ¢ÓïºÍcÓïÑÔÁîÈËÉùη¡£Ò»Ö±µ½ÉϸöÔÂÒòΪÐèÒª²ÅÓ²×ÅͷƤѧÏÂÀ´¡£ÓÚÊDzο¼Á˼¸Æª1.9°æÒëÎÄ£¬Í¬Ê±¶ÔÊý¸öÎļþ·´±àÒë¡¢Ð޸ģ¬×îºó×Ô¼º×é×°ÁËÒ»¸öСexe£¬×ÜËã¶ÔPEÎļþÓÐÁËÒ»¸ö³õ²½µÄÈÏʶ¡£
±¾ÎĽö½öÑо¿µÄÊÇwin32GUI³ÌÐòÖÐÖØÒªµÄÄÚÈÝ£¬¶Ôdll£¬Çý¶¯£¬¿ØÖÆ̨ûÓÐÉæ¼°£¬ÊʺÏ×î³õѧµÄ¡¢²»¶®cÓïÑÔºÍÓ¢ÓïµÄѧϰÕßѧϰ¡£
¹¤¾ß£ºollice£¬³¬¼¶¹¤¾ß£¬±¾ÎÄÓÃÀ´PEÎļþÔÚÄÚ´æÖеÄÇé¿ö¡£
Winhex£¬¶þ½øÖƱ༹¤¾ß£¬±¾ÎÄÓÃÀ´²é¿´¡¢±à¼¡¢´´½¨PEÎļþ¡£ Restool£¬×ÊÔ´¹¤¾ß£¬±¾ÎÄÓÃÀ´ÑéÖ¤×ÊÔ´Êý¾Ý¡£
ÒÔÉϹ¤¾ß¶¼ÓÐÇ°±²µÄºº»¯ÐÞÕý°æ£¬¶Ô²»¶®ÄñÓïѧϰÕßÀ´ËµÊÇÌì´óµÄ¸£Òô¡£ÒëÕßÒ×Ò²£¬ÎÒÄÜÀí½â·ÒëÕßµÄÄÑ´¦£¬¸ø¼ÆËã»úÓ¢ÓïÈ¡¸öºÃÖÐÎÄÃûÓеãÄѶȡ£ÊÇËûÃǸøÎÒ½ÚÔ¼ÁËѧϰһÃÅÍâÓïµÄʱ¼ä£¬ÈÃÎÒ²»¶®Ó¢ÓïÒ»ÑùҲѧµ½ÁË֪ʶ¡£
±¾ÎÄÖв»ÕýÈ·µÄµØ·½ÍûÖ¸Õý£¡
Ò» ÐòÑÔ
PEÎļþÊÇ΢ÈíŪ³öÀ´µÄ¿ÉÖ´ÐÐÎļþ¸ñʽ¡£PeÎļþÖеÄÊý¾ÝÊÇÒ»½Ú½ÚÕûÆëµÄÅÅÁÐÏÂÈ¥µÄ£¬ËùÒÔÎÒÃÇ°ÑÒ»½ÚÊý¾Ý³ÆΪ¡®½Ú¡¯¡£PEÎļþµÄµÚÒ»¸ö½Ú½ÐÍ·½Ú£¬µ«ÎªÁËÓëÆäËû½ÚÇø±ð¿ª£¬ÎÒ°ÑÍ·½Ú»¹ÊǽÐÎļþÍ·¡£ÎļþÍ·ÒÀ´Î°üÀ¨dosÍ·¡¢peÍ·¡¢Ñ¡ÏîÍ·¡¢½ÚÍ·±íËĸö²¿·Ö¡£
Ö´ÐÐpeÎļþʵ¼ÊÉÏÊÇϵͳµÄpeÔØÈëÆ÷°ÑPEÎļþµÄ¸÷½ÚÓ³Éäµ½Ò»¸öÐéÄâµÄ½ø³Ì¿Õ¼äºóÔÙÖ´ÐдúÂëµÄ¡£Õâ¸öÐéÄâµÄ½ø³Ì¿Õ¼äÔÚ32λÏÂÓÐ$FFFFFFFF($±íʾʮÁù½øÖÆ,Ï൱ÓÚcµÄ0x,»ã±àµÄH),¼´4GB´óС,¼´ËùνµÄÐéÄâÄÚ´æ,ÀïÃæµÄµØÖ·Ò²¾ÍÊÇÐéÄâµØÖ·.Õâ¸öpeÎļþÔÚÐéÄâ¿Õ¼äÀï³ÆΪӳÏóÎļþ,Ó³ÏóÎļþ¿ªÊ¼µÄµØ·½½ÐÓ³ÏóÎļþ»ùÖ·.¶ø±¾ÎĺóÃæÌáµ½µÄÐéÄâµØÖ·¶¼ÊÇÏà¶ÔÐéÄâµØÖ·,¼´Ïà¶ÔÓÚÓ³ÏóÎļþ»ùÖ·µÄÆ«ÒÆÁ¿.¶øpeÎļþÖеÄÆ«ÒÆÁ¿³ÆΪÎïÀíµØÖ·.
±¾Õ¸ø³öÁ˺ܶàÖØÒª¶¨Òå,ÓÐһЩºÍ1.9°æÒëÎIJ»Ò»Ñù.ÆäʵÆðʲôÃû²»ÖØÒª,ÖØÒªµÄÊÇÄܲ»ÄÜÀí½â.ÁíÍâ,±¾ÎÄÖгƵġ¯**±í¡¯³ýÌرð˵Ã÷ÍâÖ¸**µÄÊý×é.Èç:½ÚÍ·±í,¾ÍÊǽÚÍ·µÄÊý×é.
ÏÂÃæÓÃwinhex´ò¿ª¸½¼þÖеÄst.exe¶ÔÕÕѧϰ.
¶þ dosÍ·
PeÎļþµÄ¿ªÊ¼ÊÇÎļþÍ·,ÎļþÍ·µÄ¿ªÊ¼ÊÇdosÍ·,dosÍ·µÄ¿ªÊ¼ÊÇ¡¯MZ¡¯.ÈçÏÂ: ÎïÀíµØÖ· 0 2 $3C Õ¼ÓÃ×Ö½Ú º¬Òå 2 58 4 DosÍ·¿ªÊ¼±êÖ¾ DosϵĶ«Î÷ PEÍ·µÄÎïÀíµØÖ· ³£ÓÃÖµ ¡®MZ¡¯ ÔÚÎļþÖÐÐÎʽ 40 5A Windows϶¼ÖÃ0°É Èç¹ûºóÃæûÓÐdos¸ù¾ÍÈ¡$40,·ñÔò»¹Òª¼ÓÉÏdos¸ù´óС.ÏÂÎĽ«ÕâÏîÈ¡ÖµÓÃppe±íʾ. (ÊýÖµºÍ×Ö·û´®ÔÚÎļþÖеÄÐÎʽ²»ÓÃÎÒÌáÁË°É?)
ÏÂÃæÒ»°ãÓÐÒ»¸ödos¸ù½á¹¹,ÊÇһС¶Îdos³ÌÐò,¶ÔÎÒÃdzõѧÕßûÓÐÓÃ,±¾ÎľͲ»ÌáÁË.
Èý PEÍ·
PEÍ·ÊDZ¾Îĵĵڶþ²¿·Ö,¹²$18×Ö½Ú. ÎïÀíµØÖ· Ppe+0 Ppe+4 Ppe+6 Ppe+8 Ppe+$C Ppe+$14 Ppe+$16 Õ¼ÓÃ×Ö½Ú º¬Òå 4 2 2 4 8 2 2 PEÍ·¿ªÊ¼µÄ±êÖ¾ CpuÒªÇó ½ÚÊýÄ¿ ÈÕÆÚʱ¼ä ûʲôÓà ѡÏîÍ·´óС PEÊôÐÔ ³£ÓÃÖµ ¡®PE¡¯ $14C(386ÒÔÉÏ) ¶à°ëÊÇÂÒÌî ¶¼ÖÃ0 $E0 $10F»ò$818E,»¥¸ÄÁ˶¼ÄÜÔËÐÐ ÔÚÎļþÖÐÐÎʽ 50 45 00 00 4C 01 E0 00 0F 01 ºóÃæ½ÚÍ·±íÉùÃ÷Á˼¸¸ö¾ÍÊǼ¸ PEÍ·ÖÐ×îÖØÒªµÄÊǽÚÊýÄ¿,ÆäËûÖµ¶¼Óó£ÓÃÖµ¾Í¿ÉÒÔ.
ËÄ Ñ¡ÏîÍ·
Ñ¡ÏîÍ·ÊÇÎļþÍ·µÄµÚÈý²¿·Ö.Ñ¡ÏîÍ·ÖеÄÐí¶àÑ¡ÏîÊǸæ֪ϵͳÈçºÎÔÚÐéÄâÄÚ´æÖÐÖ´ÐеÄÊý¾Ý.¹²$E0×Ö½Ú ÎïÀíµØÖ· Ppe+$18 Ppe+$1A Ppe+$1C Ppe+$20 Ppe+$24 Ppe+$28 Ppe+$2C Ppe+$30 Ppe+$34 Õ¼ÓÃ×Ö½Ú º¬Òå 2 2 4 4 4 4 4 4 4 Ñ¡ÏîÍ·±êÖ¾ Á´½ÓÆ÷°æ±¾ºÅ ´úÂë¶Î³¤¶È ³õʼ»¯Êý¾Ý³¤¶È δ³õʼ»¯Êý¾Ý³¤¶È ³ÌÐòÈë¿Ú(OEP),³ÌÐò¿ªÊ¼Ö´Ðеĵط½.ÕâÊÇÐéÄâµØÖ· ´úÂë¶Î»ùÖ· Êý¾Ý¶Î»ùÖ· Ó³ÏóÎļþ»ùÖ·.¸Ä³É$200000ûӰÏì.¸Ä³É$100000¾ÍÓëÕ»³åÍ»ÁË.Èç¹ûÔØÈëÕâ¸ö»ùÖ·³öÁËÎÊÌâ,ϵͳ¾Í»á´Ó»ùÖ·Öض¨Î»±íÖÐÕÒ. ½Ú¶ÔÆë.½Ú±»Ó³Éäµ½ÐéÄâÄÚ´æºó,Õ¼ÓýڶÔÆëµÄÕûÊý±¶.Èç:½ÚÓÐ$2400×Ö½Ú,ÔÚÐéÄâÄÚ´æÖÐÕ¼$3000. Îļþ¶ÔÆë.½ÚÔÚÎļþÖÐÕ¼ÓÃÎļþ¶ÔÆëµÄÕûÊý±¶,²»×ãµÄ²¹0,°üÀ¨ÎļþÍ·(Í·½Ú) ÕâÈýÏîÊDzÙ×÷ϵͳ¼°×Óϵͳ°æ±¾ºÅ ûÓÃµÄ $400000 00 00 40 00 ³£ÓÃÖµ $10B ¿ÉËæ±ãд Óò»ÉÏ Óò»ÉÏ ¿ÉÄÜÓÐÓÃ°É ÔÚÎļþÖÐÐÎʽ 0B 01 Èç¹û¼ÓÁË¿Ç,¾ÍÊǿǵÄÈë¿Ú ºÃÏñÓò»ÉÏ Ppe+$38 4 $1000Ò²¾ÍÊÇ4KB 00 10 00 00 Ppe+$3C 4 $200Ò²¾ÍÊÇ512×Ö½Ú 4 4 4 0 00 02 00 00 Ppe+$40 Ppe+$44 Ppe+$48 Ppe+$4C 4 4 4 4 04 00 00 00 04 00 00 00 04 00 00 00 Ppe+$50 4 Ó³ÏóÎļþ´óС.ÊÇËùÓнÚÓ³Éäµ½ÐéÄâÄÚ´æºóµÄ´óС.±ðÍüÁ˼ÆËãÎļþÍ·ºÍδ³õʼ»¯Êý¾Ý½Ú.ÎļþÍ·Ò»°ãÕ¼Ò»¸ö½Ú¶ÔÆë,½ÚÓ³Éäµ½ÐéÄâÄÚ´æºóÊǽڶÔÆëµÄÕûÊý±¶,ËùÒÔÓ³ÏóÎļþ´óСҲÊǽڶÔÆëµÄÕûÊý±¶. ÎļþÍ·´óС.Ëæ±ãдҲûÎÊÌâ УÑéºÍ.¿ÉÄÜÓõÃÉÏ. NT×Óϵͳ(¿ØÖÆ̨ѡ3) Dll״̬ ±£ÁôÕ» ³õʼջ ±£Áô¶Ñ ³õʼ¶Ñ ÔØÈë·ç¸ñ Êý¾ÝË÷Òý±íµÄË÷ÒýÊý Ppe+$54 Ppe+$58 Ppe+$5C Ppe+$60 Ppe+$64 Ppe+$68 Ppe+$6C Ppe+$70 Ppe+$74 4 4 2 2 4 4 4 4 4 4 $400 0 2 0 1MB 4KB 1MB 4KB 0 16 00 04 00 00 02 00 00 00 00 00 10 00 00 10 00 00 00 00 10 00 00 10 00 00 10 00 00 00 ÉÏÃæ¹²Õ¼ÓÃ$60×Ö½Ú.ÏÂÃæ½ô¸úÒ»¸öÊý¾ÝË÷Òý±í,Õ¼ÓÃ$80×Ö½Ú. Êý¾ÝË÷Òý±íÓÉ16ÌõË÷Òý×é³É,Ë÷ÒýµÄÇ°4×Ö½ÚÊÇijÖÖÊý¾ÝµÄÐéÄâµØÖ·,ºó4×Ö½ÚÊÇÊý¾ÝµÄ´óС.Êý¾ÝµÄÀàÐÍÓÉË÷ÒýÔÚ±íÖеÄλÖþö¶¨,¸÷λÖõÄÒâÒåÈçÏÂ: 0:Êä³ö±í(DLL±ØÓÃ) 4:°²È« 8;»úÆ÷Öµ 12:ÊäÈëµØÖ·±í 1:ÊäÈë±í 5:»ùÖ·Öض¨Î»±í 9:Ï̴߳洢µØÖ·(TLS) 13-15δ¼û¶¨Òå 2:×ÊÔ´Êý¾Ý 6:µ÷ÊÔ 10:ÔØÈëÅäÖà 3:Òì³£ 7:ÃèÊöÎÄ×Ö 11:°ó¶¨ÊäÈë±í St.exe¶¨ÒåÁ˵Ú1,2,12Ïî,ûÓÐÓõ½µÄ¶¼ÖÃ0,
Ñ¡ÏîÍ·µ½ÕâÀï¾Í½áÊøÁË.ÆäʵҲֻÓгÌÐòÈë¿Ú,Ó³ÏóÎļþ»ùÖ·,Êý¾ÝË÷Òý±íÈÃÄãÕå×ÃÒ»ÏÂ,ÆäËû¶¼ÓÐĬÈÏÖµ.
Îå ½ÚÍ·±í
½ÚÍ·±íÓÉÒ»´®½ÚÍ·×é³É.ÿ¸ö½ÚÍ·¶¼ÉùÃ÷ÈçºÎ°ÑÒ»¸ö½ÚÓ³Éäµ½ÐéÄâÄÚ´æÖÐÈ¥.Ò»¸ö½ÚÍ·ÓÐ$28×Ö½Ú,½á¹¹ÈçÏÂ: Õ¼ÓÃ×Ö½Ú 8 4 4 4 4 12 4 ³£¼û½ÚÊôÐÔ: 1:´úÂë$00000002 2:Òѳõʼ»¯Êý¾Ý$00000004 3:δ³õʼ»¯Êý¾Ý$00000008 º¬Òå ½ÚµÄÃû³Æ ÎïÀíµØÖ·»ò´óС ½ÚµÄÐéÄâµØÖ· ½ÚÊý¾Ý´óС ½ÚµÄÎïÀíµØÖ· ÎÞÓõÄ,¶¼ÖÃ0 ½ÚÊôÐÔ ËµÃ÷ Asni×Ö·û.¿É²»Ð´ ¼ÈÈ»¡®»ò¡¯ÁË,ÄÇËæ±ã°É ±ð¶¨Òåµ½ÒѾ¶¨ÒåÁ˵ط½.Èç$300,ÏÔÈ»ÒѾ±»ÎļþÍ·Õ¼ÓÐ. ×¢Òâ:¿Ï¶¨ÊÇÎļþ¶ÔÆëµÄÕûÊý±¶,¼´Ê¹ÄãµÄÒ»¸ö½Úʵ¼ÊʹÓÃ2¸ö×Ö½ÚÒ²ÒªÕ¼Ò»¸öÎļþ¶ÔÆë.δ³õʼ»¯Êý¾ÝÊÇÎļþ¶ÔÆë0±¶ ÊǸö32λÊý¾Ý,¾ßÌå²é1.9°æÒëÎÄ 4:¿É¹²Ïí$10000000 7:¿Éд$80000000 5:¿ÉÖ´ÐÐ$20000000 6:¿É¶Á$40000000 $60000020 1 ºÍ 5 ºÍ 6 (ËãÊõ»òÔËËã) ͨ³£ÊÇ´úÂë¶Î $C0000040 2 ºÍ 6 ºÍ 7 ͨ³£ÊÇÊäÈë±í $40000040 2 ºÍ 6 ͨ³£ÊÇ×ÊÔ´Êý¾Ý ÎÒÃÇÒ»Æð¿´st.exe,ºìÉ«±ê¼ÇÐéÄâµØÖ·:
00000060 00 00 00 00 00 00 00 00 30 10 00 00 00 00 00 00 ........0....... 00000070 00 00 00 00 00 00 40 00 00 10 00 00 00 02 00 00 ......@......... $6C´¦ÊÇÈë¿Ú=$1030,$70´¦ÊÇÓ³ÏóÎļþ»ùÖ·=$400000.
00000130 2E 74 65 78 74 00 00 00 .text... 00000140 00 01 00 00 00 10 00 00 00 02 00 00 00 02 00 00 ................ 00000150 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 60 ............ ..` 00000160 2E 72 64 61 74 61 00 00 6A 01 00 00 00 20 00 00 .rdata..j.... .. 00000170 00 02 00 00 00 04 00 00 00 00 00 00 00 00 00 00 ................
00000180 00 00 00 00 40 00 00 40 2E 64 61 74 61 00 00 00 ....@..@.data... 00000190 04 00 00 00 00 30 00 00 00 00 00 00 00 00 00 00 .....0.......... 000001A0 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 C0 ............@..? 000001B0 2E 72 73 72 63 00 00 00 60 02 00 00 00 40 00 00 .rsrc...`....@.. 000001C0 00 04 00 00 00 06 00 00 00 00 00 00 00 00 00 00 ................ 000001D0 00 00 00 00 40 00 00 40 ....@..@ ÉÏÃæ¾ÍÊǽÚÍ·±í, Ãû³Æ .text .rdata .data .rsrc ÐéÄâµØÖ· $1000 $2000 $3000 $4000 ´óС $200 $200 $0 $400 ÎïÀíµØÖ· $200 $400 0 $600 ÊôÐÔ $60000020 $40000040 $400000C0 $40000040 ¿´ÕâЩ½Ú¶¼Ã»Óг¬¹ý½Ú¶ÔÆë,ËùÒÔ¶¼Ö»Õ¼Ò»¸ö½Ú¶ÔÆë..dataÖ»ÊÇÔ¤¶¨ÁË¿Õ¼ä,ÊʺϱäÁ¿ÓÃ. ÐéÄâµØַתÎïÀíµØÖ·:
ÎÒÃÇ¿´³ÌÐòÈë¿ÚÕýºÃÂäµ½ÁË.text½ÚµÄ+$30($1030-$1000)´¦,À´µ½$200+$30: Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F
00000230 6A 00 E8 35 01 00 00 A3 00 30 40 00 E8 4F 01 00 j.?...?0@.èO.. 00000240 00 6A 00 68 5E 10 40 00 6A 00 6A 65 FF 35 00 30 .j.h^.@.j.jeÿ5.0 ¿ÉÔÚOLLICEÖв鿴´Ë´¦´úÂ뺬Ò壨$00401030£©.
ÔÚ½ÚÍ·±í²¿·Ö,ÿ¸ö½ÚÍ·µÄÐéÄâµØÖ·,´óС£¬ÎïÀíµØÖ·,ÊôÐÔ¶¼Òª×ÐϸÉ趨.
ÎļþÍ·µ½ÕâÀï¾Í½áÊøÁË,²»×ãÎļþ¶ÔÆëÕûÊý±¶µÄÒª²¹×ã0.ÎļþºóÃæ½ô¸ú½ÚÍ·±í¶¨ÒåµÄ¸÷ÖÖ½Ú. µ±È»ºóÃæÒ²¿ÉÄÜÖ»ÓÐÒ»¸ö½Ú.
Áù ÊäÈë±í
ÊäÈë±íÔÚÐéÄâÄÚ´æÖеĵØÖ·ºÍ´óСÓÉÑ¡ÏîÍ·µÄÊý¾ÝË÷Òý±íÖеڶþÌõË÷ÒýÖ¸¶¨.ÊäÈë±íÓеã»Øµ÷º¯ÊýµÄζµÀ,ÊǸøϵͳµ÷ÓõÄ.ͨ¹ýÊäÈë±í,ϵͳÁ˽â³ÌÐòÐèÒªÄÄЩ¶¯Ì¬¿âµÄº¯Êý,ÔÚ¼ÓÔØPEÎļþʱ°ÑÕâЩ¶¯Ì¬¿âÒ²Ó³Éäµ½½ø³ÌÐéÄâ¿Õ¼ä,²¢°ÑÕâЩº¯ÊýµÄµØַдµ½³ÌÐòÖ¸¶¨µÄµØ·½¹©µ÷ÓÃ.
ÊäÈë±íʵ¼ÊÉÏÊÇÒ»¸ö¡®ÊäÈë˵Ã÷½á¹¹¡¯µÄÊý×é.¸ÃÊý×éµÄ×îºóÒ»¸ö³ÉÔ±ÖÃ0ÒÔ±í½áÊø. Ò»¸öÊäÈë˵Ã÷½á¹¹ÓÉ5¸öË«×Ö×é³É,Õ¼ÓÃ20×Ö½Ú,¶ÔÓ¦Ò»¸ö¶¯Ì¬¿â.ÈçÏÂ: 1 2 3 4 5 Õ¼ÓÃ×Ö½Ú Ãû³Æ 4 4 4 4 4 µØÖ·Ò» ʱ¼ä´Á ÖÐתÁ´ µØÖ·¶þ º¬Òå Ö¸Ïòº¯ÊýË÷ÒýµØÖ·±íµÄµØÖ· ÓÃÓÚÑéÖ¤dll»ò°ó¶¨ÊäÈë Ö¸ÏòµØÖ·±íµÄÖ¸Õë.Õâ¸öµØÖ·±í¿ÉÄÜÓëÆäËûÊäÈë˵Ã÷½á¹¹Ö¸ÏòµÄµØÖ·±í×é³ÉÒ»¸öÁ¬ÐøµÄÊäÈëµØÖ·±í.(¼ûÊý¾ÝË÷Òý±í) ¶¯Ì¬¿âÃû Ö¸Ïò¶¯Ì¬¿âÃûµÄÖ¸Õë(¼´Pchar»òchar*),¶¯Ì¬¿âÃûÊDZê×¼×Ö·û´® ±ê×¼×Ö·û´®Ö¸ÒÔ¿Õ×Ö·û½áÊøµÄansi×Ö·û´®. ÉÏÊö½á¹¹ÖеÚ2,3ÏîûÓÐÕÒµ½ÊµÀýËùÒÔÌø¹ý,ºÇºÇ. ¶¯Ì¬¿âÃûÒ²ºÃÀí½â£¬¹Ø¼üÊǵÚ1,5Ïî.µØÖ·Ò»ÊǸöÖ¸Õë,Ö¸Ïòº¯ÊýË÷ÒýµØÖ·±í.Õâ¸ö±íÀﶼÊǺ¯ÊýË÷ÒýµÄµØÖ·,ÒÔ¿ÕµØÖ·(0)±íʾ½áÊø.º¯ÊýË÷ÒýÓÉÒ»¸ö2¸ö×Ö½ÚµÄË÷ÒýºÅºÍ½ø¸úÆäºóµÄÒ»¸ö±ê×¼×Ö·û´®(¼´º¯ÊýÃû)×é³É.
ϵͳµÄ¹¤×÷¾ÍÊÇÊ×ÏÈ»ñµÃ¶¯Ì¬¿âÃû,È»ºó˳×ŵØÖ·Ò»ÕÒµ½º¯ÊýË÷ÒýµØÖ·±í,ÔÙÒ»ÌõÌõµØ¶Áº¯ÊýË÷Òý,½«ÕÒµ½µÄº¯ÊýµÄµØÖ·ÒÀ´Îдµ½µØÖ·¶þÖ¸¶¨µÄµØÖ·±íÖÐ,Ö±µ½¶Áµ½¿ÕµØÖ·,ÔÙ¶ÁÈ¡ÏÂÒ»ÌõÊäÈë˵Ã÷½á¹¹,Ö±µ½Îª0.
ÓеãÄÑÓÚÀí½â?ÔÙ´ÎÓÃwinhexºÍollice´ò¿ªst.exe:
000000C0 30 20 00 00 50 00 00 00 00 40 00 00 60 02 00 00 0 ..P....@..`...
À´µ½$C0´¦,ÊäÈë±íµÄÐéÄâµØÖ·ÊÇ$2030,´óС$50.»»³ÉÎïÀíµØÖ·ÔÚ$430,ÔÚ.rdata½ÚÖÐ. À´µ½$430´¦,¿ÉÒÔ¶Áµ¹ÌõÊäÈë˵Ã÷½á¹¹:
00000430 88 20 00 00 00 00 00 00 00 00 00 00 F2 20 00 00 ?..........?.. 00000440 08 20 00 00 9C 20 00 00 00 00 00 00 00 00 00 00 . ..?.......... 00000450 3A 21 00 00 1C 20 00 00 80 20 00 00 00 00 00 00 :!... ..€ ...... 00000460 00 00 00 00 5C 21 00 00 00 20 00 00 00 00 00 00 ....\\!... ...... 00000470 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ÉÏÃ涼ÊÇÐéÄâµØÖ·,ת³ÉÎïÀíµØַʱ-$2000+$400.
ÒÔµÚÒ»ÌõΪÀý,µØַһΪ$2088->$488,µØÖ·¶þΪ$2008->$408,¶¯Ì¬¿âÃûΪ$20F2->$4F2. 000004F0 00 00 6B 65 72 6E 65 6C 33 32 2E 64 6C 6C 00 00 ..kernel32.dll.. $4F2ÔÀ´ÊÇkernel32.dll. $488´¦:
00000480 E2 20 00 00 CE 20 00 00 ?..?.. 00000490 BE 20 00 00 B0 20 00 00 00 00 00 00 ?..?...... ÓÐËĸöµØÖ·,Ò²¾ÍÊÇ˵ÓÐËĸöº¯Êý.À´µ½$4E2($2012):
000004E0 00 00 3C 02 53 65 74 4C 61 73 74 45 72 72 6F 72 ..<.SetLastError 000004F0 00 00 .. ÕÒµ½ÁËÒ»¸öº¯Êý,ÆäËüµÄ¾ÍÕâôÕÒ.
ÔÚµØÖ·¶þÖ¸ÏòµÄ$408ºÃÏñ¿´²»µ½Ê²Ã´,µ½OLLICEÖÐ,µã¡¯M¡¯Í¼±ê,,ÔÚÁбíÖÐË«»÷
ÊäÈë±íÏî(Memory map, ÌõÄ¿ 21),ÔÚµ¯³öµÄ´°¿ÚÖп´$400000+$2008´¦ÒѾдÈëÁ˺¯ÊýµØÖ·,ºìÉ«×ÖÌå±íʾÊÇÔØÈëʱдÈëµÄ.
¶àÊýÇé¿öϳÌÐò²¢²»ÊÇÖ±½ÓCALLÕâ¸öµØÖ·,¶øÊÇÏÈCALLÒ»¸öÌøת±í,È»ºóJMPµ½ÕâÀï: 00401030 >/$ 6A 00 push 0 ; /pModule = NULL 00401032 |. E8 35010000 call