Update README.md

2.0
_xeroxz 4 years ago
parent 962b29d140
commit 1406e65630

@ -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: This c++ function, compiled by clang-cl with `mcmodel=large`, will generate a routine with the following instructions:
```nasm ```
0x00: ; void UsermodeNoObfuscation(void) 0x00: ; void UsermodeNoObfuscation(void)
0x00: public ?UsermodeNoObfuscation@@YAXXZ 0x00: public ?UsermodeNoObfuscation@@YAXXZ
0x00: ?UsermodeNoObfuscation@@YAXXZ proc near ; CODE XREF: ModuleEntry+42↓p 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. 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 0x2D: 48 B8 A0 01 00 00 00 00 00 00 mov rax, offset MessageBoxA
; ... ; ...
0x3D: FF D0 call rax ; 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: This c++ function, compiled by clang-cl with `mcmodel=large`, will generate a routine with the following instructions:
```nasm ```
0x58 ; void LoopDemo(void) 0x58 ; void LoopDemo(void)
0x58 public ?LoopDemo@@YAXXZ 0x58 public ?LoopDemo@@YAXXZ
0x58 ?LoopDemo@@YAXXZ proc near 0x58 ?LoopDemo@@YAXXZ proc near

Loading…
Cancel
Save