In Game of Shadows , Mary decrypts the code in London .
The original was sent to Mycroft in London , who decrypted the code using a book that Holmes had noticed in Moriarty 's office during their first meeting , before passing the information to Inspector Lestrade , who seizes Moriarty 's assets and donates his fortune to anti-war charities .
Sherlock Holmes-COLON- A Game of Shadows