You will find that Aristotle operated on an erroneous assumption which permeates subtle errors throughout his works. He refers to every means as being intended for a greater good, not simply as being intended for an "end". His model logically equates the evil acts of evil men with a "greater good" because the acts are pursued as something that is wanted and that brings happiness (to the evil individual). Aristotle doesn't use those exact words, he simply defines every end as being for a greater good. But then he convolutes the matter and specifies that virtue has to fit snugly into the statistical average, i.e. be in "moderation," and ceases to be virtuous if it is to either excess or deficiency. He rambled a lot.
Aristotle also convoluted "voluntary" and "involuntary" to an absurd extent. Actions done under threat of coercion may appear involuntary but are like voluntary and should be considered voluntary in the light of the decision to bring about the most happiness. But if you choose to do something stupid, like buy the latest crypto shitcoin, or invest in quantum computing, those actions are not voluntary because they are done out of ignorance.
The problem stems from Aristotle's maxim of happiness being the greatest good, and if great evil brings happiness to a twisted mind, it is a greatest good. Evil is simply defined as what one does not want, e.g. physical pain. Hilter's tossing of Jews into ovens was a greater good. The DNC stealing the Presidential election, it was a greater good. Aristotle didn't really think things through very thoroughly, but then again, validation and vetting standards in his day were substantially lesser.