I'm writing a C program that containes some anti-disassembly techniques, in particular I'm implementing this one:
https://unprotect.it/technique/dynamically-computed-target-address/
This is my attempt at implementing it:
__asm {
mov eax, [%0]
call eax
:: r (target) : eax
}
The problem is that when I try to compile it in Visual Studio 2022 I receive the errors:
C2400: syntax error of the inline assembler in 'second operand'. Found 'MOD'.
C2400: syntax error of the inline assembler in 'opcode'. Found ':'.
Do you know how can I solve it? Thank you in advance.