When we arrive to the end of the world Tikkun, the war on Amalek would be made by God himself, none other than him.
“וְיָצָא יְהוָה וְנִלְחַם בַּגּוֹיִם הָהֵם כְּיוֹם הִלָּחֲמוֹ בְּיוֹם קְרָב”
“Then YHVH will go out and fight against those nations as when he fights on a day of battle.”
“וְעַתָּה שְׁנֵי בָנֶיךָ הַנּוֹלָדִים לְךָ בְּאֶרֶץ מִצְרַיִם עַד בֹּאִי אֵלֶיךָ מִצְרַיְמָה לִי הֵם אֶפְרַיִם וּמְנַשֶּׁה כִּרְאוּבֵן וְשִׁמְעוֹן יִהְיוּ לִי”
“And now your two sons, who were born to you in the land of Egypt before I came to you in Egypt, are mine; Ephraim and Manasseh shall be mine, as Reuben and Simeon are.”
Egypt is the aspect of all exiles. The children of Israel that were born and reside outside the land of Israel are considered to be in exile. Those who reside in the land of Israel are not in exile even during the time before the coming of Mashaich.
“וְזָכַרְתִּי אֶת בְּרִיתִי יַעֲקוֹב וְאַף אֶת בְּרִיתִי יִצְחָק וְאַף אֶת בְּרִיתִי אַבְרָהָם אֶזְכֹּר וְהָאָרֶץ אֶזְכֹּר”
“then I will remember My covenant with Jacob, and I will remember also My covenant with Isaac, and My covenant with Abraham as well, and I will remember the land.”
The word Jacob ‘יעקב’ in the verse is spelled irregular with extra ו Vav, ‘יַעֲקוֹב’. This ו Vav represents the channel of Light of the holy Temple that was removed at the time of the destruction. At the time of the Redemption this ו Vav, channel would be restored and the promises given to Abraham, Isaac and Jacob would be fulfilled and all the children of Israel could come back to their land that would become holy.
‘Remember’ ‘זכרון’ is the aspect of male ‘זכר’ connection, channeling light from upper to lower. God remembering the Patriarchs means restoring the connection to Chessed, Gevurah and Tiferet to allow the light from the upper three sefirot to flow down Light through the channel of Zeir Anpin that is represented by the letter ו Vav from the YHVH name.
Another name for pe-n-is is ‘זכר’. This body part is ‘erected’ when it has a desire to draw light from the upper level (brain) and channel it to a vessel (it flows down through the spine). The pure spiritual aspect of ‘זכר’ is raising the desire to draw light from the Chokmah and Binah through studies, prayers and meditations to nourish Malchut with the needed light.
The negative aspect is lust and improper unification of male and female, light and vessel.
People who study Torah and Zohar have better memory than other people because they ‘stimulate’ the flow of light from above to below.