The strength of the friction doesn't matter. Neither does the distance or the time the asteroid takes to stop. All that matters is that the asteroid has
1/2 (mass) (speed squared)
of kinetic energy when it lands, and zero when it stops.
So
1/2 (mass) (original speed squared)
is the energy it loses to friction in order to come to rest.