Remix.run Logo
▲ rhdunn 2 hours ago

It should be theoretically possible to use C/etc. source code, assembly output, and compiled output in the training set with equivalence mapping between them. That would make it possible for the LLM to learn disassembly and decompiling to some degree.

You don't need software for that aside from the compiler/linker tools (which are free for C/C++ compilers, rust, etc.). You can then permutate/generate the source code using tools/techniques like fuzzing.

There's also things like Intel's instruction set documentation.

▲cedws 2 hours ago | parent [-]

An LLM trained on decompilation would be a game changer, but there's no way they'd allow us to use it.

▲ 23 minutes ago | parent | next [-]
[deleted]
▲ape4 an hour ago | parent | prev | next [-]

Maybe you could use a regular decompiler. It makes bad variable and function names. Then get an existing LLM to correct the names.

▲dreamcompiler 22 minutes ago | parent | prev [-]

It's been a thing for a couple of years now e.g.

https://arxiv.org/html/2403.05286v2