In a food processor fitted with a metal blade, pulse together the lemongrass, galangal, lime leaves, cilantro, shallot, garlic, fresh chilies, and soaked dried chilies. Add a tablespoon or more of water if the mixture is too thick. Add in the coriander-peppercorn mixture, shrimp paste, and salt and pulse until combined well.