I am solving Memory Corruption CTF (msp430 assembly)

How can I put the value 0x3c4f inside address 0x439c (r15 from Register state)? When cmp instruction executes, we want the value at memory address 0x439c to be equal to 0x3c4f.

enter image description here

One thing to note is cmp instruction will compare 2 bytes

.W : The suffix .W or no suffix at the instruction memonic will result in a word operation

I appreciate your help!

Should I put 3 in 0x439c, c in 0x439d, 4 in 0x439e and f in 0x439f?

  • I'd like to help you answer your question, but I'm not sure I understand the full scope of your situation. What is Micro Corruption? Sep 13, 2020 at 5:27
  • Sorry for late reply. It's actually Memory corruption CTF. Sorry for my mistake. Just edited it. Oct 31, 2020 at 0:04


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.