Inside base64 there was hex encoded code. And then a lot of base64 one inside other. Recursive function helps decode it.