The ruling Workers ' Party was founded in 1945 by Kim Jong-il 's father the late President Kim il-Sung , shortly after the Korean Peninsula was divided at the end of World War II .