I remembered that the ML is fragmented into different souls, and the MC has to transmigrate into different worlds with the system. I believe that one of the ML's souls is a lamp or mole (I don't quite remember the wording), which has been the system all along. Essentially at the end, the MC managed to find all the souls of the ML. Does this ring a bell for anyone? Sorry I don't remember much about this book. Any lead would be great!