In electron capture, an atomic electron is absorbed by a proton in the nucleus, turning the proton into a neutron. The electron starts as a regular atomic electron, with its wavefunction spreading through the atom and overlapping with the nucleus.
Hopefully this is helpful sorry for no explanation i am not good at explaining things