More to the point, it doesn’t posit that the AI villain has any kind of self-awareness or intentions. It has a limited ability to take control of other automated systems, and to adapt when its attempts to pursue its pre-programmed goals are thwarted. But it needs no mindness to be dangerous, just an carefully designed automated system, following goals and a rough plan given to it by its creator.