If they money didn't flow through Kaspersky (the wording here of "Kaspersky" donating it vs Apple donating it is weird) and it was donated to a neutral charity (say, red cross or Médecins Sans Frontières), I don't think anyone would raise an eye on it.