Rewrite: The JScript file[3] employs different obfuscation techniques. The…
- User
Rewrite: The JScript file[3] employs different obfuscation techniques. The de-obfuscation starts with three functions and a strings array. For example, the first function shifts the given array 143,858 times (0x231f2), and another function after subtracting 383 (0x17f) points to the first element of a new array. The shift and subtract values are not fixed and are unique for each sample. This new array will replace obfuscated names of the variables and functions. However, for additional complexity, not all variables will be renamed after the execution of the mentioned functions.
- Assistant
The JScript file[3] utilizes various obfuscation techniques. The de-obfuscation process begins with three functions and an array of strings. For instance, the first function shifts the given array 143,858 times (0x231f2), while another function, after subtracting 383 (0x17f), points to the first element of a new array. These shift and subtract values are not constant and vary for each sample. This new array is used to replace the obfuscated names of variables and functions. However, to increase complexity, not all variables are renamed following the execution of these functions.
- User
Rewrite: The PowerShell code silently downloads the BadSpace backdoor and after ten seconds it executes the downloaded file using rundll32.exe.
- Assistant
The PowerShell script discreetly downloads the BadSpace backdoor and, after a ten-second delay, executes the downloaded file using rundll32.exe.
- User
Rewrite: The present BadSpace sample is a PE32+ DLL that is not packed but obfuscated.
The strings, Windows API DLL names, and Windows API function names that it uses are encrypted with RC4. Each string blob has the following buildup: four bytes length of encrypted data, followed by a four bytes RC4 key, followed by the encrypted data.
- Assistant
The current BadSpace sample is a PE32+ DLL that is obfuscated but not packed.
The strings, Windows API DLL names, and Windows API function names it utilizes are encrypted with RC4. Each encrypted string blob is composed of the following: four bytes indicating the length of the encrypted data, four bytes containing the RC4 key, and the encrypted data itself.