Yep, more properly arrayEncrypted & arrayUnEncrypte d are unsigned chars
which is equivalent to bytes for me here.
unencrypted will contain executable code once finished unencryptins so would
like to jump to there.
If this is clearer.
Thanks for the advice Andre.
I am trying to avoid jumping to assembly language here as Im converting back
from it to c++.
just a reverse engineering exercise.
Can it be done in c or another language?
I remember vaguly about labels ending with : to mark point in executable but
I think this was assembly language for some processor again.
Can a goto handle the jumpmaybe?
"André Pönitz" <po*****@gmx.ne t> wrote in message
news:bk******** **@anderson.hrz .tu-chemnitz.de...
Kris <so*****@optusn et.com.au> wrote: Is it possible to change execution path in c++ without jumping to asm
eg:
int* arrayEncrypted
int* arrayUnEncrypte d
after unencrypting from the encrypted to the unencrypted can I jump the
ip address to arrayUnEncrypte d without resorting to assembly. currently
doing it like this but it defeats the point of my exercise to use assembly
asm
{
push arrayUnEncrypte d
ret
}
Is there a c++ way of doing this?
I.e. arrayDecrypted contains a sequence of ints which would be
interpreted by your processor as machine code if the IP would point
there?
If so, no, there is no portable way to do that in C++, and using asm
seems to be a reasonable alternative in this case.
Andre'