GIAC Reverse Engineering Malware Free Sample Questions

20 free sample questions130 in the full practice test

Try simulator

GREM Sample Questions

  1. Question 1

    Beginner

    Malware Analysis Fundamentals · Lab Setup and Tooling

    A malware analyst is configuring a dedicated analysis lab using VMware Workstation. To ensure the malware can be analyzed dynamically while simulating Internet services without exposing the production network or the actual Internet, which network configuration is the MOST appropriate?

    Answer and explanation

    Correct answer: B

    A Host-Only network isolates the VMs from the external network entirely. By placing a REMnux VM (configured with tools like INetSim or FakeNet) on the same Host-Only network and setting it as the gateway for the malware VM, the analyst can intercept and simulate all network traffic safely.

  2. Question 2

    Intermediate

    Malware Analysis Fundamentals · Static Analysis Techniques

    During the static analysis of a suspicious PE file named 'invoice.exe', you observe that the 'Virtual Size' of the .text section is 0x40000 bytes, while the 'Size of Raw Data' is 0 bytes. What is the most likely explanation for this anomaly?

    Answer and explanation

    Correct answer: C

    A high Virtual Size combined with a Raw Data size of 0 in the executable code section (.text) typically indicates that the malware is packed. The packer allocates memory space during loading but does not store the code on disk in that section; instead, a stub unpacks the code into that memory region during execution.

  3. Question 3

    Beginner

    Malware Analysis Fundamentals · Behavioral Analysis Techniques

    While monitoring a malware sample with Process Monitor (ProcMon), you notice a repetitive operation where the process queries the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Run. Immediately after, it creates a file named update.exe in %APPDATA%. Which phase of the malware lifecycle are you observing?

    Answer and explanation

    Correct answer: D

    The Run registry key is a classic location for establishing persistence, ensuring the malware starts automatically upon user login. Writing an executable to AppData and referencing it in the Run key confirms the installation of a persistence mechanism.

  4. Question 4

    Intermediate

    Windows Assembly Code and Reverse Engineering · x86/x64 Assembly Fundamentals

    You are analyzing a 32-bit assembly snippet in x64dbg. You encounter the following instructions:

    PUSH EBP
    MOV EBP, ESP
    SUB ESP, 10
    MOV [EBP-4], 0
    

    What is the purpose of the instruction SUB ESP, 10 in this function prologue?

    Answer and explanation

    Correct answer: D

    In the standard x86 function prologue, subtracting from ESP grows the stack downwards, reserving space for the function's local variables. Here, 0x10 bytes are allocated.

  5. Question 5

    Intermediate

    Windows Assembly Code and Reverse Engineering · Control Flow Analysis

    Examine the following x86 assembly block found in a malware sample:

    MOV ECX, 100
    XOR EAX, EAX
    LABEL_START:
    ADD EAX, [EBX + ECX * 4]
    DEC ECX
    JNZ LABEL_START
    

    Which high-level programming construct does this assembly block represent?

    Answer and explanation

    Correct answer: C

    The code initializes a counter (ECX), performs an operation, decrements the counter, and jumps back if the counter is not zero (JNZ). Since the check happens at the end, it functions as a do-while loop structure iterating until ECX reaches 0.

  6. Question 6

    Advanced

    Windows Assembly Code and Reverse Engineering · x86/x64 Assembly Fundamentals

    You are analyzing a function call in a 32-bit Windows malware sample. You see the following instructions:

    PUSH 0
    PUSH 0
    PUSH 0
    PUSH 0
    PUSH OFFSET Command
    PUSH 0
    CALL Kernel32.CreateProcessA
    

    If the malware were compiled for a 64-bit Windows environment, how would the first four parameters be passed to CreateProcessA according to the Microsoft x64 calling convention?

    Answer and explanation

    Correct answer: A

    The Microsoft x64 calling convention (fastcall) requires the first four integer or pointer arguments to be passed in registers RCX, RDX, R8, and R9 respectively. Any additional arguments are pushed onto the stack.

  7. Question 7

    Beginner

    Windows Assembly Code and Reverse Engineering · Control Flow Analysis

    You encounter a routine that iterates through a byte array, performing an XOR operation on each byte with the key 0x5A. What is the primary purpose of this routine in the context of malware analysis?

    Answer and explanation

    Correct answer: B

    Single-byte XOR encoding is a very common and simple obfuscation technique used by malware to hide strings (like C2 URLs) and payloads from static string analysis tools.

  8. Question 8

    Intermediate

    Windows Assembly Code and Reverse Engineering · Control Flow Analysis

    In x86 assembly, the TEST instruction is frequently used before a conditional jump. If you see TEST EAX, EAX followed by JZ (Jump if Zero), what is the code checking?

    Answer and explanation

    Correct answer: C

    TEST EAX, EAX performs a bitwise AND operation but discards the result, only setting flags. If EAX is zero, the Zero Flag (ZF) is set to 1. The JZ instruction then jumps if ZF is 1. Essentially, it checks if the register is empty/null/zero.

  9. Question 9

    Intermediate

    Windows Assembly Code and Reverse Engineering · Control Flow Analysis

    Which of the following assembly instructions is commonly used in shellcode to calculate the current instruction pointer (EIP) location dynamically, often referred to as 'get_pc' or 'get_eip' technique?

    Answer and explanation

    Correct answer: D

    Since EIP cannot be accessed directly in x86 (e.g., MOV EAX, EIP is invalid), shellcode often uses a CALL to the next instruction (or a near offset). The CALL pushes the return address (the current IP) onto the stack. The subsequent POP instruction then retrieves that address into a register.

  10. Question 10

    Beginner

    Windows Assembly Code and Reverse Engineering · Windows API Analysis

    You are reverse engineering a downloader that uses URLDownloadToFileW. The second parameter is the URL. In the disassembly, you see PUSH EAX before the call, where EAX points to a wide string. What character encoding must this string use?

    Answer and explanation

    Correct answer: A

    Windows API functions ending in 'W' (e.g., URLDownloadToFileW) expect Wide strings, which in Windows are encoded as UTF-16 Little Endian (2 bytes per character). Functions ending in 'A' expect ASCII/ANSI strings.

Register free for 10 more questions

Or unlock all 130 GREM questions with explanations, timed mode and flashcards.