c - Parameters to jump all the way through this assembly? -


I am reading myself to understand the assembly code, but need some help in ensuring that I Whether or not it's happening Here are the codes and my comments.

Edit: Will the parameter make this function all the way through "jump"?

We have regular prolozes in the beginning here). After that, we are storing% d% d which is in the $ 0x804ae8d, as I saw this value in GDB, and that's it.

  804989e: ba 8d ae 04 08 mov $ 0x804ae8d,% edx 80498a3: 8b 45 08mm 0x8 (% ebp),% eax 80498a6: 8d 4d f0 lea -0x10 (% ebp) ,% Ecx 80498a9: 89 4c 24 0c mov% ecx, 0xc (% esp) 80498ad: 8d 4d f4 lea -0xc (% ebp),% ecx 80498b0: 89 4c 24 08 mov% ecx, 0x8 (% esp) 80498b4: 89 54 24 04 mov% edx, 0x4 (% esp) 80498b8: 89 04 24 mov% eax, (% esp)  

I believe that at this point (below) this Setting two parameters is basically to be taken into the function. It's scanning those people, and to compare the first parameter, it's bigger than 1, to see. If it is more than 1, then it goes down in the next section.

  80498bb: e8b0f3ffff call 8048c70 & lt; Sscanf @ plt & gt; 80498c0: 83f801mp $ 0x1,% eax 80498c3: 7f5gj 80498c & leftoo; Level_2 + 0x32 & gt;  

Here, it is adding two parameters together and loading them into the register% eax. It is to compare this new value in EX that it is now equal to 7100 or not.

  80498ca: 8b55f4 mov -0xc (% ebp),% edx 80498cd: 8b 45f0mv -0x10 (% ebp),% eax 80498d0: 01d0 Add% edx, % Eax 80498d2: 3D BC1B 00 00CMP $ 0x1bbc,% eax 80498D7: 747Ge 80498A  

I am pretty sure what is happening here. I can see that this is probably taking another parameter and loading it in the eX register. However, I'm not sure that the test and the relevance of JE are here.

  80498e0: 8b 45f4 mov -0xc (% ebp),% eax 80498e3: 8d 14 00 lea (% eax,% eax, 1),% edx 80498e6: 8b 45 f4 Mov -0xc (% ebp),% eax 80498e 9: 21d0 and% edx,% eax 80498eb: 85 c0 test% eax,% eax 80498ed: 74 07J 80498F6 < Level_2 + 0x5e & gt;  

And here, again, I'm not sure what is being done. Although I suspect that perhaps in some cases it is being run between these two parameters.

  80498f6: 8b 55 f4 mov -0xc (% ebp),% edx 80498f9: 8b 45 f0 mov -0x10 (% Ebp),% eax 80498fc: 31 d0 xor% edx,% eax 80498fe: 85 c0 trial% eax,% eax 8049 9 00: 7e 05 jle 8049907 & lt; Level_2 + 0x6f & gt;  


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -