News for hackers. Stuff that matters.
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.