




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which hash algorithm is most commonly used by VirusTotal for quick malware identification? A) MD B) SHA‑ 1 C) SHA‑ 256 D) CRC Answer: C Explanation: VirusTotal stores and indexes submissions using SHA‑256, providing a strong, collision‑resistant identifier for each file. Question 2. In a PE file, which section typically contains executable code? A) .rdata B) .text C) .data D) .rsrc Answer: B Explanation: The .text section holds the program’s compiled machine instructions and is marked executable. Question 3. Which CPU register holds the current instruction pointer in a 64‑bit process? A) EIP B) ESP C) RIP D) RSP Answer: C
Explanation: RIP (Register Instruction Pointer) points to the next instruction to be executed in x86‑64 architecture. Question 4. Which Windows API is commonly used by malware to check for a debugger? A) GetVersionEx B) IsDebuggerPresent C) OpenProcess D) VirtualAllocEx Answer: B Explanation: IsDebuggerPresent returns a non‑zero value when a debugger is attached, allowing malware to alter its behavior. Question 5. What does the “entropy” of a PE file indicate? A) Number of imported functions B) Level of compression or packing C) Size of the .text section D) Number of digital certificates Answer: B Explanation: High entropy suggests the data is highly random, often due to compression or packing, which is a common anti‑analysis technique. Question 6. Which of the following is a typical persistence mechanism used by Trojans? A) Modifying the MBR B) Adding a Run key in the registry C) Overwriting the BIOS
Question 9. Which of the following is a sign that a PE executable may be packed? A) Presence of a .reloc section B) Section names like “UPX0” or “UPX1” C) Large amount of debug symbols D) Low file entropy Answer: B Explanation: Packagers often rename sections to indicate their tool (e.g., UPX), and packed files also show high entropy. Question 10. What does the Windows API function WriteProcessMemory allow a malware author to do? A) Create a new process B) Inject code into another process’s address space C) Enumerate running processes D) Delete a file Answer: B Explanation: WriteProcessMemory writes data into the memory of a target process, a core step in many injection techniques. Question 11. Which register holds the flags after an arithmetic operation in x86? A) EAX B) EBP C) EFLAGS D) ECX Answer: C
Explanation: The EFLAGS register contains status flags such as Zero, Carry, and Sign, reflecting the result of the last operation. Question 12. Which of the following strings is most likely to be an embedded URL in a malware sample? A) “C:\Windows\System32\cmd.exe” B) “http://malicious.example.com/payload” C) “0xDEADBEEF” D) “REG_SZ” Answer: B Explanation: URLs are often hard‑coded for C2 communication or payload retrieval; they appear as clear‑text ASCII strings. Question 13. In the context of process hollowing, which step occurs first? A) Injecting shellcode into the target process B) Creating a suspended process C) Resuming the target process D) Deleting the original executable file Answer: B Explanation: The attacker creates a legitimate process in a suspended state, then replaces its memory with malicious code. Question 14. Which Ghidra feature helps automatically identify function boundaries? A) Symbolic Execution Engine B) Function ID
A) Using a custom packer B) Adding NOP sleds and irrelevant arithmetic operations C) Encrypting the entire payload D) Renaming exported functions Answer: B Explanation: Junk code inserts meaningless instructions (e.g., NOPs, dead arithmetic) to confuse static analysis. Question 18. Which tool can be used to dump a running packed process from memory for further analysis? A) PEiD B) Process Hacker C) Scylla D) Binwalk Answer: C Explanation: Scylla (or its successor Scylla++) can dump a process, reconstruct the IAT, and produce an unpacked PE file. Question 19. In the PE Optional Header, which field indicates the address where execution begins? A) ImageBase B) SizeOfHeaders C) AddressOfEntryPoint (OEP) D) SectionAlignment Answer: C
Explanation: AddressOfEntryPoint points to the start of the executable code after the loader has mapped the image. Question 20. Which Windows API is frequently used by malware to achieve persistence via a scheduled task? A) CreateProcess B) RegisterServiceCtrlHandler C) SchCreateTask D) SetWindowsHookEx Answer: C Explanation: SchCreateTask (or the related Task Scheduler COM interfaces) creates tasks that run at defined times or triggers. Question 21. Which flag in the EFLAGS register is set when a subtraction results in zero? A) Carry Flag (CF) B) Zero Flag (ZF) C) Sign Flag (SF) D) Overflow Flag (OF) Answer: B Explanation: ZF is set to 1 when the result of an arithmetic operation is zero, indicating equality. Question 22. What does the .rsrc section of a PE file typically contain? A) Executable code B) Resource data such as icons, dialogs, and version info C) Import address table
A) In the Windows System32 directory B) In the same directory as a vulnerable executable that loads the DLL without a full path C) Inside the registry under HKLM\Software\Microsoft\Windows\CurrentVersion\Run D) In the %TEMP% folder only Answer: B Explanation: If an application loads a DLL by name and searches its own directory first, a malicious DLL placed there will be loaded instead of the legitimate one. Question 26. Which instruction is used to compare two registers and set flags without storing the result? A) TEST B) CMP C) SUB D) XOR Answer: B Explanation: CMP subtracts the second operand from the first, discarding the result but updating the status flags for conditional jumps. Question 27. Which of the following is a typical sign of code injection via SetThreadContext? A) Creation of a new process in suspended state B) Modification of the CONTEXT structure of an existing thread to point to malicious shellcode C) Use of the CreateRemoteThread API D) Overwriting the PE header on disk Answer: B
Explanation: SetThreadContext changes the instruction pointer (EIP/RIP) of a target thread so it executes attacker‑controlled code. Question 28. Which of the following YARA rule operators matches a hexadecimal pattern? A) $a = "string" B) $a = { 6A 40 68 00 30 } C) $a = /regex/ D) $a = any of them Answer: B Explanation: Curly braces {} denote a hexadecimal byte pattern in YARA, allowing exact binary matching. Question 29. Which Windows API can be used by malware to download a file over HTTP without using WinInet? A) URLDownloadToFileA (urlmon) B) CreateFileA C) RegOpenKeyEx D) GetSystemDirectory Answer: A Explanation: URLDownloadToFileA from urlmon.dll retrieves a file from a URL, often used for stealthy payload delivery. Question 30. What does the “SectionAlignment” field in the PE Optional Header control? A) The alignment of sections in memory when the image is loaded B) The size of the file on disk
Question 33. In x86‑64, which register is typically used to pass the first integer argument to a function? A) RAX B) RCX C) RDX D) RDI Answer: D Explanation: According to the Microsoft x64 calling convention, the first integer or pointer argument is passed in RDI. Question 34. Which of the following is a characteristic of “process hollowing”? A) The original executable remains unchanged on disk B) The malicious code runs under the name of a legitimate process C) The attacker modifies the PE header of the target binary D) The technique requires a kernel‑mode driver Answer: B Explanation: Process hollowing replaces the memory of a legitimate process with malicious code, preserving the original process name. Question 35. Which tool can be used to view the import address table of a PE file? A) strings.exe B) Dependency Walker (depends.exe) C) netcat D) Regedit Answer: B
Explanation: Dependency Walker displays imported DLLs and functions, allowing analysts to see which APIs the binary intends to call. Question 36. Which of the following is a common method for bypassing “IsDebuggerPresent” checks? A. Removing the import from the IAT B. Patching the function to always return FALSE C. Using a hardware debugger only D. Changing the process token Answer: B Explanation: By patching the IsDebuggerPresent function or its return value, the malware believes no debugger is attached. Question 37. Which command can be used in a sandbox to simulate a DNS response for a malicious domain? A) ipconfig /flushdns B) apatedns – add C) netsh firewall set service type=all mode=disable D) nslookup - type=any Answer: B Explanation: ApateDNS allows creation of custom DNS entries to trick malware into resolving attacker‑controlled IP addresses. Question 38. Which of the following registers holds the stack pointer in a 32‑bit process? A) EBP
Question 41. Which API is used by malware to enumerate all processes on a system? A) CreateProcess B) EnumProcesses (from Psapi.dll) C) RegEnumKeyEx D) GetUserName Answer: B Explanation: EnumProcesses retrieves a list of process identifiers, often used for process discovery or injection targeting. Question 42. Which of the following is a legitimate reason for a malware sample to modify the “HKLM\SYSTEM\CurrentControlSet\Services” key? A) To change the desktop wallpaper B) To install a new Windows service for persistence C) To encrypt user documents D) To disable Windows Update Answer: B Explanation: Adding or altering entries under Services registers a new service that can start automatically with the system. Question 43. In x86, which instruction pair is commonly used to set up a stack frame for a function? A) MOV EBP, ESP; PUSH EBP B) PUSH EBP; MOV EBP, ESP C) SUB ESP, 0x10; POP EBP D) LEA EBP, [ESP+4]; PUSH EBP
Answer: B Explanation: The standard prologue pushes the old base pointer and then copies ESP to EBP, establishing a new frame. Question 44. Which of the following is a typical indicator that a PE file has been tampered with after compilation? A) Presence of a digital signature B) Mismatch between the checksum field and actual file checksum C) Correct section alignment D) Valid import table Answer: B Explanation: If the stored checksum does not match the calculated checksum, it suggests the file was altered post‑signing. Question 45. Which Windows API can be used by malware to hide its files from standard directory listings? A) SetFileAttributes with FILE_ATTRIBUTE_HIDDEN B) DeleteFile C) MoveFileEx D) GetFileAttributesEx Answer: A Explanation: Setting the FILE_ATTRIBUTE_HIDDEN flag makes files invisible to typical user‑level directory listings. Question 46. Which of the following best describes “control flow flattening” used in malware obfuscation?
Explanation: CryptEncrypt performs block‑level encryption using keys generated by the CryptoAPI, a typical method for ransomware. Question 49. Which of the following is a reason an analyst would change the “ImageBase” field of a PE file during unpacking? A) To bypass ASLR checks B) To match the address where the process was loaded in memory for accurate debugging C) To reduce file size D) To change the file’s digital signature Answer: B Explanation: Aligning ImageBase with the runtime load address ensures that relative addresses resolve correctly during analysis. Question 50. Which of the following statements about “DLL injection” is true? A) It always requires administrator privileges B) It can be performed by writing the DLL path into the target process and calling LoadLibrary via a remote thread C. It modifies the target’s PE header on disk D. It only works on 64‑bit processes Answer: B Explanation: Remote thread injection involves allocating memory in the target, writing the DLL path, and executing LoadLibrary remotely. Question 51. Which Windows registry key is commonly used by malware to achieve persistence via “RunOnce”? A) HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
B) HKCU\Software\Microsoft\Windows\CurrentVersion\Policies C) HKLM\System\CurrentControlSet\Services D) HKCU\Control Panel\Desktop Answer: A Explanation: The RunOnce key executes its values a single time after user logon, often used for one‑shot persistence. Question 52. Which of the following is a typical method for detecting a debugger using timing checks? A. Measuring the time taken by a known instruction sequence and comparing it to a threshold B. Checking the existence of a file named “debug.log” C. Querying the system for the presence of a virtual NIC D. Reading the BIOS vendor string Answer: A Explanation: Debuggers introduce latency; malware can measure elapsed time to infer the presence of a debugger. Question 53. In the PE format, which directory entry points to the Export Table? A) IMAGE_DIRECTORY_ENTRY_IMPORT B) IMAGE_DIRECTORY_ENTRY_EXPORT C) IMAGE_DIRECTORY_ENTRY_RESOURCE D) IMAGE_DIRECTORY_ENTRY_BASERELOC Answer: B Explanation: The Export Directory entry contains the RVA and size of the Export Table, which lists functions the DLL exposes.