Peel and finely dice the onions. Wash chicken legs, dab dry and cut through in the joints. Remove bones from the upper leg. Heat 1 tablespoon of oil in a frying pan. Fry the chicken legs in it until golden brown, turning them over, then take them out.
Wash the oregano and thyme, shake dry and pluck the leaves, except for 2 stems of thyme. Roast the sesame seeds in a pan without fat. Coarsely grind the leaves, sesame seeds, paprika powder and salt in a mortar.
Add 1-2 tablespoons of oil and mix to a thick paste. Spread chicken parts thinly with this paste.
Heat 1 tablespoon of oil in a frying pan. Sauté the onions until translucent, then stir in the bay leaf, turmeric and saffron. Deglaze with broth. Place chicken pieces on top and braise covered for 30-40 minutes.
Rinse rice under cold water. Heat 1 tsp. oil in a pot. Fry the vermicelli until golden brown, then add rice and about 400 ml water. Season with salt and boil up briefly. Cook rice and noodles on low heat for 15-20 minutes.
Heat butter in a frying pan. Roast barberries in it for 1-2 minutes until light, then add sugar and let it caramelize slightly. Add approx. 5 tbsp. water and some cinnamon and simmer until the water has evaporated.
Season yoghurt with salt, pepper and sugar. Roast the pistachios in a pan without fat. Take them out, let them cool down a bit and chop them roughly. Mix yoghurt and pistachios briefly. Add barberries to the rice.
Arrange chicken pieces on the rice. Spread with some paste. Season the broth with salt and pepper and pour over the rice. Garnish with thyme. Add yoghurt.