not Source Code but great papers about anti-analysis-tricks Everyone Should Read
Peter Ferrie's
Ultimate Anti-Debugging Reference (
http://pferrie.host22.com/papers/antidebug.pdf) PDF 147 pages
Walied Assar's blog (
http://waleedassar.blogspot.com/) he do great researches, which are focused on finding new anti-debugs tricks
Daniel Plohmann's
AntiRE (
https://bitbucket.org/fkie_cd_dare/simplifire.antire)
Mark Vincent Yason's
Art Of Unpacking (
http://www.blackhat.com/presentation...7-yason-WP.pdf)
Rodrigo Branco's
Scientific but Not Academical Overview of Malware Anti-Debugging, Anti-Disassembly and Anti-
VM Technologies(
http://research.dissect.pe/docs/blackhat2012-paper.pdf)
OpenRCE's
Anti Reverse Engineering Techniques Database (
http://www.openrce.org/reference_library/anti_reversing)
Nicolas Falli¨¨re's
Windows Anti-Debug reference (
http://www.symantec.com/connect/arti...ebug-reference)
===
http://reverseengineering.stackexchange.com tag related to anti-analysis-tricks
http://reverseengineering.stackexcha...anti-debugging
http://reverseengineering.stackexcha...d/anti-dumping
http://reverseengineering.stackexcha...ed/obfuscation
http://reverseengineering.stackexcha.../deobfuscation
http://reverseengineering.stackexcha...ged/protection