Studying isogeny-based cryptography using lattice geometry, Part 2: Theta-functions