FireBugs: Finding and Repairing Cryptography API Misuses in Mobile Applications