Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/dodo-sec/astaroth-deobfuscator
Static AnalysisReverse EngineeringMalware AnalysisBinary Analysis
GitHubdodo-sec/astaroth-deobfuscator

astaroth-deobfuscator

IDA python script for deobfuscating Astaroth/Guildma injector DLL

View Repository
81343 years agoNot yet reviewed
Share

astaroth-deobfuscator

IDA python script for deobfuscating Astaroth/Guildma injector DLL

When trying to analyze the injector DLL from a recent Astaroth/Guildma campaign (thanks to this diary from SANS ISC), I came across a really annoying attempt at obfuscation.

A function (which I called time_waster_3000 on the image below) is called over 1,000 times (!!!) across the DLL. This function takes six hardcoded strings as arguments, alongside a random word. The function itself is a rabbit hole of arithmetics that serve no practical purpose as far as I could tell (aside from wasting a reverser's time). Here's how the DLLEntry looks with those annoying calls in place:

DLL Entry before deobfuscation

The purpose of this IDA python script is to hide all blocks of code that involve a call to this junk function, as well as its arguments. Here's how DLLEntry looks after the script is ran:

DLL Entry after deobfuscation

Important considerations

  • The script works by finding a call to the padding function, represented by call sub_CHANGEME in the script. Therefore, you need to rename it in the script with the function name found on the sample you're dealing with. For example, changing idc.print_operand(x, 0) == 'sub_CHANGEME' to idc.print_operand(x, 0) == 'sub_431000'.

  • I've chosen to iterate over the call sub_CHANGEME instruction instead of over argument pushes. The reason for this is simple: the hardcoded strings are present in multiple places across the binary; therefore, when I tried searching by push instructions involving said strings' offsets, the script wouldn't find all instances of this junk data.

  • The script used to work by hiding each instance of the passing of arguments and call to the padding function as one collapsed block. Since the function is called multiple times back to back, that resulted in huge blank spaces in the disassembly view. I've updated it to hide sequential instances of this padding in one single collapsed block, which really improves readability.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    851
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    538
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    420
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    357
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    297
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    280

Explore all tools

Browse our collection of tools

View all tools →