Skip to main content

Module wasm

Module wasm 

Source
Expand description

WebAssembly decompiler — parse .wasm binaries and emit C-like pseudocode.

WASM is a stack-based VM, not a register machine, so we can’t use the SLEIGH pipeline. Instead, this module directly parses WASM bytecode and reconstructs expressions by simulating the value stack.

Structs§

WasmFunc
A discovered WASM function with its name, type, and body offset.

Functions§

decompile_wasm_func
Decompile a single WASM function to C-like pseudocode.
parse_wasm
Parse a WASM binary and return the list of functions.