Hello and welcome.
And this video, I'm going to talk to you about the solution to reverse engineering X2.
So I've opened a store in Iraq and.
Now are looking at the more use the blocks, this first block here, I-40 and Rice and I agree in some
variables over this sun, in this variabilities G string and this whole thing we've already seen before.
So.
This one I was also renamed to restring and the purpose of this part of the longest history in the string
and tie inside the global variable input stream, and then this part here is very.
Most.
Two strings into two registers, Jean Postering is moving the idea and this string here.
He's moving to our site and then there's a check function, which I agree animes have to check, and
the purpose of this is to.
Compay.
This district here with G string and then to see whether they are the same, but is not so straightforward
before it checks June postering, he does some kind of transformation on the string.
So if you enter this function, you will see what I mean.
So here are the eyes in.
I was up with this comment and I and stream, so the string is actually this.
You might think this is a password, but it is not.
So if you try this, you will fail.
So let's go back to.
So here, nothing is moved to our.
And there's also an implicit.
Are the simply string.
So these parameters, no and posturing are the parameters to transform function, which is how Surinamese
transform.
And then here there's also a new variable are eliminating Baffour and Jibaro.
I have analyzed and found the device is the result of the transformation.
So this function, we perform some kind of transformation and is able to her.
And then after that down here, you move Dubuffet to RSI and then you move the numbers trying to idei.
And then here you set the number of mice for comparison and then you do a memory compare that means
and this past year is going to compare your stream with your transform string.
And then only if it's equal, then if we return the result in a hurry so he can go back here.
The result will be in our X, so our ranks will determine whether you have to be successful or not.
You will test with our X is one.
You've already one, then it's not zero.
That means he will go to success is zero.
Then he will go to hear failure.
So is how so many times over here he will now take he will bring up the plus exclamation and plus which
we have seen before.
And then after that he is going to take your input string.
Again, he will persist in pushing into your print printf have been a key function and I will say this
happening is so important in string inside here and input string.
He's in the eye and he's going to take the idea and do some kind of modification to.
And then you bring you bring it up.
This one is it.
So this is how it works.
So the thing is, you have to analyze is how to how this to take your your input string and transform
it.
Right.
So basically, I've already put a comment here to show you what one is, but this is basically taking
your your input stream.
And then do some kind of transformation, you conveniently have transformed, so for better understanding,
easier understanding and going after to transform this industry, you compare to see that 80, 90 and
so on.
So now what remains to be done is to analyze how it's a transformation done, to understand that the
FTA and then and then I saw this U.S. Navy SEAL moving yo yo, and I'm starting to job and I hear.
It is putting your input between the RTI and Jibaro here, so he's going to take your input string,
perform some kind of transformation in Ghaffur.
So we have to enter this function to see how he does it.
And here is why he's doing it.
So over here, he's taking all your input string.
And going in three, two times in a row now, each time you lose, you notice how labeled are 14 is
high, meaning the count.
So the country doesn't agree to you continue to look.
So you looked at two times a year.
I put a comment here to indicate three, two times.
And here what he does is you call a function Jewish community federation function, and he will go in
each time he goes in, he counts.
It is a counter argument as a barometer.
He also takes how the eye has to argue in the eye from here in blistering.
OK, so listen to this and see how he does and then I analyze this, if you enter this loop and you
will find it, what is actually doing is it is performing all this kind of operation inside here.
I assume the idea is actually easier to follow the first thing that he has to fighting it and then it
doesn't.
An operation with one F one F means fine ones in binary, which is a musketry and is limiting the operation
to fight bitterly.
That's why he's doing the mosque then issue.
Right.
And she's right.
This operation there must issue, right?
And you all hear these stories actually are going down for it.
So I you see there just happens three times once here and here and any time.
And in hearing anything and then after a disservice to disability, right?
Three times he would then have you assume that the result is starting X, which is why so now over here
he would take the Y and then he will add to itself and is to Y, and here you had to be so against this
three way.
And finally he were performing a bit, masking using the N operator in here.
So let me meeting you our operation to find her.
So in effect what he is doing is rotating the beast to the right.
Now, if you want to implement this insight, Python, and this is what it looks like, I've got the
scoop here.
So I open this in the terminal
SkyPan Scritch.
All right, so I'll explain this in the next video.
Thank you for watching.