Analyze JavaScript and VBScript Malware With x64dbg Debugger and API Hooking @OALABS
Analyze JavaScript and VBScript Malware With x64dbg Debugger and API Hooking  @OALABS
Uploaded January 2018 | Updated November 2026, 1 day ago
Open Analysis Live! The fastest way to analyze JavaScript and VBScript malware is by using a debugger to hook API calls. In this tutorial we demonstrate this technique using x64dbg debugger and then demo a tool to automate the whole process frida-wshook.

-----
OALABS DISCORD
discord.gg/6h5Bh5AMDU

OALABS PATREON
patreon.com/oalabs

OALABS TIP JAR
ko-fi.com/oalabs

OALABS GITHUB
github.com/OALabs

UNPACME - AUTOMATED MALWARE UNPACKING
unpac.me/#

-----

**NOTE: as Duncan Ogilvie pointed out I made a mistake when describing the DLL breakpoints, they actually just break when a DLL is loaded and after that on the DLL entry point. Thanks Duncan!

The malicious JavaScript can be downloaded here:
malshare.com/sample.php?action=detail&hash=77996383ebb12476d1896eeb8dedf70b

Out other tutorial for manually deobfuscating wscript can be watched here:
youtu.be/_QXJmkwWqiQ

You can find x64dbg here:
x64dbg.com/#start

The automated deobfuscation too frida-wshook can be found on our github here:
github.com/OALabs/frida-wshook

Here are some links to other excellent wscript analysis tools:
Macros
github.com/egaus/maliciousmacrobot

Windbg JavaScript analysis
github.com/szimeus/evalyzer

Online JS WScript analyzer
mrpapercut.com/sites/wscript

Another JS sandbox
github.com/HynekPetrak/malware-jail

JStillery an automated JS deobfuscator
github.com/mindedsecurity/JStillery

Feedback, questions, and suggestions are always welcome : )

Sergei twitter.com/herrcore
Sean twitter.com/seanmw

As always check out our tools, tutorials, and more content over at openanalysis.net
Analyze JavaScript and VBScript Malware With x64dbg Debugger and API HookingAre Red Team Tools Helping or Hurting Our Industry? [OALABS Call-In Show]How Do Packers Work - Reverse Engineering FUD Aegis CrypterUnderstanding The PEB for Reverse Engineersx64dbg System Breakpoint ExplainedUnpacking Bokbot / IcedID Malware - Part 1Reverse Engineering a DGA (Domain Generation Algorithm)Unpacking Quick Tip: Two Breakpoints to Unpack Hermes RansomwareThe Vitali MetricUnderstanding Pointers for Reverse Engineers - Pointer Basics in Assembly [ Patreon Unlocked ]Introduction to YARA Part 4 - Efficient Rule DevelopmentIntroduction to YARA Part 3 - Rule Use Cases
OALabs |

Analyze JavaScript and VBScript Malware With x64dbg Debugger and API Hooking

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER