; ; remember the good old dos times - time dependant tricks everywhere ; .586p .Model Flat extrn ExitProcess : PROC ;procedure to shut down a process extrn MessageBoxA : PROC ;procedure to show a MessageBox .Data caption db "daemon",0 text1 db "run normal",0 text2 db "i got traced!" .Code Main: db 0fh,031h ; read time-stamp-counter push eax ; push the value on stack db 0fh,031h ; read time-stamp-counter sub eax,dword ptr [esp] ; subtract the value from new one add esp,04h ; correct stack push 0 push offset caption cmp eax,0FFFh ja traced push offset text1 jmp kkk traced: push offset text2 kkk: push 0 call MessageBoxA call ExitProcess End Main ;End of code, Main is the entrypoint