I have a problem with understanding, why after modifying variable var_4h
and passing positively through jne at 0x000006c3
I still cannot see the message. I use radare2
In debug mode, just before cmp I use: wv \0x5 @rbp-0x4
52: main ();
│ ; var uint32_t var_4h @ rbp-0x4
│ 0x000006b0 55 push rbp
│ 0x000006b1 4889e5 mov rbp, rsp
│ 0x000006b4 4883ec10 sub rsp, 0x10
│ 0x000006b8 c745fc040000. mov dword [var_4h], 4
│ 0x000006bf 837dfc05 cmp dword [var_4h], 5
│ ┌─< 0x000006c3 7518 jne 0x6dd
│ │ 0x000006c5 488d35980000. lea rsi, qword str.You_win ; 0x764 ; "You win!"
│ │ 0x000006cc 488d3d9a0000. lea rdi, qword [0x0000076d] ; "%s"
│ │ 0x000006d3 b800000000 mov eax, 0
│ │ 0x000006d8 e883feffff call sym.imp.printf
│ │ ; CODE XREF from main @ 0x6c3
│ └─> 0x000006dd b800000000 mov eax, 0
│ 0x000006e2 c9 leave
└ 0x000006e3 c3 ret
Can someone help me with this? I just ran out of ideas what I'm doing wrong.