We have Advanced Promotions, and I'm pretty sure I would need two promotions/codes to make that work. One for Buy 4 Get 10% Off, and another for Buy 5 Get 25% off.
You might be able to achieve this type of tiered discount using Quantity Pricing Schedules. Check Suite Answers about that.