Converting Machine code to LLVM IR

Have a look at http://www.libcpu.org/wiki/Main_Page
Maybe this can help you.

Cheers
Tobi