1) That's not how index funds work: they attempt to track a target market index. At most, it happens indirectly: get your company into the major indices by a short-sighted depletion of capital, and you can get some level of lift from index funds blindly purchasing your stock (though IIRC it's not a huge effect).
2) You can effectively remove certain companies from an index using derivatives in addition to the index fund. Alternatively, look into direct indexing, where you attempt to track an index by directly owning an appropriately weighted basket of stocks, though it tends to be more complicated, have greater tracking errors, and have higher fees.
Oh this is exactly what I was trying to claim. I don't have any source for it though, just general distrust of our financial system and awareness that there's many incredibly smart people trying to find every loop hole and turn every random fluctuation to their advantage.
Thanks for the info on how to effectively remove certain companies from an index though, I'll put that to use
2) You can effectively remove certain companies from an index using derivatives in addition to the index fund. Alternatively, look into direct indexing, where you attempt to track an index by directly owning an appropriately weighted basket of stocks, though it tends to be more complicated, have greater tracking errors, and have higher fees.