


























































































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 Windows subsystem is responsible for translating a user‑mode API call into a system call? A) Win32k.sys B) ntdll.dll C) kernel32.dll D) advapi32.dll Answer: B Explanation: ntdll.dll contains the native API wrappers that invoke the kernel’s system call interface. Question 2. In the Windows PE format, which header field specifies the preferred load address of the image? A) SizeOfHeaders B) ImageBase C) SectionAlignment D) BaseOfCode Answer: B Explanation: The ImageBase field in the Optional Header defines the preferred virtual address where the loader maps the image. Question 3. What is the primary purpose of the Process Environment Block (PEB) in a Windows process? A) Store thread‑local storage pointers B) Hold security token information C) Contain process‑wide configuration such as loaded modules and environment variables D) Manage I/O completion ports
Answer: C Explanation: The PEB stores data like the loaded module list, environment variables, and process parameters used by the OS and the process itself. Question 4. Which calling convention cleans the stack after a function returns, making it the caller’s responsibility? A) __stdcall B) __cdecl C) __fastcall (x86) D) __vectorcall Answer: B Explanation: In __cdecl the caller removes the arguments from the stack after the call, unlike __stdcall where the callee does it. Question 5. A malware author wants to hide a malicious DLL from user‑mode API hooking. Which technique is most effective? A) LoadLibraryEx with LOAD_WITH_ALTERED_SEARCH_PATH B) Directly invoke NtCreateSection and map the DLL via the native API C) Use SetWindowsHookEx to inject the DLL into a system process D) Place the DLL in the System32 directory Answer: B Explanation: Using the native API to map a DLL bypasses the Win32 loader and avoids user‑mode hooks that monitor LoadLibrary calls. Question 6. Which of the following is NOT a typical characteristic of UPX‑packed executables? A) High entropy in the .text section
Question 9. When building a minimal C‑style PE executable without the C runtime, which entry point should be defined? A) mainCRTStartup B) DllMain C) _start (or WinMain) with a custom entry point attribute D) __declspec(dllexport) Init Answer: C Explanation: Defining a custom entry point (e.g., _start) and linking with /NODEFAULTLIB removes the CRT and reduces the binary footprint. Question 10. Which COM interface is commonly abused for “living‑off‑the‑land” file download capabilities? A) IFileOperation B) IBackgroundCopyManager (BITS) C) ITaskScheduler D) IInternetSession Answer: B Explanation: BITS (Background Intelligent Transfer Service) implements IBackgroundCopyManager and can be used to download files without elevated privileges. Question 11. In Windows memory management, what does the term “commit” refer to? A) Reserving virtual address space without backing physical memory B) Allocating physical pages and mapping them to reserved virtual addresses C) Flushing the CPU cache for a given page D) Marking a page as read‑only
Answer: B Explanation: Committing memory attaches physical pages (or pagefile space) to previously reserved virtual addresses. Question 12. Which of the following is a legitimate reason for a malware sample to use NtDelayExecution instead of Sleep? A) To obtain higher resolution timing B) To avoid detection by API hooking on user‑mode Sleep C) To block kernel‑mode callbacks D) To request privileged I/O operations Answer: B Explanation: NtDelayExecution is a native system call that bypasses the user‑mode Sleep API, evading hooks that monitor Sleep. Question 13. In the PE Optional Header, what does the DataDirectory entry for “IMAGE_DIRECTORY_ENTRY_IMPORT” contain? A) The virtual address and size of the import table B) The list of exported symbols of the image C) The checksum of the PE file D) The location of the resource section Answer: A Explanation: The import directory entry points to the Import Address Table (IAT) that the loader uses to resolve external functions. Question 14. Which of the following techniques is used to locate the Original Entry Point (OEP) of a packed binary during manual unpacking? A) Scanning for a “jmp esp” instruction
Question 17. In the context of malware persistence, what does the “RunOnce” registry key do? A) Executes the specified command at every system boot B) Executes the command only the first time a user logs on after creation C) Registers a scheduled task that runs daily D) Stores a list of services to start automatically Answer: B Explanation: The RunOnce key runs its entries a single time after the next logon, then deletes them. Question 18. Which of the following is a common indicator that a PE file has been manually edited to hide imports? A) Presence of a .rsrc section with high entropy B) An Import Directory entry whose VirtualAddress is zero while the IAT is populated at runtime C) A section named .text that contains only NOPs D. A digital signature that fails verification Answer: B Explanation: Malware may zero the import directory and rebuild the IAT dynamically, resulting in a zero VirtualAddress but a functional IAT at runtime. Question 19. Which instruction pattern is typically used by a compiler to implement a switch statement in assembly? A) A series of conditional jumps (JNE, JE) for each case B) A jump table indexed by a register (e.g., JMP [eax*4 + table]) C) A recursive function call D) A loop that iterates over case values Answer: B
Explanation: Compilers often generate a jump table where the case value indexes into an array of addresses, then performs an indirect jump. Question 20. What is the primary purpose of the Windows “Object Manager” in the kernel? A) Manage file system drivers B) Provide a unified namespace for kernel objects and handle validation C) Schedule CPU time for threads D) Perform network packet filtering Answer: B Explanation: The Object Manager maintains a namespace (e.g., \Device, \BaseNamedObjects) and controls creation, duplication, and security of kernel objects. Question 21. Which of the following sections is typically marked as executable but not writable in a well‑formed PE file? A) .data B) .rdata C) .text D) .reloc Answer: C Explanation: The .text section contains code and is marked PAGE_EXECUTE_READ, whereas data sections are non‑executable. Question 22. In x86 assembly, which instruction is commonly used by malware to obfuscate strings via XOR encoding? A) PUSH B) XOR
Question 25. Which of the following is a legitimate reason to use the “NtCreateSection” native call instead of CreateFileMapping? A) To allocate a section that can be shared across processes without a backing file B) To obtain a handle that can be used only by the kernel C) To automatically encrypt the section contents D) To create a memory region that is immune to pagefile swapping Answer: A Explanation: NtCreateSection can create a named or unnamed section object backed by the pagefile, enabling shared memory without an actual file. Question 26. In the context of network C2 communication, what does “domain fronting” aim to achieve? A) Encrypt traffic using a custom protocol B) Hide the true destination domain by using a CDN’s front‑end domain in the TLS SNI field C) Split the payload across multiple TCP streams D) Use DNS tunneling to bypass firewalls Answer: B Explanation: Domain fronting leverages the fact that many CDNs allow the HTTP Host header to differ from the TLS SNI, masking the real C2 domain. Question 27. Which of the following Windows features allows a process to execute code in the context of another user without obtaining their password? A) Credential Guard B) Token Impersonation (SetThreadToken) C) UAC Elevation Prompt D) AppLocker
Answer: B Explanation: By duplicating and assigning another user’s access token, a process can impersonate that user’s security context. Question 28. Which PE characteristic is most useful for detecting a packed binary via entropy analysis? A) Low entropy in the .rsrc section B) Uniformly high entropy across multiple sections, especially .text and .data C) Zeroed out import table entries D) Presence of a .reloc section larger than 1 KB Answer: B Explanation: Packing compresses or encrypts sections, raising their entropy close to that of random data. Question 29. Which of the following is a correct description of the “fast‑call” convention on x86‑64 Windows? A) First four integer arguments are passed in RCX, RDX, R8, R B) All arguments are passed on the stack C) Floating‑point arguments are passed in XMM0‑XMM3, integer arguments on the stack D) Arguments are passed via registers RAX, RBX, RCX, RDX Answer: A Explanation: The Windows x64 fast‑call convention uses RCX, RDX, R8, and R9 for the first four integer/pointer arguments. Question 30. What is the effect of calling SetProcessMitigationPolicy with PROCESS_CREATION_MITIGATION_POLICY_BLOCK_NON_MICROSOFT_BINARIES_ALWAYS_ON? A) Blocks execution of all unsigned binaries
Question 33. Which Windows API can be abused to create a scheduled task that runs with SYSTEM privileges without requiring a separate service installation? A) CreateService B) ITaskScheduler::CreateTask C) SchTasks.exe via COM interface (Task Scheduler) D) RegisterApplicationRestart Answer: C Explanation: Using the Task Scheduler COM interface, an attacker can register a task that runs with elevated privileges. Question 34. Which of the following is the most reliable way to detect that a PE file has been tampered with after being signed? A) Checking the PE checksum field B) Verifying the Authenticode signature using WinVerifyTrust C) Scanning for known packer signatures D) Looking for extra sections not listed in the header Answer: B Explanation: Authenticode validation will fail if any byte covered by the signature (including the PE headers) has been altered. Question 35. What is the purpose of the “relocation” table in a PE file? A) List exported function names B) Map virtual addresses to file offsets for debugging C) Adjust absolute addresses when the image is loaded at a base address different from ImageBase
D) Store resource data such as icons and strings Answer: C Explanation: The relocation table contains entries that the loader patches if the executable cannot be loaded at its preferred base. Question 36. Which native system call is used by the Windows loader to map a PE image into a process’s address space? A) NtCreateFile B) NtMapViewOfSection C) NtAllocateVirtualMemory D) NtLoadDriver Answer: B Explanation: NtMapViewOfSection maps a section object (the PE image) into the process’s virtual address space. Question 37. In the context of shellcode, what does “position‑independent code” (PIC) mean? A) Code that can be executed only at a fixed address B) Code that uses relative addressing so it can run regardless of where it is loaded C) Code that depends on the presence of a specific DLL D) Code that requires a specific CPU feature such as AVX Answer: B Explanation: PIC uses relative offsets for jumps and data references, allowing it to execute correctly from any memory location. Question 38. Which Windows registry hive is commonly used to store persistence via “Run” keys for all users?
Explanation: HTTP/HTTPS traffic blends with normal web traffic, especially when using common User‑Agent strings, making detection harder. Question 41. In Windows, which object type does the “\BaseNamedObjects” namespace primarily contain? A) File objects B) Synchronization primitives such as events, mutexes, and semaphores C) Registry keys D) Network sockets Answer: B Explanation: The \BaseNamedObjects directory holds named synchronization objects and other kernel objects that can be shared across processes. Question 42. Which of the following statements about the “.tls” (Thread Local Storage) section is true? A) It is always executable B) It contains callbacks that the loader invokes for each thread creation and termination C) It stores the import address table D) It is used to store the PE checksum Answer: B Explanation: The .tls section can define callbacks that the system calls when a thread is created or exits. Question 43. When analyzing a suspicious binary with Process Monitor, which event type would most directly indicate a registry persistence attempt? A) FileCreate B) RegSetValue
C) ProcessCreate D) NetworkConnect Answer: B Explanation: RegSetValue events show modifications to registry values, often used for persistence. Question 44. Which of the following is a typical symptom of a “DLL Proxy” technique used by malware? A) The original DLL name is renamed and a new DLL with the same name forwards calls to the malicious code before delegating to the legit DLL B) The malicious DLL replaces the original DLL on disk without any forwarding logic C) The proxy DLL is loaded only via manual mapping, never through the loader D) The proxy DLL contains no exported functions Answer: A Explanation: DLL proxying involves keeping the original DLL name, forwarding calls after injecting malicious behavior. Question 45. In the Windows native API, which system call is used to retrieve the current process’s command line arguments without using the PEB? A) NtQueryInformationProcess with ProcessCommandLineInformation B) NtReadVirtualMemory C) NtQuerySystemInformation with SystemProcessInformation D) NtCurrentProcess Answer: A Explanation: ProcessCommandLineInformation returns the command line string directly via a native call.
Explanation: DR7 controls hardware breakpoint enable flags; a non‑zero value suggests a breakpoint is set. Question 49. In the context of COM, what is the purpose of the “CLSID” registry entry? A) To map a human‑readable name to a COM interface identifier B) To specify the location of the COM server DLL or EXE that implements the class C) To store the security descriptor for the COM object D) To list all methods exposed by the COM interface Answer: B Explanation: CLSID entries point to the InprocServer32 or LocalServer32 path that loads the COM class implementation. Question 50. Which Windows API can be used to enumerate all currently loaded drivers in the kernel? A) EnumDeviceDrivers (from Psapi.dll) B) GetLogicalDrives C) QueryPerformanceCounter D) GetSystemDirectory Answer: A Explanation: EnumDeviceDrivers returns an array of base addresses for loaded kernel drivers. Question 51. What is the primary difference between “process injection” via CreateRemoteThread and via QueueUserAPC? A) CreateRemoteThread creates a new thread immediately, while QueueUserAPC queues a routine that executes when the target thread enters an alertable state B) CreateRemoteThread can only inject DLLs, whereas QueueUserAPC can inject shellcode
C) QueueUserAPC requires admin privileges, CreateRemoteThread does not D) CreateRemoteThread works only on 64‑bit processes, QueueUserAPC only on 32‑bit Answer: A Explanation: APC injection relies on the target thread being in an alertable wait, whereas CreateRemoteThread spawns a fresh thread. Question 52. Which of the following is a valid reason for malware to use the “NtQueryInformationThread” call with ThreadHideFromDebugger information class? A) To hide the thread from the system’s scheduler B) To make the thread invisible to debuggers that rely on standard thread enumeration APIs C) To prevent the thread from being terminated by the OS D) To encrypt the thread’s stack Answer: B Explanation: The ThreadHideFromDebugger flag tells the OS to omit the thread from debugger enumeration, hindering analysis. Question 53. In a PE file, which directory entry is used to locate the exception handling information required for structured exception handling (SEH) on x86? A) IMAGE_DIRECTORY_ENTRY_DEBUG B) IMAGE_DIRECTORY_ENTRY_EXCEPTION C) IMAGE_DIRECTORY_ENTRY_TLS D) IMAGE_DIRECTORY_ENTRY_EXPORT Answer: B Explanation: The Exception directory holds unwind and handler data for SEH on x86/x64.