Skip to content

how to edit function's control flow graph? #4577

Answered by psifertex
helloobaby asked this question in Analysis
Discussion options

You must be logged in to vote

I migrated this to a discussion. For general questions as opposed to specific bugs or feature requests, please use discussions instead of issues.

You have several options.

The first and simplest is to do what the OPP plugin does. It merely patches the branches appropriately. Note that we recommend making all of your changes once and then triggering analysis at the end instead of doing it once at a time.
https://github.com/Vector35/OpaquePredicatePatcher
https://binary.ninja/2017/10/01/automated-opaque-predicate-removal.html

Next, you could use a workflow. Workflow APIs allow you to rewrite ILs in many ways and don't require patching the native bytes in the BV. This is more of a pain becau…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by helloobaby
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4576 on August 24, 2023 15:16.