I was just pondering how an anti virus program is able to scan files and see whether it is or not. and I thought...."what if they use some kind of disasembly to read the functions and detect viruses?" How does an antivirus program work and if it does do something along the lines of Disassembly is there any possible way to harness that to your own reversing purposes?