tinycodinglm / sec /pe-0002.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 16)
d517dc9 verified
|
Raw History Blame Contribute Delete
1.06 kB
opencode trace
System You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing c...

You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies.

User

How to parse PE import tables

Assistant

PE Import Table via IMAGE_DIRECTORY_ENTRY_IMPORT:\n\nIMAGE_IMPORT_DESCRIPTOR per DLL: Name (DLL name), OriginalFirstThunk (INT), FirstThunk (IAT)\n\nIAT entries: by ordinal (high bit set) or by name (IMAGE_IMPORT_BY_NAME with hint+name)\n\nWith pelib: PeLib::ImportDirectory importDir = pe->imports(); importDir.getDllName(i); importDir.getFunctionName(i, j)