S2: Func Analysis
Analyzing the input function
As explained in the previous step, S1: Input Analysis, I assume you already know how to get to the function input using methods that are quite simple (designed like that for ease of access to the routine). With that, you should be in the same area.

Analyzing the routine
This routine and actually entire area is kinda funky to read. So we are going to go and translate this to Pseudocode. If you are not used to this, despite us doing this once- simply follow the steps below.
Go to
Viewin the top bar of the windowOpen
Subviews>Generate Pseudocode
or you can use F5.
Sometimes, IDA can give you issues about section read permissions and the format of data. For now, ignore that as it does not cause much of an issue for us.
Finding a range
For us to go deeper into this function, we need to be able to hardcore focus on one area. And for us, that is the location of where the condition gets executed if a previous condition gets executed.
Ring any bells? No?
If it did not ring any bells, basically, we are looking for the condition where if I press a button, the code gets executed.
For that, we are going to be analyzing the pseudocode shown below.

If you want to copy and paste it, then here is the pseudocode so you can break it down yourself. Personally, I always use an editor inside of a code note to do the documentation as you will see later.
Now that we have our range, we need to analyze that range, and dig deeper! Lets go down the rabbit hole Allice!
Last updated
