The former South Korean president was already mulling a self-coup as early as six months into his term, indictment papers show.