Originally Posted by saigetshu
can you give me some tutorial links for flashing my Sony Xperia M.
As already mentioned, it is suggested to use Sony PC Companion or Sony Update Service.
Both these processes are well self documented and walk you through the process of re-installing the original firmware.
I suggest you stick to the above two applications and review the state of your phone after completion of a Sony distributed re-install.