fywdm
March 25th, 2012, 08:44
Hi,
Take the following subroutine as an example.
---
sub_B02770 proc near
arg_0= dword ptr 4
arg_4= dword ptr 8
mov eax, [esp+arg_4]
mov edx, [esp+arg_0]
push 1
push eax
push edx
call sub_B026B0
retn 8
sub_B02770 endp
---
I'm able to modify existing instructions by changing opcodes within the IDA Hex View. However, I'm wondering how new instructions can be inserted into subroutines. Suppose I would like to add five "nop" instructions after "push edx" without overwriting existing opcodes. Do I need to use "Edit function" for this?
Thanks in advance,
FY
Take the following subroutine as an example.
---
sub_B02770 proc near
arg_0= dword ptr 4
arg_4= dword ptr 8
mov eax, [esp+arg_4]
mov edx, [esp+arg_0]
push 1
push eax
push edx
call sub_B026B0
retn 8
sub_B02770 endp
---
I'm able to modify existing instructions by changing opcodes within the IDA Hex View. However, I'm wondering how new instructions can be inserted into subroutines. Suppose I would like to add five "nop" instructions after "push edx" without overwriting existing opcodes. Do I need to use "Edit function" for this?
Thanks in advance,
FY