Rootkit is the next level in malwares. Rootkits mostly compromise the kernel side of the operating system. So they are some of the most sophisticated piece of codes you will see in malwares.
Check the reference section for additional material. We highly recommend reading of “Rootkit Arsenal” book.