Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how did you get the assembly code from binary? #8

Open
smithCoderLeo opened this issue Dec 23, 2020 · 10 comments
Open

how did you get the assembly code from binary? #8

smithCoderLeo opened this issue Dec 23, 2020 · 10 comments

Comments

@smithCoderLeo
Copy link

Hi, I want to know how did you get the assembly code from binary? What tools did you use? And can the tool mark the function boundary in assembly code? Thanks for your help!

@zeze-zeze
Copy link

It seems that the format of the assembly have to be parsed by yourself from either r2pipe, objdump, or gcc -S

@smithCoderLeo
Copy link
Author

It seems that the format of the assembly have to be parsed by yourself from either r2pipe, objdump, or gcc -S

i want use IDA pro,but i think the .asm's format is not suitable for this model

@bjchan9an
Copy link

It seems that the format of the assembly have to be parsed by yourself from either r2pipe, objdump, or gcc -S

i want use IDA pro,but i think the .asm's format is not suitable for this model

Try IDAPython ;)

@smithCoderLeo
Copy link
Author

It seems that the format of the assembly have to be parsed by yourself from either r2pipe, objdump, or gcc -S

i want use IDA pro,but i think the .asm's format is not suitable for this model

Try IDAPython ;)

hi,did you mean use IDAPython generate the format like estimate.s ? thank you very much

@bjchan9an
Copy link

Use GetMnem() and GetOpnd() to get the assembly code.

@smithCoderLeo
Copy link
Author

Use GetMnem() and GetOpnd() to get the assembly code.

thank you very much, and another question is how to construct flowchart?

@bjchan9an
Copy link

idaapi.FlowChart(idaapi.get_func(func_addr))

For more examples you can see, https://github.com/idapython/src/blob/master/examples/core/dump_flowchart.py

@smithCoderLeo
Copy link
Author

Use GetMnem() and GetOpnd() to get the assembly code.

thank you very much!

@smithCoderLeo
Copy link
Author

idaapi.FlowChart(idaapi.get_func(func_addr))

For more examples you can see, https://github.com/idapython/src/blob/master/examples/core/dump_flowchart.py

thank you very much!

@oalieno
Copy link
Contributor

oalieno commented Feb 13, 2021

https://github.com/oalieno/asm2vec-pytorch
I have made an implementation of asm2vec using pytorch.
And the repo also include a tool to extract functions from binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants