I was coming to say that also.
The stock market is nothing more than gambling on the public (rich people) sentiment about how well that company is going to do. It's similar to how there is gambling on who will win the presidency, and does not affect the outcomes.
Buying stock is not investment, the money that the company recieves comes from issuing the stock. Your money does not fund the evil things that the company does, unless you are paying for goods/services from that company. But, I have seen that stock price influences the decisions of leadership inside the company. Your individual action will not influence the stock price.
You're too kind
(Subtle enough?)