My Pokemon Y game broke so when I bought a new one I downloaded the wondercard files from a website and then used pkhex to insert into the game is that what you're trying to do?
Also with PKhex you can right click wondercards, select view, and it'll ask if you want to remove the used flag if you...