':return: A string with the complete pe file.'

def dump(self):

    try:
        template = file(self._templateFileName, 'r').read()
    except Exception as e:
        raise BaseFrameworkException(('Failed    to    open    PE    template    file.    Exception:    ' + str(e)))
    else:
        paddingLen = (self._maxPayloadLen - len(self._shellcode))
        executable = template.replace(('\x90' * self._maxPayloadLen), (self._shellcode + ('\x90' * paddingLen)))
    return executable
