PDA

View Full Version : C++ to asm



steppone
01-02-2009, 09:08 AM
Hi guys,
I really need to translate a c++ function (like esp, invisible, superjump etc) to asm.
How i can do?
I know asm, but i can do a little basillary programs.
Thanks 4 help

lalilu
01-02-2009, 09:11 AM
why do you need to convert it into asm??

inline asm? masm? why do you need it in asm :S

steppone
01-02-2009, 09:43 AM
I need it because I need to insert it into my hack, by this method

__asm
{

// asm code

}

Can you help me?

Dxt-Cobra
01-02-2009, 09:58 AM
well asm is not easy, but here is something to get you started.


__asm
{
mov eax,[0xaddress];
mov [eax], 0xvalue;
}


that is for basic addies like scope, etc with a value.

steppone
01-02-2009, 10:13 AM
And for function with nop?

Dxt-Cobra
01-02-2009, 10:23 AM
to nop something its easyer to use memset or memcpy.



memset( (BYTE*) 0xaddress, 0x90, number of bytes to nop here );