Analyzing pe imports and exports

From meltedinhex/analyst-ai-pack · View interactive version

Analyzing pe imports and exports is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Analyzes a PE file''s import and export tables to infer capability: mapping imported APIs to behaviors (networking, crypto, injection, persistence), spotting dynamic-resolution stubs, and reading exports of malicious DLLs. Activates for requests to analyze PE imports, inspect the IAT/exports, or inf

How to use this skill

Skill file

Analyzing PE Imports and Exports

When to Use

reversing.

Do not use the import table alone as a verdict — packers stub imports and malware resolves

APIs dynamically; a thin IAT can hide real capability.

Prerequisites

Safety & Handling

Workflow

Step 1: Parse imports

Enumerate imported DLLs and functions from the import directory (IAT). A sparse IAT plus a

GetProcAddress/LoadLibrary pair suggests dynamic resolution.

python scripts/analyst.py imports sample.exe

Step 2: Map APIs to behaviors

Cluster imports into behavior buckets: networking (Ws2_32, WinINet), process/injection

(VirtualAllocEx, WriteProcessMemory, CreateRemoteThread), crypto (Crypt*, bcrypt),

persistence (Reg*, service APIs), and anti-analysis (IsDebuggerPresent).

Step 3: Inspect exports

For DLLs, list exports (by name and ordinal). Unusual export names or a single exported

DllRegisterServer/ordinal hint at how the module is invoked.

Step 4: Flag dynamic resolution

Note LoadLibrary/GetProcAddress, ordinal-only imports, and tiny IATs as signs that the real

capability is resolved at runtime — escalate to dynamic/RE workflows.

Validation

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.