To work out a secret plan to achieve an evil or illegal end
(Verb)