This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hope this will fix it for ever :P
- Loading branch information
Showing
8 changed files
with
166 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,11 @@ | ||
// var _parse_cmdline = new ApiHook(); | ||
// _parse_cmdline.OnCallBack = function () { | ||
var addr_hook_example = new ApiHook(); | ||
addr_hook_example.OnCallBack = function () { | ||
|
||
// var PC = Emu.ReadDword(Emu.ReadReg(REG_ESP)); | ||
info('EDI = ',Emu.ReadReg(REG_EDI).toString(16)) | ||
info('ESI = ',Emu.ReadReg(REG_ESI).toString(16)) | ||
info('Module : ',Emu.ReadStringA(Emu.ReadReg(REG_EAX))) | ||
|
||
// info('PC : 0x',PC.toString(16)); | ||
|
||
// info(Emu.SetReg(REG_EIP, PC)); | ||
// return true; | ||
// }; | ||
// _parse_cmdline.install(0x00403383); | ||
|
||
// _wcmdln fix | ||
|
||
// var Path = '"C:\\pla\\' + Emu.Filename + '"'; // :D | ||
// var _wcmdln_ptr = Emu.GetProcAddr(Emu.GetModuleHandle('msvcr90.dll'), '_wcmdln'); | ||
// var po = | ||
// Emu.WriteStringW(_wcmdln_ptr,Path) : Emu.WriteStringA(_wcmdln_ptr,Path); | ||
|
||
|
||
|
||
|
||
// var tmpx = new ApiHook(); | ||
// tmpx.OnCallBack = function () { | ||
|
||
|
||
// info('EDI = ',Emu.ReadReg(REG_EDI).toString(16)) | ||
// info('ESI = ',Emu.ReadReg(REG_ESI).toString(16)) | ||
// info('Module : ',Emu.ReadStringA(Emu.ReadReg(REG_EAX))) | ||
|
||
// return true; | ||
// }; | ||
|
||
// tmpx.install(0x401369); | ||
|
||
// var tmpx = new ApiHook(); | ||
// tmpx.OnCallBack = function () { | ||
|
||
// info('esi = ',Emu.ReadReg(REG_ESI).toString(16)) | ||
// info('ecx = ',Emu.ReadReg(REG_ECX).toString(16)) | ||
|
||
// info('Module : ',Emu.ReadStringW(Emu.ReadReg(REG_ESI))) | ||
|
||
// return true; | ||
// }; | ||
|
||
// tmpx.install(0x401037); | ||
|
||
|
||
// var tmpz = new ApiHook(); | ||
// tmpz.OnCallBack = function () { | ||
|
||
// info('esi = ',Emu.ReadReg(REG_ESI).toString(16)) | ||
|
||
// info('API : ',Emu.ReadStringA(Emu.ReadReg(REG_ESI))) | ||
|
||
// return true; | ||
// }; | ||
|
||
// tmpz.install(0x401068); | ||
return true; | ||
}; | ||
|
||
addr_hook_example.install(0x401369); |
Oops, something went wrong.