From 1406e65630144b1891ca8850ee6cc0a507eb5367 Mon Sep 17 00:00:00 2001 From: _xeroxz Date: Mon, 8 Mar 2021 07:20:45 +0000 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 68f0c79..391c75f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ extern "C" int ModuleEntry() This c++ function, compiled by clang-cl with `mcmodel=large`, will generate a routine with the following instructions: -```nasm +``` 0x00: ; void UsermodeNoObfuscation(void) 0x00: public ?UsermodeNoObfuscation@@YAXXZ 0x00: ?UsermodeNoObfuscation@@YAXXZ proc near ; CODE XREF: ModuleEntry+42↓p @@ -58,7 +58,7 @@ This c++ function, compiled by clang-cl with `mcmodel=large`, will generate a ro As you can see from the code above, (sorry for the terrible syntax highlighting), references to strings and calls to functions are done by first loading the address of the symbol into a register and then interfacing with the symbol. -```nasm +``` 0x2D: 48 B8 A0 01 00 00 00 00 00 00 mov rax, offset MessageBoxA ; ... 0x3D: FF D0 call rax ; MessageBoxA @@ -77,7 +77,7 @@ void LoopDemo() This c++ function, compiled by clang-cl with `mcmodel=large`, will generate a routine with the following instructions: -```nasm +``` 0x58 ; void LoopDemo(void) 0x58 public ?LoopDemo@@YAXXZ 0x58 ?LoopDemo@@YAXXZ proc near