Probing the dark ages with the Square Kilometer Array