PhilT
August 11th, 2014, 02:58
I am trying to re-write some functions from a 16 bit DLL using an IDA dead listing, I'm not a 'programmer' as such more of a hobbyist.
I have managed to re-write a few functions ok but have hit a problem on one of them which i dont understand hence the question.
I have this code..
push word ptr [bp+6] //this is the 16 seed value
call SeedToKey //calculates the key value and places the answer in ax
add sp, 2
mov [bp+6], ax // copies ax to BP+6
This code loops around based on another value.
My question is, does adding 2 to the stack pointer affect the contents of the ax register before its copied back to BP+6??
Sorry if this is a basic question but i'm still trying to learn!
Thanks
I have managed to re-write a few functions ok but have hit a problem on one of them which i dont understand hence the question.
I have this code..
push word ptr [bp+6] //this is the 16 seed value
call SeedToKey //calculates the key value and places the answer in ax
add sp, 2
mov [bp+6], ax // copies ax to BP+6
This code loops around based on another value.
My question is, does adding 2 to the stack pointer affect the contents of the ax register before its copied back to BP+6??
Sorry if this is a basic question but i'm still trying to learn!
Thanks