Figure 3
From: Synthesis of heavy hydrocarbons at the core-mantle boundary

Radial distribution function of Fe and light elements.
The affinity of Fe to C and O suggests that C and O elements will be transported to the outer core while H is less likely to be present in the core.