Kuromukuro

Kuromukuro (クロムクロ) is a Japanese mecha anime television series produced by P.A.Works, directed by Tensai Okamura and written by Ryō Higaki, with character designs by Yuriko Ishii and music by Hiroaki Tsutsumi.

During the construction of the Kurobe Dam, an ancient artifact was discovered, and so the United Nations Kurobe Research Institute was established. Intellectuals from all over the world gathered to study the object, and the children of those researchers attend Mt. Tate International Senior High School, including the institute head's daughter, Yukina Shirahane. In the summer of 2016, a lone samurai once again awakens.

The Day the Stronghold Fell (Episode 21 "Writing on the Wall")
To save Beth from an oncoming robot, Rita pushes her out of the way, but gets picked up with a mind-controlling electronic parasite brainwashing her into the enemy's side, along with a few other soldiers.