push 0 //tid
push 0 //flag
sub rsp, 20
mov r9,0 //parameter
mov rcx,0 //security attribute
mov rdx, 0 //stacksize
mov r8,threadmem //address
call kernel32.createthread
I'm calling createthread in this way.
But if I put any address in parameter, my code doesn't work. Just making my PC lag and nothing happens, seems like thread is created but my code isn't executed. However, if I don't put parameter and leave itself for 0 it works. Can anyone help me?