Decoding Cosmological Information in Weak-Lensing Mass Maps with Generative Adversarial Networks