The high energy X-ray probe: resolved X-ray populations in extragalactic environments