KSE end up; rupee firms