The main point here is the activities of the company. If the company deals with unlawful activities like usury (RIBA), alcohol, gambling, cheating etc, then it is not permissible to work in such company regardless who are the owners or clients.
'It is also important that the capital of the company should not be earned through unlawful business.
'Wassalam.