An analogue of the Wielandt subgroup in infinite groups