title: Edit exe binary directly from disassembly code
body: <p>There is a game that keeps crashing at the same assembly code point and I don't have source code so the only way to fix it by directly editing the exe file.</p>
  
  <p>The place that keeps crashing, according to the disassembler, is at address 0x00629115 with pointer address access where ECX pointer is at a uninitialized address with more than 50% chance being 0x0 (probably using an uninitialized pointer in C code). Before that address there is a JGE command that skips the crashing code if the comparison succeeds. </p>
  
  <p>Now what I want to do is modifying the JGE command at 0x00629106 to a JMP command so that it always skips the crashing code.</p>
  
  <p><a href="https://i.stack.imgur.com/RxBl2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RxBl2.png" alt="enter image description here"></a></p>
  
  <p>However I noticed that if I open the .exe file in a hex editor and go to the address 0x00629106 the binary code is not the same as what is shown in the disassembler. I am wondering how should I edit the exe binary.</p>
  
  <p><a href="https://i.stack.imgur.com/idFS2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/idFS2.png" alt="enter image description here"></a></p>