Skip to content

Help with function cleanup / variable splitting #5629

Answered by xusheng6
bsendpacket asked this question in Q&A
Discussion options

You must be logged in to vote

Here are a few things I noticed so far:

  1. I think you made two mistakes when you patch the code, the branch at 0x434ac6 and 0x434ae8 should be jne
  2. While patching the code is probably the most straightforward, you might be interested in an alternative way to deal with this, i.e., setting the value of the jump table to constant and let our dataflow analysis solve it automatically -- see #5637. It is not a perfect solution for now since we are not yet converting the switch-case to if-else
  3. Regarding your original complaint, I am not sure splitting the variable is a good idea. The register ecx always points to the start of the file and it never changes, and in your second screenshot, although s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by plafosse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants