AETERNAE AI RESEARCH LLC INDEPENDENT RESEARCH
ÆAETERNAERESEARCH
Sign inRequest access
← Malware catalog

Attributed metadata history

REPORTPUBLIC METADATA

Malware development trick 68: Module overloading. Simple C example

﷽ Introduction to Malware Binary Triage (IMBT) Course Looking to level up your skills? Get 10% off using coupon code: MWNEWS10 for any flavor. Enroll Now and Save 10%: Coupon Code MWNEWS10 Note: Affiliate link – your enrollment helps support this platform at no extra cost to you. Hello, cybersecurity enthusiasts and white hackers! In trick 59, we overwrote a function. In trick 61, we mapped a DLL and replaced its entry-point instructions with shellcode. Today I want to continue that experiment with module overloading: place a complete PE image inside the image mapping of another DLL. As usual, the visible result will be a Meow-meow! message box with the =^..^= caption. This time the payload is a small DLL written in C. The host must prepare its imports and relocations before calling its entry point. a few words before we start The names module stomping, DLL hollowing, and module overloading overlap in different publications. In this post, I use the following distinction: function stomping - instructions at a selected function module stomping in trick 61 - instructions at the carrier DLL’s entry point module overloading here - the carrier’s mapped headers and section contents, using another PE image The important change is the payload format. Position-independent shellcode already contains instructions designed for its execution environment. An ordinary DLL also contains section layouts, an import table and possibly absolute addresses that depend on its preferred image base. Copying its file bytes to a new address does not prepare it for execution. We will use two files: hack.c: reads our payload, maps the carrier, prepares the replacement image and calls its entry point. meow.c: builds the small meow.dll payload that displays the dialog. Everything happens in the current process. The carrier is WsmSvc.dll from the Windows system directory. We open that file for reading and create a separate image view of it. concept Here is the sequence: meow.dll on disk System32\WsmSvc.dll | | read and validate create SEC_IMAGE mapping | | +---- copy headers and sections -->| | apply relocations | resolve imports | set section protections | call payload entry point | Meow-meow! The section object was created from the carrier file. Replacing bytes in that view does not turn it into a section object created from meow.dll. This gives us two things to compare: the mapping’s backing file and the PE contents currently inside the mapping. An image view is reported as MEM_IMAGE. Microsoft documents an important detail: after a copy-on-write image page becomes private to the process, VirtualQuery can still report MEM_IMAGE. To investigate sharing at page level, use the Shared bit from QueryWorkingSetEx; the mapping type alone does not answer that question. See VirtualQuery. practical example First of all, let’s prepare the payload. I use a direct DLL entry point and omit C runtime startup for this small experiment. That keeps the payload’s loading requirements visible. Now the complete payload (meow.c): /* * meow.c - a small PE payload for the module overloading lab * author: @cocomelonc */ #include <windows.h> #ifndef _WIN64 #error Build this example for Windows x64. #endif static const char message = “Meow-meow!”; /* Keep an absolute pointer in .data so that the DLL needs a DIR64 relocation. */ static const char *volatile text = message; BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) { (void)instance

Reference details

Source category
research-report
First reported
Nov 03, 2026 22:01 UTC
Last reported
Nov 03, 2026 22:01 UTC
Catalog updated
Nov 04, 2026 12:05 UTC
Record ID
91b0c0a6b56b9820009dbcb07c18115861d9750ee24ef6214b591ee678b18379

Published indicators

Network indicators are visibly defanged. This page does not make them clickable or send them to another service.

No validated file hashes or network indicators are stored for this record.

Source observations

intelligence_src_f9879f264b7a8ec1d7

Source-provided label
Publisher RSS metadata
Evidence class
mentioned in report
Confidence
Not reported
Observed
Nov 03, 2026 22:01 UTC
Retrieved
Nov 04, 2026 12:05 UTC

This record contains metadata and attribution only. It does not host, download, unpack, render, or execute malware samples.

Feed collection status

Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.

1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.

Review source update dates and status
  • intelligence_src_f9879f264b7a8ec1d7Recent successful batchLast successful batch: Last attempt:

Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.