Hi everyone, I've got a question like how to use a variable from C ++ to asm here is an example of what I want
void XorBlock(DWORD dwStartAddress, DWORD dwSize, BYTE Byte)
{
__asm
{
push eax
push ecx
mov ecx, dwStartAddress // Move Start Address to ECX
add ecx, dwSize // Add the size of the function to ECX
mov eax, dwStartAddress // Copy the Start Address to EAX
crypt_loop : // Start of the loop
xor byte ptr ds : [eax], Byte // XOR The current byte with 0x4D
inc eax // Increment EAX with dwStartAddress++
cmp eax, ecx // Check if every byte is XORed
jl crypt_loop; // Else jump back to the start label
pop ecx // pop ECX from stack
pop eax // pop EAX from stack
}
}
While I have no idea what are you trying to achieve, just don't use it, it's useless.
Okay, and thanks at least on this one
lol Encrypt/Decrypt is 100% useless for vac