0

I have the line:

mov [esp+var], ebp

and want to change it to:

mov [esp+var], ebp+20

To my understanding, Edit>Patch Program>Change Byte, is what should be used.. but I know very little on to what to change the hex values to to make the above change. Is there anywhere I can read up or does someone have a simple explanation? It seems like something that would be relatively simple to do if known how.

  • While some answers in Jason's link apply to this question as well, i wouldn't consider it a duplicate, because that questions generally ask for tools, and this question asks about how to use IDA. – Guntram Blohm Oct 24 '14 at 06:11
  • @GuntramBlohm, thanks, I meant to direct user1091684 to yrp's answer on the "duplicate" thread. Unfortunately, there's no way to say, "this has already been answered here", but only "this has already been asked here" which as you pointed out is not quite correct :( – Jason Geffner Oct 24 '14 at 13:45

1 Answers1

0

I'm not sure you are able to use mov instruction from mem arg to mem arg, see:

x86 MOV Instruction Set Reference

I guess should save ebp+20 to reg, then load it to mem via mov.

helloworld
  • 126
  • 4