PeStudio is a tool to find suspicious artifacts within executable files to accelerate the first malware assessment. Using this tool, the analyst can easily spot the functionalities commonly used for malicious activities by malware creators.
When the analyst opens the malicious sample inside the program, general information of the file, such as MD5 hash and entropy, is obtained. The hash value of the sample will then be checked on Virus Total, and the result of the lookup will be listed inside the program. The picture presented below shows the result of the query.
In the âSection tabâ, an analyst can see the MD5 hash for each section, entropy value and entry-point address (the address from where the process starts executing), and the read, write, and/or execute permission for each section. If the â.rsrcâ section is abnormally large, the application can âdropâ another file on the disk. In this case, it is recommended that, during runtime analysis, the analyst pays close attention to the files that are written on the disk.
âImport sectionsâ hold the imported function names. By searching each function on MSDN.microsoft.com, the analyst can find what that function is doing. PeStudio has a list of âblockedâ imports, where all the imports that can be used for malicious activities are listed.
In the sample presented below, an inspection of the âImportsâ section can give the analyst an overview of the principal imported libraries used by the malware for malicious activities and banned by the PeStudio application. For example, the imports âconnectâ, âgethostbynameâ, âsocketâ, âmemcpyâ, âsendâ and âGetAsyncKeyStateâ give the malware analyst some idea of the basic functionalities of the analyzed sample.
The âExports sectionâ presents the functions that the PE file is exporting for other PE files to use. In the example presented, there are no exports.
The âresources sectionâ usually stores the information related to UI (icons or custom window elements). If the malicious application has dropper5 functionalities, the files that are written on the disk could be stored in the â.rsrcâ section.
The section âtls-callbackâ has the code that will set up the environment, so the application can run. This code will be executed before the entry point. Using this functionality, the malware creator can hide code inside the TLS (Thread Local Storage) that will be executed before Windows OS creates the process.
The âstrings sectionâ is also a useful source of information for the analyst. All the strings from the executable are parsed and placed in this section. In examining the âstrings sectionâ, the analyst is trying to identify readable strings, such as IPs and URLs, and filenames that can be used during the investigation. When the number of readable characters is reduced, the application could be packed or obfuscated.
The âstrings sectionâ of the sample analyzed is presented below.
Another major area when analyzing malware is the âcertificate section, which contains the certificate used for signing the application. Usually, malicious applications are not signed or use a certificate from a certificate authority that is untrusted or has been compromised. The PeStudio tools can also create and export an XML report for the executable being analyzed. The XML output report can be used for further analysis by third-party analysis tools.
Similar Reads
BogoSort or Permutation Sort
BogoSort also known as permutation sort, stupid sort, slow sort, shotgun sort or monkey sort is a particularly ineffective algorithm one person can ever imagine. It is based on generate and test paradigm. The algorithm successively generates permutations of its input until it finds one that is sorte
7 min read
How to Install Tomahawk in Linux?
Tomahawk is open-source software. It is not usually used software that developers used. It is a software made for the use of only musical purposes. Tomahawk is available in both Linux & Windows machines. It is capable to work with both Linux & Windows operating systems at a time. It is widel
5 min read
Programs to print Interesting Patterns
Program to print the following pattern: Examples : Input : 5Output:* * * * * * * * * ** * * * * * * ** * * * * ** * * ** ** ** * * ** * * * * ** * * * * * * ** * * * * * * * * *This program is divided into four parts. [GFGTABS] C++ // C++ program to print // the given pattern #include<iostream
15+ min read
How to Install Clementine Music Player on Windows?
A free and open-source audio player is Clementine. Amarok 1.4 has been ported to the Qt 4 and GStreamer multimedia frameworks. It is offered for Windows, macOS, and Unix-like operating systems. The GPL 3.0 or later is the license that governs the release of Clementine. Clementine was developed as a
2 min read
What is the stupidest sorting algorithm? (Worst Sorting Algorithm)
Bogo sort stands out as the undisputed champion of stupidity. Unlike other sorting algorithms that follow a structured approach, Bogo sort relies on sheer luck and randomness to achieve its goal. How Bogo Sort Works?Bogo sort operates on the following principle: Randomly shuffle the elements in the
2 min read
How to Install Vivaldi Browser on Windows?
Vivaldi is a web browser developed by Vivaldi Technologies, a company founded by Jon von Tetzchner, one of the co-founders of the Opera web browser. It is a free and open-source browser that is available for Windows, macOS, and Linux. Vivaldi is designed to be a more customizable and user-friendly a
3 min read
Check if a string is Pangrammatic Lipogram
To understand what a pangrammatic lipogram is we will break this term down into 2 terms i.e. a pangram and a lipogram Pangram: A pangram or holoalphabetic sentence is a sentence using every letter of a given alphabet at least once. The best-known English pangram is "The quick brown fox jumps over th
14 min read
Linde-Buzo-Gray (LBG) Algorithm
Linde-Buzo-Gray (LBG) Algorithm is used for designing of Codebook efficiently which has minimum distortion and error. LBG algorithm was proposed by Yoseph Linde, Andres Buzo and Robert M. Gray in 1980. It is the most common algorithm for Code Generation that generates a codebook with minimum error f
2 min read
Dmitry - Passive Information Gathering Tool in Kali Linux
Dmitry is a free and open-source tool available on GitHub. The tool is used for information gathering. You can download the tool and install in your Kali Linux. Dmitry stands for DeepMagic Information Gathering Tool. It's a command-line tool Using Dmitry tool You can collect information about the ta
4 min read
Alexander Bogomolnyâs UnOrdered Permutation Algorithm
Alexander Bogomolny's algorithm is used to permute first N natural numbers. Given the value of N, we have to output all the permutations of numbers from 1 to N.Examples: Input : 2 Output : 1 2 2 1 Input : 3 Output : 1 2 3 1 3 2 2 1 3 3 1 2 2 3 1 3 2 1 The idea is to maintain an array to store the cu
5 min read