Late buying helps KSE 100 index gain 388 points