decomp.me icon indicating copy to clipboard operation
decomp.me copied to clipboard

Add WebAssembly decompilation support

Open SkyfallWasTaken opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. It's annoying to have to use, for example, the wasm-decompile CLI to decompile a WebAssembly file. Adding support to decomp.me would make that a lot easier :)

Describe the solution you'd like For WebAssembly to be added as a supported platform on https://decomp.me/new

Describe alternatives you've considered Adding a different decompiler, such as:

  • wasm-objdump WASM into an assembly-like format
  • wasm2wat converts WASM into WAT (WASM as a text format)

Additional context N/A

SkyfallWasTaken avatar Jun 01 '24 14:06 SkyfallWasTaken

Main piece of engineering work here is WASM diffing

bates64 avatar Jun 01 '24 15:06 bates64

I also noticed that the site also attempts to recompile the decompiler's output. However, that would only work w/ wasm2wat, since wasm-decompile's output can't be compiled back into WASM

SkyfallWasTaken avatar Jun 01 '24 15:06 SkyfallWasTaken

Are there any (offline) projects that are a matching decompilation of wasm? The purpose of decomp.me is to foster collaboration around matching decompilation - you also are meant to feed in the disassembly (i.e. assemble-able assembly code) as the starting point for your scratch.

mkst avatar Jun 03 '24 18:06 mkst

wasm2wat output can be recompiled to wasm, if that's what you're asking for

SkyfallWasTaken avatar Jun 07 '24 22:06 SkyfallWasTaken