Dynamic WinExec resolution and calculator execution in x64 s…

  • Identify which library contains WinExec and explain why
  • Define the required string variables:
    • winexec_func containing "WinExec"
    • calculator_str containing "calc.exe"
  • Explain how to perform a lookup_api call for WinExec:
    • What value should be loaded into RCX
    • What value should be loaded into RDX
  • Once the function pointer for WinExec is obtained:
    • Explain how to pass the two required parameters to WinExec
    • What values should be in RCX and RDX
  • Reference Assignment 3a:
    • Identify the first and second parameters originally passed on the stack
    • Explain how to replace the push instructions with lea instructions for RCX and RDX
  • Provide the exact assembly code that should be added between line 27 (call rax) and line 51 (; Exit) to spawn the Windows Calculator
  • Include clear explanations for each step so I can understand the logic, not just the final code

Please make sure the explanation is clear, detailed, and human-written, as this is for a graded lab.

Thank you!

Requirements: 2 answer | Assembly Language

WRITE MY PAPER


Comments

Leave a Reply