Robinho, who spent the second half of last season in his homeland with Santos after an unhappy spell with Manchester City, opened the scoring on 10 minutes and netted again in the 33rd minute.
Real Madrid playmaker Kaka scored the fourth after 76 minutes – Benfica star Ramires having first made it 3-0 eight minutes after the restart – and then added the fifth for Dunga’s men in injury time.
Aziz headed in a consolation four minutes from time for the hosts, ranked 108 in the world.
The Brazilians thus underlined their form in their final warm-up which followed last week’s 3-0 win over Zimbabwe.
At the finals, Brazil will compete in Group G alongside North Korea, Ivory Coast and Portugal.