Self aware you say... a large botnet would need all the processing power it possess in order to achieve even a basic counciousness if you are talking about some kind of AI.
In the other hand... even if the botnets make mining useless, BTC will continue to exist, we just shutdown our mining rigs or donate the power to F@H or Seti.