Season the chicken pieces with a pinch of salt and pepper. Heat 1 tbsp of the oil in a wok or large skillet over high heat until shimmering. Add the chicken and stir-fry for 3–4 minutes until cooked through and lightly browned. Transfer to a plate.
Add the remaining 1 tbsp oil to the pan. Add the garlic, shallots, chili, and shrimp paste (if using). Stir-fry for about 1 minute, breaking up the shrimp paste, until fragrant.
Add the cabbage and stir-fry for 1–2 minutes until just wilted but still crisp.
Add the cold rice, breaking up any clumps with your spatula. Pour the kecap manis and soy sauce around the edge of the pan so they sizzle, then toss everything together for 2–3 minutes until the rice is evenly colored, hot, and slightly caramelized in spots.
Return the chicken to the pan, toss for 1 more minute, and taste. Add more kecap manis for sweetness, salt, or chili as needed.
In a separate skillet, fry the eggs in a little oil until the whites are set and the edges are crisp, about 2 minutes.
Divide the rice among plates, top each with a fried egg, and serve with cucumber, tomato, crackers, and a sprinkle of fried shallots.