-1

I dont understand what this code will do

lea   0x13(%esp), %esi

%esp is a stack pointer, %esi is index register.

Is 0x13 offset?

Michael Petch
  • 43,801
  • 8
  • 98
  • 174
JohnDow
  • 1,142
  • 4
  • 21
  • 40

1 Answers1

4

I'm used to the Intel syntax, so I believe this is what's happening:

lea esi, [esp+13h]

Say esp is 0x18000 - the result of this operation will be 0x18013, since you're not actually accessing any memory with lea.

Again, I only have experience with the Intel syntax, so my answer may be incorrect. Hopefully this has helped you!

Fireboyd78
  • 103
  • 7