From 3db3d6bfc75a067cce877e68cc6d891cb61ad4ab Mon Sep 17 00:00:00 2001 From: "Mia von Steinkirch, Ph.D., M.Sc" <1130416+bt3gl@users.noreply.github.com> Date: Tue, 21 Jan 2020 17:04:55 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=A9=F0=9F=8F=BB=E2=80=8D=F0=9F=A6=B1Up?= =?UTF-8?q?date=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Reverse_Engineering/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Reverse_Engineering/README.md b/Reverse_Engineering/README.md index cbcdb4e..8589d7a 100644 --- a/Reverse_Engineering/README.md +++ b/Reverse_Engineering/README.md @@ -7,7 +7,7 @@ * Low-level OS structures and executable file format. --- -##Assembly 101 +## Assembly 101 ### Arithmetic Instructions @@ -118,7 +118,7 @@ p = q + (z + 1) ``` becomes -```` +``` temp = z + 1 a = b + z p = q + z @@ -166,6 +166,7 @@ Becomes: y = x + x y = (x << 4) - x ``` + #### Code block reordering Codes such as : @@ -179,6 +180,7 @@ l1: l2: return; ``` + Becomes: ``` if (a > 10) goto l1 @@ -200,6 +202,7 @@ goto l2 #### Instruction scheduling Assembly code like: + ``` mov eax, [esi] add eax, 1 @@ -207,6 +210,7 @@ mov ebx, [edi] add ebx, 1 ``` Becomes: + ``` mov eax, [esi] mov ebx, [edi]