Place the lemongrass along with dried shrimps (if you are using) inside a small food processor (or smaller food processor) and then process into small pieces. Transfer the pieces to a bowl and put aside.
Place garlic, shallots galangal, and both kinds of chilis into the food processor (or food processor) and process into very tiny pieces. Be cautious to not to turn into an unrecognizable paste. Transfer to a bowl , and put aside.
Cook oil on medium heat in a saucepan. Then, add the lemongrass that has been processed as well as dried shrimp. For 7-8 minutes, cook with stirring every now and then until lemongrass has diminished in volume and added only a little color.
Incorporate the shallots processed with the chilis, galangal, and garlic to the dish. Then cook for around twenty minutes while stirring often until all the ingredients are softened. The sauce appears like red, and you can smell it. It is possible to lower the heat to a lesser degree if you need to.
Add sugar, salt and soy sauce. Continue to cook for 8 to 10 minutes, allowing all flavors to blend and the sauce will have an extremely rich color. Adjust the seasonings to suit your taste.
Transfer the sauce into an empty container or bowl and allow it to cool completely. It can be stored inside an airtight container in the fridge and it should be kept for several weeks.