Place all the ingredients into a medium sized pot.
First, bring it to a boil, and then let it simmer until cooked through, 20-25 minutes.
Process the mixture (everything in the pot - both the peppers, tomatoes, and the juices) in a food processor in batches. Run it through a medium-mesh strainer.
Place it back in the pot. At this point if it is too thick, you can adjust it to you liking by adding in some water.
Allow it to simmer in low heat until you are ready to use it.
To make refried beans:
Heat oil in a 10-inch non-stick skillet.
Add in the onions and cook, stirring occasionally, until translucent, 8-9 minutes.
Stir in the garlic and cook for 30 seconds.
Transfer the beans and stock into the pan.
Cook, stirring frequently for 5-8 minutes. When it is heated through, use a potato masher to mash the beans. Let it cook for 5 more minutes and take it off the heat.
Put a lid on it and set aside until ready to use.
To make the salsa:
Mix all the ingredients in a small bowl.
Taste to make sure that it is well seasoned.
Cover it with stretch film and set aside.
To assemble:
Cook two eggs to your liking.
While they are cooking, dip 2 corn tortillas in the warm pasilla sauce for 5-7 seconds. Using thongs, fish them out of the pot and place on a large plate, making sure they cover the whole plate.
Generously spread 3-4 tablespoons of refried beans over the tortillas.
Place the eggs on tortillas. Drizzle 3 tablespoons of the pasilla chile sauce over the eggs. Top them off with 3 tablespoons of salsa, sliced avocado cubes, and some crumbled queso fresco.
To finish it up, sprinkle it with cilantro, salt and black pepper, and serve it with lime wedges.
Repeat the same process 3 more times to serve 4 people.
Notes
Note: You can store the pasilla chile sauce in a mason jar tightly closed with a lid in the fridge. It will keep its freshness up to a week.