I was lucky enough to work on early AI back in 1990/91 and yes, any evil would have to be programmed in. Actually, AI isn't that big of a deal. It's just assigning weights to probabilities and making decisions based upon algorithms that consider to relative importance of each of the weightings. Not impossible for a computer, but getting HUMANS to cooperate? LOL. Visit a movie set. Attend a meeting of any kind. Full cooperation among humans is nearly impossible. Not IMPOSSIBLE but nearly so.