windows-exe-decompiler-mcp-server 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/CLAUDE_INSTALLATION.md +129 -0
  2. package/CODEX_INSTALLATION.md +25 -1
  3. package/COPILOT_INSTALLATION.md +29 -1
  4. package/LICENSE +21 -21
  5. package/README.md +232 -110
  6. package/dist/analysis-provenance.d.ts +50 -2
  7. package/dist/analysis-provenance.js +1 -0
  8. package/dist/analysis-task-runner.js +92 -0
  9. package/dist/config.d.ts +35 -16
  10. package/dist/config.js +37 -3
  11. package/dist/database.js +115 -115
  12. package/dist/decompiler-worker.d.ts +10 -5
  13. package/dist/decompiler-worker.js +240 -58
  14. package/dist/dynamic-trace.d.ts +6 -0
  15. package/dist/dynamic-trace.js +52 -1
  16. package/dist/ghidra-config.js +17 -1
  17. package/dist/index.js +38 -8
  18. package/dist/pe-runtime-functions.d.ts +90 -0
  19. package/dist/pe-runtime-functions.js +452 -0
  20. package/dist/prompts/module-reconstruction-review.d.ts +5 -0
  21. package/dist/prompts/module-reconstruction-review.js +65 -0
  22. package/dist/runtime-correlation.d.ts +5 -0
  23. package/dist/runtime-correlation.js +179 -2
  24. package/dist/sample-workspace.d.ts +28 -0
  25. package/dist/sample-workspace.js +186 -0
  26. package/dist/semantic-name-suggestion-artifacts.d.ts +56 -0
  27. package/dist/semantic-name-suggestion-artifacts.js +87 -0
  28. package/dist/server.js +1 -1
  29. package/dist/setup-guidance.d.ts +73 -0
  30. package/dist/setup-guidance.js +211 -0
  31. package/dist/tools/artifact-read.d.ts +10 -10
  32. package/dist/tools/artifacts-diff.d.ts +8 -8
  33. package/dist/tools/artifacts-list.d.ts +16 -16
  34. package/dist/tools/attack-map.d.ts +8 -8
  35. package/dist/tools/binary-role-profile.d.ts +1197 -0
  36. package/dist/tools/binary-role-profile.js +575 -0
  37. package/dist/tools/code-function-explain-apply.d.ts +12 -12
  38. package/dist/tools/code-function-explain-prepare.d.ts +12 -12
  39. package/dist/tools/code-function-explain-review.d.ts +58 -58
  40. package/dist/tools/code-function-rename-apply.d.ts +12 -12
  41. package/dist/tools/code-function-rename-prepare.d.ts +14 -14
  42. package/dist/tools/code-function-rename-review.d.ts +66 -66
  43. package/dist/tools/code-functions-define.d.ts +337 -0
  44. package/dist/tools/code-functions-define.js +337 -0
  45. package/dist/tools/code-functions-list.js +1 -1
  46. package/dist/tools/code-functions-rank.js +1 -1
  47. package/dist/tools/code-functions-reconstruct.d.ts +368 -58
  48. package/dist/tools/code-functions-reconstruct.js +130 -10
  49. package/dist/tools/code-functions-smart-recover.d.ts +352 -0
  50. package/dist/tools/code-functions-smart-recover.js +190 -0
  51. package/dist/tools/code-module-review-apply.d.ts +233 -0
  52. package/dist/tools/code-module-review-apply.js +209 -0
  53. package/dist/tools/code-module-review-prepare.d.ts +756 -0
  54. package/dist/tools/code-module-review-prepare.js +343 -0
  55. package/dist/tools/code-module-review.d.ts +474 -0
  56. package/dist/tools/code-module-review.js +566 -0
  57. package/dist/tools/code-reconstruct-export.d.ts +193 -21
  58. package/dist/tools/code-reconstruct-export.js +578 -21
  59. package/dist/tools/code-reconstruct-plan.d.ts +20 -20
  60. package/dist/tools/com-role-profile.d.ts +353 -0
  61. package/dist/tools/com-role-profile.js +186 -0
  62. package/dist/tools/dll-export-profile.d.ts +625 -0
  63. package/dist/tools/dll-export-profile.js +230 -0
  64. package/dist/tools/dotnet-metadata-extract.d.ts +122 -122
  65. package/dist/tools/dotnet-reconstruct-export.d.ts +49 -49
  66. package/dist/tools/dotnet-types-list.d.ts +66 -66
  67. package/dist/tools/dynamic-dependencies.d.ts +144 -8
  68. package/dist/tools/dynamic-dependencies.js +20 -1
  69. package/dist/tools/dynamic-memory-import.js +105 -2
  70. package/dist/tools/ghidra-analyze.d.ts +20 -0
  71. package/dist/tools/ghidra-analyze.js +10 -2
  72. package/dist/tools/ghidra-health.d.ts +177 -0
  73. package/dist/tools/ghidra-health.js +28 -0
  74. package/dist/tools/ioc-export.d.ts +8 -8
  75. package/dist/tools/packer-detect.d.ts +14 -14
  76. package/dist/tools/packer-detect.js +6 -9
  77. package/dist/tools/pe-exports-extract.d.ts +8 -8
  78. package/dist/tools/pe-exports-extract.js +6 -9
  79. package/dist/tools/pe-fingerprint.d.ts +36 -36
  80. package/dist/tools/pe-imports-extract.d.ts +8 -8
  81. package/dist/tools/pe-imports-extract.js +6 -9
  82. package/dist/tools/pe-pdata-extract.d.ts +448 -0
  83. package/dist/tools/pe-pdata-extract.js +219 -0
  84. package/dist/tools/pe-symbols-recover.d.ts +227 -0
  85. package/dist/tools/pe-symbols-recover.js +316 -0
  86. package/dist/tools/report-generate.d.ts +15 -1
  87. package/dist/tools/report-generate.js +139 -16
  88. package/dist/tools/report-summarize.d.ts +2242 -8
  89. package/dist/tools/report-summarize.js +246 -10
  90. package/dist/tools/runtime-detect.d.ts +8 -8
  91. package/dist/tools/runtime-detect.js +2 -12
  92. package/dist/tools/rust-binary-analyze.d.ts +2047 -0
  93. package/dist/tools/rust-binary-analyze.js +443 -0
  94. package/dist/tools/sample-profile-get.d.ts +135 -16
  95. package/dist/tools/sample-profile-get.js +35 -32
  96. package/dist/tools/sandbox-execute.d.ts +10 -10
  97. package/dist/tools/strings-extract.d.ts +8 -8
  98. package/dist/tools/strings-extract.js +2 -12
  99. package/dist/tools/strings-floss-decode.d.ts +8 -8
  100. package/dist/tools/system-health.d.ts +172 -36
  101. package/dist/tools/system-health.js +14 -0
  102. package/dist/tools/system-setup-guide.d.ts +179 -0
  103. package/dist/tools/system-setup-guide.js +62 -0
  104. package/dist/tools/tool-help.d.ts +16 -16
  105. package/dist/tools/tool-help.js +172 -0
  106. package/dist/tools/yara-scan.d.ts +8 -8
  107. package/dist/types.d.ts +2 -0
  108. package/dist/workflows/function-explanation-review.d.ts +3034 -76
  109. package/dist/workflows/function-explanation-review.js +172 -42
  110. package/dist/workflows/function-index-recover.d.ts +333 -0
  111. package/dist/workflows/function-index-recover.js +291 -0
  112. package/dist/workflows/module-reconstruction-review.d.ts +3537 -0
  113. package/dist/workflows/module-reconstruction-review.js +354 -0
  114. package/dist/workflows/reconstruct.d.ts +2182 -223
  115. package/dist/workflows/reconstruct.js +575 -32
  116. package/dist/workflows/semantic-name-review.d.ts +1436 -85
  117. package/dist/workflows/semantic-name-review.js +150 -58
  118. package/dist/workflows/triage.d.ts +8 -8
  119. package/ghidra_scripts/DecompileFunction.java +487 -487
  120. package/ghidra_scripts/ExtractCFG.java +256 -256
  121. package/ghidra_scripts/ExtractFunctions.java +442 -442
  122. package/ghidra_scripts/README.md +112 -112
  123. package/ghidra_scripts/SearchFunctionReferences.java +380 -380
  124. package/helpers/DotNetMetadataProbe/DotNetMetadataProbe.csproj +9 -9
  125. package/helpers/DotNetMetadataProbe/Program.cs +566 -566
  126. package/install-to-claude.ps1 +432 -0
  127. package/install-to-codex.ps1 +256 -178
  128. package/install-to-copilot.ps1 +389 -303
  129. package/package.json +4 -2
  130. package/requirements.txt +9 -9
  131. package/workers/requirements-dynamic.txt +11 -11
  132. package/workers/requirements.txt +8 -8
  133. package/workers/speakeasy_compat.py +175 -175
  134. package/workers/static_worker.py +3474 -3474
@@ -0,0 +1,625 @@
1
+ import { z } from 'zod';
2
+ import type { ToolArgs, ToolDefinition, WorkerResult } from '../types.js';
3
+ import type { WorkspaceManager } from '../workspace-manager.js';
4
+ import type { DatabaseManager } from '../database.js';
5
+ import type { CacheManager } from '../cache-manager.js';
6
+ export declare const DllExportProfileInputSchema: z.ZodObject<{
7
+ sample_id: z.ZodString;
8
+ max_exports: z.ZodDefault<z.ZodNumber>;
9
+ max_strings: z.ZodDefault<z.ZodNumber>;
10
+ force_refresh: z.ZodDefault<z.ZodBoolean>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ sample_id: string;
13
+ force_refresh: boolean;
14
+ max_strings: number;
15
+ max_exports: number;
16
+ }, {
17
+ sample_id: string;
18
+ force_refresh?: boolean | undefined;
19
+ max_strings?: number | undefined;
20
+ max_exports?: number | undefined;
21
+ }>;
22
+ export declare const DllExportProfileDataSchema: z.ZodObject<{
23
+ sample_id: z.ZodString;
24
+ original_filename: z.ZodNullable<z.ZodString>;
25
+ binary_role: z.ZodString;
26
+ library_like: z.ZodBoolean;
27
+ role_confidence: z.ZodNumber;
28
+ export_surface: z.ZodObject<{
29
+ total_exports: z.ZodNumber;
30
+ total_forwarders: z.ZodNumber;
31
+ notable_exports: z.ZodArray<z.ZodString, "many">;
32
+ com_related_exports: z.ZodArray<z.ZodString, "many">;
33
+ service_related_exports: z.ZodArray<z.ZodString, "many">;
34
+ plugin_related_exports: z.ZodArray<z.ZodString, "many">;
35
+ forwarded_exports: z.ZodArray<z.ZodString, "many">;
36
+ }, "strip", z.ZodTypeAny, {
37
+ total_exports: number;
38
+ total_forwarders: number;
39
+ notable_exports: string[];
40
+ com_related_exports: string[];
41
+ service_related_exports: string[];
42
+ plugin_related_exports: string[];
43
+ forwarded_exports: string[];
44
+ }, {
45
+ total_exports: number;
46
+ total_forwarders: number;
47
+ notable_exports: string[];
48
+ com_related_exports: string[];
49
+ service_related_exports: string[];
50
+ plugin_related_exports: string[];
51
+ forwarded_exports: string[];
52
+ }>;
53
+ export_dispatch_profile: z.ZodObject<{
54
+ command_like_exports: z.ZodArray<z.ZodString, "many">;
55
+ callback_like_exports: z.ZodArray<z.ZodString, "many">;
56
+ registration_exports: z.ZodArray<z.ZodString, "many">;
57
+ ordinal_only_exports: z.ZodNumber;
58
+ likely_dispatch_model: z.ZodString;
59
+ confidence: z.ZodNumber;
60
+ }, "strip", z.ZodTypeAny, {
61
+ confidence: number;
62
+ command_like_exports: string[];
63
+ callback_like_exports: string[];
64
+ registration_exports: string[];
65
+ ordinal_only_exports: number;
66
+ likely_dispatch_model: string;
67
+ }, {
68
+ confidence: number;
69
+ command_like_exports: string[];
70
+ callback_like_exports: string[];
71
+ registration_exports: string[];
72
+ ordinal_only_exports: number;
73
+ likely_dispatch_model: string;
74
+ }>;
75
+ host_interaction_profile: z.ZodObject<{
76
+ likely_hosted: z.ZodBoolean;
77
+ host_hints: z.ZodArray<z.ZodString, "many">;
78
+ callback_exports: z.ZodArray<z.ZodString, "many">;
79
+ callback_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
80
+ callback_strings: z.ZodArray<z.ZodString, "many">;
81
+ service_hooks: z.ZodArray<z.ZodString, "many">;
82
+ confidence: z.ZodNumber;
83
+ }, "strip", z.ZodTypeAny, {
84
+ confidence: number;
85
+ callback_surface: string[];
86
+ likely_hosted: boolean;
87
+ host_hints: string[];
88
+ callback_exports: string[];
89
+ callback_strings: string[];
90
+ service_hooks: string[];
91
+ }, {
92
+ confidence: number;
93
+ likely_hosted: boolean;
94
+ host_hints: string[];
95
+ callback_exports: string[];
96
+ callback_strings: string[];
97
+ service_hooks: string[];
98
+ callback_surface?: string[] | undefined;
99
+ }>;
100
+ lifecycle_surface: z.ZodObject<{
101
+ lifecycle_exports: z.ZodArray<z.ZodString, "many">;
102
+ lifecycle_imports: z.ZodArray<z.ZodString, "many">;
103
+ attach_detach_strings: z.ZodArray<z.ZodString, "many">;
104
+ confidence: z.ZodNumber;
105
+ }, "strip", z.ZodTypeAny, {
106
+ confidence: number;
107
+ lifecycle_exports: string[];
108
+ lifecycle_imports: string[];
109
+ attach_detach_strings: string[];
110
+ }, {
111
+ confidence: number;
112
+ lifecycle_exports: string[];
113
+ lifecycle_imports: string[];
114
+ attach_detach_strings: string[];
115
+ }>;
116
+ class_factory_surface: z.ZodObject<{
117
+ class_factory_exports: z.ZodArray<z.ZodString, "many">;
118
+ activation_markers: z.ZodArray<z.ZodString, "many">;
119
+ confidence: z.ZodNumber;
120
+ }, "strip", z.ZodTypeAny, {
121
+ confidence: number;
122
+ class_factory_exports: string[];
123
+ activation_markers: string[];
124
+ }, {
125
+ confidence: number;
126
+ class_factory_exports: string[];
127
+ activation_markers: string[];
128
+ }>;
129
+ callback_surface: z.ZodObject<{
130
+ callback_exports: z.ZodArray<z.ZodString, "many">;
131
+ callback_strings: z.ZodArray<z.ZodString, "many">;
132
+ host_hints: z.ZodArray<z.ZodString, "many">;
133
+ confidence: z.ZodNumber;
134
+ }, "strip", z.ZodTypeAny, {
135
+ confidence: number;
136
+ host_hints: string[];
137
+ callback_exports: string[];
138
+ callback_strings: string[];
139
+ }, {
140
+ confidence: number;
141
+ host_hints: string[];
142
+ callback_exports: string[];
143
+ callback_strings: string[];
144
+ }>;
145
+ dll_entry_hints: z.ZodArray<z.ZodString, "many">;
146
+ likely_entry_model: z.ZodString;
147
+ analysis_priorities: z.ZodArray<z.ZodString, "many">;
148
+ }, "strip", z.ZodTypeAny, {
149
+ sample_id: string;
150
+ export_surface: {
151
+ total_exports: number;
152
+ total_forwarders: number;
153
+ notable_exports: string[];
154
+ com_related_exports: string[];
155
+ service_related_exports: string[];
156
+ plugin_related_exports: string[];
157
+ forwarded_exports: string[];
158
+ };
159
+ callback_surface: {
160
+ confidence: number;
161
+ host_hints: string[];
162
+ callback_exports: string[];
163
+ callback_strings: string[];
164
+ };
165
+ binary_role: string;
166
+ original_filename: string | null;
167
+ analysis_priorities: string[];
168
+ class_factory_surface: {
169
+ confidence: number;
170
+ class_factory_exports: string[];
171
+ activation_markers: string[];
172
+ };
173
+ role_confidence: number;
174
+ export_dispatch_profile: {
175
+ confidence: number;
176
+ command_like_exports: string[];
177
+ callback_like_exports: string[];
178
+ registration_exports: string[];
179
+ ordinal_only_exports: number;
180
+ likely_dispatch_model: string;
181
+ };
182
+ lifecycle_surface: {
183
+ confidence: number;
184
+ lifecycle_exports: string[];
185
+ lifecycle_imports: string[];
186
+ attach_detach_strings: string[];
187
+ };
188
+ host_interaction_profile: {
189
+ confidence: number;
190
+ callback_surface: string[];
191
+ likely_hosted: boolean;
192
+ host_hints: string[];
193
+ callback_exports: string[];
194
+ callback_strings: string[];
195
+ service_hooks: string[];
196
+ };
197
+ library_like: boolean;
198
+ dll_entry_hints: string[];
199
+ likely_entry_model: string;
200
+ }, {
201
+ sample_id: string;
202
+ export_surface: {
203
+ total_exports: number;
204
+ total_forwarders: number;
205
+ notable_exports: string[];
206
+ com_related_exports: string[];
207
+ service_related_exports: string[];
208
+ plugin_related_exports: string[];
209
+ forwarded_exports: string[];
210
+ };
211
+ callback_surface: {
212
+ confidence: number;
213
+ host_hints: string[];
214
+ callback_exports: string[];
215
+ callback_strings: string[];
216
+ };
217
+ binary_role: string;
218
+ original_filename: string | null;
219
+ analysis_priorities: string[];
220
+ class_factory_surface: {
221
+ confidence: number;
222
+ class_factory_exports: string[];
223
+ activation_markers: string[];
224
+ };
225
+ role_confidence: number;
226
+ export_dispatch_profile: {
227
+ confidence: number;
228
+ command_like_exports: string[];
229
+ callback_like_exports: string[];
230
+ registration_exports: string[];
231
+ ordinal_only_exports: number;
232
+ likely_dispatch_model: string;
233
+ };
234
+ lifecycle_surface: {
235
+ confidence: number;
236
+ lifecycle_exports: string[];
237
+ lifecycle_imports: string[];
238
+ attach_detach_strings: string[];
239
+ };
240
+ host_interaction_profile: {
241
+ confidence: number;
242
+ likely_hosted: boolean;
243
+ host_hints: string[];
244
+ callback_exports: string[];
245
+ callback_strings: string[];
246
+ service_hooks: string[];
247
+ callback_surface?: string[] | undefined;
248
+ };
249
+ library_like: boolean;
250
+ dll_entry_hints: string[];
251
+ likely_entry_model: string;
252
+ }>;
253
+ export declare const DllExportProfileOutputSchema: z.ZodObject<{
254
+ ok: z.ZodBoolean;
255
+ data: z.ZodOptional<z.ZodObject<{
256
+ sample_id: z.ZodString;
257
+ original_filename: z.ZodNullable<z.ZodString>;
258
+ binary_role: z.ZodString;
259
+ library_like: z.ZodBoolean;
260
+ role_confidence: z.ZodNumber;
261
+ export_surface: z.ZodObject<{
262
+ total_exports: z.ZodNumber;
263
+ total_forwarders: z.ZodNumber;
264
+ notable_exports: z.ZodArray<z.ZodString, "many">;
265
+ com_related_exports: z.ZodArray<z.ZodString, "many">;
266
+ service_related_exports: z.ZodArray<z.ZodString, "many">;
267
+ plugin_related_exports: z.ZodArray<z.ZodString, "many">;
268
+ forwarded_exports: z.ZodArray<z.ZodString, "many">;
269
+ }, "strip", z.ZodTypeAny, {
270
+ total_exports: number;
271
+ total_forwarders: number;
272
+ notable_exports: string[];
273
+ com_related_exports: string[];
274
+ service_related_exports: string[];
275
+ plugin_related_exports: string[];
276
+ forwarded_exports: string[];
277
+ }, {
278
+ total_exports: number;
279
+ total_forwarders: number;
280
+ notable_exports: string[];
281
+ com_related_exports: string[];
282
+ service_related_exports: string[];
283
+ plugin_related_exports: string[];
284
+ forwarded_exports: string[];
285
+ }>;
286
+ export_dispatch_profile: z.ZodObject<{
287
+ command_like_exports: z.ZodArray<z.ZodString, "many">;
288
+ callback_like_exports: z.ZodArray<z.ZodString, "many">;
289
+ registration_exports: z.ZodArray<z.ZodString, "many">;
290
+ ordinal_only_exports: z.ZodNumber;
291
+ likely_dispatch_model: z.ZodString;
292
+ confidence: z.ZodNumber;
293
+ }, "strip", z.ZodTypeAny, {
294
+ confidence: number;
295
+ command_like_exports: string[];
296
+ callback_like_exports: string[];
297
+ registration_exports: string[];
298
+ ordinal_only_exports: number;
299
+ likely_dispatch_model: string;
300
+ }, {
301
+ confidence: number;
302
+ command_like_exports: string[];
303
+ callback_like_exports: string[];
304
+ registration_exports: string[];
305
+ ordinal_only_exports: number;
306
+ likely_dispatch_model: string;
307
+ }>;
308
+ host_interaction_profile: z.ZodObject<{
309
+ likely_hosted: z.ZodBoolean;
310
+ host_hints: z.ZodArray<z.ZodString, "many">;
311
+ callback_exports: z.ZodArray<z.ZodString, "many">;
312
+ callback_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
313
+ callback_strings: z.ZodArray<z.ZodString, "many">;
314
+ service_hooks: z.ZodArray<z.ZodString, "many">;
315
+ confidence: z.ZodNumber;
316
+ }, "strip", z.ZodTypeAny, {
317
+ confidence: number;
318
+ callback_surface: string[];
319
+ likely_hosted: boolean;
320
+ host_hints: string[];
321
+ callback_exports: string[];
322
+ callback_strings: string[];
323
+ service_hooks: string[];
324
+ }, {
325
+ confidence: number;
326
+ likely_hosted: boolean;
327
+ host_hints: string[];
328
+ callback_exports: string[];
329
+ callback_strings: string[];
330
+ service_hooks: string[];
331
+ callback_surface?: string[] | undefined;
332
+ }>;
333
+ lifecycle_surface: z.ZodObject<{
334
+ lifecycle_exports: z.ZodArray<z.ZodString, "many">;
335
+ lifecycle_imports: z.ZodArray<z.ZodString, "many">;
336
+ attach_detach_strings: z.ZodArray<z.ZodString, "many">;
337
+ confidence: z.ZodNumber;
338
+ }, "strip", z.ZodTypeAny, {
339
+ confidence: number;
340
+ lifecycle_exports: string[];
341
+ lifecycle_imports: string[];
342
+ attach_detach_strings: string[];
343
+ }, {
344
+ confidence: number;
345
+ lifecycle_exports: string[];
346
+ lifecycle_imports: string[];
347
+ attach_detach_strings: string[];
348
+ }>;
349
+ class_factory_surface: z.ZodObject<{
350
+ class_factory_exports: z.ZodArray<z.ZodString, "many">;
351
+ activation_markers: z.ZodArray<z.ZodString, "many">;
352
+ confidence: z.ZodNumber;
353
+ }, "strip", z.ZodTypeAny, {
354
+ confidence: number;
355
+ class_factory_exports: string[];
356
+ activation_markers: string[];
357
+ }, {
358
+ confidence: number;
359
+ class_factory_exports: string[];
360
+ activation_markers: string[];
361
+ }>;
362
+ callback_surface: z.ZodObject<{
363
+ callback_exports: z.ZodArray<z.ZodString, "many">;
364
+ callback_strings: z.ZodArray<z.ZodString, "many">;
365
+ host_hints: z.ZodArray<z.ZodString, "many">;
366
+ confidence: z.ZodNumber;
367
+ }, "strip", z.ZodTypeAny, {
368
+ confidence: number;
369
+ host_hints: string[];
370
+ callback_exports: string[];
371
+ callback_strings: string[];
372
+ }, {
373
+ confidence: number;
374
+ host_hints: string[];
375
+ callback_exports: string[];
376
+ callback_strings: string[];
377
+ }>;
378
+ dll_entry_hints: z.ZodArray<z.ZodString, "many">;
379
+ likely_entry_model: z.ZodString;
380
+ analysis_priorities: z.ZodArray<z.ZodString, "many">;
381
+ }, "strip", z.ZodTypeAny, {
382
+ sample_id: string;
383
+ export_surface: {
384
+ total_exports: number;
385
+ total_forwarders: number;
386
+ notable_exports: string[];
387
+ com_related_exports: string[];
388
+ service_related_exports: string[];
389
+ plugin_related_exports: string[];
390
+ forwarded_exports: string[];
391
+ };
392
+ callback_surface: {
393
+ confidence: number;
394
+ host_hints: string[];
395
+ callback_exports: string[];
396
+ callback_strings: string[];
397
+ };
398
+ binary_role: string;
399
+ original_filename: string | null;
400
+ analysis_priorities: string[];
401
+ class_factory_surface: {
402
+ confidence: number;
403
+ class_factory_exports: string[];
404
+ activation_markers: string[];
405
+ };
406
+ role_confidence: number;
407
+ export_dispatch_profile: {
408
+ confidence: number;
409
+ command_like_exports: string[];
410
+ callback_like_exports: string[];
411
+ registration_exports: string[];
412
+ ordinal_only_exports: number;
413
+ likely_dispatch_model: string;
414
+ };
415
+ lifecycle_surface: {
416
+ confidence: number;
417
+ lifecycle_exports: string[];
418
+ lifecycle_imports: string[];
419
+ attach_detach_strings: string[];
420
+ };
421
+ host_interaction_profile: {
422
+ confidence: number;
423
+ callback_surface: string[];
424
+ likely_hosted: boolean;
425
+ host_hints: string[];
426
+ callback_exports: string[];
427
+ callback_strings: string[];
428
+ service_hooks: string[];
429
+ };
430
+ library_like: boolean;
431
+ dll_entry_hints: string[];
432
+ likely_entry_model: string;
433
+ }, {
434
+ sample_id: string;
435
+ export_surface: {
436
+ total_exports: number;
437
+ total_forwarders: number;
438
+ notable_exports: string[];
439
+ com_related_exports: string[];
440
+ service_related_exports: string[];
441
+ plugin_related_exports: string[];
442
+ forwarded_exports: string[];
443
+ };
444
+ callback_surface: {
445
+ confidence: number;
446
+ host_hints: string[];
447
+ callback_exports: string[];
448
+ callback_strings: string[];
449
+ };
450
+ binary_role: string;
451
+ original_filename: string | null;
452
+ analysis_priorities: string[];
453
+ class_factory_surface: {
454
+ confidence: number;
455
+ class_factory_exports: string[];
456
+ activation_markers: string[];
457
+ };
458
+ role_confidence: number;
459
+ export_dispatch_profile: {
460
+ confidence: number;
461
+ command_like_exports: string[];
462
+ callback_like_exports: string[];
463
+ registration_exports: string[];
464
+ ordinal_only_exports: number;
465
+ likely_dispatch_model: string;
466
+ };
467
+ lifecycle_surface: {
468
+ confidence: number;
469
+ lifecycle_exports: string[];
470
+ lifecycle_imports: string[];
471
+ attach_detach_strings: string[];
472
+ };
473
+ host_interaction_profile: {
474
+ confidence: number;
475
+ likely_hosted: boolean;
476
+ host_hints: string[];
477
+ callback_exports: string[];
478
+ callback_strings: string[];
479
+ service_hooks: string[];
480
+ callback_surface?: string[] | undefined;
481
+ };
482
+ library_like: boolean;
483
+ dll_entry_hints: string[];
484
+ likely_entry_model: string;
485
+ }>>;
486
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
487
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
488
+ metrics: z.ZodOptional<z.ZodObject<{
489
+ elapsed_ms: z.ZodNumber;
490
+ tool: z.ZodString;
491
+ }, "strip", z.ZodTypeAny, {
492
+ elapsed_ms: number;
493
+ tool: string;
494
+ }, {
495
+ elapsed_ms: number;
496
+ tool: string;
497
+ }>>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ ok: boolean;
500
+ data?: {
501
+ sample_id: string;
502
+ export_surface: {
503
+ total_exports: number;
504
+ total_forwarders: number;
505
+ notable_exports: string[];
506
+ com_related_exports: string[];
507
+ service_related_exports: string[];
508
+ plugin_related_exports: string[];
509
+ forwarded_exports: string[];
510
+ };
511
+ callback_surface: {
512
+ confidence: number;
513
+ host_hints: string[];
514
+ callback_exports: string[];
515
+ callback_strings: string[];
516
+ };
517
+ binary_role: string;
518
+ original_filename: string | null;
519
+ analysis_priorities: string[];
520
+ class_factory_surface: {
521
+ confidence: number;
522
+ class_factory_exports: string[];
523
+ activation_markers: string[];
524
+ };
525
+ role_confidence: number;
526
+ export_dispatch_profile: {
527
+ confidence: number;
528
+ command_like_exports: string[];
529
+ callback_like_exports: string[];
530
+ registration_exports: string[];
531
+ ordinal_only_exports: number;
532
+ likely_dispatch_model: string;
533
+ };
534
+ lifecycle_surface: {
535
+ confidence: number;
536
+ lifecycle_exports: string[];
537
+ lifecycle_imports: string[];
538
+ attach_detach_strings: string[];
539
+ };
540
+ host_interaction_profile: {
541
+ confidence: number;
542
+ callback_surface: string[];
543
+ likely_hosted: boolean;
544
+ host_hints: string[];
545
+ callback_exports: string[];
546
+ callback_strings: string[];
547
+ service_hooks: string[];
548
+ };
549
+ library_like: boolean;
550
+ dll_entry_hints: string[];
551
+ likely_entry_model: string;
552
+ } | undefined;
553
+ metrics?: {
554
+ elapsed_ms: number;
555
+ tool: string;
556
+ } | undefined;
557
+ warnings?: string[] | undefined;
558
+ errors?: string[] | undefined;
559
+ }, {
560
+ ok: boolean;
561
+ data?: {
562
+ sample_id: string;
563
+ export_surface: {
564
+ total_exports: number;
565
+ total_forwarders: number;
566
+ notable_exports: string[];
567
+ com_related_exports: string[];
568
+ service_related_exports: string[];
569
+ plugin_related_exports: string[];
570
+ forwarded_exports: string[];
571
+ };
572
+ callback_surface: {
573
+ confidence: number;
574
+ host_hints: string[];
575
+ callback_exports: string[];
576
+ callback_strings: string[];
577
+ };
578
+ binary_role: string;
579
+ original_filename: string | null;
580
+ analysis_priorities: string[];
581
+ class_factory_surface: {
582
+ confidence: number;
583
+ class_factory_exports: string[];
584
+ activation_markers: string[];
585
+ };
586
+ role_confidence: number;
587
+ export_dispatch_profile: {
588
+ confidence: number;
589
+ command_like_exports: string[];
590
+ callback_like_exports: string[];
591
+ registration_exports: string[];
592
+ ordinal_only_exports: number;
593
+ likely_dispatch_model: string;
594
+ };
595
+ lifecycle_surface: {
596
+ confidence: number;
597
+ lifecycle_exports: string[];
598
+ lifecycle_imports: string[];
599
+ attach_detach_strings: string[];
600
+ };
601
+ host_interaction_profile: {
602
+ confidence: number;
603
+ likely_hosted: boolean;
604
+ host_hints: string[];
605
+ callback_exports: string[];
606
+ callback_strings: string[];
607
+ service_hooks: string[];
608
+ callback_surface?: string[] | undefined;
609
+ };
610
+ library_like: boolean;
611
+ dll_entry_hints: string[];
612
+ likely_entry_model: string;
613
+ } | undefined;
614
+ metrics?: {
615
+ elapsed_ms: number;
616
+ tool: string;
617
+ } | undefined;
618
+ warnings?: string[] | undefined;
619
+ errors?: string[] | undefined;
620
+ }>;
621
+ export declare const dllExportProfileToolDefinition: ToolDefinition;
622
+ export declare function createDllExportProfileHandler(workspaceManager: WorkspaceManager, database: DatabaseManager, cacheManager: CacheManager, dependencies?: {
623
+ binaryRoleProfileHandler?: (args: ToolArgs) => Promise<WorkerResult>;
624
+ }): (args: ToolArgs) => Promise<WorkerResult>;
625
+ //# sourceMappingURL=dll-export-profile.d.ts.map