והמלכים אשר אתו. אשר היו אתו בפשרת עמק השדים ובתוכם אמרפל: והמלכים אשר אתו, the ones who had been signatories to the compromise deal 12 years previously, amongst whom had also been Amrafel.
ויכו את רפאים ואת הזוזים ואת האימים. שהיו כלם עבדים לחמשה מלכים ונלחמו בעדם ובזה הודיע שהיו הה' מלכים גדולים והודיע גבורת הד' מלכים שנצחום ומזה נודע גודל גבורת אברהם ותחבולות מלחמתו וחסדיו עם אחיו שמסר עצמו להתגבר עליהם ולהושיע מחרב מפיהם את בן אחיו ואת רכושו ומשיניהם השליך טרף יותר ממה שבקש בחמלת ה' עליו: ויכו את הרפאים...ואת הזוזים...ואת האימים, all of these people had been subservient to the group of 5 kings headed by the king of Sodom, and had even fought wars on behalf of their masters. By telling us all this, the Torah wanted us to know that the five kings were not just paper tigers, pushovers. By inference, it enables us to imagine the military power of the four kings who defeated the five kings afterwards. Having once appreciated all this, we can image what a tremendous feat Avram accomplished when he defeated the four kings under the leadership of Kedorleomer. He must have possessed outstanding military skills in order to have accomplished this. It also testifies to the act of selfless love he displayed for his nephew, when he endangered himself and his men to such a degree in order to free him from captivity. Most of all, it gives us a chance to marvel at the mercy G’d showed both to Lot and to Avram in this sequence of events.