They (allegedly) programmed a computer to generate false records. It's not like they created a trading model that happened to break an esoteric SEC law, it was probably pretty darn clear to these programmers that they were doing something illegal.
So I'd like to think it's possible that they didn't realize they were complicit in fraud until after they saw it applied.
Taking the hush money kinda seals it though.