Is This the Same Code? A Comprehensive Study of Decompilation Techniques for WebAssembly Binaries
Wei-Cheng Wu (1), Yutian Yan (2), Hallgrimur David Egilsson (2), David, Park (2), Steven Chan (2), Christophe Hauser (1), Weihang Wang (2) ((1), Dartmouth College, (2) University of Southern California)

TL;DR
This paper conducts a comprehensive analysis of decompilation techniques for WebAssembly binaries, comparing the quality of decompiled C code to native binary decompilers to assess correctness, readability, and structural similarity.
Contribution
It introduces a novel empirical framework for evaluating WASM decompilers, filling a research gap and providing insights into their effectiveness and limitations.
Findings
Decompiled WASM code shows varying levels of correctness and readability.
The proposed metrics effectively evaluate decompiler quality.
Insights reveal constraints and characteristics of current decompilation methods.
Abstract
WebAssembly is a low-level bytecode language designed for client-side execution in web browsers. The need for decompilation techniques that recover high-level source code from WASM binaries has grown as WASM continues to gain widespread adoption and its security concerns. However little research has been done to assess the quality of decompiled code from WASM. This paper aims to fill this gap by conducting a comprehensive comparative analysis between decompiled C code from WASM binaries and state-of-the-art native binary decompilers. We presented a novel framework for empirically evaluating C-based decompilers from various aspects including correctness/ readability/ and structural similarity. The proposed metrics are validated practicality in decompiler assessment and provided insightful observations regarding the characteristics and constraints of existing decompiled code. This in turn…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsManufacturing Process and Optimization · Injection Molding Process and Properties · Advancements in Photolithography Techniques
