Benchmarking Large Language Models for Cryptanalysis and Mismatched-Generalization