jak-project/third-party/zydis/examples
Tyler Wilding 637b043293
deps: update zydis to latest commit (#3306)
Updates Zydis to it's latest commit, this should fix building the
project on intel macs with a more recent version of macOS. This likely
needs some sanity checks that the debugger stuff still works as
expected.
2024-01-15 16:56:14 -05:00
..
Disassemble.c deps: update zydis to latest commit (#3306) 2024-01-15 16:56:14 -05:00
DisassembleSimple.c deps: update zydis to latest commit (#3306) 2024-01-15 16:56:14 -05:00
EncodeFromScratch.c deps: update zydis to latest commit (#3306) 2024-01-15 16:56:14 -05:00
EncodeMov.c deps: update zydis to latest commit (#3306) 2024-01-15 16:56:14 -05:00
Formatter01.c deps: update zydis to latest commit (#3306) 2024-01-15 16:56:14 -05:00
Formatter02.c deps: update zydis to latest commit (#3306) 2024-01-15 16:56:14 -05:00
Formatter03.c deps: update zydis to latest commit (#3306) 2024-01-15 16:56:14 -05:00
README.md random fixes + support clang-cl on visual studio (#1129) 2022-02-07 19:15:37 -05:00
RewriteCode.c deps: update zydis to latest commit (#3306) 2024-01-15 16:56:14 -05:00
ZydisPerfTest.c deps: update zydis to latest commit (#3306) 2024-01-15 16:56:14 -05:00
ZydisWinKernel.c deps: update zydis to latest commit (#3306) 2024-01-15 16:56:14 -05:00

Zydis Examples

Decoder

We currently don't have any examples that specifically only demonstrate using the decoder, but all formatter examples also demonstrate decoding instructions. Additionally, the ZydisInfo.c and ZydisDisasm.c examples in the tools directory serve as additional examples for both decoding and formatting.

Formatter

Formatter01

Demonstrates basic hooking functionality of the ZydisFormatter class by implementing a custom symbol-resolver.

Formatter02

Demonstrates basic hooking functionality of the ZydisFormatter class and the ability to completely omit specific operands.

The example demonstrates the hooking functionality of the ZydisFormatter class by rewriting the mnemonics of (V)CMPPS and (V)CMPPD to their corresponding alias-forms (based on the condition encoded in the immediate operand).

Formatter03

Demonstrates the tokenizing feature of the ZydisFormatter class.

Encoder

EncodeFromScratch

Example assembling a basic function returning 0x1337 in rax from scratch.

RewriteCode

Demonstrates how to rewrite ("reassemble") instructions.

Misc

ZydisWinKernel

Implements an example Windows kernel-mode driver.