Publicly available Botnet Traffic dataset
One malware that I know is available and used for building botnets is kaiten.c
On the following links, you can find some bot samples that were created for learning and research purposes: http://code.google.com/p/viperbot/
http://code.google.com/p/turbot/