Posted: Mon Mar 28, 2016 4:25 am Post subject: CreateThread problem
Hello, I would like to call a function from my own thread but I do not have much knowledge within such thing.
ADDRESS:
mov ecx,theECXhere
call 00400000(Example)
ret
You probably understand what I want to do, but that code theory just creates a crash, I have no idea how to call a function, any help would be appreciated.
alloc(newmem,2048)
createthread(newmem)
newmem:
// push any arguments onto the stack in reverse order
call addressOfSubroutine
// if subroutine is caller-cleanup, remove arguments from the stack
ret
Note that in 64-bit processes the caller has to give 32 bytes of space on the stack for the callee. _________________
I don't know where I'm going, but I'll figure it out when I get there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum