She used the Forbidden Grimoire of the 9 Realms. It had 9 keys and the grimoire had 1000 pages of Forbidden Magic, the content changed depending on which key unlocked the book.