Use the debugger to debug the target_antidebug.exe file. Observer that the Anti-Debug detection is not longer triggered. Why?
Convert your code from Lab 6 to use a hardware breakpoint instead of a software breakpoint. Test again on the target_antidebug.exe file and observe that you can now capture the calls to NtWriteFile.