current compilers want to min the size and optimize execute speed.
but, maybe i want a compiler,whose purpose is anti-analysis.
so ,i made unest.org, it support nasm language,intel x86 instruction,output binary code.
Demo:
source code:
[bits 32]
%define Key 0cccccccch
%define dwFlag 04013f4h
mov edi,dwFlag
mov eax,dword [edi]
cmp eax,Key
jz @1
mov eax,0
jmp @2
@1:
mov eax,Key
@2:
mov dword [edi],eax
download:
http://www.unest.org/demo/demo.phpafter download,load it with ollydbg or other debugger tools.
like this picture:
if you change the key before you run it,then you will see the result as same as the source code.
when the key is not 0cccccccch,the dword memory will been set by 0.
the important is : the code been garble(poly) each you download it.if you want to try my little toy,contact me to get invitation code