Dhamīmatan qualifies the war as it is brought forth—an odious condition. In ghilmāna ashʾama kullahum, “boys/offspring” is the object of production, ashʾam describes their ominous character, and kullahum reinforces totality.
In fa-tughlil lakum mā lā tugillu li-ahlihā qurā, qurā refers to villages, and ahlihā to their own inhabitants. That reference creates the comparison between what war “yields for you” and what villages normally yield for their residents.