Le 15/05/2012 23:27, deadalnix a écrit :

mov EAX, EIP;

is enough.

I think this is illegal in assembly, try to call a label in your function then pop.

void* selfAddress() // actually tested
{
    asm
    {
        naked;
        call my_label;
        my_label:
        pop EAX;
        sub EAX, 5;
        ret;
    }
}

Reply via email to