When you're using a debugger like x96dbg (a fork of x64dbg), you won't see high-level function names like MessageBoxW directly in the disassembly. Instead, you'll typically see calls to memory addresses or imported function addresses that represent the location of these functions once loaded in memory.
To locate the call to MessageBoxW in your debugged program, you can follow these steps:
-
Identify Imports: Go to the imports section of the executable in x96dbg. You can usually find a tab or section labeled "Imports" in the X96DBG interface. This will list all the DLL functions that the program imports.
-
Find User32.dll: Since MessageBoxW is a function within the User32.dll, you need to locate User32.dll within the imports section.
-
Locate MessageBoxW: Look for MessageBoxW under the User32.dll section. This will give you the address that the program uses to call MessageBoxW.
-
Set Breakpoint: Once you find MessageBoxW, set a breakpoint at the address where it is imported. This way, when the program executes a call to MessageBoxW, execution will pause at the breakpoint, allowing you to see the call in context.
-
Search for Calls to the Address: In the code section (disassembly view), you can search for any calls to the address of MessageBoxW you found in the imports. This can involve scrolling through the disassembly or using the search feature in the debugger.
-
Analyze the Calls: Once you find a call to that address, you can look at the surrounding instructions to better understand the context in which MessageBoxW is being used.
Remember that MessageBoxW might be called indirectly through another layer of abstraction, like a custom wrapper function, which means you might need to trace through several functions to find it.
If you are still having trouble, make sure that you understand the calling conventions of the target architecture (x86 or x64) and the way external functions are called in assembly, as this will aid in interpreting the disassembly effectively.