Arrangements vary by event and production company but typically participant registration fees cover the management company's charges. Any additional donations from sponsors go directly to the charity, minus a small processing fee. Of course you might be able to find exceptions to that rule.