3 ms·
Intel XED – x86 Encoder Decoder
- CalChris 8y agoIntel is releasing the source of XED but canceling IACA which is built on top of XED. Color me confused. Still, this will be useful for a lot of projects to have this piece of infrastructure for such an important CISC ISA available under an Apache license. Boring as hell, but useful. For example, ARM tests their ARM LLVM backend using a golden reference implementation. This is the MC Hammer test: encode/decode assemble/disassemble[1]. This can be the golden reference for the same with x86_64 and useful for GCC+LLVM. [1] https://llvm.org/devmtg/2012-04-12/Slides/Richard_Barton.pdf https://llvm.org/devmtg/2012-04-12/Slides/Richard_Barton.pdf
- dtornabene 8y agoThere was a talk at Recon several years ago by Richard Johnson called "Go Speed Tracer" that goes into some of things built with a tool like this. Its a serious talk, dense with information, covers some guided fuzzing territory and alot about tracing engines (hence the name). He mentions xed by name in the talk and notes interestingly enough that despite Pin and xed being developed inhouse at intel there isn't a one-to-one parity between the silicon and the disassembler and subsequently Pin itself. Glad to be able to sift through the source now, thanks for posting this 'peter_d_sherman Link for the talk https://www.youtube.com/watch?v=oWKDaD9wrWo https://www.youtube.com/watch?v=oWKDaD9wrWo
- vardump 8y agoAnyone done any work to confirm how accurate XED is? Do all the decoded instruction lengths match with real hardware? Sure, it's from Intel, but I'd like to have something more. Other x86 decoders could have been better.
- sabas123 8y agoAfter tinkering for quite some time with multiple disassemblers I can confirm that XED is hands down the best in the market
- vectorEQ 8y agoXED is fairly accurate. prefer to use capstone, but i suppose it's what you're used to... i feel XED has more potential because it's from the vendor. at least for intel brand cpus.
- AdmVonSchneider 8y agoAnyone interested in accurate (and fast) instruction decoding for x86(-64) should also look into Zydis: https://github.com/zyantific/zydis https://github.com/zyantific/zydis
- gnufx 8y agoMAQAO (http://maqao.org/ http://maqao.org/) might also be of interest.