I'm writing a program that takes as input a single byte of binary (machine code from code segment) and converts it into assembly. I've done some searching online but have yet to find anything helpful. The source code must be compatible with Windows 8.1/10/11 targeting the Intel x86 architecture.
-
You'll need to know the CPU architecture that the assembled binary targets. Capstone Engine is on github and supports a variety of architectures. It may be useful for your needs.– h0r53Aug 1, 2022 at 17:35
-
Python module capstone-windows: pypi.org/project/capstone-windows– w sAug 2, 2022 at 4:54
-
More recent package for capstone that should work on windows too: pypi.org/project/capstone– w sAug 2, 2022 at 4:56
-
1Hi and welcome to RE.SE. There are plenty of these libraries al around the web under various licenses, some more liberal than others. zydis comes to mind. Capstone was already mentioned. udis86 comes to mind as well as bddisas or distorm and there are probably more I forgot or am not aware of.– 0xC0000022L ♦Aug 2, 2022 at 7:01
-
If you need something, related specifically to Intel, you can use Intel XED, intelxed.github.io . This product comes from Intel itself and used in Intel and other companies products.– w sAug 2, 2022 at 7:51