1)
How are people's ears revealed?
1.
Rashi: This is like He did to Avimelech, in a night dream.
2.
Malbim: Via a dream and vision, Hashem informs them of a decree of Shamayim.
2)
What is "uv'Mosaram Yachtom"?
1.
Rashi: He seals and binds them with afflictions due to their sins.
2.
Malbim: Via the power of Musar in man's Nefesh, which arouses him to Musar, the dream inspires him to investigate his deeds. It is as if the dream writes on the tablet of his Nefesh. So he will know that this writing is Divine, Hashem makes his Nefesh feel that it sinned, and he is warned from above.


