(self, nb, proc, thread)
| 72 | class 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): |
no test coverage detected