Pkg.UPXUnpacker — API for unpacking UPX compressed executables

Overview

The Pkg.UPXUnpacker module contains the API for unpacking UPX compressed executables.

Unpacking an UPX Binary

The following code example demonstrates how to unpack a UPX-packed binary:

from Pkg.UPXUnpacker import *

ret, output = unpack(file_name)

Module API

Pkg.UPXUnpacker module API.

Functions:

unpack(fname[, wo])

Unpacks a UPX packed binary.

unpack(fname: str, wo: Optional[Pro.Core.NTIWait] = None)Tuple[bool, Optional[str]]

Unpacks a UPX packed binary.

Warning

The specified file is overwritten.

Parameters
  • fname (str) – The file name of the packed binary.

  • wo (Optional[NTIWait]) – An optional wait object.

Returns

Returns a tuple containing a boolean signaling the success of the operation and the output text generated during the unpacking operation if available.

Return type

Tuple[bool, Optional[str]]