title: "xor eax, ebp" being used in C++ compiler output
body: <p>I just tried compiling a couple of C++ snippets on VS2010 and analyzed the executables on IDA Pro. Something I noticed is that there most of them have something like the following at the start(shortly after a call to __security_check_cookie)</p>
  
  <p><code>xor eax, ebp</code></p>
  
  <p>and something like</p>
  
  <p><code>xor ecx, ebp</code></p>
  
  <p>at the bottom. Why does this happen? The compiler optimization was turned off.</p>