Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Not able to open/see assembly instruction and IR details on the generated 'hello.cfg' and 'hello.bc' file with `mcsema-dyninst-disass' as front-end  #675

@ajaymas

Description

@ajaymas

Hello,
I have used mcsema-dyninst-disass as front-end module to generate a CFG (disassembled instruction) file for the 32bit elf binaries using belwo commands.
$ mcsema-dyninst-disass --binary hello --output hello.cfg

I could see the hello.cfg generated file, but i am not able to open and see the CFG or instruction block information on the generated hello.cfg file ( something like IDA pro provided disassembly).
If i try to open, i can see some 0 and 1 information as similar as machine code file opening.

Similarly, I tried to generate a hello.bc or IR file while providing hello.cfg as input using the below command.
$ mcsema-dyninst-disass --binary hello --output hello.cfg

I got below error as well as hello.bc file is generated but still i cant open and see the hello.bc file information. If i try to open, same i can see some 0 and 1 information as similar as machine code file opening in the hello.bc file as well.

Errors:

E20200708 19:08:18.032294 3635 Function.cpp:842] Block 500 has no terminator, and instruction at 500 is not a local no-return function call.
E20200708 19:08:18.034628 3635 Function.cpp:921] Function sub_520_printf is empty!
E20200708 19:08:18.034796 3635 Function.cpp:353] Cannot find target of instruction at 530; the static target 536 is not associated with a lifted subroutine, and it does not have a known call target.
E20200708 19:08:18.034807 3635 Function.cpp:376] Adding missing block 536 in function sub_530_targ530 as a tail call to __remill_error
E20200708 19:08:18.036600 3635 Function.cpp:353] Cannot find target of instruction at 594; the static target 596 is not associated with a lifted subroutine, and it does not have a known call target.
E20200708 19:08:18.036615 3635 Function.cpp:376] Adding missing block 596 in function sub_570_deregister_tm_clones as a tail call to __remill_error
E20200708 19:08:18.036934 3635 Function.cpp:353] Cannot find target of instruction at 5e5; the static target 5e7 is not associated with a lifted subroutine, and it does not have a known call target.
E20200708 19:08:18.036947 3635 Function.cpp:376] Adding missing block 5e7 in function sub_640_frame_dummy as a tail call to __remill_error
E20200708 19:08:18.037375 3635 Function.cpp:353] Cannot find target of instruction at 5e5; the static target 5e7 is not associated with a lifted subroutine, and it does not have a known call target.
E20200708 19:08:18.037389 3635 Function.cpp:376] Adding missing block 5e7 in function sub_5b0_register_tm_clones as a tail call to __remill_error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions