Chop the onion and garlic.
Heat cooking oil in a pan and sauté the garlic and onion.
Add the chicken and stir-fry until cooked.
Add the rice and mix well while stir-frying.
Season with soy sauce and oyster sauce.
Place the finished Nasi Goreng on a plate and top with a fried egg.