Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit dd20a4d

Browse files
Coldzer0Coldzer0
Coldzer0
authored and
Coldzer0
committed
Fix for apisetschema forwarder
Hope this will fix it for ever :P
1 parent cbd8fcb commit dd20a4d

File tree

8 files changed

+166
-157
lines changed

8 files changed

+166
-157
lines changed

Build/Apiset.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
{name:"api-ms-win-core-debug-minidump-l1-1-0", count:1, red: ["dbgcore.dll"]},
7878
{name:"api-ms-win-core-delayload-l1-1-0", count:1, red: ["kernelbase.dll"]},
7979
{name:"api-ms-win-core-delayload-l1-1-1", count:1, red: ["kernelbase.dll"]},
80+
{name:"api-ms-win-core-enclave-l1-1-0", count:1, red: ["kernelbase.dll"]},
8081
{name:"api-ms-win-core-enclave-l1-1-1", count:1, red: ["kernelbase.dll"]},
8182
{name:"api-ms-win-core-errorhandling-l1-1-0", count:1, red: ["kernel32.dll"]},
8283
{name:"api-ms-win-core-errorhandling-l1-1-3", count:1, red: ["kernelbase.dll"]},
@@ -128,11 +129,14 @@
128129
{name:"api-ms-win-core-localregistry-l1-1-0", count:1, red: ["kernel32.dll"]},
129130
{name:"api-ms-win-core-marshal-l1-1-0", count:1, red: ["combase.dll"]},
130131
{name:"api-ms-win-core-memory-l1-1-0", count:1, red: ["kernelbase.dll"]},
132+
{name:"api-ms-win-core-memory-l1-1-1", count:1, red: ["kernelbase.dll"]},
133+
{name:"api-ms-win-core-memory-l1-1-2", count:1, red: ["kernelbase.dll"]},
131134
{name:"api-ms-win-core-memory-l1-1-6", count:1, red: ["kernelbase.dll"]},
132135
{name:"api-ms-win-core-misc-l1-1-0", count:1, red: ["kernelbase.dll"]},
133136
{name:"api-ms-win-core-multipleproviderrouter-l1-1-0", count:1, red: ["mpr.dll"]},
134137
{name:"api-ms-win-core-namedpipe-ansi-l1-1-1", count:1, red: ["kernel32.dll"]},
135138
{name:"api-ms-win-core-namedpipe-l1-1-0", count:1, red: ["kernelbase.dll"]},
139+
{name:"api-ms-win-core-namedpipe-l1-2-1", count:1, red: ["kernelbase.dll"]},
136140
{name:"api-ms-win-core-namedpipe-l1-2-2", count:1, red: ["kernelbase.dll"]},
137141
{name:"api-ms-win-core-namespace-ansi-l1-1-0", count:1, red: ["kernel32.dll"]},
138142
{name:"api-ms-win-core-namespace-l1-1-0", count:1, red: ["kernelbase.dll"]},
@@ -150,6 +154,7 @@
150154
{name:"api-ms-win-core-processsecurity-l1-1-0", count:2, red: ["kernel32.dll", "kernelbase.dll"],"alias":"kernel32.dll"},
151155
{name:"api-ms-win-core-processsnapshot-l1-1-0", count:1, red: ["kernelbase.dll"]},
152156
{name:"api-ms-win-core-processthreads-l1-1-0", count:2, red: ["kernel32.dll", "kernelbase.dll"],"alias":"kernel32.dll"},
157+
{name:"api-ms-win-core-processthreads-l1-1-2", count:2, red: ["kernel32.dll", "kernelbase.dll"],"alias":"kernel32.dll"},
153158
{name:"api-ms-win-core-processthreads-l1-1-1", count:2, red: ["kernel32.dll", "kernelbase.dll"],"alias":"kernel32.dll"},
154159
{name:"api-ms-win-core-processthreads-l1-1-3", count:2, red: ["kernel32.dll", "kernelbase.dll"],"alias":"kernel32.dll"},
155160
{name:"api-ms-win-core-processtopology-l1-1-0", count:1, red: ["kernelbase.dll"]},
@@ -201,6 +206,8 @@
201206
{name:"api-ms-win-core-synch-l1-2-1", count:1, red: ["kernelbase.dll"]},
202207
{name:"api-ms-win-core-sysinfo-l1-1-0", count:1, red: ["kernelbase.dll"]},
203208
{name:"api-ms-win-core-sysinfo-l1-1-1", count:1, red: ["kernelbase.dll"]},
209+
{name:"api-ms-win-core-sysinfo-l1-2-1", count:1, red: ["kernelbase.dll"]},
210+
{name:"api-ms-win-core-sysinfo-l1-2-2", count:1, red: ["kernelbase.dll"]},
204211
{name:"api-ms-win-core-sysinfo-l1-2-4", count:1, red: ["kernelbase.dll"]},
205212
{name:"api-ms-win-core-sysinfo-l2-1-0", count:1, red: ["advapi32.dll"]},
206213
{name:"api-ms-win-core-systemtopology-l1-1-1", count:1, red: ["kernelbase.dll"]},
@@ -548,6 +555,7 @@
548555
{name:"ext-ms-win-gdi-path-l1-1-0", count:1, red: ["gdi32full.dll"]},
549556
{name:"ext-ms-win-gdi-print-l1-1-0", count:1, red: ["gdi32full.dll"]},
550557
{name:"ext-ms-win-gdi-private-l1-1-0", count:1, red: ["gdi32full.dll"]},
558+
{name:"ext-ms-win-gdi-desktop-l1-1-0", count:1, red: ["gdi32.dll"]},
551559
{name:"ext-ms-win-gdi-render-l1-1-0", count:1, red: ["gdi32.dll"]},
552560
{name:"ext-ms-win-gdi-rgn-l1-1-0", count:1, red: ["gdi32full.dll"]},
553561
{name:"ext-ms-win-gdi-wcs-l1-1-0", count:1, red: ["gdi32full.dll"]},

Build/hooks/address.js

Lines changed: 8 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,11 @@
1-
// var _parse_cmdline = new ApiHook();
2-
// _parse_cmdline.OnCallBack = function () {
1+
var addr_hook_example = new ApiHook();
2+
addr_hook_example.OnCallBack = function () {
33

4-
// var PC = Emu.ReadDword(Emu.ReadReg(REG_ESP));
4+
info('EDI = ',Emu.ReadReg(REG_EDI).toString(16))
5+
info('ESI = ',Emu.ReadReg(REG_ESI).toString(16))
6+
info('Module : ',Emu.ReadStringA(Emu.ReadReg(REG_EAX)))
57

6-
// info('PC : 0x',PC.toString(16));
7-
8-
// info(Emu.SetReg(REG_EIP, PC));
9-
// return true;
10-
// };
11-
// _parse_cmdline.install(0x00403383);
12-
13-
// _wcmdln fix
14-
15-
// var Path = '"C:\\pla\\' + Emu.Filename + '"'; // :D
16-
// var _wcmdln_ptr = Emu.GetProcAddr(Emu.GetModuleHandle('msvcr90.dll'), '_wcmdln');
17-
// var po =
18-
// Emu.WriteStringW(_wcmdln_ptr,Path) : Emu.WriteStringA(_wcmdln_ptr,Path);
19-
20-
21-
22-
23-
// var tmpx = new ApiHook();
24-
// tmpx.OnCallBack = function () {
25-
26-
27-
// info('EDI = ',Emu.ReadReg(REG_EDI).toString(16))
28-
// info('ESI = ',Emu.ReadReg(REG_ESI).toString(16))
29-
// info('Module : ',Emu.ReadStringA(Emu.ReadReg(REG_EAX)))
30-
31-
// return true;
32-
// };
33-
34-
// tmpx.install(0x401369);
35-
36-
// var tmpx = new ApiHook();
37-
// tmpx.OnCallBack = function () {
38-
39-
// info('esi = ',Emu.ReadReg(REG_ESI).toString(16))
40-
// info('ecx = ',Emu.ReadReg(REG_ECX).toString(16))
41-
42-
// info('Module : ',Emu.ReadStringW(Emu.ReadReg(REG_ESI)))
43-
44-
// return true;
45-
// };
46-
47-
// tmpx.install(0x401037);
48-
49-
50-
// var tmpz = new ApiHook();
51-
// tmpz.OnCallBack = function () {
52-
53-
// info('esi = ',Emu.ReadReg(REG_ESI).toString(16))
54-
55-
// info('API : ',Emu.ReadStringA(Emu.ReadReg(REG_ESI)))
56-
57-
// return true;
58-
// };
59-
60-
// tmpz.install(0x401068);
8+
return true;
9+
};
6110

11+
addr_hook_example.install(0x401369);

0 commit comments

Comments
 (0)