News for hackers. Stuff that matters.
Re:The Long Tail of LLM-Assisted Decompilation by seddonm1 on Tuesday February 17, 2026 @12:02AM (#47043875)
I delivered a talk at Rust Sydney about this exact topic last week:

https://reorchestrate.com/posts/your-binary-is-no-longer-saf...

I am able to translate multi-thousand line c functions - and reproduce bug-for-bug implementation

Re:The Long Tail of LLM-Assisted Decompilation by measurablefunc on Tuesday February 17, 2026 @12:05AM (#47043889)
Decompilation does not preserve semantics. You generally do not know whether the code from the decompiler will be compiled to semantically equivalent binary that you initially decompiled.
Re:The Long Tail of LLM-Assisted Decompilation by seddonm1 on Tuesday February 17, 2026 @12:11AM (#47043911)
My test harness loads up the original DLL then executes that in parallel against the converted code (differential testing). That closes the feedback loop the LLM needs to be able to find and fix discrepancies.

I'm also doing this on an old Win32 DLL so the task is probably much easier than a lot of code bases.

Re:The Long Tail of LLM-Assisted Decompilation by measurablefunc on Tuesday February 17, 2026 @12:22AM (#47043988)
What are you tracking during the runtime tracing? Or is that written up in your link?
Re:The Long Tail of LLM-Assisted Decompilation by seddonm1 on Tuesday February 17, 2026 @12:36AM (#47044070)
I am applying differential/property based testing to all the side effects of functions (mutations) and return values. The rust code coverage is also used to steer the LLM as it finds discrepancies in side effects.

It is written up in my link - please bear in mind it is really hard to find the right level to communicate this level of detail at - so I'm happy to answer questions.

Re:The Long Tail of LLM-Assisted Decompilation by measurablefunc on Tuesday February 17, 2026 @12:38AM (#47044082)
That's fine, that answers my question.
Re:The Long Tail of LLM-Assisted Decompilation by easyThrowaway on Tuesday February 17, 2026 @09:32AM (#47047887)
Many of the decompiled console games of the '90s were originally written in C89 using an ad-hoc compiler from Metrowerks or some off-branch release of gcc-2.95 plus console specific assemblers.

I willing to bet that the decompiled output is gonna be more readable than the original source code.

Re:The Long Tail of LLM-Assisted Decompilation by measurablefunc on Tuesday February 17, 2026 @02:00PM (#47051516)
Not related to what I was saying. Compilation is a many-to-one transformation & although you can try to guess an inverse there is no way to guarantee you will recover the original source b/c at the assembly level you don't have any types & structs.