These two visions show what the LORD is going to do to rid the land of sin. He is going to curse the houses of the thief and the one who swears falsely for personal gain. Since they both sinned for personal gain, what they gained will be taken away. Their houses will be cleaned out.
He is going to remove idolatry from the land, symbolized by the woman in the basket, described as wickedness herself. Many of the idolatrous practices of the Canaanites involved sexual sin, just as pornography today is this same kind of idolatry. Also, taking foreign wives often led the Israelites to apostasy. But the LORD shows here that he is not judging females in general by this singular phenomenon: the angels who deport the wicked woman are portrayed as women themselves!
LORD, clean us out, drive sin away from our houses.
Zechariah 5