Heat oil in a large non‑stick pan over medium-high temperature. Add mustard seeds to let them pop. Toss in sundried red chili pepper and curry leaves (they'll sizzle and crisp).
Add onions, tomatoe and sauté for 2 minutes until soft.
Add pandan leaf, cinnamon stick, turmeric, chili flakes, and chili powder. Give it a quick mix. Push everything to one side of the pan.
Scramble the eggs on the empty side until cooked. Lower the heat and add rice, salt, and green chilies. Mix everything together so the spices coat the rice evenly.
Add butter and cook for 2 minutes. Taste and adjust salt. Remove from heat and garnish with cilantro.