It reads a PHP script file, compresses its contents with gzip library, encodes its with the base64 algorithm. Then it generates a new PHP script that decodes and uncompresses the encoded data, and uses the eval function to execute the original script code.