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

behaviour differs in disassembleFile / disassembleBuffer #45

Closed
fishfacegit opened this issue Nov 20, 2023 · 1 comment
Closed

behaviour differs in disassembleFile / disassembleBuffer #45

fishfacegit opened this issue Nov 20, 2023 · 1 comment

Comments

@fishfacegit
Copy link

It looks like disassembling a file from disk yields different results than reading from buffer.
Do you have encountered this before?

image

@danielplohmann
Copy link
Owner

Hi!

Yes, that's actually quite well possible and intended.
When disassembling buffers (typically assuming a memory mapped files that was dumped), SMDA relies entirely on its heuristics for function entry point recognition and does not parse any structures even if they were there.
When disassembling a file, it will instead evaluate available data structures (such as PE or ELF headers) and extract additional information, such as exports or in this case the entry point, which leads to one single function as shown here.

Please note that the file you are trying to disassemble is a .NET binary and this is not yet supported by SMDA.
It's however one of the next big things that I would like to look at, using one of the FOSS Python CLR parsers that have become available in the last year or two.

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

2 participants