While the eggs are cooking, combine soy sauce, water, mirin, and sugar in a small saucepan and bring to a boil. Stir until sugar dissolves, then remove from heat and let cool.
After 17 minutes, place the eggs in a bowl of ice water to cool for 5 minutes.