Massive elementary particles receive their mass via interaction with the Higgs field. This answer offers some explanation.
But this only accounts for one percent or so of the mass in the Universe. The rest is supplied by the binding energy which pulls the particles together into nucleons and atoms, according to $E = mc^2$.
So mass appears to have a dual nature; part Higgs mass and part relativistic mass. Is this correct, and if so then does Higgs mass contribute to the curvature of spacetime? Or does Higgs mass also derive from $E = mc^2$ via the energy of the Higgs field (in which case it must contribute to the curvature of spacetime)?