MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / get_arg

Method get_arg

windows/debug/breakpoints.py:74–77  ·  view source on GitHub ↗
(self, nb, proc, thread)

Source from the content-addressed store, hash-verified

72class X64ArgumentRetriever(object):
73 REG_ARGS = ["Rcx", "Rdx", "R8", "R9"]
74 def get_arg(self, nb, proc, thread):
75 if nb < len(self.REG_ARGS):
76 return getattr(thread.context, self.REG_ARGS[nb])
77 return proc.read_qword(thread.context.sp + 8 + (8 * nb))
78
79 def set_arg(self, nb, value, proc, thread):
80 if nb < len(self.REG_ARGS):

Callers 1

Calls 1

read_qwordMethod · 0.80

Tested by

no test coverage detected