See: Ex 17:8, 14-16 ; Dt 25:17-19 and 1Sa 15:1-3, 32-33.
See Es 9:24 also, but there another, not flattering qualification is added: Hater [or: enemy/adversary] of all Jews.
Through his ancestor, Agag, Haman apparently could take back his lineage to the Amalekites.
For the Jew Mordecai that was the reason why he refused to give Haman the honour which he demanded from him: prostrating himself to a man who belonged to the people that God had intended for destruction (Es 3: 5-6).
And indeed, initially Esther keeps hidden her true identity, but the meaning of her name also appears to be thematically for the whole story: hidden, which primarily applies to God Himself. His name YHWH does not appear in the story, for critics an argument against the inspiration of the Book.
With his action, complete eradication of the Jewish people, Haman became to a prefiguration of the Pseudo-Masjiach in the End times, the Beast with its 10 horns of Revelation that will exert world domination for a very short time as an 8th King. Under his tyrannical terror, the Jews will regain much to endure, including the threat of beheading if they do not express their willingness to worship the image of the Beast.
However, what is the benefit that those ten sons in the story are all mentioned by their exact names? Ostensibly, the mention of their names seems to be superfluous; entirely irrelevant. However, to Elohim, the Inspirer of the story, such a thought is absolutely out of the question. How?
On the basis of their numerical values. According to Revelation 13:18 the number of the Beast - the Pseudo-messiah of the End times - is 666 >>
But subsequently also his ten sons. In Est 9:7-9 they are enumerated:
Parsandatha 1035; Dalfon 170; Aspatha 542; Poratha 687; Adalja 46; Aridatha 616; Parmastha 1021; Arisai 281; Aridi 225 (According to Brown-Driver-Briggs ארידי 225; also version JPS) and Waizatha 424. Total 5047.
Exactly the numerical value of the Beast (666), the supernatural value 5000 inclusive.
Exactly thus it is with the ten horns of the Beast. In Revelation 17:12-14 [one of the sub cycles of Spoke 17 of the Bible Wheel], we read about them:
So, YHWH Elohim Himself announced that he would bring Gog against Israel’s prophets which, of course, meant that He would bring that Great Enemy against the nation of Israel itself!
In this regard also, other prophets can be considered, like Joel, Micah, Isaiah, Jeremiah. In their Sacred Writings, a lot of passages can be found that go in the same direction as Ezekiel 38 and 39.
Although the figure Gog is not mentioned by them, they nevertheless speak about a power that resembles him.
Further investigation shows that it always concerns the 8th King, the Beast of the Revelation, but presented in different ways, for example: the Assyrian, especially in Isaiah, but also the king of the north (Daniel). Hence, there is a threat, constantly coming from the North, but all the time Israel is target.
Incidentally, in such prophecies it often is a matter of a second (larger) fulfilment. For example, the Assyrian (Sennacherib) who threatened the city of Jerusalem with a large army during the reign of Hezekiah.
Haman, the son of Hammedatha, was an Agagite. At the time of Saul, Agag was the king of the Amalekites. So, Haman was an Agagite, or Agag par excellence.
By YHWH Elohim Saul was instructed to bring retribution upon Amalek. However, as we all know Saul failed to fulfil that divine assignment (1Sa 15).
With Agag, alias Gog something remarkable is going on!
The first Agag in the Bible was mentioned by Balaam, when he told Balak, king of Moab, that Israel could not be cursed but was to be blessed according to YHWH:
How goodly are your tents, O Jacob, your dwellings, O Israel! As valleys are they spread out; as gardens by a river-side; as lign-aloes, which planted YHWH; as cedars besides the waters. Water shall flow out of his buckets, and his seed shall be in many waters; Yes, his king shall be higher than Agag, and his kingdom shall be exalted. (Nu 24:5-7)
In verse 17 of Numbers 24 we see the Messianic king prophetic as the 'star' that will rise from Jacob (the royal sceptre from Israel): I see him, but not now; I watch him, but not near; a Star shall come forth out of Jacob, and a sceptre shall rise out of Israel, and Moab shatters sleep, and crushes all the sons of tumult.
But now a curious thing: The Agag of Numbers 24:7 was by the translators of the LXX rendered as Gog! As also is the case in the Samaritan Pentateuch.
In 1Sa 15, however, the LXX also renders Agag simply as Agag.