From c5eeb8e84a50f36f1049ed012a804ea5a1c0f2fc Mon Sep 17 00:00:00 2001 From: Anatoly Korniltsev Date: Mon, 16 Mar 2020 12:27:59 +0300 Subject: [PATCH] fix x64 rip relative instruction eval --- static2/model.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static2/model.py b/static2/model.py index 6e2c85f2..b9019fad 100644 --- a/static2/model.py +++ b/static2/model.py @@ -372,7 +372,10 @@ class CsInsn(object): raise IgnoredRegister(exp) if exp in reginfo: #it's a register - return reginfo[exp] + if exp == 'rip': + return reginfo[exp] + self.i.size + else: + return reginfo[exp] try: return int(exp, 16)