Stringy origin of 4d black hole microstates