Generative AI for Cybersecurity: Friend, Foe, or Both