Skip to content

Blacklisted functions and weird code gaps #3180

Answered by fuzyll
alexrp asked this question in Q&A
Discussion options

You must be logged in to vote

In the specific case of the image you've provided, those \xcc bytes are being skipped because, according to Binary Ninja, there's no way to get control flow to execute those bytes (because of the return just before them). Other disassemblers might still disassemble them as code because they're in a text section, but many compilers will interleave code and data as an optimization, so we assume those bytes are data or padding.

I assume, because I see a bunch of rax's and things, this is an x64 executable. The \xcc bytes are probably padding and intended to cause a SIGTRAP during execution if they're ever executed? So, without any additional context, I believe it's reasonable for Binary Ninj…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@psifertex
Comment options

@WZ-Tong
Comment options

@psifertex
Comment options

@WZ-Tong
Comment options

@psifertex
Comment options

Answer selected by alexrp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants