Malek was perplexed by the sudden turn of events. He had been anticipating a response from Tanya hoping she would agree to reprise her role as court lady and become a scribe.
If she had agreed she would have returned on his terms and he planned to get close to her using the fact that he had helped her return to the palace. With this turn of events, he couldn't do that. He never thought she would go on and actually solve the encrypted message. Now she would be working directly for the emperor and had been assigned to work with the imperial army wing.
Malek knew Tanya was smart and far surpassed his abilities that's why he always told her to tone it when she was his crown princess, but he never imagined she would solve the encrypted message that even imperial officials were having a hard time-solving. Tanya was really something else.