Modeling Botnets and Epidemic Malware