---
id: 6441
title: "Injecting Code using Imported Functions into Native PE Files"
source_domain: blog.washi.dev
source_url: "https://blog.washi.dev/posts/import-patching/"
published_at: "2023-02-07T00:00:00Z"
tags: ["windows", "reverse-engineering", "code-injection", "asmresolver", "pe-format", "imports"]
phying_url: "https://phying.com/item/6441"
lang: en
---

# Injecting Code using Imported Functions into Native PE Files

## Summary

A guide to injecting code that calls external functions into native PE files: explains import lookup and address tables, and implements import directory rebuilding with AsmResolver.

## Intelligence Metadata

- **Sources:** blog.washi.dev
- **Published:** 2023-02-07T00:00:00Z
- **Original:** https://blog.washi.dev/posts/import-patching/
- **Phying News:** https://phying.com/item/6441
