A rebellious heart is not instructable. This is why the Lord asked the first question.
If Cain had really wanted to please the Lord, he would have asked Him what he needed to do to please Him rather than getting angry.
The second question about Cain^s fallen countenance was the Lord^s attempt to point out to Cain the bitterness, emptiness and unhappiness that comes from SelfWorship. Cain^s pride was hurt.