你的情况如下吧:
此时重定位处的代码是(40113d和401142):
:0040113A 90 nop
:0040113B 90 nop
:0040113C 90 nop
:0040113D 90 nop
:0040113E 90 nop
:0040113F 90 nop
:00401140 6A00 push 00000000
:00401142 6A00 push 00000000
:00401144 6A00 push 00000000
:00401146 6A00 push 00000000
需要重定位的1:40113d处的值是:6a909090
需要重定位的2:401142处的值是:6a006a
你将这段需要重定位的代码写好就正常了:
:0040113A 6A00 push 00000000
:0040113C 68005B4000 push 00405B00 //重定位的地址
:00401141 68105B4000 push 00405B10 //重定位的地址
:00401146 6A00 push 00000000
* Reference To: USER32.MessageBoxA, Ord:01BEh
|
:00401148 FF15CC404000 Call dword ptr [004040CC]
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
需要重定位的1:40113d处的值是:405b00
需要重定位的2:401142处的值是:405b10