News for hackers. Stuff that matters.
Re:LLMs can read and write executables byte by byte from a h... by Neywiny on Wednesday November 18, 2026 @05:44PM (#50553419)
Wow. It can read bytes from a byte output? That's incredible
Re:LLMs can read and write executables byte by byte from a h... by plqbfbv on Saturday November 21, 2026 @10:26AM (#50590151)
[delayed]
Re:LLMs can read and write executables byte by byte from a h... by saagarjha on Saturday November 21, 2026 @11:00AM (#50590524)
People can do this in some limited circumstances, LLMs are just better at it
Re:LLMs can read and write executables byte by byte from a h... by anon291 on Saturday November 21, 2026 @06:28PM (#50594679)
I mean it's not 'limited circumstances'. If you work on this daily it's not that big a deal. I'm a compiler engineer, and while it's not my favorite I can 'read' machine code. I have a fairly good intuition for x86 and some more esoteric architectures I've worked on

What I don't have is the encyclopedic knowledge that comes from being trained on the processor manuals.

Re:LLMs can read and write executables byte by byte from a h... by pier25 on Saturday November 21, 2026 @09:13AM (#50589397)
I've suspected for years that AI companies have been using commercial software to train their models including games, audio plugings, DAWs, etc. It would not surprise me one bit if we find out they used torrented pirated apps like they did with books and music.

There's certainly eg open source audio dev material out there but not nearly as much as web dev. How else do you explain all the avalanche of vibe coded audio plugins and DAWs appearing this year?

Re:LLMs can read and write executables byte by byte from a h... by riggsdk on Saturday November 21, 2026 @09:25AM (#50589519)
In that case it would be movie-plot worthy when the LLM was trained on all those embedded viruses and malware. "Believing" it is intentional and then start embedding it into all software it creates for us.
Re:LLMs can read and write executables byte by byte from a h... by goodmythical on Saturday November 21, 2026 @12:13PM (#50591312)
report shows AI botnet is using your fridge as distributed command and control server

"Hello, we're here to see whether or not your fridge is runni-Hey, no not like that, this is serious!"

Re:LLMs can read and write executables byte by byte from a h... by timacles on Saturday November 21, 2026 @04:03PM (#50593612)
I want to see stuxnet for my LG fridge
Re:LLMs can read and write executables byte by byte from a h... by mixtureoftakes on Saturday November 21, 2026 @09:27AM (#50589551)
There is zero chance models are not trained on pirated media and games, especially most popular ones.

Makes complete sense to study things people actually want to use and consume

Re:LLMs can read and write executables byte by byte from a h... by basilgohar on Saturday November 21, 2026 @09:33AM (#50589588)
I agree 100% with sentiment. It is inconceivable to me that models were not trained, either directly, or indirectly through other aggregates, on code and binaries and, of course, media, fetched from torrent or other filesharing sites.
Re:LLMs can read and write executables byte by byte from a h... by Keyframe on Saturday November 21, 2026 @09:47AM (#50589728)
wouldn't that information leak out or somehow found out? too many people already involved. With some, like Seedance it's obvious of course.
Re:LLMs can read and write executables byte by byte from a h... by docshock on Saturday November 21, 2026 @10:50AM (#50590400)
I thought the fact they fed copyrighted material into the models has been established.
Re:LLMs can read and write executables byte by byte from a h... by georgemcbay on Saturday November 21, 2026 @01:06PM (#50591886)
It has leaked out as part of court cases that Meta has trained LLMs using pirate text torrents.

No reason to belive none of the labs have similarly trained on binaries.

Re:LLMs can read and write executables byte by byte from a h... by hnfong on Sunday November 22, 2026 @12:29AM (#50596600)
Meta dropped out of the LLM race for a while shortly after the court rulings came out. (and their LLM sucked relatively to other offerings) Then Zuckerberg installed a new AI guy who specialized in things like data labelling. Then Meta came back with a better LLM.

Can't say for sure, but the coincidences align pretty well.

Re:LLMs can read and write executables byte by byte from a h... by Danox on Saturday November 21, 2026 @04:40PM (#50593914)
It will once all those involved cash out from the AI companies they’re working with…
Re:LLMs can read and write executables byte by byte from a h... by jarjoura on Saturday November 21, 2026 @03:33PM (#50593347)
At least for Google, they have almost every game worth playing documented in precise frame by frame detail on YouTube. They don't need access to the source code, or compiled binaries to reverse engineer game mechanics. They built vision models perfectly capable of ingesting those game play videos and derive game play understanding from them.

Plus, there's so much open source, and game engine SDKs, freely available, that with a few game engineers at Deep Mind, they can write training systems that connect the dots.

It's definitely a gray area because these models are doing what an indie game dev would do, but at a scale and precision that's basically pirating the game, and getting around the rules of copyright to do it legally.

Re:LLMs can read and write executables byte by byte from a h... by petu on Saturday November 21, 2026 @09:27AM (#50589552)
> How else do you explain all the avalanche of vibe coded audio plugins and DAWs

By them being nothing special?

> appearing this year?

Vibe coding in general became viable last year? Opus 4.5 is Nov 24, 2025.

Re:LLMs can read and write executables byte by byte from a h... by whateveracct on Saturday November 21, 2026 @10:27AM (#50590152)
so weird how AI boosters act like it hasn't been less than a year, isn't it?
Re:LLMs can read and write executables byte by byte from a h... by bitwize on Saturday November 21, 2026 @10:58AM (#50590496)
It hasn't been. Since Opus 4.5 "letting Dario take the wheel" became useful for the vast majority of programmers.

As of this fall, you are being professionally irresponsible and SHOULD NOT be working in the field if AI is not integral to your SDLC. At a minimum it should be checking your code for bugs and vulnerabilities.

Re:LLMs can read and write executables byte by byte from a h... by fwlr on Saturday November 21, 2026 @11:26AM (#50590796)
There are legal issues, ethical issues, moral issues, aesthetic issues, economic issues, financial issues, availability issues, longevity issues, consistency issues, reproducibility issues, sovereignty issues, regulatory issues, licensing issues, terms of service issues, and data retention issues that need to be addressed before AI can even be permitted in my software development life cycle - much less made mandatory on pain of unemployment.
Re:LLMs can read and write executables byte by byte from a h... by bitwize on Saturday November 21, 2026 @11:59AM (#50591178)
What about security issues? What about the fact that if AI isn't hardening your code under your control, it's hacking it under an adversary's?
Re:LLMs can read and write executables byte by byte from a h... by fwlr on Saturday November 21, 2026 @01:07PM (#50591889)
Did it come across as dismissive of security issues? I apologise. The security issues are exactly what’s being weighed against those other issues. Both the security issues and the other issues are valid issues and it’s valid to weigh them against each other.

And I sort of understand what you’re trying to say in that second line, something along the lines of “the only thing that stops a bad guy with a gun, is a good guy with a gun”, right? Unfortunately it’s poorly phrased.

If AI isn’t hardening my code, then my code is very vulnerable to AI hacking from an adversary, I’ll grant that. But an absence of my AI does not cause the presence of an adversary’s AI in the way that the binary construction claims. (Compare “if you’re not with us, you’re against us”, which is a threat that says the absence of your fealty does cause the presence of my hostility.)

Likewise, I’ll grant that AI hardening my code does mitigate the damage from AI hacking, but again its presence does not cause the absence of an adversary’s AI hacking in the way your phrasing says it does.

Re:LLMs can read and write executables byte by byte from a h... by whateveracct on Saturday November 21, 2026 @11:47AM (#50591031)
this is what i'm talking about
Re:LLMs can read and write executables byte by byte from a h... by SyneRyder on Saturday November 21, 2026 @10:31AM (#50590203)
Also the 1 Million token context window helped make it more viable.

I've made a bunch of unreleased vibe-coded VST plugins to replace the hundreds that I've bought over the years - and many of the barriers to development weren't the model. Just having belief that the model was capable of the work, a bit like the 4-minute mile. Also knowing to persevere and iterate with the model, not giving up because the first UI is inevitably so amateurish.

There's also a flywheel happening. If you make permanent notes on the process, your rules for UI design, a library of re-usable components and algorithms, tools so the model can judge its own work... the whole process for the next VST just gets much faster & much easier. Same goes for any software you make with AI too.

Re:LLMs can read and write executables byte by byte from a h... by MomsAVoxell on Saturday November 21, 2026 @03:01PM (#50593064)
Yes, plus there is the fact that there is a HUGE amount of open source audio code out there, many, many DAW’s and so on.

I chalk it up to synth and audio guys being among the more innovative users, personally - its a market of folks who have always wanted to design their own DSP/audio-graphs, and were primed for the opportunity that AI/ML presented to do so.

The same goes for the vibe-coded game communities, and as well all the retro guys.

Folks tend to not realize just how much open source is out there in fields/subjects they’re not really familiar with.

Re:LLMs can read and write executables byte by byte from a h... by pier25 on Saturday November 21, 2026 @08:54PM (#50595472)
> By them being nothing special?

I would agree about a simple reverb or a distortion but there are full vibe coded DAWs out there.

Re:LLMs can read and write executables byte by byte from a h... by rhdunn on Saturday November 21, 2026 @09:33AM (#50589589)
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.

Re:LLMs can read and write executables byte by byte from a h... by cedws on Saturday November 21, 2026 @09:52AM (#50589782)
An LLM trained on decompilation would be a game changer, but there's no way they'd allow us to use it.
Re:LLMs can read and write executables byte by byte from a h... by ape4 on Saturday November 21, 2026 @10:31AM (#50590204)
Maybe you could use a regular decompiler. It makes bad variable and function names. Then get an existing LLM to correct the names.
Re:LLMs can read and write executables byte by byte from a h... by dreamcompiler on Saturday November 21, 2026 @11:05AM (#50590573)
It's been a thing for a couple of years now e.g.

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

Re:LLMs can read and write executables byte by byte from a h... by xnx on Saturday November 21, 2026 @09:42AM (#50589674)
My hunch is that one of the handicaps Google is dealing with (vs. OpenAI and Anthropics) is that Google is not training on pirated media. They are using YouTube, Google book project scans, and purchased copies of media.
Re:LLMs can read and write executables byte by byte from a h... by walthamstow on Saturday November 21, 2026 @11:08AM (#50590605)
YouTube and Google Books are full of user-uploaded pirated media.
Re:LLMs can read and write executables byte by byte from a h... by kakacik on Saturday November 21, 2026 @11:43AM (#50590982)
OP is talking about binaries
Re:LLMs can read and write executables byte by byte from a h... by mike_hearn on Saturday November 21, 2026 @02:22PM (#50592707)
YouTube has a massive system in place to find and block pirated material. I can't remember the last time I saw a simple video rip on YouTube.

Nowadays you're getting gray area stuff like new AI generated stories based in the Harry Potter universe, which is probably copyright violation but it's not actually pirated video, so Content ID doesn't spot it.

Re:LLMs can read and write executables byte by byte from a h... by bmicraft on Saturday November 21, 2026 @05:53PM (#50594448)
They might still train on stuff that's not publicly available on YouTube anymore
Re:LLMs can read and write executables byte by byte from a h... by userbinator on Saturday November 21, 2026 @10:31PM (#50595955)
Nowadays you're getting gray area stuff like new AI generated stories based in the Harry Potter universe

Fanfiction has always existed, albeit in written form, but copyright takedowns are almost unheard of. The gray area is definitely getting bigger, and AI is effectively showing everyone that everything is a derivative work to some extent. I suspect we'll see a massive shift in the general sentiment around IP in the near future.

Re:LLMs can read and write executables byte by byte from a h... by jarjoura on Saturday November 21, 2026 @03:26PM (#50593299)
I suspect that Anthropic, being public, and under scrutiny, will get sued into compliance from all over the world. It's not a foregone conclusion that the data they trained on remains fair game over the long term.
Re:LLMs can read and write executables byte by byte from a h... by hnfong on Sunday November 22, 2026 @12:22AM (#50596573)
At this point they'll get nothing more than a slap on the wrist. No judge wants to be the one to wipe hundreds of billions of dollars off the stock market.
Re:LLMs can read and write executables byte by byte from a h... by MiroslavPokorny on Sunday November 22, 2026 @12:49AM (#50596680)
Its the doctor google problem, some people take any random page with health advise as authentic and authorative. My guess Google and its training also has a similar problem, how can they tell which sources are correct and which are the opposite. Of course there are some easy wins, such as checking the domain but considering that the majority of the internet is filled with random pages of stuff its difficult to judge those.
Re:LLMs can read and write executables byte by byte from a h... by xnx on Sunday November 22, 2026 @02:17PM (#50602923)
Definitely a head problem, but one that Google has been working on for almost 30 years (going back to PageRank).
Re:LLMs can read and write executables byte by byte from a h... by singpolyma3 on Saturday November 21, 2026 @09:59AM (#50589858)
Not saying you're wrong, but LLMs can work in areas they've never been exposed to in languages they've never been exposed to. Training is not needed for something to be possible
Re:LLMs can read and write executables byte by byte from a h... by WarmWash on Saturday November 21, 2026 @10:09AM (#50589959)
They also use synthetic generated data to train on too

If it works and it's verified in nine different ways, throw it in the training pile, and then automate the process.

Re:LLMs can read and write executables byte by byte from a h... by blazarquasar on Saturday November 21, 2026 @01:04PM (#50591870)
That is how you end up with model collapse which, I assume, we will see more and more of.
Re:LLMs can read and write executables byte by byte from a h... by WarmWash on Saturday November 21, 2026 @02:04PM (#50592479)
There were fears about this 3-4 years ago but they never manifested. All the labs train heavily on synthetic data today
Re:LLMs can read and write executables byte by byte from a h... by devmor on Saturday November 21, 2026 @10:10AM (#50589972)
There is absolutely no way to prove that this claim is true because no model advanced enough to do so at a useful level has any fine grained report of its training data that could be used to verify this.
Re:LLMs can read and write executables byte by byte from a h... by docshock on Saturday November 21, 2026 @10:52AM (#50590417)
I'm pretty sure companies are not throwing away their training data each time they build a model.
Re:LLMs can read and write executables byte by byte from a h... by djleni on Saturday November 21, 2026 @11:06AM (#50590591)
This is trivially true. Why can they work with a tool or API I’ve written or something internal to a company? They definitely have not trained on my local machine from 2020.
Re:LLMs can read and write executables byte by byte from a h... by docshock on Saturday November 21, 2026 @01:19PM (#50592005)
The only reason at this point that there is no way to prove the claim is true is that we cannot inspect the weights, nor query for copyright violations.

I imagine that someone will eventually figure out how to query black-box LLMs for copyright violations without triggering their guardrails. This is an existential threat for anyone running a black-box LLM with stolen data.

Re:LLMs can read and write executables byte by byte from a h... by GauntletWizard on Saturday November 21, 2026 @02:30PM (#50592785)
[delayed]
Re:LLMs can read and write executables byte by byte from a h... by pier25 on Saturday November 21, 2026 @08:53PM (#50595465)
Up to a point I imagine. There's very domain specific stuff that I seriously doubt an LLM can create from scratch. Eg: how a DAW balances plugins/audio channels/etc with CPU cores.
Re:LLMs can read and write executables byte by byte from a h... by Teleassassin on Sunday November 22, 2026 @02:14AM (#50597078)
If I made up the syntax for a language, and an algorithm that hasn't been used before, to solve a novel problem.

Given to an LLM it can give me a solution, without knowledge of any of those things?

I'm not sure I understand what you're trying to say, because that claim seems impossible.

Re:LLMs can read and write executables byte by byte from a h... by oilkillsbirds on Sunday November 22, 2026 @02:37AM (#50597181)
He’s just saying that it can generalize. In your hypothetical, if it was given the rules of your syntax it could write programs in it despite not ever being trained on any actual programs in your syntax
Re:LLMs can read and write executables byte by byte from a h... by saagarjha on Saturday November 21, 2026 @11:03AM (#50590547)
AIs are quite good at using existing binary analysis tools; they usually do not just operate on binaries in “prompt space” like this
Re:LLMs can read and write executables byte by byte from a h... by dachris on Saturday November 21, 2026 @11:08AM (#50590607)
And (from a training material point of view) it makes perfect sense.

I would assume that to a LLM, a binary executable is not much worse than actual source code. And it's much denser, just missing the semantics of human-written identifiers. It's the code's pure logic, condensed into machine language.

And there's tons of it, many vendors supply it "freely" (you don't need license keys to train on a binary) It's often battle-tested code that you wouldn't get hold of otherwise, and compared to ingested source code its unlikely that Codex regurgitates a recognizable part of a Windows 2000 DLL into your C++ source code.

Re:LLMs can read and write executables byte by byte from a h... by mycall on Saturday November 21, 2026 @11:46AM (#50591016)
Being deterministic, a binary executable is just a compressed version of source code.
Re:LLMs can read and write executables byte by byte from a h... by shermantanktop on Saturday November 21, 2026 @12:10PM (#50591274)
[delayed]
Re:LLMs can read and write executables byte by byte from a h... by catlifeonmars on Saturday November 21, 2026 @03:12PM (#50593165)
[delayed]
Re:LLMs can read and write executables byte by byte from a h... by pastel8739 on Sunday November 22, 2026 @03:48AM (#50597556)
A raster is not always larger than a vector; if you try to precisely vectorize an image of the real world (modeling each pixel), the vector version will be larger
Re:LLMs can read and write executables byte by byte from a h... by catlifeonmars on Sunday November 22, 2026 @11:45AM (#50601296)
[delayed]
Re:LLMs can read and write executables byte by byte from a h... by pastel8739 on Sunday November 22, 2026 @12:44PM (#50601955)
For a single black pixel, you can encode a raster in 1 byte (for the color). How will you encode that in 1 byte with a vector encoding? Seems to me that you’ll need to specify the color (1 byte) and some coordinates (more).
Re:LLMs can read and write executables byte by byte from a h... by catlifeonmars on Sunday November 22, 2026 @01:04PM (#50602182)
[delayed]
Re:LLMs can read and write executables byte by byte from a h... by pastel8739 on Sunday November 22, 2026 @01:36PM (#50602498)
Sure if your encoding includes the image itself, but you can do that with a bitmap encoding too if you want
Re:LLMs can read and write executables byte by byte from a h... by catlifeonmars on Sunday November 22, 2026 @04:11PM (#50603947)
[delayed]
Re:LLMs can read and write executables byte by byte from a h... by catlifeonmars on Monday November 23, 2026 @03:53AM (#50609091)
[delayed]
Re:LLMs can read and write executables byte by byte from a h... by tancop on Sunday November 22, 2026 @02:40PM (#50603131)
You can trivially transform any raster encoding into a vector one by adding 1 bit that means "decode the rest of this file as raster".

It's technically not just as efficient but the difference is constant and the smallest possible one. And the majority of images that are more efficient as vectors will compensate for it.

Re:LLMs can read and write executables byte by byte from a h... by pastel8739 on Sunday November 22, 2026 @08:50PM (#50606501)
Fine, but that’s not a vector encoding. I just don’t think it’s true that vector encoding is better for most images. In particular, for any photograph.
Re:LLMs can read and write executables byte by byte from a h... by coldtea on Saturday November 21, 2026 @08:31PM (#50595345)
>Executables are often larger than their source code.

Not because they contain more information. Just stuff like inlining or different expression, plus image and other similar assets that we can ignore for this.

Re:LLMs can read and write executables byte by byte from a h... by shermantanktop on Sunday November 22, 2026 @02:03AM (#50597026)
The term I would use is “projection” rather than compression.

Code belongs to the domain of source code. Compilation is a projection of that code into the domain of executables, and that involves enough types of transformation and mapping that it is a one-way operation.

From an information standpoint, some information is added (e.g. optimizations that encode knowledge about efficient bytecode) and some information is lost (e.g. the use of types that adapt to the native word size).

Re:LLMs can read and write executables byte by byte from a h... by mycall on Sunday November 22, 2026 @10:24AM (#50600514)
Projection as an instantiation, makes sense.
Re:LLMs can read and write executables byte by byte from a h... by azornathogron on Saturday November 21, 2026 @12:14PM (#50591329)
Compressed doesn't sound quite right. Source code contains abstractions which are often then expanded out into many variants in an executable (most obviously by function inlining, but at a smaller scope also by things like loop unrolling etc)
Re:LLMs can read and write executables byte by byte from a h... by __MatrixMan__ on Saturday November 21, 2026 @12:33PM (#50591538)
Lossy compression.
Re:LLMs can read and write executables byte by byte from a h... by qjack on Saturday November 21, 2026 @03:15PM (#50593202)
No, it goes the other way. Source code is a lossy compression of the billions of machine operations it can be compiled into. Abstraction is a way of compressing, both in the mechanical LoC sense, as well as in comprehension.
Re:LLMs can read and write executables byte by byte from a h... by svnt on Saturday November 21, 2026 @06:47PM (#50594786)
gainy expansion?
Re:LLMs can read and write executables byte by byte from a h... by vardump on Saturday November 21, 2026 @02:03PM (#50592457)
Many things also expand significantly in binary form. Heavy use of templating, for example.
Re:LLMs can read and write executables byte by byte from a h... by WalterBright on Saturday November 21, 2026 @08:10PM (#50595246)
Good observation!

Another one would be range-based foreach loops.

Re:LLMs can read and write executables byte by byte from a h... by Earw0rm on Saturday November 21, 2026 @02:17PM (#50592630)
That's not quite right - source expresses the idea relative to a language syntax and grammar, whereas machine code (or assembler) implements the idea against a specific target machine, for a specific set of circumstances.

So as an example, there are a bunch of different ways a for or while loop can be implemented in compiled code, but there are also situations where two quite different source constructs can result in the same machine code sequence.

Machine code certainly won't teach an LLM much about how to write good source code.

Re:LLMs can read and write executables byte by byte from a h... by nomel on Saturday November 21, 2026 @06:26PM (#50594669)
Do you think a programmer that knows the low level assembly that will be generated for any source, and necessarily reverse possibilities, would be a better or worse programmer?
Re:LLMs can read and write executables byte by byte from a h... by WalterBright on Saturday November 21, 2026 @08:09PM (#50595237)
As a programmer who implemented multiple compilers, yes, I'm pretty good at knowing what the resulting instruction stream looks like.
Re:LLMs can read and write executables byte by byte from a h... by sorokod on Saturday November 21, 2026 @11:32AM (#50590858)
torrented pirated apps may contain all sorts of nasties, it would be amusing if the nastiness gets embedded in the LLMs
Re:LLMs can read and write executables byte by byte from a h... by Earw0rm on Saturday November 21, 2026 @01:23PM (#50592035)
Audio plugins are something that lots of people wanted to try making, but few (until now) could. Now they all can, and they do.

They're about to learn the hard way that the market wasn't profitable even without 10x the number of new entrants.

And that a third of the paying customer base (which was not that large to begin with) gave up on plug-ins anyway to generate finished music tracks from prompts.

Re:LLMs can read and write executables byte by byte from a h... by SoleilAbsolu on Saturday November 21, 2026 @05:23PM (#50594251)
I think the vibe coded plugins/DAWs are multiplying because electronic musicians with good ideas but lacking programming skills now have the tools to make things. SynthEdit, SynthMaster and Kontakt scripting engine were tools of choice for this previously.

I’ve noticed this at KVRaudio.com, people vibecode mostly for the love of the tools and curiosity about making machines that make noise. The ship for making real money from electronic music/tools pretty much sailed long ago unless you’re a brilliant dev who also understands the business, QC, and marketing side of things and had the foresight/integrity not to hit The Devil’s Johnson of VC/PE $$ - say u-he, Ableton, Valhalla DSP, and a few others.

Re:LLMs can read and write executables byte by byte from a h... by secondcoming on Saturday November 21, 2026 @09:15AM (#50589415)
I recently watched a video of a guy trying to unbrick his Harley Davidson Livewire electric motorbike. Harley Davidson were unable to do it. Perplexity created an app to sniff the canbus and talk to the battery and other components on the bike. Soon it'll be possible to write your own firmware for things like this.

[0] is the episode I'm referring to, but the whole series of videos about his woes with this bike are quite interesting.

[0] https://www.youtube.com/watch?v=Z4Ty0oqA_Bk

Re:LLMs can read and write executables byte by byte from a h... by JKCalhoun on Saturday November 21, 2026 @09:27AM (#50589544)
An uninteresting case I am sure, but I have been leaning on LLMs to disassemble 6502 hex dumps and it's no doubt easy-lifting for them.

And the proof of course is that I can reassemble/link, with "modern" tools, their presented assembly and it combines right back into a hex dump mirroring the original.

Anyway, it's been a joy to take the long-out-of-print book, "The First Book of KIM", and re-typeset it (re-assemble it?) for modern hobbyists like myself. LLMs have allowed me to clean up the poor OCR-extracted text from the original. Claude has not only done that, but found missing labels and "equates" in the assembly, as legitimately printed in the book—not OCR errors.

Heck, Claude latched on to a bug in the classic "WUMPUS" game that apparently the author was not even aware of. (But I left that bug in for hobbyists to find—or exploit.)

Re:LLMs can read and write executables byte by byte from a h... by bananaboy on Saturday November 21, 2026 @04:57PM (#50594047)
You don’t need an LLM to disassemble code though especially for 6502. Disassembly has been a solved problem for decades.
Re:LLMs can read and write executables byte by byte from a h... by JKCalhoun on Sunday November 22, 2026 @01:10AM (#50596772)
Sure. It's practically a lookup table, right?

It's all the other stuff though—when your OCR is shit, for example. And then to add labels, equates, comments(!). Not bad.

Re:LLMs can read and write executables byte by byte from a h... by layer8 on Saturday November 21, 2026 @09:35AM (#50589609)
I wonder if prompt injection via an executable is possible. Especially in the context of having AI perform malware analysis.
Re:LLMs can read and write executables byte by byte from a h... by saagarjha on Saturday November 21, 2026 @11:01AM (#50590532)
Yes but models are fairly resistant to simple prompt injection these days. Having them hit guardrails is a more common strategy
Re:LLMs can read and write executables byte by byte from a h... by MomsAVoxell on Saturday November 21, 2026 @09:44AM (#50589698)
Back in the day, thats how we got executables from one system to another, over ASCII-tuned serial lines. I had a colleague in the 80’s who could muscle-memory a “hx.c” which would produce the requisite hex listing given an input, and if that input was a hex listing, reproduce the binary. It was something like 12 lines of C code and it saved our asses so many times, he eventually made a DOS compatible equivalent that could be piped into DEBUG.com to produce the same results.
Re:LLMs can read and write executables byte by byte from a h... by euroderf on Saturday November 21, 2026 @10:26AM (#50590147)
IIRC there was a bastard mini version of uudecode that was written so that all the opcodes were printable ascii, so you could save the text block, mark it as executable, and off you went... to get a uuencode of the full uudecode binary, decode it with your bastard mini uudecode, and then you were all set.
Re:LLMs can read and write executables byte by byte from a h... by Exmoor on Saturday November 21, 2026 @02:42PM (#50592877)
Not quite sure if this was the same thing, but I recall getting small utilities off some FidoNet echo for dos users which used DEBUG.com to turn it from ASCII into an executable binary.
Re:LLMs can read and write executables byte by byte from a h... by MomsAVoxell on Saturday November 21, 2026 @02:52PM (#50592959)
As far as I know my colleagues tools were never pushed online, we were air-gapped from Fido and USENET and so on back then, but they might’ve made it out there .. he was mighty good at typing it in anew when it was needed though, literally a minute and we’d have bins available to do the rest. I used to use it to get zmodem.exe and kermit.exe onboard remotely managed DOS systems that didn’t have compilers .. I also had a 20 line debug.com assembly program that would do sector copies of floppy disks that I kept around/retyped when needed for such purposes. Those were fun times…
Re:LLMs can read and write executables byte by byte from a h... by mfuzzey on Saturday November 21, 2026 @09:51AM (#50589775)
This can be useful in the reverse engineer / malware analysis case where there is existing machine code and no source but I don't think that AI "writing machine code directly rather than high level languages" makes sense. Code generation by LLMs is a non deterministic process so it makes far more sense to generate higher level compilable source code once and then compile it with a deterministic compiler for each target rather than generate machine code non deterministically several times seperately for each target.
Re:LLMs can read and write executables byte by byte from a h... by saagarjha on Saturday November 21, 2026 @11:02AM (#50590542)
We also have more or less deterministic tools to lift code as well, which are usually more efficient to use.
Re:LLMs can read and write executables byte by byte from a h... by bita_nidir on Saturday November 21, 2026 @10:10AM (#50589969)
I don't think it'll make sense for an LLM to program directly on the cpu opcode level due to the overhead.

But I hope you all realize that the programming language of the future is going to be for LLMs. It'll tightly optimized for LLMs and we'll get nice tools to understand them. They'll probably be great, with loads of fancy tooling.

Re:LLMs can read and write executables byte by byte from a h... by haolez on Saturday November 21, 2026 @10:18AM (#50590057)
It depends. If you design and train a tokenizer for that, I don't see why it wouldn't work, and I'm not even an "AI psychosis" victim :D
Re:LLMs can read and write executables byte by byte from a h... by dezgeg on Saturday November 21, 2026 @11:13AM (#50590655)
Emitting a executable binary (eg. ELF) will never make sense over using assembly language. Adding/removing some code to the middle of a large program shifts tons of addresses like jump targets and variables. It makes no sense to have LLM spend tokens on making edits to (potentially) every single call instruction in an existing binary, instead of letting assembler do it.
Re:LLMs can read and write executables byte by byte from a h... by amelius on Saturday November 21, 2026 @10:26AM (#50590144)
The programming language of the future will be a purely functional language, where the LLM acts as the compiler using correctness preserving transforms.

Any other way of coding will be considered ridiculous (except maybe if you do it for a hobby).

Better start learning Haskell, folks.

Re:LLMs can read and write executables byte by byte from a h... by sevenzero on Saturday November 21, 2026 @10:29AM (#50590177)
Yea lets just trash all these legacy codebases the world depends on, I'm sure this will work out
Re:LLMs can read and write executables byte by byte from a h... by amelius on Saturday November 21, 2026 @10:31AM (#50590197)
Legacy codebases are toast. This is where the software world is heading:

https://www.youtube.com/watch?v=Bo-vESS4jt0

https://www.youtube.com/watch?v=UCL4K36SHp0

Re:LLMs can read and write executables byte by byte from a h... by behringer on Saturday November 21, 2026 @10:43AM (#50590324)
It's like watching a boat pull into port. You can see the boat on the horizon, but people are saying the boat won't be arriving any time soon.

The boat's here. Nobody's going to be programming the old fashioned way anymore (except as a hobby or a specialist). You should probably get ready for the boat.

Re:LLMs can read and write executables byte by byte from a h... by raincole on Saturday November 21, 2026 @10:56AM (#50590476)
You're being sarcastic but it's likely necessary. There will be so many vulnerabilities found in legacy codebases and not enough people who understand them to patch the holes. We'll have to rely on LLM to update them and the once well-understood codebase would be more and more like a vibe-coded one.
Re:LLMs can read and write executables byte by byte from a h... by fwlr on Saturday November 21, 2026 @11:36AM (#50590901)
Some people, when confronted with a problem, think “I know, I’ll use AI.” Now they have many problems. They think “I know, I’ll use many AIs.”
Re:LLMs can read and write executables byte by byte from a h... by bitwize on Saturday November 21, 2026 @10:59AM (#50590509)
Claude can rewrite those codebases in Rust in an eyeblink. Let them all burn.
Re:LLMs can read and write executables byte by byte from a h... by timacles on Saturday November 21, 2026 @04:25PM (#50593790)
Can it? Have we seen anything created by ai work at scale? Like the rust Postgres clone or the photoshop one.

This thread is completely detached from AIs real capabilities

LLM are great at prototypes and starting things but once you get to a certain level of complexity they cannot make progress without stumbling over itself

Re:LLMs can read and write executables byte by byte from a h... by sevenzero on Sunday November 22, 2026 @04:07AM (#50597674)
Most people on HN are completely detached from the reality of AI it seems. They see all these AI this AI that headlines, discovered vulnerabilities and for some reason think "yea AI can fix that".
Re:LLMs can read and write executables byte by byte from a h... by MiroslavPokorny on Sunday November 22, 2026 @12:50AM (#50596684)
So why doesnt Microsoft rewrite a fully backcompat "close to perfect" Windows thats requires less memory and lots of other good stuff ?
Re:LLMs can read and write executables byte by byte from a h... by bitwize on Sunday November 22, 2026 @05:09PM (#50604452)
The same reason why we don't get a lot of shit that we ostensibly can and should get given that we have AI or any cool, advanced technology: lack of political/economic will.

Cloud services and AI are Microsoft's profit center now. Windows is kind of an afterthought. If anything, it exists more to drive users towards those services rather than for its own sake as an OS. They made noises about oxidizing it completely earlier this year. Maybe they'll get around to it. Or maybe not.

Re:LLMs can read and write executables byte by byte from a h... by duskdozer on Saturday November 21, 2026 @11:24AM (#50590777)
They have to go. You must keep feeble human hands off the code as much as possible. Ideally, all coding will be done in a safe and secure proprietary binary format owned by Anthropic, obfuscated and rich with LLM-poison booby traps to ensure that nobody can attempt to modify it using inefficient meatcoding or dangerous and unsafe bootleg Chinese LLMs. Only then can we achieve maximally aligned and efficient GSI.
Re:LLMs can read and write executables byte by byte from a h... by WarmWash on Saturday November 21, 2026 @10:37AM (#50590269)
In its purest form there would be no programming at all, you would just be interacting directly with the AI model. Like an amorphous digital goo that can instantly shape-shift into any state.
Re:LLMs can read and write executables byte by byte from a h... by massysett on Saturday November 21, 2026 @11:42AM (#50590971)
A learned comment in this forum stuck with me: suppose diff has not been written. You can use an AI to write diff. Or you can use AI to do a diff. The latter might be easier, but now you have to pay every time you diff files.

But as AI proliferates and gets cheaper, why not pay to diff files. It will be sufficiently cheap.

Re:LLMs can read and write executables byte by byte from a h... by amelius on Saturday November 21, 2026 @11:52AM (#50591087)
At that point, just ask AI to write the Holodeck and we won't ever need to use computers anymore.
Re:LLMs can read and write executables byte by byte from a h... by goodmythical on Saturday November 21, 2026 @12:21PM (#50591400)
I will never touch a computer again the moment I must pay a rental fee for diffing.
Re:LLMs can read and write executables byte by byte from a h... by massysett on Saturday November 21, 2026 @12:26PM (#50591461)
My daily computer - MacBook Air M1 - is quite old so I would indeed have to pay a fee to diff with AI. But I think what happens is that you get a desktop computer with a massive amount of AI processing power that typically just sits idle. In that case, why not just have your on-device AI do something rather than finding the right pre-written tool or writing up the appropriate tool? This will be especially true for occasional or one-off tasks.
Re:LLMs can read and write executables byte by byte from a h... by goodmythical on Saturday November 21, 2026 @02:39PM (#50592852)
I don't think we'll see a world where local llms are capable of diffing a file in the millisecond timescale that current diffing does.

Same for most things. How long does it take some juiced up llm to build an mp4 renderer? Can it do all of that in the milliseconds it takes mpv file.mp4 to display it's first rendered frames?

What about a video game? How long would it take the god of all AI, running on local hardware, to build and launch GTA 6? Could it do so in less than the ~4hour download and ~1 hour install? Could it do so in less than the hour install if I didn't have it installed? Could it build and launch in less than the ~minutes it would take to launch if I'd already downloaded and installed it?

Suppose in this future someone else runs their llms for many days/hours/weeks across many agents totalling perhaps years of clock time. They have a game/program that does something I'd like to do/play, and it sits in say a terabyte of space. The only way me using my agents instead of downloading their file makes sense is if I have so vastly much more compute than them that I can complete what they did in days/hours/weeks in around a day (assuming my internet somehow stays pegged to 100mb/s in this future), because I can download a terabyte in 24 hours.

Re:LLMs can read and write executables byte by byte from a h... by amelius on Saturday November 21, 2026 @02:41PM (#50592871)
Speaking of GTA 6 ... I'd buy that game if the non-player characters had capable AI, like an LLM agent.
Re:LLMs can read and write executables byte by byte from a h... by bita_nidir on Sunday November 22, 2026 @07:33AM (#50599060)
Imagine going into a bar:

Yeah, I'll have a beer and also find a firmware RCE for my car please.

Re:LLMs can read and write executables byte by byte from a h... by jodrellblank on Sunday November 22, 2026 @10:32AM (#50600589)
But you pay an electricity fee for diffing. and/or you pay a battery life fee. You pay a timeslice of your finite human life. You pay an amount of depreciation cost of your computer hardware - if you bought a $1000 computer and all you did was diff, that would be $1000 to diff.
Re:LLMs can read and write executables byte by byte from a h... by adzm on Saturday November 21, 2026 @04:40PM (#50593915)
So, Star Trek
Re:LLMs can read and write executables byte by byte from a h... by bonesss on Saturday November 21, 2026 @11:08AM (#50590604)
OCaml, F#, or even Rust have functional cores that verify correctness. They’re wire token efficient, too.

Sufficiently massaged OCaml/F# approaches straightforward readability in plain English.

And, for people who have been doing it for a minute, the other ways of programming do seem a little ridiculous ;)

Re:LLMs can read and write executables byte by byte from a h... by hollowturtle on Saturday November 21, 2026 @01:23PM (#50592037)
Haskell, future, pure and LLMs in the same sentence can only describe a good joke. But that wasn't one. So I guess you're serious. It's basically a useless language that hasn't been used for doing anything meaningfull, I tried using functional languages for doing "pure game programming" performance and type gymnastic was a total disaster. Spaghettified code even before LLMs
Re:LLMs can read and write executables byte by byte from a h... by orhmeh09 on Saturday November 21, 2026 @10:36PM (#50595987)
shellcheck is written in Haskell
Re:LLMs can read and write executables byte by byte from a h... by amelius on Sunday November 22, 2026 @09:11AM (#50599880)
There are good reasons why people have tried for decades to make functional programming practical. It is a great specification language that is also executable. LLMs can make it practical IF it can use correctness preserving transforms to compile this specification into fast executable code.
Re:LLMs can read and write executables byte by byte from a h... by andai on Saturday November 21, 2026 @11:13AM (#50590650)
What overhead? More tokens for same result?
Re:LLMs can read and write executables byte by byte from a h... by Kwpolska on Sunday November 22, 2026 @05:21AM (#50598164)
Established programming languages have tons of material in the training sets. Any new language invented specifically for slop machines is at a huge disadvantage due to that. Also, what's optimized for today's models may not work too nicely with next month's models.
Re:LLMs can read and write executables byte by byte from a h... by tliltocatl on Saturday November 21, 2026 @10:31AM (#50590206)
So can I. CD 20
Re:LLMs can read and write executables byte by byte from a h... by dreamcompiler on Saturday November 21, 2026 @10:56AM (#50590469)
Since disassembly is a solved problem and it's deterministic with a 1:1 solution, why throw a nondeterministic LLM at it? Why not give the disassembly output to the LLM and let it do the decompilation, which is not 1:1?

Pet peeve: Using AI to solve problems that existing algorithms can dependably solve with 10^-6 the CPU resources.

Re:LLMs can read and write executables byte by byte from a h... by WhereIsTheTruth on Saturday November 21, 2026 @11:15AM (#50590674)
The point is you no longer need expertise as a prerequisite
Re:LLMs can read and write executables byte by byte from a h... by pessimizer on Saturday November 21, 2026 @04:39PM (#50593911)
That's a bad and wrong point. You don't need expertise to throw the disassembly output at the LLM either. The LLM itself could do this as a first step.

Doing it completely in the LLM would do nothing but add orders of magnitude less efficiency.

Re:LLMs can read and write executables byte by byte from a h... by adrian_b on Saturday November 21, 2026 @12:43PM (#50591668)
Disassembly is not 100% solved, at least not in a way that is easy for an LLM to use.

Disassembling directly an executable program, especially when it is some proprietary program for which there is no debugging information, is likely to produce a lot of garbage that does not correspond to correct assembly instructions.

Correct disassembly can be obtained only by simulating the execution of the program and disassembling only the instructions that are reached in this way. This is still not completely foolproof, because during simulation some parts of the code might be reached only for some specific input data, which is unknown. Sometimes one may guess all the possible inputs and disassemble anything reached in this way, but in reality some of those inputs can never occur, which can lead to erroneously disassembling parts that should not be disassembled, as they are not instructions.

That said, most executable programs are easy to disassemble, but some may be intentionally or unintentionally very obfuscated, and for such cases any disassembling tool would have to be guided by a human to achieve a complete disassembly.

Re:LLMs can read and write executables byte by byte from a h... by g-b-r on Saturday November 21, 2026 @02:53PM (#50592978)
Disassembly means going from bytes to assembly, it's not only "solved" but trivial.

You're talking about reverse engineering in your comment

Re:LLMs can read and write executables byte by byte from a h... by 1000100_1000101 on Saturday November 21, 2026 @05:46PM (#50594402)
I think they're worried about self-modifying code, compressed code, intermingled code and data, hand-crafted overlapping instruction sequences (for systems with non-fixed instruction lengths) and other esoteric cases like that.
Re:LLMs can read and write executables byte by byte from a h... by g-b-r on Saturday November 21, 2026 @05:54PM (#50594452)
No, to me it seems that they were really just talking of reverse engineering
Re:LLMs can read and write executables byte by byte from a h... by 1000100_1000101 on Saturday November 21, 2026 @09:17PM (#50595567)
The part about "erroneously disassembling parts that should not be disassembled, as they are not instructions" makes me think of const data in a text section.

I'll admit I expanded on the possibilities after that, because otherwise it didn't make much sense. Nobody cares if an instruction is run or not. You can still disassemble the instructions. In fact reading non-reachable code might reveal vulnerabilities you could reach if you altered the stack via a buffer overflow... only evaluating actual program flow seems like a way to overlook things.

Re:LLMs can read and write executables byte by byte from a h... by g-b-r on Saturday November 21, 2026 @11:27PM (#50596237)
Well, now I read a "disassembly instructions" in his comment, did I really miss it or he edited it?

I apologize if it was me who misunderstood it

Re:LLMs can read and write executables byte by byte from a h... by adrian_b on Sunday November 22, 2026 @05:07AM (#50598043)
Disassembling a binary file is never needed, unless it is a file that you have not generated yourself, in which case this is indeed a part of reverse engineering.

If you have no debugging information for the file, you cannot know that some byte sequence is unreachable code.

To identify what such a sequence of bytes is, you can try to decode it in various ways, e.g. by disassembling it, by interpreting it as ASCII or Unicode characters, by interpreting it as a sequence of floating-point or integer numbers, etc. If anyone of these decoding attempts looks plausible, you can guess that it is correct. So if it disassembles into a sequence of plausible instructions, you can conclude that it is unreachable code, but your guess is seldom certain.

In any case, the disassembling may start only by executing the program and following the control flow, and also noting all memory addresses that are accessed by loads and stores.

If after that there remain memory regions that have not been accessed in any way, possibly because you could not simulate all the possible program inputs, e.g. because the program accessed a hardware dongle that you do not possess, then you can start to decode in various ways the regions with unknown content, attempting to guess their purpose.

Re:LLMs can read and write executables byte by byte from a h... by adrian_b on Sunday November 22, 2026 @04:55AM (#50597950)
Yes I was talking about reverse engineering.

I am not aware of any other situation where you have a sequence of bytes that are machine instructions and that must be disassembled, except when you have extracted them from a binary executable file after identifying their location, which is indeed a part of reverse engineering.

If you do not extract the bytes to be disassembled from a binary file that you have generated yourself, that is a part of reverse engineering.

If you generated the binary file yourself, you have no need to disassemble it. If you want to look at the assembly language program, you do not need to disassemble anything, because whatever tools you used to generate the binary will provide the assembly language equivalent.

Re:LLMs can read and write executables byte by byte from a h... by g-b-r on Saturday November 21, 2026 @11:40PM (#50596308)
No, I was mistaken, I apologize
Re:LLMs can read and write executables byte by byte from a h... by adrian_b on Sunday November 22, 2026 @04:46AM (#50597879)
If you have bytes that are known to be CPU instructions, disassembling them is indeed trivial.

But from where can you get such bytes?

Normally such bytes can be obtained only from a binary executable file, by what you called "reverse engineering", though complete reverse engineering includes a lot of work beyond identifying the machine instructions inside a binary file and disassembling/decompiling them.

I cannot imagine what source of bytes that are machine instructions do you have in mind, otherwise than those that must be obtained through reverse engineering.

If you generated yourself the binary file, there is no need to disassemble it, because any high-level language compiler provides upon request the corresponding assembly language program.

Re:LLMs can read and write executables byte by byte from a h... by g-b-r on Sunday November 22, 2026 @10:43AM (#50600682)
> by what you called "reverse engineering"

No, with reverse engineering I meant arriving at some readable code in a programming language.

But I had both misread what you wrote and was mistaken, even simply translating bytes in an executable to assembly is not trivial; I last dealt with it long enough that I didn't remember the issues.

Re:LLMs can read and write executables byte by byte from a h... by nubinetwork on Saturday November 21, 2026 @10:57AM (#50590485)
A hex dump is just extra bytes of ascii filling up context... having to deal with "20 8f e3" is 8 characters of text, compared to 3 bytes. LLMs can already parse binary files without the text overhead.
Re:LLMs can read and write executables byte by byte from a h... by kragen on Sunday November 22, 2026 @12:59AM (#50596716)
https://tokenizer.model.box/o200k_base says that's 6 tokens in o200k_base, which is still more than the 3 tokens you get for the raw bytes but not by as much as you suggest.
Re:LLMs can read and write executables byte by byte from a h... by nubinetwork on Sunday November 22, 2026 @07:57AM (#50599290)
Okay, now multiply it by a 256kb rom file. /shrug
Re:LLMs can read and write executables byte by byte from a h... by flohofwoe on Saturday November 21, 2026 @10:58AM (#50590497)
Hmm, is this new or surprising? When testing my home computer emulator code for correctness, Opus had no trouble taking C64 .prg files apart and analyse them the same way it would analyse .asm source files.
Re:LLMs can read and write executables byte by byte from a h... by andai on Saturday November 21, 2026 @11:12AM (#50590639)
Couldn't they do this before?

They don't list any model size or version that failed, right?

Re:LLMs can read and write executables byte by byte from a h... by rossy on Saturday November 21, 2026 @11:20AM (#50590724)
Like the weight space stuff, I think there's a small misdirection in how this is presented: Phrases like "write directly in machine code" seem to imply that ordinary LLMs intuitively understand machine code as just another language, like English or JavaScript, that they read from context and write directly as tokens, and that this intuitive understanding means increased efficiency or capabilities if you ask the LLM to just use the bytes rather than asking it to use the tools that human reverse engineers use.

If that's what you assumed, the DeepSeek reasoning trace shatters that illusion. It's just disassembling by hand like what a human reverse engineer would do if you (sadistically?) denied them a disassembler. Yeah, the human reverse engineer would need an excellent memory of the x86_64 instruction reference, but we already know LLMs can recall a breadth of information. What we don't know, that this article also provides no evidence for, is if there's any benefit in using the LLM for this over objdump.

The article seems to intentionally conflate disassembly (computationally cheap) with decompilation (can be computationally expensive) to imply that there's some benefit to asking the LLM to work with machine code (seems impressive to the RE layman) rather than working in assembly (something you probably already assumed LLMs can do,) but the DeepSeek trace has a disassembly in it, and it's hard to imagine that inference will ever be cheaper or more reliable per-token than objdump is at producing the same output.

Re:LLMs can read and write executables byte by byte from a h... by Farmadupe on Saturday November 21, 2026 @03:06PM (#50593114)
Ooh I'm not sure that I would buy into that! I've been experimenting with giving small binaries without strings or other direct clues, and asking them "So tell me what you think this does" in a bare container without disassembly tools.

So I'm actually fairly confident that the ability does come straight from the ability to read the bytes into context (usually as hex bash/perl/python3 is almost always available), and Then to directly interpret what the binary does from the code. And yes, when I do use open models, I can see from their reasoning traces that they do "hand-translate" the hex into assembly, but I kind of suspect that the translation stage into assembly may just be a narration, and the "understanding" of what is going on is actually a pure latent skill. That's just my guess, though.

The reason that I think this is because I've been using minimal implementations of inference engines. And frontier closed-weight models and open-weight models are able to observe a binary with no strings and the weights not attached, and they can infer the exact architecture and model (eg qwen3 0.6b, qwen3.5-0.8b, whatever) from the fixed shape of the inference kernels.

So in effect, over the course of 30 seconds, they go from looking at 500 instructions of x86 code and reply, “I know what this is. It's an inference engine for Qwen 3 0.6B!”

And I'm fairly sure that 30 seconds or not, it's a skill that no single human has.

Re:LLMs can read and write executables byte by byte from a h... by bananaboy on Saturday November 21, 2026 @05:00PM (#50594072)
I’m seeing the conflation between disassemble and decompile in other posts here too. I don’t know why you’d waste time and money using an LLM to disassemble an executable when it’s been trivial to do that with existing (free) tools for years!
Re:LLMs can read and write executables byte by byte from a h... by WalterBright on Saturday November 21, 2026 @08:06PM (#50595222)
I wrote my own disassembler for object files. They're easy to write. Doing it for executables is even easier, though I haven't needed to do them.
Re:LLMs can read and write executables byte by byte from a h... by dado3212 on Saturday November 21, 2026 @08:24PM (#50595318)
I've found the decompiled code from LLM's to be much more similar to human-written code (and therefore easier for me to understand) than standard Ghidra/other decompiler output. Plus LLM's for this kind of work are pretty cheap.
Re:LLMs can read and write executables byte by byte from a h... by push0ret on Saturday November 21, 2026 @09:17PM (#50595566)
The parent comment was making the point that disassembling and decompiling are not the same. There is no room for interpretation on disassembling, it's purely mechanical.
Re:LLMs can read and write executables byte by byte from a h... by kragen on Sunday November 22, 2026 @12:48AM (#50596675)
There's a little room for interpretation in disassembling. You can choose label names, and in instruction sets like amd64, you have to guess where the instructions begin. Also ideally you won't disassemble ARM literal pools as instructions, even though it's possible to branch, call, or return into them by computing their addresses at runtime.
Re:LLMs can read and write executables byte by byte from a h... by lxgr on Sunday November 22, 2026 @06:05AM (#50598485)
> in instruction sets like amd64, you have to guess where the instructions begin

Can't you just trace through all reachable instructions starting from a complete binary's entry point(s), as long as the code doesn't do unusual things like jumping into the middle of instructions, i.e. intentionally exploiting variable-length instruction ambiguity?

Re:LLMs can read and write executables byte by byte from a h... by kragen on Sunday November 22, 2026 @09:53AM (#50600248)
Not necessarily, because there is often code that is only accessible through function pointers; for example, C++ virtual methods. (In theory you can compute function pointers dynamically at runtime, too, which is less common.)

In https://canonical.org/~kragen/sw/dev3/qfitzah.s a lot of the function calls are conditionally compiled by the macro `do` (search for `.macro do`) to index into a table of function pointers pointed to by EBP, because that makes the call instructions 3 bytes instead of 5 bytes. Here I've disassembled one of the functions from the parser code from an unstripped version that has debugging symbols:

    080482b7 <read_term>:
     80482b7: ff 55 08              call   DWORD PTR [ebp+0x8]
     80482ba: 75 10                 jne    80482cc <read_term+0x15>
     80482bc: 50                    push   eax
     80482bd: e8 f5 ff ff ff        call   80482b7 <read_term>
     80482c2: 50                    push   eax
     80482c3: ff 55 04              call   DWORD PTR [ebp+0x4]
     80482c6: 59                    pop    ecx
     80482c7: 58                    pop    eax
     80482c8: ff 55 00              call   DWORD PTR [ebp+0x0]
     80482cb: c3                    ret
     80482cc: 31 c0                 xor    eax,eax
     80482ce: 40                    inc    eax
     80482cf: c3                    ret
The actual source code to that subroutine looks like this:

    proc read_term
            do read_factor
            jnz 1f                  # if it failed, skip ahead
            push %eax               # save returned term
            do read_term            # recursive call for tail of term
            push %eax
            do skip_whitespace
            pop %ecx
            pop %eax
            do cons                 # XXX tail call
            ret
    1:      setnil %eax             # return nil if no factor found
            ret
I didn't do this to make it harder to disassemble, but it does have that drawback.

In 32-bit ARM code you have the additional problem that you have to know whether the T bit is intended to be set when the CPU is decoding a particular subroutine. The low bit of the branch destination tells you — which is fine if it's statically reachable, but you may have to guess if it's only dynamically reachable.

Re:LLMs can read and write executables byte by byte from a h... by tancop on Sunday November 22, 2026 @02:31PM (#50603044)
These unusual things are pretty common in malware and DRM protected games, aka the main use cases for AI reverse engineering. You can also find functions that are passed to external code as a pointer and never called directly.
Re:LLMs can read and write executables byte by byte from a h... by MiroslavPokorny on Sunday November 22, 2026 @12:46AM (#50596662)
Thats because those authors dont know the difference between the two terms, which is precisely the problem.
Re:LLMs can read and write executables byte by byte from a h... by xyzsparetimexyz on Saturday November 21, 2026 @06:07PM (#50594543)
Matching decompilation is very tricky, but the decompiled output that ghidra spits out is good enough for many cases and is not significantly more computationally than getting a disassembly.
Re:LLMs can read and write executables byte by byte from a h... by userbinator on Saturday November 21, 2026 @10:25PM (#50595922)
disassembly (computationally cheap)

Only if you do "straight line" disassembly. On the other hand, code/data separation is extremely intensive, especially when indirect branches are involved, and approaches a decompiler in computational effort.

Re:LLMs can read and write executables byte by byte from a h... by Jaxan on Sunday November 22, 2026 @04:03AM (#50597646)
IIRC even disassembly is undecidable. The hardness indeed comes from jumps, you don’t know where instructions start (they don’t all have the same number of bytes).
Re:LLMs can read and write executables byte by byte from a h... by solyin on Sunday November 22, 2026 @09:29AM (#50600038)
Not all ISAs are variable-length.
Re:LLMs can read and write executables byte by byte from a h... by pigpag on Saturday November 21, 2026 @10:50PM (#50596045)
Assembly code is almost just machine code, which itself is nothing magical. Human cannot work with machine code because of the logical complexity, not because it's hex.
Re:LLMs can read and write executables byte by byte from a h... by plastic3169 on Saturday November 21, 2026 @12:05PM (#50591234)
It feels like image models which create images and video by bitbanging pure pixels. This is almost never the way people would approach the task of creating images barring pixel graphics. It also means that using image models is inconvinient. I always likened it to having programming AI that would go from prompt to binary. I thought we don’t program like that because programmers understand the problem area better and like to go through source code.
Re:LLMs can read and write executables byte by byte from a h... by goodmythical on Saturday November 21, 2026 @12:18PM (#50591380)
000000?

Nope.

000001?

Nope.

...

000000 00001 00010 00110 00000 100000?

Hey, we've got addition!

Re:LLMs can read and write executables byte by byte from a h... by jrmg on Saturday November 21, 2026 @12:14PM (#50591320)
This has been true for some time now. I can't remember details, but about a year ago, I was debugging some boot issues on an AVR microcontroller, and just pasting the HEX of the bootloader (that I didn't have access to the source of) into Claude's web interface got me the answers I needed.
Re:LLMs can read and write executables byte by byte from a h... by itsquiteamazing on Saturday November 21, 2026 @01:35PM (#50592155)
Funny I was doing this the other day. Write an HTTP server and some routes directly as a FreeBSD binary, no intermediaries, no tools. It works and you know what, I am not even surprised.
Re:LLMs can read and write executables byte by byte from a h... by kragen on Sunday November 22, 2026 @01:00AM (#50596721)
If you ask the Claude chat web interface to do this, it might just compile it with clang and not bother to mention it.
Re:LLMs can read and write executables byte by byte from a h... by pipes on Saturday November 21, 2026 @01:49PM (#50592301)
I could be wrong, but this is really silly: 1. Read byte by byte, well yes, executables are files how else do you want them to read and write them.

2. Binaries are 1 to 1 direct representations of the assembly code they are created from. If you know the instructions set it isn't black magic to figure what byte means what.

Why on earth would it be better for llms to program in binary or assembly. We have optimizing compilers so the effort doesn't need to be spent there.

Maybe my assumptions are wrong, so please correct me.

Re:LLMs can read and write executables byte by byte from a h... by 0xbadcafebee on Saturday November 21, 2026 @02:03PM (#50592474)
[delayed]
Re:LLMs can read and write executables byte by byte from a h... by Buttons840 on Saturday November 21, 2026 @02:53PM (#50592972)
I wonder if you trained a LLM on the data that has passed through my router throughout my whole life how smart it would be.

I mean decrypted data of course, because it surely couldn't learn directly from encrypted data, right? Right?

Re:LLMs can read and write executables byte by byte from a h... by manofmanysmiles on Saturday November 21, 2026 @10:19PM (#50595896)
Woah...
Re:LLMs can read and write executables byte by byte from a h... by orbital-decay on Saturday November 21, 2026 @02:53PM (#50592981)
Yeah sure, people have experimented with giving them binaries for years. They do it poorly though, compilers and decompilers are still necessary.
Re:LLMs can read and write executables byte by byte from a h... by bitexploder on Saturday November 21, 2026 @02:56PM (#50593004)
They keep getting better. And they know the system. They can literally build and validate reverse engineering tools all by themselves, and they know enough of the machine to literally extrapolate. You could basically tell them machine format and he’ll climb them to a completely valid C compiler for it. That’s the power of Them speaking in machine code. It’s just another language. It’s actually a bounded and somewhat consistent language… and they speak it.
Re:LLMs can read and write executables byte by byte from a h... by orbital-decay on Saturday November 21, 2026 @03:06PM (#50593116)
My point is that the data is much worse for machine code than for high-level languages, and it will always stay that way unless you generate more. Which doesn't make much sense as HLLs are strictly better, being designed around more expressive semantics and formal constraints that can be automatically verified. LLMs are always going to suck at machine code compared to HLLs for the same reason as humans do.
Re:LLMs can read and write executables byte by byte from a h... by bitexploder on Saturday November 21, 2026 @06:22PM (#50594636)
My point was they can make their own better tools. Just kinda neat.
Re:LLMs can read and write executables byte by byte from a h... by bitexploder on Saturday November 21, 2026 @02:54PM (#50592986)
Yeeeeep. Been saying this for months. Go paste them Base 64…. Dozens of other formats. Use an open model. Watch thinking traces: “i am now mentally decoding X” O_o

Now think about homomorphism and safety filters……

Re:LLMs can read and write executables byte by byte from a h... by tezza on Saturday November 21, 2026 @05:19PM (#50594214)
As mentioned the other day [1], a couple of HNers including me are getting LLMS to modify Amiga games from the binary.

I’ve added websocket and webrtc networking to Lotus Turbo Challenge II

and I’m in the middle of adding 8x1 player multiplayer… it originally only supported 2x2 over serial link

[1] (me, tezza) https://news.ycombinator.com/item?id=50537075

&

(Kurtz79) https://news.ycombinator.com/item?id=50545239

Re:LLMs can read and write executables byte by byte from a h... by WalterBright on Saturday November 21, 2026 @08:04PM (#50595207)
I regularly hand a binary executable to chatgpt and ask it where it is seg faulting and why. It's a huge timesaver for me.

I also submit to it object files, and ask if it is well-formed. This is a big deal, because Apple's documentation on the object file format is extremely poorly documented. Sometimes my object files cause the Apple linker to crash.

Re:LLMs can read and write executables byte by byte from a h... by filoeleven on Saturday November 21, 2026 @11:03PM (#50596123)
Oh no, how long until a Snow Crash prompt injection turns LLMs into babbling tools of the oligarchs? /s
Re:LLMs can read and write executables byte by byte from a h... by peter_retief on Sunday November 22, 2026 @04:05AM (#50597659)
Would be the best way for LLM's to create programs, we need a new way to interface, a new language.
Re:LLMs can read and write executables byte by byte from a h... by anomaly_ on Sunday November 22, 2026 @04:07AM (#50597671)
> There are now 15 competing standards
Re:LLMs can read and write executables byte by byte from a h... by nialse on Sunday November 22, 2026 @05:30AM (#50598249)
It makes sense to let the LLM's work as close to an ideal machine as possible. In a year they are not going to need the high-level abstractions and languages. An instant stream of opcodes from prompts.

Here is an example of Astra reimplementing jq in pure .ll, the intermediate representation LLVM uses. It manages to bridge the gap and create architectural structure to solve the challenge without libraries which GPT-5.x could not.

https://nial.se/blog/57-billion-tokens-and-nothin-on/

Re:LLMs can read and write executables byte by byte from a h... by peter_retief on Sunday November 22, 2026 @09:52AM (#50600231)
Interesting thanks!
Re:LLMs can read and write executables byte by byte from a h... by osigurdson on Sunday November 22, 2026 @10:45AM (#50600703)
>> In the future, LLMs may write directly in machine code instead of using high level languages.

I did an experiment asking Claude to write machine code directly. It works and is kind of interesting but there is no obvious benefit over using C, at least for now. It definitely seemed to take longer and it had to create some tools for itself to aid the process.

I'm not sure that LLMs will ever write software this way, but it is true that the situation is simpler in some ways than high level languages make it out to be. There are just a fixed set of instructions that do very specific things.

Re:LLMs can read and write executables byte by byte from a h... by asveikau on Sunday November 22, 2026 @10:52AM (#50600775)
First, I'm not sure this result is very shocking.

Second, it seems to have claimed the FreeBSD binary is for Linux. So it is not reading the platform value from the ELF headers, or looking closely at the syscall ABI in the static libc. Which is to say it makes mistakes.

Re:LLMs can read and write executables byte by byte from a h... by m3kw9 on Sunday November 22, 2026 @11:06AM (#50600895)
They can recompile games from pure windows/intel to mac silicone right now, pretty sure they can do that into binary
Re:LLMs can read and write executables byte by byte from a h... by 51Cards on Sunday November 22, 2026 @12:21PM (#50601715)
Forget about a HEX dump, I handed SOL 6 an EXE and it de-compiled it server side and walked through the function calls. Then changed a few internal values to un-signed so the old abandoned freeware application could handle larger modern hard drive sizes.