Squashed 'externals/zydis/' content from commit 25193db00
git-subtree-dir: externals/zydis git-subtree-split: 25193db008e8799ff59fd655c2a26b2ffd79d40d
This commit is contained in:
commit
6ee9beab32
452 changed files with 78725 additions and 0 deletions
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*.inc linguist-language=C
|
1
.github/FUNDING.yml
vendored
Normal file
1
.github/FUNDING.yml
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
github: flobernd
|
69
.github/workflows/main.yml
vendored
Normal file
69
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
name: GitHub Actions CI
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: "Build Zydis (${{ matrix.image_name }}, ${{ matrix.no_libc }})"
|
||||||
|
runs-on: "${{ matrix.image_name }}"
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
image_name: ["macOS-latest", "windows-2016", "ubuntu-18.04"]
|
||||||
|
no_libc: ["", "-DZYAN_NO_LIBC=ON"]
|
||||||
|
include:
|
||||||
|
- image_name: "ubuntu-16.04"
|
||||||
|
no_libc: "-DCMAKE_BUILD_TYPE=Release"
|
||||||
|
dev_mode: "-DZYAN_DEV_MODE=ON"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: "actions/checkout@v1"
|
||||||
|
- name: "Cloning submodules"
|
||||||
|
run: |
|
||||||
|
git submodule update --init
|
||||||
|
- name: "Configuring"
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ${{ matrix.dev_mode }} ${{ matrix.no_libc }} ..
|
||||||
|
- name: "Building"
|
||||||
|
run: |
|
||||||
|
cmake --build build --config Release
|
||||||
|
- name: "Running regression tests"
|
||||||
|
run: |
|
||||||
|
cd tests
|
||||||
|
python3 regression.py test ../build/ZydisInfo
|
||||||
|
if: "!matrix.no_libc && matrix.image_name != 'windows-2016'"
|
||||||
|
- name: "Running regression tests"
|
||||||
|
run: |
|
||||||
|
cd tests
|
||||||
|
python regression.py test ..\\build\\Release\\ZydisInfo.exe
|
||||||
|
if: "!matrix.no_libc && matrix.image_name == 'windows-2016'"
|
||||||
|
|
||||||
|
fuzzing:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sanitizer: [address, undefined, memory]
|
||||||
|
steps:
|
||||||
|
- name: Build Fuzzers (${{ matrix.sanitizer }})
|
||||||
|
id: build
|
||||||
|
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
||||||
|
with:
|
||||||
|
oss-fuzz-project-name: 'zydis'
|
||||||
|
dry-run: false
|
||||||
|
sanitizer: ${{ matrix.sanitizer }}
|
||||||
|
- name: Run Fuzzers (${{ matrix.sanitizer }})
|
||||||
|
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
||||||
|
with:
|
||||||
|
oss-fuzz-project-name: 'zydis'
|
||||||
|
fuzz-seconds: 600
|
||||||
|
dry-run: false
|
||||||
|
sanitizer: ${{ matrix.sanitizer }}
|
||||||
|
- name: Upload Crash
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
if: failure() && steps.build.outcome == 'success'
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.sanitizer }}-artifacts
|
||||||
|
path: ./out/artifacts
|
101
.gitignore
vendored
Normal file
101
.gitignore
vendored
Normal file
|
@ -0,0 +1,101 @@
|
||||||
|
# Created by https://www.gitignore.io/api/c,c++,cmake
|
||||||
|
|
||||||
|
### C ###
|
||||||
|
# Object files
|
||||||
|
*.o
|
||||||
|
*.ko
|
||||||
|
*.obj
|
||||||
|
*.elf
|
||||||
|
|
||||||
|
# Precompiled Headers
|
||||||
|
*.gch
|
||||||
|
*.pch
|
||||||
|
|
||||||
|
# Libraries
|
||||||
|
*.lib
|
||||||
|
*.a
|
||||||
|
*.la
|
||||||
|
*.lo
|
||||||
|
|
||||||
|
# Shared objects (inc. Windows DLLs)
|
||||||
|
*.dll
|
||||||
|
*.so
|
||||||
|
*.so.*
|
||||||
|
*.dylib
|
||||||
|
|
||||||
|
# Executables
|
||||||
|
*.exe
|
||||||
|
*.out
|
||||||
|
*.app
|
||||||
|
*.i*86
|
||||||
|
*.x86_64
|
||||||
|
*.hex
|
||||||
|
|
||||||
|
# Debug files
|
||||||
|
*.dSYM/
|
||||||
|
*.su
|
||||||
|
|
||||||
|
|
||||||
|
### C++ ###
|
||||||
|
# Compiled Object files
|
||||||
|
*.slo
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
*.obj
|
||||||
|
|
||||||
|
# Precompiled Headers
|
||||||
|
*.gch
|
||||||
|
*.pch
|
||||||
|
|
||||||
|
# Compiled Dynamic libraries
|
||||||
|
*.so
|
||||||
|
*.dylib
|
||||||
|
*.dll
|
||||||
|
|
||||||
|
# Fortran module files
|
||||||
|
*.mod
|
||||||
|
|
||||||
|
# Compiled Static libraries
|
||||||
|
*.lai
|
||||||
|
*.la
|
||||||
|
*.a
|
||||||
|
*.lib
|
||||||
|
|
||||||
|
# Executables
|
||||||
|
*.exe
|
||||||
|
*.out
|
||||||
|
*.app
|
||||||
|
|
||||||
|
|
||||||
|
### CMake ###
|
||||||
|
CMakeCache.txt
|
||||||
|
CMakeFiles
|
||||||
|
CMakeScripts
|
||||||
|
Makefile
|
||||||
|
cmake_install.cmake
|
||||||
|
install_manifest.txt
|
||||||
|
CTestTestfile.cmake
|
||||||
|
|
||||||
|
|
||||||
|
# MacOS
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
build*
|
||||||
|
|
||||||
|
# MSVC
|
||||||
|
.vs
|
||||||
|
*.vcxproj.user
|
||||||
|
*.suo
|
||||||
|
*.sdf
|
||||||
|
*.opensdf
|
||||||
|
*.VC.db
|
||||||
|
*.VC.opendb
|
||||||
|
msvc/**/*.user
|
||||||
|
msvc/**/obj/
|
||||||
|
msvc/**/bin/
|
||||||
|
|
||||||
|
doc/html
|
||||||
|
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
cmake-build-debug
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "dependencies/zycore"]
|
||||||
|
path = dependencies/zycore
|
||||||
|
url = https://github.com/zyantific/zycore-c
|
296
CMakeLists.txt
Normal file
296
CMakeLists.txt
Normal file
|
@ -0,0 +1,296 @@
|
||||||
|
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
|
||||||
|
|
||||||
|
project(Zydis VERSION 3.1.0.0 LANGUAGES C CXX)
|
||||||
|
|
||||||
|
include(GenerateExportHeader)
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
include(CMakePackageConfigHelpers)
|
||||||
|
|
||||||
|
# =============================================================================================== #
|
||||||
|
# Overridable options #
|
||||||
|
# =============================================================================================== #
|
||||||
|
|
||||||
|
# Features
|
||||||
|
option(ZYDIS_MINIMAL_MODE
|
||||||
|
"Enable minimal mode (forces ZYDIS_DECODER_MODE_MINIMAL runtime option)"
|
||||||
|
OFF)
|
||||||
|
option(ZYDIS_FEATURE_DECODER
|
||||||
|
"Enable instruction decoding functionality"
|
||||||
|
ON)
|
||||||
|
option(ZYDIS_FEATURE_FORMATTER
|
||||||
|
"Enable instruction formatting functionality"
|
||||||
|
ON)
|
||||||
|
option(ZYDIS_FEATURE_AVX512
|
||||||
|
"Enable support for AVX-512 instructions"
|
||||||
|
ON)
|
||||||
|
option(ZYDIS_FEATURE_KNC
|
||||||
|
"Enable support for KNC instructions"
|
||||||
|
ON)
|
||||||
|
|
||||||
|
# Build configuration
|
||||||
|
option(ZYDIS_BUILD_SHARED_LIB
|
||||||
|
"Build shared library"
|
||||||
|
OFF)
|
||||||
|
option(ZYDIS_BUILD_EXAMPLES
|
||||||
|
"Build examples"
|
||||||
|
ON)
|
||||||
|
option(ZYDIS_BUILD_TOOLS
|
||||||
|
"Build tools"
|
||||||
|
ON)
|
||||||
|
option(ZYDIS_FUZZ_AFL_FAST
|
||||||
|
"Enables AFL persistent mode and reduces prints in ZydisFuzzIn"
|
||||||
|
OFF)
|
||||||
|
option(ZYDIS_LIBFUZZER
|
||||||
|
"Enables LLVM libfuzzer mode and reduces prints in ZydisFuzzIn"
|
||||||
|
OFF)
|
||||||
|
set(ZYDIS_ZYCORE_PATH
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/dependencies/zycore"
|
||||||
|
CACHE
|
||||||
|
PATH
|
||||||
|
"The path to look for Zycore")
|
||||||
|
|
||||||
|
# =============================================================================================== #
|
||||||
|
# Dependencies #
|
||||||
|
# =============================================================================================== #
|
||||||
|
|
||||||
|
# Try to initialize the Zycore submodule using Git
|
||||||
|
if (NOT EXISTS "${ZYDIS_ZYCORE_PATH}/CMakeLists.txt" AND
|
||||||
|
"${ZYDIS_ZYCORE_PATH}" STREQUAL "${CMAKE_CURRENT_LIST_DIR}/dependencies/zycore")
|
||||||
|
find_package(Git QUIET)
|
||||||
|
if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive
|
||||||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (NOT EXISTS "${ZYDIS_ZYCORE_PATH}/CMakeLists.txt")
|
||||||
|
message(
|
||||||
|
FATAL_ERROR
|
||||||
|
"Can't find zycore submodule. Please make sure to clone the repo recursively.\n"
|
||||||
|
"You can fix this by running\n"
|
||||||
|
" git submodule update --init\n"
|
||||||
|
"or by cloning using\n"
|
||||||
|
" git clone --recursive <url>\n"
|
||||||
|
"Alternatively, you can manually clone zycore to some path and set ZYDIS_ZYCORE_PATH."
|
||||||
|
)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
add_subdirectory(${ZYDIS_ZYCORE_PATH} "zycore" EXCLUDE_FROM_ALL)
|
||||||
|
|
||||||
|
# =============================================================================================== #
|
||||||
|
# Library configuration #
|
||||||
|
# =============================================================================================== #
|
||||||
|
|
||||||
|
if (ZYDIS_BUILD_SHARED_LIB)
|
||||||
|
add_library("Zydis" SHARED)
|
||||||
|
else ()
|
||||||
|
add_library("Zydis" STATIC)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
target_link_libraries("Zydis" PUBLIC "Zycore")
|
||||||
|
target_include_directories("Zydis"
|
||||||
|
PUBLIC "include" ${PROJECT_BINARY_DIR}
|
||||||
|
PRIVATE "src")
|
||||||
|
target_compile_definitions("Zydis" PRIVATE "_CRT_SECURE_NO_WARNINGS" "ZYDIS_EXPORTS")
|
||||||
|
zyan_set_common_flags("Zydis")
|
||||||
|
zyan_maybe_enable_wpo_for_lib("Zydis")
|
||||||
|
generate_export_header("Zydis" BASE_NAME "ZYDIS" EXPORT_FILE_NAME "ZydisExportConfig.h")
|
||||||
|
|
||||||
|
if (ZYDIS_FEATURE_FORMATTER AND NOT ZYDIS_FEATURE_DECODER)
|
||||||
|
message(
|
||||||
|
FATAL_ERROR
|
||||||
|
"\nZYDIS_FEATURE_FORMATTER requires ZYDIS_FEATURE_DECODER to be enabled"
|
||||||
|
)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (ZYDIS_MINIMAL_MODE)
|
||||||
|
target_compile_definitions("Zydis" PUBLIC "ZYDIS_MINIMAL_MODE")
|
||||||
|
endif ()
|
||||||
|
if (NOT ZYDIS_FEATURE_DECODER)
|
||||||
|
target_compile_definitions("Zydis" PUBLIC "ZYDIS_DISABLE_DECODER")
|
||||||
|
endif ()
|
||||||
|
if (NOT ZYDIS_FEATURE_FORMATTER)
|
||||||
|
target_compile_definitions("Zydis" PUBLIC "ZYDIS_DISABLE_FORMATTER")
|
||||||
|
endif ()
|
||||||
|
if (NOT ZYDIS_FEATURE_AVX512)
|
||||||
|
target_compile_definitions("Zydis" PUBLIC "ZYDIS_DISABLE_AVX512")
|
||||||
|
endif ()
|
||||||
|
if (NOT ZYDIS_FEATURE_KNC)
|
||||||
|
target_compile_definitions("Zydis" PUBLIC "ZYDIS_DISABLE_KNC")
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
target_sources("Zydis"
|
||||||
|
PRIVATE
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/MetaInfo.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Mnemonic.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Register.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/SharedTypes.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/ShortString.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Status.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Utils.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Zydis.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Internal/SharedData.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Internal/String.h"
|
||||||
|
"src/MetaInfo.c"
|
||||||
|
"src/Mnemonic.c"
|
||||||
|
"src/Register.c"
|
||||||
|
"src/SharedData.c"
|
||||||
|
"src/String.c"
|
||||||
|
"src/Utils.c"
|
||||||
|
"src/Zydis.c")
|
||||||
|
|
||||||
|
if (ZYDIS_FEATURE_DECODER)
|
||||||
|
target_sources("Zydis"
|
||||||
|
PRIVATE
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Decoder.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/DecoderTypes.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Internal/DecoderData.h"
|
||||||
|
"src/Decoder.c"
|
||||||
|
"src/DecoderData.c")
|
||||||
|
if (ZYDIS_FEATURE_FORMATTER AND (NOT ZYDIS_MINIMAL_MODE))
|
||||||
|
target_sources("Zydis"
|
||||||
|
PRIVATE
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Formatter.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/FormatterBuffer.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Internal/FormatterATT.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Internal/FormatterBase.h"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/include/Zydis/Internal/FormatterIntel.h"
|
||||||
|
"src/Formatter.c"
|
||||||
|
"src/FormatterBuffer.c"
|
||||||
|
"src/FormatterATT.c"
|
||||||
|
"src/FormatterBase.c"
|
||||||
|
"src/FormatterIntel.c")
|
||||||
|
endif ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (ZYDIS_BUILD_SHARED_LIB AND WIN32)
|
||||||
|
target_sources("Zydis" PRIVATE "resources/VersionInfo.rc")
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
zyan_set_source_group("Zydis")
|
||||||
|
|
||||||
|
configure_package_config_file(cmake/zydis-config.cmake.in
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/zydis-config.cmake"
|
||||||
|
INSTALL_DESTINATION "${CMAKE_INSTALL_PREFIX}/cmake"
|
||||||
|
)
|
||||||
|
install(FILES
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/zydis-config.cmake"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/cmake"
|
||||||
|
)
|
||||||
|
|
||||||
|
install(TARGETS "Zydis"
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
install(FILES
|
||||||
|
"${PROJECT_BINARY_DIR}/ZydisExportConfig.h"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||||
|
install(DIRECTORY "include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
|
||||||
|
function (_maybe_set_emscripten_cfg target)
|
||||||
|
if (EMSCRIPTEN)
|
||||||
|
# Yep, that madness below is how Emscripten likes its quotes.
|
||||||
|
set_target_properties("${target}"
|
||||||
|
PROPERTIES COMPILE_FLAGS
|
||||||
|
"-s \"EXPORT_NAME='${target}'\" -s MODULARIZE=1")
|
||||||
|
set_target_properties("${target}"
|
||||||
|
PROPERTIES LINK_FLAGS_RELEASE
|
||||||
|
"-s \"EXPORT_NAME='${target}'\" -s MODULARIZE=1")
|
||||||
|
endif ()
|
||||||
|
endfunction ()
|
||||||
|
|
||||||
|
# =============================================================================================== #
|
||||||
|
# Examples #
|
||||||
|
# =============================================================================================== #
|
||||||
|
|
||||||
|
if (ZYDIS_BUILD_EXAMPLES AND NOT ZYAN_NO_LIBC)
|
||||||
|
if (ZYDIS_FEATURE_DECODER AND ZYDIS_FEATURE_FORMATTER AND (NOT ZYDIS_MINIMAL_MODE))
|
||||||
|
add_executable("Formatter01" "examples/Formatter01.c")
|
||||||
|
target_link_libraries("Formatter01" "Zydis")
|
||||||
|
set_target_properties("Formatter01" PROPERTIES FOLDER "Examples/Formatter")
|
||||||
|
target_compile_definitions("Formatter01" PRIVATE "_CRT_SECURE_NO_WARNINGS")
|
||||||
|
zyan_set_common_flags("Formatter01")
|
||||||
|
zyan_maybe_enable_wpo("Formatter01")
|
||||||
|
_maybe_set_emscripten_cfg("Formatter01")
|
||||||
|
|
||||||
|
add_executable("Formatter02" "examples/Formatter02.c")
|
||||||
|
target_link_libraries("Formatter02" "Zydis")
|
||||||
|
set_target_properties("Formatter02" PROPERTIES FOLDER "Examples/Formatter")
|
||||||
|
target_compile_definitions("Formatter02" PRIVATE "_CRT_SECURE_NO_WARNINGS")
|
||||||
|
zyan_set_common_flags("Formatter02")
|
||||||
|
zyan_maybe_enable_wpo("Formatter02")
|
||||||
|
_maybe_set_emscripten_cfg("Formatter02")
|
||||||
|
|
||||||
|
add_executable("Formatter03" "examples/Formatter03.c")
|
||||||
|
target_link_libraries("Formatter03" "Zydis")
|
||||||
|
set_target_properties("Formatter03" PROPERTIES FOLDER "Examples/Formatter")
|
||||||
|
target_compile_definitions("Formatter03" PRIVATE "_CRT_SECURE_NO_WARNINGS")
|
||||||
|
zyan_set_common_flags("Formatter03")
|
||||||
|
zyan_maybe_enable_wpo("Formatter03")
|
||||||
|
_maybe_set_emscripten_cfg("Formatter03")
|
||||||
|
|
||||||
|
add_executable("ZydisPerfTest" "examples/ZydisPerfTest.c")
|
||||||
|
target_link_libraries("ZydisPerfTest" "Zydis")
|
||||||
|
set_target_properties("ZydisPerfTest" PROPERTIES FOLDER "Examples")
|
||||||
|
target_compile_definitions("ZydisPerfTest" PRIVATE "_CRT_SECURE_NO_WARNINGS")
|
||||||
|
zyan_set_common_flags("ZydisPerfTest")
|
||||||
|
zyan_maybe_enable_wpo("ZydisPerfTest")
|
||||||
|
_maybe_set_emscripten_cfg("ZydisPerfTest")
|
||||||
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux"
|
||||||
|
OR ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||||
|
target_compile_definitions("ZydisPerfTest" PRIVATE "_GNU_SOURCE")
|
||||||
|
find_package(Threads REQUIRED)
|
||||||
|
target_link_libraries("ZydisPerfTest" Threads::Threads)
|
||||||
|
endif ()
|
||||||
|
endif ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
# =============================================================================================== #
|
||||||
|
# Tools #
|
||||||
|
# =============================================================================================== #
|
||||||
|
|
||||||
|
if (ZYDIS_BUILD_TOOLS AND NOT ZYAN_NO_LIBC)
|
||||||
|
if (ZYDIS_FEATURE_DECODER AND ZYDIS_FEATURE_FORMATTER AND (NOT ZYDIS_MINIMAL_MODE))
|
||||||
|
add_executable("ZydisDisasm" "tools/ZydisDisasm.c")
|
||||||
|
target_link_libraries("ZydisDisasm" "Zydis")
|
||||||
|
set_target_properties ("ZydisDisasm" PROPERTIES FOLDER "Tools")
|
||||||
|
target_compile_definitions("ZydisDisasm" PRIVATE "_CRT_SECURE_NO_WARNINGS")
|
||||||
|
zyan_set_common_flags("ZydisDisasm")
|
||||||
|
zyan_maybe_enable_wpo("ZydisDisasm")
|
||||||
|
_maybe_set_emscripten_cfg("ZydisDisasm")
|
||||||
|
install(TARGETS "ZydisDisasm" RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
|
||||||
|
add_executable("ZydisFuzzIn" "tools/ZydisFuzzIn.c")
|
||||||
|
target_link_libraries("ZydisFuzzIn" "Zydis")
|
||||||
|
set_target_properties("ZydisFuzzIn" PROPERTIES FOLDER "Tools")
|
||||||
|
target_compile_definitions("ZydisFuzzIn" PRIVATE "_CRT_SECURE_NO_WARNINGS")
|
||||||
|
zyan_set_common_flags("ZydisFuzzIn")
|
||||||
|
zyan_maybe_enable_wpo("ZydisFuzzIn")
|
||||||
|
_maybe_set_emscripten_cfg("ZydisFuzzIn")
|
||||||
|
if (ZYDIS_FUZZ_AFL_FAST)
|
||||||
|
target_compile_definitions("ZydisFuzzIn" PRIVATE "ZYDIS_FUZZ_AFL_FAST")
|
||||||
|
endif ()
|
||||||
|
if (ZYDIS_LIBFUZZER)
|
||||||
|
target_compile_definitions("ZydisFuzzIn" PRIVATE "ZYDIS_LIBFUZZER")
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
add_executable("ZydisInfo" "tools/ZydisInfo.c")
|
||||||
|
target_link_libraries("ZydisInfo" "Zydis")
|
||||||
|
set_target_properties ("ZydisInfo" PROPERTIES FOLDER "Tools")
|
||||||
|
target_compile_definitions("ZydisInfo" PRIVATE "_CRT_SECURE_NO_WARNINGS")
|
||||||
|
zyan_set_common_flags("ZydisInfo")
|
||||||
|
zyan_maybe_enable_wpo("ZydisInfo")
|
||||||
|
_maybe_set_emscripten_cfg("ZydisInfo")
|
||||||
|
install(TARGETS "ZydisInfo" RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
|
||||||
|
add_executable("ZydisPE" "tools/ZydisPE.c")
|
||||||
|
target_link_libraries("ZydisPE" "Zydis")
|
||||||
|
set_target_properties ("ZydisPE" PROPERTIES FOLDER "Tools")
|
||||||
|
target_compile_definitions("ZydisPE" PRIVATE "_CRT_SECURE_NO_WARNINGS")
|
||||||
|
zyan_set_common_flags("ZydisPE")
|
||||||
|
zyan_maybe_enable_wpo("ZydisPE")
|
||||||
|
_maybe_set_emscripten_cfg("ZydisPE")
|
||||||
|
endif ()
|
||||||
|
endif ()
|
7
Doxyfile-mcss
Normal file
7
Doxyfile-mcss
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
@INCLUDE = Doxyfile
|
||||||
|
GENERATE_HTML = NO
|
||||||
|
GENERATE_XML = YES
|
||||||
|
XML_PROGRAMLISTING = NO
|
||||||
|
##!M_LINKS_NAVBAR1 = modules files
|
||||||
|
##!M_LINKS_NAVBAR2 =
|
||||||
|
##!M_FILE_TREE_EXPAND_LEVELS = 2
|
23
LICENSE
Normal file
23
LICENSE
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014-2020 Florian Bernd
|
||||||
|
Copyright (c) 2014-2020 Joel Höner
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
178
README.md
Normal file
178
README.md
Normal file
|
@ -0,0 +1,178 @@
|
||||||
|
<p align="center">
|
||||||
|
<img alt="zydis logo" src="https://zydis.re/img/logo.svg" width="400px">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT">
|
||||||
|
<a href="https://github.com/zyantific/zydis/actions"><img src="https://github.com/zyantific/zydis/workflows/GitHub%20Actions%20CI/badge.svg" alt="GitHub Actions"></a>
|
||||||
|
<a href="https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:zydis"><img src="https://oss-fuzz-build-logs.storage.googleapis.com/badges/zydis.svg" alt="Fuzzing Status"></a>
|
||||||
|
<a href="https://gitter.im/zyantific/zydis?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/zyantific/zyan-disassembler-engine.svg" alt="Gitter"></a>
|
||||||
|
<a href="https://discord.zyantific.com/"><img src="https://img.shields.io/discord/390136917779415060.svg?logo=discord&label=Discord" alt="Discord"></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">Fast and lightweight x86/x86-64 disassembler library.</p>
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- Supports all x86 and x86-64 (AMD64) instructions and [extensions](./include/Zydis/Generated/EnumISAExt.h)
|
||||||
|
- Optimized for high performance
|
||||||
|
- No dynamic memory allocation ("malloc")
|
||||||
|
- Thread-safe by design
|
||||||
|
- Very small file-size overhead compared to other common disassembler libraries
|
||||||
|
- [Complete doxygen documentation](https://zydis.re/doc/3/)
|
||||||
|
- Absolutely no third party dependencies — not even libc
|
||||||
|
- Should compile on any platform with a working C99 compiler
|
||||||
|
- Tested on Windows, macOS, FreeBSD, Linux and UEFI, both user and kernel mode
|
||||||
|
|
||||||
|
## Quick Example
|
||||||
|
The following example program uses Zydis to disassemble a given memory buffer and prints the output to the console ([more examples here](./examples/)).
|
||||||
|
|
||||||
|
```C
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <Zydis/Zydis.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
ZyanU8 data[] =
|
||||||
|
{
|
||||||
|
0x51, 0x8D, 0x45, 0xFF, 0x50, 0xFF, 0x75, 0x0C, 0xFF, 0x75,
|
||||||
|
0x08, 0xFF, 0x15, 0xA0, 0xA5, 0x48, 0x76, 0x85, 0xC0, 0x0F,
|
||||||
|
0x88, 0xFC, 0xDA, 0x02, 0x00
|
||||||
|
};
|
||||||
|
|
||||||
|
// Initialize decoder context
|
||||||
|
ZydisDecoder decoder;
|
||||||
|
ZydisDecoderInit(&decoder, ZYDIS_MACHINE_MODE_LONG_64, ZYDIS_ADDRESS_WIDTH_64);
|
||||||
|
|
||||||
|
// Initialize formatter. Only required when you actually plan to do instruction
|
||||||
|
// formatting ("disassembling"), like we do here
|
||||||
|
ZydisFormatter formatter;
|
||||||
|
ZydisFormatterInit(&formatter, ZYDIS_FORMATTER_STYLE_INTEL);
|
||||||
|
|
||||||
|
// Loop over the instructions in our buffer.
|
||||||
|
// The runtime-address (instruction pointer) is chosen arbitrary here in order to better
|
||||||
|
// visualize relative addressing
|
||||||
|
ZyanU64 runtime_address = 0x007FFFFFFF400000;
|
||||||
|
ZyanUSize offset = 0;
|
||||||
|
const ZyanUSize length = sizeof(data);
|
||||||
|
ZydisDecodedInstruction instruction;
|
||||||
|
while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data + offset, length - offset,
|
||||||
|
&instruction)))
|
||||||
|
{
|
||||||
|
// Print current instruction pointer.
|
||||||
|
printf("%016" PRIX64 " ", runtime_address);
|
||||||
|
|
||||||
|
// Format & print the binary instruction structure to human readable format
|
||||||
|
char buffer[256];
|
||||||
|
ZydisFormatterFormatInstruction(&formatter, &instruction, buffer, sizeof(buffer),
|
||||||
|
runtime_address);
|
||||||
|
puts(buffer);
|
||||||
|
|
||||||
|
offset += instruction.length;
|
||||||
|
runtime_address += instruction.length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Sample Output
|
||||||
|
The above example program generates the following output:
|
||||||
|
|
||||||
|
```asm
|
||||||
|
007FFFFFFF400000 push rcx
|
||||||
|
007FFFFFFF400001 lea eax, [rbp-0x01]
|
||||||
|
007FFFFFFF400004 push rax
|
||||||
|
007FFFFFFF400005 push qword ptr [rbp+0x0C]
|
||||||
|
007FFFFFFF400008 push qword ptr [rbp+0x08]
|
||||||
|
007FFFFFFF40000B call [0x008000007588A5B1]
|
||||||
|
007FFFFFFF400011 test eax, eax
|
||||||
|
007FFFFFFF400013 js 0x007FFFFFFF42DB15
|
||||||
|
```
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
#### Unix
|
||||||
|
Zydis builds cleanly on most platforms without any external dependencies. You can use CMake to generate project files for your favorite C99 compiler.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone --recursive 'https://github.com/zyantific/zydis.git'
|
||||||
|
cd zydis
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Windows
|
||||||
|
Either use the [Visual Studio 2017 project](./msvc/) or build Zydis using [CMake](https://cmake.org/download/) ([video guide](https://www.youtube.com/watch?v=fywLDK1OAtQ)).
|
||||||
|
|
||||||
|
#### Building Zydis - Using vcpkg
|
||||||
|
|
||||||
|
You can download and install Zydis using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/Microsoft/vcpkg.git
|
||||||
|
cd vcpkg
|
||||||
|
./bootstrap-vcpkg.sh
|
||||||
|
./vcpkg integrate install
|
||||||
|
vcpkg install zydis
|
||||||
|
```
|
||||||
|
The Zydis port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
|
||||||
|
|
||||||
|
## Using Zydis in a CMake project
|
||||||
|
An example on how to use Zydis in your own CMake based project [can be found in this repo](https://github.com/zyantific/zydis-submodule-example).
|
||||||
|
|
||||||
|
## `ZydisInfo` tool
|
||||||
|
![ZydisInfo](./assets/screenshots/ZydisInfo.png)
|
||||||
|
|
||||||
|
## Bindings
|
||||||
|
Official bindings exist for a selection of languages:
|
||||||
|
- [Pascal](https://github.com/zyantific/zydis-pascal)
|
||||||
|
- [Python 3](https://github.com/zyantific/zydis-py)
|
||||||
|
- [Rust](https://github.com/zyantific/zydis-rs)
|
||||||
|
|
||||||
|
Unofficial but actively maintained bindings:
|
||||||
|
- [Go](https://github.com/jpap/go-zydis)
|
||||||
|
- [LuaJIT](https://github.com/Wiladams/lj2zydis)
|
||||||
|
- [Haskell](https://github.com/nerded1337/zydiskell)
|
||||||
|
|
||||||
|
## Versions
|
||||||
|
|
||||||
|
#### Scheme
|
||||||
|
Versions follow the [semantic versioning scheme](https://semver.org/). All stability guarantees apply to the API only — ABI stability between patches cannot be assumed unless explicitly mentioned in the release notes.
|
||||||
|
|
||||||
|
#### Branches & Tags
|
||||||
|
- `master` holds the bleeding edge code of the next, unreleased Zydis version. Elevated amounts of bugs and issues must be expected, API stability is not guaranteed outside of tagged commits.
|
||||||
|
- Stable and preview versions are annotated with git tags
|
||||||
|
- beta and other preview versions have `-beta`, `-rc`, etc. suffixes
|
||||||
|
- `maintenance/v2` contains the code of the latest legacy release of v2
|
||||||
|
- v2 is now deprecated, but will receive security fixes until 2021
|
||||||
|
|
||||||
|
## Credits
|
||||||
|
- Intel (for open-sourcing [XED](https://github.com/intelxed/xed), allowing for automatic comparison of our tables against theirs, improving both)
|
||||||
|
- [LLVM](https://llvm.org) (for providing pretty solid instruction data as well)
|
||||||
|
- Christian Ludloff (http://sandpile.org, insanely helpful)
|
||||||
|
- [LekoArts](https://www.lekoarts.de/) (for creating the project logo)
|
||||||
|
- Our [contributors on GitHub](https://github.com/zyantific/zydis/graphs/contributors)
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
#### `-fPIC` for shared library builds
|
||||||
|
|
||||||
|
```
|
||||||
|
/usr/bin/ld: ./libfoo.a(foo.c.o): relocation R_X86_64_PC32 against symbol `bar' can not be used when making a shared object; recompile with -fPIC
|
||||||
|
```
|
||||||
|
|
||||||
|
Under some circumstances (e.g. when building Zydis as a static library using
|
||||||
|
CMake and then using Makefiles to manually link it into a shared library), CMake
|
||||||
|
might fail to detect that relocation information must be emitted. This can be forced
|
||||||
|
by passing `-DCMAKE_POSITION_INDEPENDENT_CODE=ON` to the CMake invocation.
|
||||||
|
|
||||||
|
## Consulting and Business Support
|
||||||
|
We offer consulting services and professional business support for Zydis. If you need a custom extension, require help in integrating Zydis into your product or simply want contractually guaranteed updates and turnaround times, we are happy to assist with that! Please contact us at business@zyantific.com.
|
||||||
|
|
||||||
|
## Donations
|
||||||
|
|
||||||
|
Since GitHub Sponsors currently doesn't support sponsoring teams directly, donations are collected and distributed using [flobernd](https://github.com/users/flobernd/sponsorship)s account.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Zydis is licensed under the MIT license.
|
41
assets/ZydisExportConfigSample.h
Normal file
41
assets/ZydisExportConfigSample.h
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
|
||||||
|
#ifndef ZYDIS_EXPORT_H
|
||||||
|
#define ZYDIS_EXPORT_H
|
||||||
|
|
||||||
|
#ifdef ZYDIS_STATIC_DEFINE
|
||||||
|
# define ZYDIS_EXPORT
|
||||||
|
# define ZYDIS_NO_EXPORT
|
||||||
|
#else
|
||||||
|
# ifndef ZYDIS_EXPORT
|
||||||
|
# ifdef Zydis_EXPORTS
|
||||||
|
/* We are building this library */
|
||||||
|
# define ZYDIS_EXPORT
|
||||||
|
# else
|
||||||
|
/* We are using this library */
|
||||||
|
# define ZYDIS_EXPORT
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# ifndef ZYDIS_NO_EXPORT
|
||||||
|
# define ZYDIS_NO_EXPORT
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DEPRECATED
|
||||||
|
# define ZYDIS_DEPRECATED __attribute__ ((__deprecated__))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DEPRECATED_EXPORT
|
||||||
|
# define ZYDIS_DEPRECATED_EXPORT ZYDIS_EXPORT ZYDIS_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DEPRECATED_NO_EXPORT
|
||||||
|
# define ZYDIS_DEPRECATED_NO_EXPORT ZYDIS_NO_EXPORT ZYDIS_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define DEFINE_NO_DEPRECATED 0
|
||||||
|
#if DEFINE_NO_DEPRECATED
|
||||||
|
# define ZYDIS_NO_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
BIN
assets/ZydisFuzz_seed_corpus.zip
Normal file
BIN
assets/ZydisFuzz_seed_corpus.zip
Normal file
Binary file not shown.
BIN
assets/screenshots/ZydisInfo.png
Executable file
BIN
assets/screenshots/ZydisInfo.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
4
assets/version-bump-checklist.txt
Normal file
4
assets/version-bump-checklist.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- CMakeLists (VERSION)
|
||||||
|
- Doxyfile
|
||||||
|
- resources/VersionInfo.rc (4 locations)
|
||||||
|
- include/Zydis/Zydis.h (ZYDIS_VERSION macro)
|
8
cmake/zydis-config.cmake.in
Normal file
8
cmake/zydis-config.cmake.in
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
set(zydis_VERSION @PROJECT_VERSION@)
|
||||||
|
|
||||||
|
@PACKAGE_INIT@
|
||||||
|
|
||||||
|
set_and_check(zydis_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_INCLUDEDIR@")
|
||||||
|
set_and_check(zydis_LIB_DIR "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_LIBDIR@")
|
||||||
|
|
||||||
|
check_required_components(zydis)
|
1
dependencies/zycore
vendored
Submodule
1
dependencies/zycore
vendored
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 0c372cdefe799e99812c008a0b74537bfa5fe077
|
163
examples/Formatter01.c
Normal file
163
examples/Formatter01.c
Normal file
|
@ -0,0 +1,163 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Demonstrates basic hooking functionality of the `ZydisFormatter` class by implementing
|
||||||
|
* a custom symbol-resolver.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <Zycore/Format.h>
|
||||||
|
#include <Zycore/LibC.h>
|
||||||
|
#include <Zydis/Zydis.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and Types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisSymbol` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisSymbol_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The symbol address.
|
||||||
|
*/
|
||||||
|
ZyanU64 address;
|
||||||
|
/**
|
||||||
|
* The symbol name.
|
||||||
|
*/
|
||||||
|
const char* name;
|
||||||
|
} ZydisSymbol;
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Static data */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A static symbol table with some dummy symbols.
|
||||||
|
*/
|
||||||
|
static const ZydisSymbol SYMBOL_TABLE[3] =
|
||||||
|
{
|
||||||
|
{ 0x007FFFFFFF401000, "SomeModule.EntryPoint" },
|
||||||
|
{ 0x007FFFFFFF530040, "SomeModule.SomeData" },
|
||||||
|
{ 0x007FFFFFFF401100, "SomeModule.SomeFunction" }
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Hook callbacks */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
ZydisFormatterFunc default_print_address_absolute;
|
||||||
|
|
||||||
|
static ZyanStatus ZydisFormatterPrintAddressAbsolute(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZyanU64 address;
|
||||||
|
ZYAN_CHECK(ZydisCalcAbsoluteAddress(context->instruction, context->operand,
|
||||||
|
context->runtime_address, &address));
|
||||||
|
|
||||||
|
for (ZyanUSize i = 0; i < ZYAN_ARRAY_LENGTH(SYMBOL_TABLE); ++i)
|
||||||
|
{
|
||||||
|
if (SYMBOL_TABLE[i].address == address)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferAppend(buffer, ZYDIS_TOKEN_SYMBOL));
|
||||||
|
ZyanString* string;
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferGetString(buffer, &string));
|
||||||
|
return ZyanStringAppendFormat(string, "<%s>", SYMBOL_TABLE[i].name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return default_print_address_absolute(formatter, buffer, context);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Helper functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
static void DisassembleBuffer(ZydisDecoder* decoder, ZyanU8* data, ZyanUSize length)
|
||||||
|
{
|
||||||
|
ZydisFormatter formatter;
|
||||||
|
ZydisFormatterInit(&formatter, ZYDIS_FORMATTER_STYLE_INTEL);
|
||||||
|
ZydisFormatterSetProperty(&formatter, ZYDIS_FORMATTER_PROP_FORCE_SEGMENT, ZYAN_TRUE);
|
||||||
|
ZydisFormatterSetProperty(&formatter, ZYDIS_FORMATTER_PROP_FORCE_SIZE, ZYAN_TRUE);
|
||||||
|
|
||||||
|
// Replace the `ZYDIS_FORMATTER_FUNC_PRINT_ADDRESS_ABS` function that formats the absolute
|
||||||
|
// addresses
|
||||||
|
default_print_address_absolute = (ZydisFormatterFunc)&ZydisFormatterPrintAddressAbsolute;
|
||||||
|
ZydisFormatterSetHook(&formatter, ZYDIS_FORMATTER_FUNC_PRINT_ADDRESS_ABS,
|
||||||
|
(const void**)&default_print_address_absolute);
|
||||||
|
|
||||||
|
ZyanU64 runtime_address = 0x007FFFFFFF400000;
|
||||||
|
|
||||||
|
ZydisDecodedInstruction instruction;
|
||||||
|
char buffer[256];
|
||||||
|
while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(decoder, data, length, &instruction)))
|
||||||
|
{
|
||||||
|
ZYAN_PRINTF("%016" PRIX64 " ", runtime_address);
|
||||||
|
// We have to pass a `runtime_address` different to `ZYDIS_RUNTIME_ADDRESS_NONE` to
|
||||||
|
// enable printing of absolute addresses
|
||||||
|
ZydisFormatterFormatInstruction(&formatter, &instruction, &buffer[0], sizeof(buffer),
|
||||||
|
runtime_address);
|
||||||
|
ZYAN_PRINTF(" %s\n", &buffer[0]);
|
||||||
|
data += instruction.length;
|
||||||
|
length -= instruction.length;
|
||||||
|
runtime_address += instruction.length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Entry point */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
if (ZydisGetVersion() != ZYDIS_VERSION)
|
||||||
|
{
|
||||||
|
fputs("Invalid zydis version\n", ZYAN_STDERR);
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanU8 data[] =
|
||||||
|
{
|
||||||
|
0x48, 0x8B, 0x05, 0x39, 0x00, 0x13, 0x00, // mov rax, qword ptr ds:[<SomeModule.SomeData>]
|
||||||
|
0x50, // push rax
|
||||||
|
0xFF, 0x15, 0xF2, 0x10, 0x00, 0x00, // call qword ptr ds:[<SomeModule.SomeFunction>]
|
||||||
|
0x85, 0xC0, // test eax, eax
|
||||||
|
0x0F, 0x84, 0x00, 0x00, 0x00, 0x00, // jz 0x007FFFFFFF400016
|
||||||
|
0xE9, 0xE5, 0x0F, 0x00, 0x00 // jmp <SomeModule.EntryPoint>
|
||||||
|
};
|
||||||
|
|
||||||
|
ZydisDecoder decoder;
|
||||||
|
ZydisDecoderInit(&decoder, ZYDIS_MACHINE_MODE_LONG_64, ZYDIS_ADDRESS_WIDTH_64);
|
||||||
|
|
||||||
|
DisassembleBuffer(&decoder, &data[0], sizeof(data));
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
265
examples/Formatter02.c
Normal file
265
examples/Formatter02.c
Normal file
|
@ -0,0 +1,265 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Demonstrates basic hooking functionality of the `ZydisFormatter` class and the ability
|
||||||
|
* to completely omit specific operands.
|
||||||
|
*
|
||||||
|
* This 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).
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <Zycore/Format.h>
|
||||||
|
#include <Zycore/LibC.h>
|
||||||
|
#include <Zydis/Zydis.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Static data */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static array with the condition-code strings.
|
||||||
|
*/
|
||||||
|
static const char* const CONDITION_CODE_STRINGS[0x20] =
|
||||||
|
{
|
||||||
|
/*00*/ "eq",
|
||||||
|
/*01*/ "lt",
|
||||||
|
/*02*/ "le",
|
||||||
|
/*03*/ "unord",
|
||||||
|
/*04*/ "neq",
|
||||||
|
/*05*/ "nlt",
|
||||||
|
/*06*/ "nle",
|
||||||
|
/*07*/ "ord",
|
||||||
|
/*08*/ "eq_uq",
|
||||||
|
/*09*/ "nge",
|
||||||
|
/*0A*/ "ngt",
|
||||||
|
/*0B*/ "false",
|
||||||
|
/*0C*/ "oq",
|
||||||
|
/*0D*/ "ge",
|
||||||
|
/*0E*/ "gt",
|
||||||
|
/*0F*/ "true",
|
||||||
|
/*10*/ "eq_os",
|
||||||
|
/*11*/ "lt_oq",
|
||||||
|
/*12*/ "le_oq",
|
||||||
|
/*13*/ "unord_s",
|
||||||
|
/*14*/ "neq_us",
|
||||||
|
/*15*/ "nlt_uq",
|
||||||
|
/*16*/ "nle_uq",
|
||||||
|
/*17*/ "ord_s",
|
||||||
|
/*18*/ "eq_us",
|
||||||
|
/*19*/ "nge_uq",
|
||||||
|
/*1A*/ "ngt_uq",
|
||||||
|
/*1B*/ "false_os",
|
||||||
|
/*1C*/ "neq_os",
|
||||||
|
/*1D*/ "ge_oq",
|
||||||
|
/*1E*/ "gt_oq",
|
||||||
|
/*1F*/ "true_us"
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and Types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom user data struct for the formatter.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisCustomUserData_
|
||||||
|
{
|
||||||
|
ZyanBool omit_immediate;
|
||||||
|
} ZydisCustomUserData;
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Hook callbacks */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
ZydisFormatterFunc default_print_mnemonic;
|
||||||
|
|
||||||
|
static ZyanStatus ZydisFormatterPrintMnemonic(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
// We use the user-data to pass data to the `ZydisFormatterFormatOperandImm` function
|
||||||
|
ZydisCustomUserData* user_data = (ZydisCustomUserData*)context->user_data;
|
||||||
|
user_data->omit_immediate = ZYAN_TRUE;
|
||||||
|
|
||||||
|
// Rewrite the instruction-mnemonic for the given instructions
|
||||||
|
if (context->instruction->operand_count &&
|
||||||
|
context->instruction->operands[context->instruction->operand_count - 1].type ==
|
||||||
|
ZYDIS_OPERAND_TYPE_IMMEDIATE)
|
||||||
|
{
|
||||||
|
// Retrieve the `ZyanString` instance of the formatter-buffer
|
||||||
|
ZyanString* string;
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferGetString(buffer, &string));
|
||||||
|
|
||||||
|
const ZyanU8 condition_code = (ZyanU8)context->instruction->operands[
|
||||||
|
context->instruction->operand_count - 1].imm.value.u;
|
||||||
|
switch (context->instruction->mnemonic)
|
||||||
|
{
|
||||||
|
case ZYDIS_MNEMONIC_CMPPS:
|
||||||
|
if (condition_code < 0x08)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferAppend(buffer, ZYDIS_TOKEN_MNEMONIC));
|
||||||
|
return ZyanStringAppendFormat(string, "cmp%sps",
|
||||||
|
CONDITION_CODE_STRINGS[condition_code]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case ZYDIS_MNEMONIC_CMPPD:
|
||||||
|
if (condition_code < 0x08)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferAppend(buffer, ZYDIS_TOKEN_MNEMONIC));
|
||||||
|
return ZyanStringAppendFormat(string, "cmp%spd",
|
||||||
|
CONDITION_CODE_STRINGS[condition_code]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case ZYDIS_MNEMONIC_VCMPPS:
|
||||||
|
if (condition_code < 0x20)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferAppend(buffer, ZYDIS_TOKEN_MNEMONIC));
|
||||||
|
return ZyanStringAppendFormat(string, "vcmp%sps",
|
||||||
|
CONDITION_CODE_STRINGS[condition_code]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case ZYDIS_MNEMONIC_VCMPPD:
|
||||||
|
if (condition_code < 0x20)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferAppend(buffer, ZYDIS_TOKEN_MNEMONIC));
|
||||||
|
return ZyanStringAppendFormat(string, "vcmp%spd",
|
||||||
|
CONDITION_CODE_STRINGS[condition_code]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// We did not rewrite the instruction-mnemonic. Signal the `ZydisFormatterFormatOperandImm`
|
||||||
|
// function not to omit the operand
|
||||||
|
user_data->omit_immediate = ZYAN_FALSE;
|
||||||
|
|
||||||
|
// Default mnemonic printing
|
||||||
|
return default_print_mnemonic(formatter, buffer, context);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZydisFormatterFunc default_format_operand_imm;
|
||||||
|
|
||||||
|
static ZyanStatus ZydisFormatterFormatOperandIMM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
// The `ZydisFormatterFormatMnemonic` sinals us to omit the immediate (condition-code)
|
||||||
|
// operand, because it got replaced by the alias-mnemonic
|
||||||
|
const ZydisCustomUserData* user_data = (ZydisCustomUserData*)context->user_data;
|
||||||
|
if (user_data->omit_immediate)
|
||||||
|
{
|
||||||
|
return ZYDIS_STATUS_SKIP_TOKEN;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Default immediate formatting
|
||||||
|
return default_format_operand_imm(formatter, buffer, context);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Helper functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
static void DisassembleBuffer(ZydisDecoder* decoder, ZyanU8* data, ZyanUSize length,
|
||||||
|
ZyanBool install_hooks)
|
||||||
|
{
|
||||||
|
ZydisFormatter formatter;
|
||||||
|
ZydisFormatterInit(&formatter, ZYDIS_FORMATTER_STYLE_INTEL);
|
||||||
|
ZydisFormatterSetProperty(&formatter, ZYDIS_FORMATTER_PROP_FORCE_SEGMENT, ZYAN_TRUE);
|
||||||
|
ZydisFormatterSetProperty(&formatter, ZYDIS_FORMATTER_PROP_FORCE_SIZE, ZYAN_TRUE);
|
||||||
|
|
||||||
|
if (install_hooks)
|
||||||
|
{
|
||||||
|
default_print_mnemonic = (ZydisFormatterFunc)&ZydisFormatterPrintMnemonic;
|
||||||
|
ZydisFormatterSetHook(&formatter, ZYDIS_FORMATTER_FUNC_PRINT_MNEMONIC,
|
||||||
|
(const void**)&default_print_mnemonic);
|
||||||
|
default_format_operand_imm = (ZydisFormatterFunc)&ZydisFormatterFormatOperandIMM;
|
||||||
|
ZydisFormatterSetHook(&formatter, ZYDIS_FORMATTER_FUNC_FORMAT_OPERAND_IMM,
|
||||||
|
(const void**)&default_format_operand_imm);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanU64 runtime_address = 0x007FFFFFFF400000;
|
||||||
|
|
||||||
|
ZydisDecodedInstruction instruction;
|
||||||
|
ZydisCustomUserData user_data;
|
||||||
|
char buffer[256];
|
||||||
|
while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(decoder, data, length, &instruction)))
|
||||||
|
{
|
||||||
|
ZYAN_PRINTF("%016" PRIX64 " ", runtime_address);
|
||||||
|
ZydisFormatterFormatInstructionEx(&formatter, &instruction, &buffer[0], sizeof(buffer),
|
||||||
|
runtime_address, &user_data);
|
||||||
|
ZYAN_PRINTF(" %s\n", &buffer[0]);
|
||||||
|
data += instruction.length;
|
||||||
|
length -= instruction.length;
|
||||||
|
runtime_address += instruction.length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Entry point */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
if (ZydisGetVersion() != ZYDIS_VERSION)
|
||||||
|
{
|
||||||
|
fputs("Invalid zydis version\n", ZYAN_STDERR);
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanU8 data[] =
|
||||||
|
{
|
||||||
|
// nop
|
||||||
|
0x90,
|
||||||
|
|
||||||
|
// cmpps xmm1, xmm4, 0x03
|
||||||
|
0x0F, 0xC2, 0xCC, 0x03,
|
||||||
|
|
||||||
|
// vcmppd xmm1, xmm2, xmm3, 0x17
|
||||||
|
0xC5, 0xE9, 0xC2, 0xCB, 0x17,
|
||||||
|
|
||||||
|
// vcmpps k2 {k7}, zmm2, dword ptr ds:[rax + rbx*4 + 0x100] {1to16}, 0x0F
|
||||||
|
0x62, 0xF1, 0x6C, 0x5F, 0xC2, 0x54, 0x98, 0x40, 0x0F
|
||||||
|
};
|
||||||
|
|
||||||
|
ZydisDecoder decoder;
|
||||||
|
ZydisDecoderInit(&decoder, ZYDIS_MACHINE_MODE_LONG_64, ZYDIS_ADDRESS_WIDTH_64);
|
||||||
|
|
||||||
|
DisassembleBuffer(&decoder, &data[0], sizeof(data), ZYAN_FALSE);
|
||||||
|
ZYAN_PUTS("");
|
||||||
|
DisassembleBuffer(&decoder, &data[0], sizeof(data), ZYAN_TRUE);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
126
examples/Formatter03.c
Normal file
126
examples/Formatter03.c
Normal file
|
@ -0,0 +1,126 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Demonstrates the tokenizing feature of the `ZydisFormatter` class.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <Zycore/Format.h>
|
||||||
|
#include <Zycore/LibC.h>
|
||||||
|
#include <Zydis/Zydis.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Static data */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
static const char* const TOKEN_TYPES[] =
|
||||||
|
{
|
||||||
|
"INVALID ",
|
||||||
|
"WHITESPACE ",
|
||||||
|
"DELIMITER ",
|
||||||
|
"PARENTHESIS_OPEN ",
|
||||||
|
"PARENTHESIS_CLOSE",
|
||||||
|
"PREFIX ",
|
||||||
|
"MNEMONIC ",
|
||||||
|
"REGISTER ",
|
||||||
|
"ADDRESS_ABS ",
|
||||||
|
"ADDRESS_REL ",
|
||||||
|
"DISPLACEMENT ",
|
||||||
|
"IMMEDIATE ",
|
||||||
|
"TYPECAST ",
|
||||||
|
"DECORATOR ",
|
||||||
|
"SYMBOL "
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Helper functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
static void DisassembleBuffer(ZydisDecoder* decoder, ZyanU8* data, ZyanUSize length)
|
||||||
|
{
|
||||||
|
ZydisFormatter formatter;
|
||||||
|
ZydisFormatterInit(&formatter, ZYDIS_FORMATTER_STYLE_INTEL);
|
||||||
|
ZydisFormatterSetProperty(&formatter, ZYDIS_FORMATTER_PROP_FORCE_SEGMENT, ZYAN_TRUE);
|
||||||
|
ZydisFormatterSetProperty(&formatter, ZYDIS_FORMATTER_PROP_FORCE_SIZE, ZYAN_TRUE);
|
||||||
|
|
||||||
|
ZyanU64 runtime_address = 0x007FFFFFFF400000;
|
||||||
|
|
||||||
|
ZydisDecodedInstruction instruction;
|
||||||
|
char buffer[256];
|
||||||
|
while (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(decoder, data, length, &instruction)))
|
||||||
|
{
|
||||||
|
const ZydisFormatterToken* token;
|
||||||
|
if (ZYAN_SUCCESS(ZydisFormatterTokenizeInstruction(&formatter, &instruction, &buffer[0],
|
||||||
|
sizeof(buffer), runtime_address, &token)))
|
||||||
|
{
|
||||||
|
ZydisTokenType token_type;
|
||||||
|
ZyanConstCharPointer token_value = ZYAN_NULL;
|
||||||
|
while (token)
|
||||||
|
{
|
||||||
|
ZydisFormatterTokenGetValue(token, &token_type, &token_value);
|
||||||
|
printf("ZYDIS_TOKEN_%17s (%02X): \"%s\"\n", TOKEN_TYPES[token_type], token_type,
|
||||||
|
token_value);
|
||||||
|
if (!ZYAN_SUCCESS(ZydisFormatterTokenNext(&token)))
|
||||||
|
{
|
||||||
|
token = ZYAN_NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data += instruction.length;
|
||||||
|
length -= instruction.length;
|
||||||
|
runtime_address += instruction.length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Entry point */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
if (ZydisGetVersion() != ZYDIS_VERSION)
|
||||||
|
{
|
||||||
|
fputs("Invalid zydis version\n", ZYAN_STDERR);
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanU8 data[] =
|
||||||
|
{
|
||||||
|
// vcmpps k2 {k7}, zmm2, dword ptr ds:[rax + rbx*4 + 0x100] {1to16}, 0x0F
|
||||||
|
0x62, 0xF1, 0x6C, 0x5F, 0xC2, 0x54, 0x98, 0x40, 0x0F
|
||||||
|
};
|
||||||
|
|
||||||
|
ZydisDecoder decoder;
|
||||||
|
ZydisDecoderInit(&decoder, ZYDIS_MACHINE_MODE_LONG_64, ZYDIS_ADDRESS_WIDTH_64);
|
||||||
|
|
||||||
|
DisassembleBuffer(&decoder, &data[0], sizeof(data));
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
23
examples/README.md
Normal file
23
examples/README.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Zydis Examples
|
||||||
|
|
||||||
|
## Decoder
|
||||||
|
|
||||||
|
Comming soon™ ...
|
||||||
|
|
||||||
|
## Formatter
|
||||||
|
|
||||||
|
### [Formatter01](./Formatter01.c)
|
||||||
|
Demonstrates basic hooking functionality of the `ZydisFormatter` class by implementing a custom symbol-resolver.
|
||||||
|
|
||||||
|
### [Formatter02](./Formatter02.c)
|
||||||
|
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](./Formatter03.c)
|
||||||
|
Demonstrates the tokenizing feature of the `ZydisFormatter` class.
|
||||||
|
|
||||||
|
## Misc
|
||||||
|
|
||||||
|
### [ZydisWinKernel](./ZydisWinKernel.c)
|
||||||
|
Implements an example Windows kernel-mode driver.
|
578
examples/ZydisPerfTest.c
Normal file
578
examples/ZydisPerfTest.c
Normal file
|
@ -0,0 +1,578 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <Zycore/API/Terminal.h>
|
||||||
|
#include <Zycore/LibC.h>
|
||||||
|
#include <Zydis/Zydis.h>
|
||||||
|
|
||||||
|
#if defined(ZYAN_WINDOWS)
|
||||||
|
# include <Windows.h>
|
||||||
|
#elif defined(ZYAN_APPLE)
|
||||||
|
# include <mach/mach_time.h>
|
||||||
|
#elif defined(ZYAN_LINUX) || defined(ZYAN_SOLARIS)
|
||||||
|
# include <sys/time.h>
|
||||||
|
# include <pthread.h>
|
||||||
|
#elif defined(ZYAN_FREEBSD)
|
||||||
|
# include <sys/time.h>
|
||||||
|
# include <pthread.h>
|
||||||
|
# include <pthread_np.h>
|
||||||
|
#else
|
||||||
|
# error "Unsupported platform detected"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Colors */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Configuration */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#define COLOR_DEFAULT ZYAN_VT100SGR_FG_DEFAULT
|
||||||
|
#define COLOR_ERROR ZYAN_VT100SGR_FG_BRIGHT_RED
|
||||||
|
#define COLOR_VALUE_R ZYAN_VT100SGR_FG_BRIGHT_RED
|
||||||
|
#define COLOR_VALUE_G ZYAN_VT100SGR_FG_BRIGHT_GREEN
|
||||||
|
#define COLOR_VALUE_B ZYAN_VT100SGR_FG_CYAN
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Global variables */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
static ZyanBool g_vt100_stdout;
|
||||||
|
static ZyanBool g_vt100_stderr;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Helper macros */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Conditionally expands to the passed VT100 sequence, if `g_colors_stdout` is
|
||||||
|
* `ZYAN_TRUE`, or an empty string, if not.
|
||||||
|
*
|
||||||
|
* @param The VT100 SGT sequence.
|
||||||
|
*/
|
||||||
|
#define CVT100_OUT(sequence) (g_vt100_stdout ? (sequence) : "")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Conditionally expands to the passed VT100 sequence, if `g_colors_stderr` is
|
||||||
|
* `ZYAN_TRUE`, or an empty string, if not.
|
||||||
|
*
|
||||||
|
* @param The VT100 SGT sequence.
|
||||||
|
*/
|
||||||
|
#define CVT100_ERR(sequence) (g_vt100_stderr ? (sequence) : "")
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Helper functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Time measurement */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#if defined(ZYAN_WINDOWS)
|
||||||
|
|
||||||
|
double counter_freq = 0.0;
|
||||||
|
ZyanU64 counter_start = 0;
|
||||||
|
|
||||||
|
static void StartCounter(void)
|
||||||
|
{
|
||||||
|
LARGE_INTEGER li;
|
||||||
|
if (!QueryPerformanceFrequency(&li))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sError: QueryPerformanceFrequency failed!%s\n",
|
||||||
|
CVT100_ERR(COLOR_ERROR), CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
counter_freq = (double)li.QuadPart / 1000.0;
|
||||||
|
QueryPerformanceCounter(&li);
|
||||||
|
counter_start = li.QuadPart;
|
||||||
|
}
|
||||||
|
|
||||||
|
static double GetCounter(void)
|
||||||
|
{
|
||||||
|
LARGE_INTEGER li;
|
||||||
|
QueryPerformanceCounter(&li);
|
||||||
|
return (double)(li.QuadPart - counter_start) / counter_freq;
|
||||||
|
}
|
||||||
|
|
||||||
|
#elif defined(ZYAN_APPLE)
|
||||||
|
|
||||||
|
ZyanU64 counter_start = 0;
|
||||||
|
mach_timebase_info_data_t timebase_info;
|
||||||
|
|
||||||
|
static void StartCounter(void)
|
||||||
|
{
|
||||||
|
counter_start = mach_absolute_time();
|
||||||
|
}
|
||||||
|
|
||||||
|
static double GetCounter(void)
|
||||||
|
{
|
||||||
|
ZyanU64 elapsed = mach_absolute_time() - counter_start;
|
||||||
|
|
||||||
|
if (timebase_info.denom == 0)
|
||||||
|
{
|
||||||
|
mach_timebase_info(&timebase_info);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (double)elapsed * timebase_info.numer / timebase_info.denom / 1000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#elif defined(ZYAN_LINUX) || defined(ZYAN_FREEBSD) || defined(ZYAN_SOLARIS)
|
||||||
|
|
||||||
|
struct timeval t1;
|
||||||
|
|
||||||
|
static void StartCounter(void)
|
||||||
|
{
|
||||||
|
gettimeofday(&t1, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
static double GetCounter(void)
|
||||||
|
{
|
||||||
|
struct timeval t2;
|
||||||
|
gettimeofday(&t2, NULL);
|
||||||
|
|
||||||
|
double t = (t2.tv_sec - t1.tv_sec) * 1000.0;
|
||||||
|
return t + (t2.tv_usec - t1.tv_usec) / 1000.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Process & Thread Priority */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
static void AdjustProcessAndThreadPriority(void)
|
||||||
|
{
|
||||||
|
#if defined(ZYAN_WINDOWS)
|
||||||
|
|
||||||
|
SYSTEM_INFO info;
|
||||||
|
GetSystemInfo(&info);
|
||||||
|
if (info.dwNumberOfProcessors > 1)
|
||||||
|
{
|
||||||
|
if (!SetThreadAffinityMask(GetCurrentThread(), (DWORD_PTR)1))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sWarning: Could not set thread affinity mask%s\n",
|
||||||
|
CVT100_ERR(ZYAN_VT100SGR_FG_YELLOW), CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
}
|
||||||
|
if (!SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sWarning: Could not set process priority class%s\n",
|
||||||
|
CVT100_ERR(ZYAN_VT100SGR_FG_YELLOW), CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
}
|
||||||
|
if (!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sWarning: Could not set thread priority class%s\n",
|
||||||
|
CVT100_ERR(ZYAN_VT100SGR_FG_YELLOW), CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#elif defined(ZYAN_LINUX) || defined(ZYAN_FREEBSD)
|
||||||
|
|
||||||
|
pthread_t thread = pthread_self();
|
||||||
|
|
||||||
|
#if defined(ZYAN_LINUX)
|
||||||
|
cpu_set_t cpus;
|
||||||
|
#else // FreeBSD
|
||||||
|
cpuset_t cpus;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
CPU_ZERO(&cpus);
|
||||||
|
CPU_SET(0, &cpus);
|
||||||
|
if (pthread_setaffinity_np(thread, sizeof(cpus), &cpus))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sWarning: Could not set thread affinity mask%s\n",
|
||||||
|
CVT100_ERR(ZYAN_VT100SGR_FG_YELLOW), CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Internal functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
static ZyanU64 ProcessBuffer(const ZydisDecoder* decoder, const ZydisFormatter* formatter,
|
||||||
|
/* const ZydisCacheTable* cache, */
|
||||||
|
const ZyanU8* buffer, ZyanUSize length, ZyanBool format, ZyanBool tokenize, ZyanBool use_cache)
|
||||||
|
{
|
||||||
|
ZyanU64 count = 0;
|
||||||
|
ZyanUSize offset = 0;
|
||||||
|
ZyanStatus status;
|
||||||
|
ZydisDecodedInstruction instruction_data;
|
||||||
|
ZydisDecodedInstruction* instruction;
|
||||||
|
char format_buffer[256];
|
||||||
|
|
||||||
|
while (length > offset)
|
||||||
|
{
|
||||||
|
if (use_cache)
|
||||||
|
{
|
||||||
|
ZYAN_UNREACHABLE;
|
||||||
|
// status = ZydisDecoderDecodeBufferCached(decoder, cache, buffer + offset,
|
||||||
|
// length - offset, &instruction);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
status = ZydisDecoderDecodeBuffer(decoder, buffer + offset, length - offset,
|
||||||
|
&instruction_data);
|
||||||
|
instruction = &instruction_data;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (status == ZYDIS_STATUS_NO_MORE_DATA)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (!ZYAN_SUCCESS(status))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sUnexpected decoding error. Data: ",
|
||||||
|
CVT100_ERR(COLOR_ERROR));
|
||||||
|
for (ZyanUSize i = 0; i < ZYAN_MIN(ZYDIS_MAX_INSTRUCTION_LENGTH,
|
||||||
|
length - offset); ++i)
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%02X ", (ZyanU8)buffer[offset + i]);
|
||||||
|
}
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%s\n", CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
ZYAN_ASSERT(ZYAN_FALSE);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (format)
|
||||||
|
{
|
||||||
|
if (tokenize)
|
||||||
|
{
|
||||||
|
const ZydisFormatterToken* token;
|
||||||
|
ZydisFormatterTokenizeInstruction(formatter, instruction, format_buffer,
|
||||||
|
sizeof(format_buffer), offset, &token);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
ZydisFormatterFormatInstruction(formatter, instruction, format_buffer,
|
||||||
|
sizeof(format_buffer), offset);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
offset += instruction->length;
|
||||||
|
++count;
|
||||||
|
}
|
||||||
|
|
||||||
|
return count;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void TestPerformance(const ZyanU8* buffer, ZyanUSize length, ZyanBool minimal_mode,
|
||||||
|
ZyanBool format, ZyanBool tokenize, ZyanBool use_cache)
|
||||||
|
{
|
||||||
|
ZydisDecoder decoder;
|
||||||
|
if (!ZYAN_SUCCESS(ZydisDecoderInit(&decoder, ZYDIS_MACHINE_MODE_LONG_64,
|
||||||
|
ZYDIS_ADDRESS_WIDTH_64)))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sFailed to initialize decoder%s\n",
|
||||||
|
CVT100_ERR(COLOR_ERROR), CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
if (!ZYAN_SUCCESS(ZydisDecoderEnableMode(&decoder, ZYDIS_DECODER_MODE_MINIMAL, minimal_mode)))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sFailed to adjust decoder-mode%s\n",
|
||||||
|
CVT100_ERR(COLOR_ERROR), CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ZydisCacheTable cache;
|
||||||
|
// if (use_cache && !ZYAN_SUCCESS(ZydisDecoderInitCache(&decoder, &cache)))
|
||||||
|
// {
|
||||||
|
// ZYAN_FPRINTF(ZYAN_STDERR, "%sFailed to initialize decoder-cache%s\n",
|
||||||
|
// CVT100_ERR(COLOR_ERROR), CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
// exit(EXIT_FAILURE);
|
||||||
|
// }
|
||||||
|
|
||||||
|
ZydisFormatter formatter;
|
||||||
|
if (format)
|
||||||
|
{
|
||||||
|
if (!ZYAN_SUCCESS(ZydisFormatterInit(&formatter, ZYDIS_FORMATTER_STYLE_INTEL)) ||
|
||||||
|
!ZYAN_SUCCESS(ZydisFormatterSetProperty(&formatter,
|
||||||
|
ZYDIS_FORMATTER_PROP_FORCE_SEGMENT, ZYAN_TRUE)) ||
|
||||||
|
!ZYAN_SUCCESS(ZydisFormatterSetProperty(&formatter,
|
||||||
|
ZYDIS_FORMATTER_PROP_FORCE_SIZE, ZYAN_TRUE)))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sFailed to initialize instruction-formatter%s\n",
|
||||||
|
CVT100_ERR(COLOR_ERROR), CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cache warmup
|
||||||
|
ProcessBuffer(&decoder, &formatter, /* cache, */ buffer, length, format, tokenize, use_cache);
|
||||||
|
|
||||||
|
// Testing
|
||||||
|
ZyanU64 count = 0;
|
||||||
|
StartCounter();
|
||||||
|
for (ZyanU8 j = 0; j < 100; ++j)
|
||||||
|
{
|
||||||
|
count += ProcessBuffer(&decoder, &formatter, /* cache, */ buffer, length, format,
|
||||||
|
tokenize, use_cache);
|
||||||
|
}
|
||||||
|
const char* color[4];
|
||||||
|
color[0] = minimal_mode ? CVT100_OUT(COLOR_VALUE_G) : CVT100_OUT(COLOR_VALUE_B);
|
||||||
|
color[1] = format ? CVT100_OUT(COLOR_VALUE_G) : CVT100_OUT(COLOR_VALUE_B);
|
||||||
|
color[2] = tokenize ? CVT100_OUT(COLOR_VALUE_G) : CVT100_OUT(COLOR_VALUE_B);
|
||||||
|
color[3] = use_cache ? CVT100_OUT(COLOR_VALUE_G) : CVT100_OUT(COLOR_VALUE_B);
|
||||||
|
ZYAN_PRINTF("Minimal-Mode %s%d%s, Format %s%d%s, Tokenize %s%d%s, Caching %s%d%s, " \
|
||||||
|
"Instructions: %s%6.2fM%s, Time: %s%8.2f%s msec\n",
|
||||||
|
color[0], minimal_mode, CVT100_OUT(COLOR_DEFAULT),
|
||||||
|
color[1], format, CVT100_OUT(COLOR_DEFAULT),
|
||||||
|
color[2], tokenize, CVT100_OUT(COLOR_DEFAULT),
|
||||||
|
color[3], use_cache, CVT100_OUT(COLOR_DEFAULT),
|
||||||
|
CVT100_OUT(COLOR_VALUE_B), (double)count / 1000000, CVT100_OUT(COLOR_DEFAULT),
|
||||||
|
CVT100_OUT(COLOR_VALUE_G), GetCounter(), CVT100_OUT(COLOR_DEFAULT));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void GenerateTestData(FILE* file, ZyanU8 encoding)
|
||||||
|
{
|
||||||
|
ZydisDecoder decoder;
|
||||||
|
if (!ZYAN_SUCCESS(
|
||||||
|
ZydisDecoderInit(&decoder, ZYDIS_MACHINE_MODE_LONG_64, ZYDIS_ADDRESS_WIDTH_64)))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sFailed to initialize decoder%s\n", CVT100_ERR(COLOR_ERROR),
|
||||||
|
CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanU8 last = 0;
|
||||||
|
ZyanU32 count = 0;
|
||||||
|
ZydisDecodedInstruction instruction;
|
||||||
|
while (count < 100000)
|
||||||
|
{
|
||||||
|
ZyanU8 data[ZYDIS_MAX_INSTRUCTION_LENGTH];
|
||||||
|
for (int i = 0; i < ZYDIS_MAX_INSTRUCTION_LENGTH; ++i)
|
||||||
|
{
|
||||||
|
data[i] = rand() % 256;
|
||||||
|
}
|
||||||
|
const ZyanU8 offset = rand() % (ZYDIS_MAX_INSTRUCTION_LENGTH - 2);
|
||||||
|
switch (encoding)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
data[offset ] = 0x0F;
|
||||||
|
data[offset + 1] = 0x0F;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
data[offset ] = 0x8F;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
data[offset ] = 0xC4;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
data[offset ] = 0xC5;
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
case 6:
|
||||||
|
data[offset ] = 0x62;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
ZYAN_UNREACHABLE;
|
||||||
|
}
|
||||||
|
if (ZYAN_SUCCESS(ZydisDecoderDecodeBuffer(&decoder, data, sizeof(data), &instruction)))
|
||||||
|
{
|
||||||
|
ZyanBool b = ZYAN_FALSE;
|
||||||
|
switch (encoding)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
b = (instruction.encoding == ZYDIS_INSTRUCTION_ENCODING_LEGACY);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
b = (instruction.encoding == ZYDIS_INSTRUCTION_ENCODING_3DNOW);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
b = (instruction.encoding == ZYDIS_INSTRUCTION_ENCODING_XOP);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
case 4:
|
||||||
|
b = (instruction.encoding == ZYDIS_INSTRUCTION_ENCODING_VEX);
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
b = (instruction.encoding == ZYDIS_INSTRUCTION_ENCODING_EVEX);
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
b = (instruction.encoding == ZYDIS_INSTRUCTION_ENCODING_MVEX);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
ZYAN_UNREACHABLE;
|
||||||
|
}
|
||||||
|
if (b)
|
||||||
|
{
|
||||||
|
fwrite(&data[0], sizeof(ZyanU8), instruction.length, file);
|
||||||
|
++count;
|
||||||
|
|
||||||
|
const ZyanU8 p = (ZyanU8)((double)count / 100000 * 100);
|
||||||
|
if (last < p)
|
||||||
|
{
|
||||||
|
last = p;
|
||||||
|
ZYAN_PRINTF("%3.0d%%\n", p);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Entry point */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
int main(int argc, char** argv)
|
||||||
|
{
|
||||||
|
// Enable VT100 escape sequences on Windows, if the output is not redirected
|
||||||
|
g_vt100_stdout = (ZyanTerminalIsTTY(ZYAN_STDSTREAM_OUT) == ZYAN_STATUS_TRUE) &&
|
||||||
|
ZYAN_SUCCESS(ZyanTerminalEnableVT100(ZYAN_STDSTREAM_OUT));
|
||||||
|
g_vt100_stderr = (ZyanTerminalIsTTY(ZYAN_STDSTREAM_ERR) == ZYAN_STATUS_TRUE) &&
|
||||||
|
ZYAN_SUCCESS(ZyanTerminalEnableVT100(ZYAN_STDSTREAM_ERR));
|
||||||
|
|
||||||
|
if (ZydisGetVersion() != ZYDIS_VERSION)
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sInvalid zydis version%s\n",
|
||||||
|
CVT100_ERR(COLOR_ERROR), CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (argc < 3 || (ZYAN_STRCMP(argv[1], "-test") && ZYAN_STRCMP(argv[1], "-generate")))
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sUsage: %s -[test|generate] [directory]%s\n",
|
||||||
|
CVT100_ERR(COLOR_ERROR), (argc > 0 ? argv[0] : "PerfTest"),
|
||||||
|
CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanBool generate = ZYAN_FALSE;
|
||||||
|
if (!ZYAN_STRCMP(argv[1], "-generate"))
|
||||||
|
{
|
||||||
|
generate = ZYAN_TRUE;
|
||||||
|
}
|
||||||
|
const char* directory = argv[2];
|
||||||
|
|
||||||
|
static const struct
|
||||||
|
{
|
||||||
|
const char* encoding;
|
||||||
|
const char* filename;
|
||||||
|
} tests[7] =
|
||||||
|
{
|
||||||
|
{ "DEFAULT", "enc_default.dat" },
|
||||||
|
{ "3DNOW" , "enc_3dnow.dat" },
|
||||||
|
{ "XOP" , "enc_xop.dat" },
|
||||||
|
{ "VEX_C4" , "enc_vex_c4.dat" },
|
||||||
|
{ "VEX_C5" , "enc_vex_c5.dat" },
|
||||||
|
{ "EVEX" , "enc_evex.dat" },
|
||||||
|
{ "MVEX" , "enc_mvex.dat" }
|
||||||
|
};
|
||||||
|
|
||||||
|
if (generate)
|
||||||
|
{
|
||||||
|
time_t t;
|
||||||
|
srand((unsigned)time(&t));
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
AdjustProcessAndThreadPriority();
|
||||||
|
}
|
||||||
|
|
||||||
|
for (ZyanU8 i = 0; i < ZYAN_ARRAY_LENGTH(tests); ++i)
|
||||||
|
{
|
||||||
|
FILE* file;
|
||||||
|
|
||||||
|
const ZyanUSize len = strlen(directory);
|
||||||
|
char buf[1024];
|
||||||
|
strncpy(&buf[0], directory, sizeof(buf) - 1);
|
||||||
|
if (generate)
|
||||||
|
{
|
||||||
|
file = fopen(strncat(buf, tests[i].filename, sizeof(buf) - len - 1), "wb");
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
file = fopen(strncat(buf, tests[i].filename, sizeof(buf) - len - 1), "rb");
|
||||||
|
}
|
||||||
|
if (!file)
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR, "%sCould not open file \"%s\": %s%s\n",
|
||||||
|
CVT100_ERR(COLOR_ERROR), &buf[0], strerror(ZYAN_ERRNO),
|
||||||
|
CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (generate)
|
||||||
|
{
|
||||||
|
ZYAN_PRINTF("Generating %s%s%s ...\n", CVT100_OUT(COLOR_VALUE_B), tests[i].encoding,
|
||||||
|
CVT100_OUT(ZYAN_VT100SGR_RESET));
|
||||||
|
GenerateTestData(file, i);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
fseek(file, 0L, SEEK_END);
|
||||||
|
const long length = ftell(file);
|
||||||
|
void* buffer = malloc(length);
|
||||||
|
if (!buffer)
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR,
|
||||||
|
"%sFailed to allocate %" PRIu64 " bytes on the heap%s\n",
|
||||||
|
CVT100_ERR(COLOR_ERROR), (ZyanU64)length, CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
goto NextFile2;
|
||||||
|
}
|
||||||
|
|
||||||
|
rewind(file);
|
||||||
|
if (fread(buffer, 1, length, file) != (ZyanUSize)length)
|
||||||
|
{
|
||||||
|
ZYAN_FPRINTF(ZYAN_STDERR,
|
||||||
|
"%sCould not read %" PRIu64 " bytes from file \"%s\"%s\n",
|
||||||
|
CVT100_ERR(COLOR_ERROR), (ZyanU64)length, &buf[0],
|
||||||
|
CVT100_ERR(ZYAN_VT100SGR_RESET));
|
||||||
|
goto NextFile1;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_PRINTF("%sTesting %s%s%s ...\n", CVT100_OUT(ZYAN_VT100SGR_FG_MAGENTA),
|
||||||
|
CVT100_OUT(ZYAN_VT100SGR_FG_BRIGHT_MAGENTA), tests[i].encoding,
|
||||||
|
CVT100_OUT(COLOR_DEFAULT));
|
||||||
|
TestPerformance(buffer, length, ZYAN_TRUE , ZYAN_FALSE, ZYAN_FALSE, ZYAN_FALSE);
|
||||||
|
TestPerformance(buffer, length, ZYAN_FALSE, ZYAN_FALSE, ZYAN_FALSE, ZYAN_FALSE);
|
||||||
|
// TestPerformance(buffer, length, ZYAN_FALSE, ZYAN_FALSE, ZYAN_FALSE, ZYAN_TRUE);
|
||||||
|
TestPerformance(buffer, length, ZYAN_FALSE, ZYAN_TRUE , ZYAN_FALSE, ZYAN_FALSE);
|
||||||
|
// TestPerformance(buffer, length, ZYAN_FALSE, ZYAN_TRUE , ZYAN_FALSE, ZYAN_TRUE);
|
||||||
|
TestPerformance(buffer, length, ZYAN_FALSE, ZYAN_TRUE , ZYAN_TRUE , ZYAN_FALSE);
|
||||||
|
// TestPerformance(buffer, length, ZYAN_FALSE, ZYAN_TRUE , ZYAN_TRUE , ZYAN_TRUE);
|
||||||
|
ZYAN_PUTS("");
|
||||||
|
|
||||||
|
NextFile1:
|
||||||
|
free(buffer);
|
||||||
|
}
|
||||||
|
|
||||||
|
NextFile2:
|
||||||
|
fclose(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
189
examples/ZydisWinKernel.c
Normal file
189
examples/ZydisWinKernel.c
Normal file
|
@ -0,0 +1,189 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Engine (Zydis)
|
||||||
|
|
||||||
|
Original Author : Matthijs Lavrijsen
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Windows kernel mode driver sample.
|
||||||
|
*
|
||||||
|
* This is a Windows kernel mode driver. It links against the kernel mode-compatible version of Zydis.
|
||||||
|
* The driver finds its own entry point and decodes and prints the disassembly of this function.
|
||||||
|
* To view the log, either attach a kernel debugger or use a tool like Sysinternals DebugView.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <wdm.h>
|
||||||
|
#include <ntimage.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include "Zydis/Zydis.h"
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Forward declarations */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
NTKERNELAPI
|
||||||
|
PVOID
|
||||||
|
NTAPI
|
||||||
|
RtlPcToFileHeader(
|
||||||
|
_In_ PVOID PcValue,
|
||||||
|
_Out_ PVOID *BaseOfImage
|
||||||
|
);
|
||||||
|
|
||||||
|
NTKERNELAPI
|
||||||
|
PIMAGE_NT_HEADERS
|
||||||
|
NTAPI
|
||||||
|
RtlImageNtHeader(
|
||||||
|
_In_ PVOID ImageBase
|
||||||
|
);
|
||||||
|
|
||||||
|
#if defined(ZYAN_CLANG) || defined(ZYAN_GNUC)
|
||||||
|
__attribute__((section("INIT")))
|
||||||
|
#endif
|
||||||
|
DRIVER_INITIALIZE
|
||||||
|
DriverEntry;
|
||||||
|
|
||||||
|
#if defined(ALLOC_PRAGMA) && !(defined(ZYAN_CLANG) || defined(ZYAN_GNUC))
|
||||||
|
#pragma alloc_text(INIT, DriverEntry)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Helper functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
VOID
|
||||||
|
Print(
|
||||||
|
_In_ PCCH Format,
|
||||||
|
_In_ ...
|
||||||
|
)
|
||||||
|
{
|
||||||
|
CHAR message[512];
|
||||||
|
va_list argList;
|
||||||
|
va_start(argList, Format);
|
||||||
|
const int n = _vsnprintf_s(message, sizeof(message), sizeof(message) - 1, Format, argList);
|
||||||
|
message[n] = '\0';
|
||||||
|
vDbgPrintExWithPrefix("[ZYDIS] ", DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL, message, argList);
|
||||||
|
va_end(argList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Entry point */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
_Use_decl_annotations_
|
||||||
|
NTSTATUS
|
||||||
|
DriverEntry(
|
||||||
|
_In_ PDRIVER_OBJECT DriverObject,
|
||||||
|
_In_ PUNICODE_STRING RegistryPath
|
||||||
|
)
|
||||||
|
{
|
||||||
|
PAGED_CODE();
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(RegistryPath);
|
||||||
|
|
||||||
|
if (ZydisGetVersion() != ZYDIS_VERSION)
|
||||||
|
{
|
||||||
|
Print("Invalid zydis version\n");
|
||||||
|
return STATUS_UNKNOWN_REVISION;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the driver's image base and PE headers
|
||||||
|
ULONG_PTR imageBase;
|
||||||
|
RtlPcToFileHeader((PVOID)DriverObject->DriverInit, (PVOID*)&imageBase);
|
||||||
|
if (imageBase == 0)
|
||||||
|
return STATUS_DRIVER_ENTRYPOINT_NOT_FOUND;
|
||||||
|
const PIMAGE_NT_HEADERS ntHeaders = RtlImageNtHeader((PVOID)imageBase);
|
||||||
|
if (ntHeaders == NULL)
|
||||||
|
return STATUS_INVALID_IMAGE_FORMAT;
|
||||||
|
|
||||||
|
// Get the section headers of the INIT section
|
||||||
|
PIMAGE_SECTION_HEADER section = IMAGE_FIRST_SECTION(ntHeaders);
|
||||||
|
PIMAGE_SECTION_HEADER initSection = NULL;
|
||||||
|
for (USHORT i = 0; i < ntHeaders->FileHeader.NumberOfSections; ++i)
|
||||||
|
{
|
||||||
|
if (memcmp(section->Name, "INIT", sizeof("INIT") - 1) == 0)
|
||||||
|
{
|
||||||
|
initSection = section;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
section++;
|
||||||
|
}
|
||||||
|
if (initSection == NULL)
|
||||||
|
return STATUS_NOT_FOUND;
|
||||||
|
|
||||||
|
// Get the RVAs of the entry point and import directory. If the import directory lies within the INIT section,
|
||||||
|
// stop disassembling when its address is reached. Otherwise, disassemble until the end of the INIT section.
|
||||||
|
const ULONG entryPointRva = (ULONG)((ULONG_PTR)DriverObject->DriverInit - imageBase);
|
||||||
|
const ULONG importDirRva = ntHeaders->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT].VirtualAddress;
|
||||||
|
SIZE_T length = initSection->VirtualAddress + initSection->SizeOfRawData - entryPointRva;
|
||||||
|
if (importDirRva > entryPointRva && importDirRva > initSection->VirtualAddress &&
|
||||||
|
importDirRva < initSection->VirtualAddress + initSection->SizeOfRawData)
|
||||||
|
length = importDirRva - entryPointRva;
|
||||||
|
|
||||||
|
Print("Driver image base: 0x%p, size: 0x%X\n", (PVOID)imageBase, ntHeaders->OptionalHeader.SizeOfImage);
|
||||||
|
Print("Entry point RVA: 0x%X (0x%p)\n", entryPointRva, DriverObject->DriverInit);
|
||||||
|
|
||||||
|
// Initialize Zydis decoder and formatter
|
||||||
|
ZydisDecoder decoder;
|
||||||
|
#ifdef _M_AMD64
|
||||||
|
if (!ZYAN_SUCCESS(ZydisDecoderInit(&decoder, ZYDIS_MACHINE_MODE_LONG_64, ZYDIS_ADDRESS_WIDTH_64)))
|
||||||
|
#else
|
||||||
|
if (!ZYAN_SUCCESS(ZydisDecoderInit(&decoder, ZYDIS_MACHINE_MODE_LONG_COMPAT_32, ZYDIS_ADDRESS_WIDTH_32)))
|
||||||
|
#endif
|
||||||
|
return STATUS_DRIVER_INTERNAL_ERROR;
|
||||||
|
|
||||||
|
ZydisFormatter formatter;
|
||||||
|
if (!ZYAN_SUCCESS(ZydisFormatterInit(&formatter, ZYDIS_FORMATTER_STYLE_INTEL)))
|
||||||
|
return STATUS_DRIVER_INTERNAL_ERROR;
|
||||||
|
|
||||||
|
SIZE_T readOffset = 0;
|
||||||
|
ZydisDecodedInstruction instruction;
|
||||||
|
ZyanStatus status;
|
||||||
|
CHAR printBuffer[128];
|
||||||
|
|
||||||
|
// Start the decode loop
|
||||||
|
while ((status = ZydisDecoderDecodeBuffer(&decoder, (PVOID)(imageBase + entryPointRva + readOffset),
|
||||||
|
length - readOffset, &instruction)) != ZYDIS_STATUS_NO_MORE_DATA)
|
||||||
|
{
|
||||||
|
NT_ASSERT(ZYAN_SUCCESS(status));
|
||||||
|
if (!ZYAN_SUCCESS(status))
|
||||||
|
{
|
||||||
|
readOffset++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Format and print the instruction
|
||||||
|
const ZyanU64 instrAddress = (ZyanU64)(imageBase + entryPointRva + readOffset);
|
||||||
|
ZydisFormatterFormatInstruction(
|
||||||
|
&formatter, &instruction, printBuffer, sizeof(printBuffer), instrAddress);
|
||||||
|
Print("+%-4X 0x%-16llX\t\t%hs\n", (ULONG)readOffset, instrAddress, printBuffer);
|
||||||
|
|
||||||
|
readOffset += instruction.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Return an error status so that the driver does not have to be unloaded after running.
|
||||||
|
return STATUS_UNSUCCESSFUL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
12
files.dox
Normal file
12
files.dox
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
/** @dir include
|
||||||
|
* @brief Top-level include dir
|
||||||
|
*/
|
||||||
|
/** @dir include/Zydis
|
||||||
|
* @brief Zydis include dir
|
||||||
|
*/
|
||||||
|
/** @dir include/Zydis/Generated
|
||||||
|
* @brief Generated files
|
||||||
|
*/
|
||||||
|
/** @dir include/Zydis/Internal
|
||||||
|
* @brief Internal APIs
|
||||||
|
*/
|
237
include/Zydis/Decoder.h
Normal file
237
include/Zydis/Decoder.h
Normal file
|
@ -0,0 +1,237 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Functions for decoding instructions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DECODER_H
|
||||||
|
#define ZYDIS_DECODER_H
|
||||||
|
|
||||||
|
#include <Zycore/Types.h>
|
||||||
|
#include <Zycore/Defines.h>
|
||||||
|
#include <Zydis/DecoderTypes.h>
|
||||||
|
#include <Zydis/Status.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Decoder mode */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisDecoderMode` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisDecoderMode_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Enables minimal instruction decoding without semantic analysis.
|
||||||
|
*
|
||||||
|
* This mode provides access to the mnemonic, the instruction-length, the effective
|
||||||
|
* operand-size, the effective address-width, some attributes (e.g. `ZYDIS_ATTRIB_IS_RELATIVE`)
|
||||||
|
* and all of the information in the `raw` field of the `ZydisDecodedInstruction` struct.
|
||||||
|
*
|
||||||
|
* Operands, most attributes and other specific information (like `AVX` info) are not
|
||||||
|
* accessible in this mode.
|
||||||
|
*
|
||||||
|
* This mode is NOT enabled by default.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_MINIMAL,
|
||||||
|
/**
|
||||||
|
* Enables the `AMD`-branch mode.
|
||||||
|
*
|
||||||
|
* Intel ignores the operand-size override-prefix (`0x66`) for all branches with 32-bit
|
||||||
|
* immediates and forces the operand-size of the instruction to 64-bit in 64-bit mode.
|
||||||
|
* In `AMD`-branch mode `0x66` is not ignored and changes the operand-size and the size of the
|
||||||
|
* immediate to 16-bit.
|
||||||
|
*
|
||||||
|
* This mode is NOT enabled by default.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_AMD_BRANCHES,
|
||||||
|
/**
|
||||||
|
* Enables `KNC` compatibility-mode.
|
||||||
|
*
|
||||||
|
* `KNC` and `KNL+` chips are sharing opcodes and encodings for some mask-related instructions.
|
||||||
|
* Enable this mode to use the old `KNC` specifications (different mnemonics, operands, ..).
|
||||||
|
*
|
||||||
|
* This mode is NOT enabled by default.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_KNC,
|
||||||
|
/**
|
||||||
|
* Enables the `MPX` mode.
|
||||||
|
*
|
||||||
|
* The `MPX` isa-extension reuses (overrides) some of the widenop instruction opcodes.
|
||||||
|
*
|
||||||
|
* This mode is enabled by default.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_MPX,
|
||||||
|
/**
|
||||||
|
* Enables the `CET` mode.
|
||||||
|
*
|
||||||
|
* The `CET` isa-extension reuses (overrides) some of the widenop instruction opcodes.
|
||||||
|
*
|
||||||
|
* This mode is enabled by default.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_CET,
|
||||||
|
/**
|
||||||
|
* Enables the `LZCNT` mode.
|
||||||
|
*
|
||||||
|
* The `LZCNT` isa-extension reuses (overrides) some of the widenop instruction opcodes.
|
||||||
|
*
|
||||||
|
* This mode is enabled by default.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_LZCNT,
|
||||||
|
/**
|
||||||
|
* Enables the `TZCNT` mode.
|
||||||
|
*
|
||||||
|
* The `TZCNT` isa-extension reuses (overrides) some of the widenop instruction opcodes.
|
||||||
|
*
|
||||||
|
* This mode is enabled by default.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_TZCNT,
|
||||||
|
/**
|
||||||
|
* Enables the `WBNOINVD` mode.
|
||||||
|
*
|
||||||
|
* The `WBINVD` instruction is interpreted as `WBNOINVD` on ICL chips, if a `F3` prefix is
|
||||||
|
* used.
|
||||||
|
*
|
||||||
|
* This mode is disabled by default.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_WBNOINVD,
|
||||||
|
/**
|
||||||
|
* Enables the `CLDEMOTE` mode.
|
||||||
|
*
|
||||||
|
* The `CLDEMOTE` isa-extension reuses (overrides) some of the widenop instruction opcodes.
|
||||||
|
*
|
||||||
|
* This mode is enabled by default.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_CLDEMOTE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_MAX_VALUE = ZYDIS_DECODER_MODE_CLDEMOTE,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_DECODER_MODE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_DECODER_MODE_MAX_VALUE)
|
||||||
|
} ZydisDecoderMode;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Decoder struct */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisDecoder` struct.
|
||||||
|
*
|
||||||
|
* All fields in this struct should be considered as "private". Any changes may lead to unexpected
|
||||||
|
* behavior.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisDecoder_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The machine mode.
|
||||||
|
*/
|
||||||
|
ZydisMachineMode machine_mode;
|
||||||
|
/**
|
||||||
|
* The address width.
|
||||||
|
*/
|
||||||
|
ZydisAddressWidth address_width;
|
||||||
|
/**
|
||||||
|
* The decoder mode array.
|
||||||
|
*/
|
||||||
|
ZyanBool decoder_mode[ZYDIS_DECODER_MODE_MAX_VALUE + 1];
|
||||||
|
} ZydisDecoder;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @addtogroup decoder Decoder
|
||||||
|
* Functions allowing decoding of instruction bytes to a machine interpretable struct.
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes the given `ZydisDecoder` instance.
|
||||||
|
*
|
||||||
|
* @param decoder A pointer to the `ZydisDecoder` instance.
|
||||||
|
* @param machine_mode The machine mode.
|
||||||
|
* @param address_width The address width.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisDecoderInit(ZydisDecoder* decoder, ZydisMachineMode machine_mode,
|
||||||
|
ZydisAddressWidth address_width);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enables or disables the specified decoder-mode.
|
||||||
|
*
|
||||||
|
* @param decoder A pointer to the `ZydisDecoder` instance.
|
||||||
|
* @param mode The decoder mode.
|
||||||
|
* @param enabled `ZYAN_TRUE` to enable, or `ZYAN_FALSE` to disable the specified decoder-mode.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisDecoderEnableMode(ZydisDecoder* decoder, ZydisDecoderMode mode,
|
||||||
|
ZyanBool enabled);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Decodes the instruction in the given input `buffer`.
|
||||||
|
*
|
||||||
|
* @param decoder A pointer to the `ZydisDecoder` instance.
|
||||||
|
* @param buffer A pointer to the input buffer.
|
||||||
|
* @param length The length of the input buffer. Note that this can be bigger than the
|
||||||
|
* actual size of the instruction -- you don't have to know the size up
|
||||||
|
* front. This length is merely used to prevent Zydis from doing
|
||||||
|
* out-of-bounds reads on your buffer.
|
||||||
|
* @param instruction A pointer to the `ZydisDecodedInstruction` struct, that receives the
|
||||||
|
* details about the decoded instruction.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisDecoderDecodeBuffer(const ZydisDecoder* decoder,
|
||||||
|
const void* buffer, ZyanUSize length, ZydisDecodedInstruction* instruction);
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_DECODER_H */
|
1551
include/Zydis/DecoderTypes.h
Normal file
1551
include/Zydis/DecoderTypes.h
Normal file
File diff suppressed because it is too large
Load diff
1179
include/Zydis/Formatter.h
Normal file
1179
include/Zydis/Formatter.h
Normal file
File diff suppressed because it is too large
Load diff
306
include/Zydis/FormatterBuffer.h
Normal file
306
include/Zydis/FormatterBuffer.h
Normal file
|
@ -0,0 +1,306 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Implements the `ZydisFormatterToken` type and provides functions to use it.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_FORMATTER_TOKEN_H
|
||||||
|
#define ZYDIS_FORMATTER_TOKEN_H
|
||||||
|
|
||||||
|
#include <ZydisExportConfig.h>
|
||||||
|
#include <Zycore/String.h>
|
||||||
|
#include <Zycore/Types.h>
|
||||||
|
#include <Zydis/Status.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Constants */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Token types */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @biref Defines the `ZydisTokenType` data-type.
|
||||||
|
*/
|
||||||
|
typedef ZyanU8 ZydisTokenType;
|
||||||
|
|
||||||
|
#define ZYDIS_TOKEN_INVALID 0x00
|
||||||
|
/**
|
||||||
|
* A whitespace character.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_WHITESPACE 0x01
|
||||||
|
/**
|
||||||
|
* A delimiter character (like `','`, `':'`, `'+'`, `'-'`, `'*'`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_DELIMITER 0x02
|
||||||
|
/**
|
||||||
|
* An opening parenthesis character (like `'('`, `'['`, `'{'`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_PARENTHESIS_OPEN 0x03
|
||||||
|
/**
|
||||||
|
* A closing parenthesis character (like `')'`, `']'`, `'}'`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_PARENTHESIS_CLOSE 0x04
|
||||||
|
/**
|
||||||
|
* A prefix literal (like `"LOCK"`, `"REP"`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_PREFIX 0x05
|
||||||
|
/**
|
||||||
|
* A mnemonic literal (like `"MOV"`, `"VCMPPSD"`, `"LCALL"`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_MNEMONIC 0x06
|
||||||
|
/**
|
||||||
|
* A register literal (like `"RAX"`, `"DS"`, `"%ECX"`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_REGISTER 0x07
|
||||||
|
/**
|
||||||
|
* An absolute address literal (like `0x00400000`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_ADDRESS_ABS 0x08
|
||||||
|
/**
|
||||||
|
* A relative address literal (like `-0x100`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_ADDRESS_REL 0x09
|
||||||
|
/**
|
||||||
|
* A displacement literal (like `0xFFFFFFFF`, `-0x100`, `+0x1234`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_DISPLACEMENT 0x0A
|
||||||
|
/**
|
||||||
|
* An immediate literal (like `0xC0`, `-0x1234`, `$0x0000`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_IMMEDIATE 0x0B
|
||||||
|
/**
|
||||||
|
* A typecast literal (like `DWORD PTR`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_TYPECAST 0x0C
|
||||||
|
/**
|
||||||
|
* A decorator literal (like `"Z"`, `"1TO4"`).
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_DECORATOR 0x0D
|
||||||
|
/**
|
||||||
|
* A symbol literal.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_SYMBOL 0x0E
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The base for user-defined token types.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_TOKEN_USER 0x80
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Token */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisFormatterToken` struct.
|
||||||
|
*
|
||||||
|
* All fields in this struct should be considered as "private". Any changes may lead to unexpected
|
||||||
|
* behavior.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisFormatterToken_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The token type.
|
||||||
|
*/
|
||||||
|
ZydisTokenType type;
|
||||||
|
/**
|
||||||
|
* An offset to the next token, or `0`.
|
||||||
|
*/
|
||||||
|
ZyanU8 next;
|
||||||
|
} ZydisFormatterToken;
|
||||||
|
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisFormatterTokenConst` data-type.
|
||||||
|
*/
|
||||||
|
typedef const ZydisFormatterToken ZydisFormatterTokenConst;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Buffer */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisFormatterBuffer` struct.
|
||||||
|
*
|
||||||
|
* All fields in this struct should be considered as "private". Any changes may
|
||||||
|
* lead to unexpected behavior.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisFormatterBuffer_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* `ZYAN_TRUE`, if the buffer contains a token stream or `ZYAN_FALSE, if it
|
||||||
|
* contains a simple string.
|
||||||
|
*/
|
||||||
|
ZyanBool is_token_list;
|
||||||
|
/**
|
||||||
|
* The remaining capacity of the buffer.
|
||||||
|
*/
|
||||||
|
ZyanUSize capacity;
|
||||||
|
/**
|
||||||
|
* The `ZyanString` instance that refers to the literal value of the most
|
||||||
|
* recently added token.
|
||||||
|
*/
|
||||||
|
ZyanString string;
|
||||||
|
} ZydisFormatterBuffer;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Token */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the `type` and the string `value` of the given `token`.
|
||||||
|
*
|
||||||
|
* @param token A pointer to the `ZydisFormatterToken` struct.
|
||||||
|
* @param type Receives the token type.
|
||||||
|
* @param value Receives a pointer to the string value of the token.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisFormatterTokenGetValue(const ZydisFormatterToken* token,
|
||||||
|
ZydisTokenType* type, ZyanConstCharPointer* value);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtains the next `token` linked to the passed one.
|
||||||
|
*
|
||||||
|
* @param token Receives a pointer to the next `ZydisFormatterToken` struct
|
||||||
|
* linked to the passed one.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisFormatterTokenNext(ZydisFormatterTokenConst** token);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Buffer */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the current (most recently added) token.
|
||||||
|
*
|
||||||
|
* @param buffer A pointer to the `ZydisFormatterBuffer` struct.
|
||||||
|
* @param token Receives a pointer to the current token.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*
|
||||||
|
* This function returns `ZYAN_STATUS_INVALID_OPERATION`, if the buffer does not contain at least
|
||||||
|
* one token.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisFormatterBufferGetToken(const ZydisFormatterBuffer* buffer,
|
||||||
|
ZydisFormatterTokenConst** token);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the `ZyanString` instance associated with the given buffer.
|
||||||
|
*
|
||||||
|
* @param buffer A pointer to the `ZydisFormatterBuffer` struct.
|
||||||
|
* @param string Receives a pointer to the `ZyanString` instance associated with the given
|
||||||
|
* buffer.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*
|
||||||
|
* This function returns `ZYAN_STATUS_INVALID_OPERATION`, if the buffer does not contain at least
|
||||||
|
* one token.
|
||||||
|
*
|
||||||
|
* The returned string always refers to the literal value of the current (most recently added)
|
||||||
|
* token and will remain valid until the buffer is destroyed.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisFormatterBufferGetString(ZydisFormatterBuffer* buffer,
|
||||||
|
ZyanString** string);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends a new token to the `buffer`.
|
||||||
|
*
|
||||||
|
* @param buffer A pointer to the `ZydisFormatterBuffer` struct.
|
||||||
|
* @param type The type of the new token.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*
|
||||||
|
* Note that the `ZyanString` instance returned by `ZydisFormatterBufferGetString` will
|
||||||
|
* automatically be updated by calling this function.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisFormatterBufferAppend(ZydisFormatterBuffer* buffer,
|
||||||
|
ZydisTokenType type);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a snapshot of the buffer-state.
|
||||||
|
*
|
||||||
|
* @param buffer A pointer to the `ZydisFormatterBuffer` struct.
|
||||||
|
* @param state Receives a snapshot of the buffer-state.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*
|
||||||
|
* Note that the buffer-state is saved inside the buffer itself and thus becomes invalid as soon
|
||||||
|
* as the buffer gets overwritten or destroyed.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisFormatterBufferRemember(const ZydisFormatterBuffer* buffer,
|
||||||
|
ZyanUPointer* state);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Restores a previously saved buffer-state.
|
||||||
|
*
|
||||||
|
* @param buffer A pointer to the `ZydisFormatterBuffer` struct.
|
||||||
|
* @param state The buffer-state to restore.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*
|
||||||
|
* All tokens added after obtaining the given `state` snapshot will be removed. This function
|
||||||
|
* does NOT restore any string content.
|
||||||
|
*
|
||||||
|
* Note that the `ZyanString` instance returned by `ZydisFormatterBufferGetString` will
|
||||||
|
* automatically be updated by calling this function.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisFormatterBufferRestore(ZydisFormatterBuffer* buffer,
|
||||||
|
ZyanUPointer state);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_FORMATTER_TOKEN_H */
|
98
include/Zydis/Generated/EnumISAExt.h
Normal file
98
include/Zydis/Generated/EnumISAExt.h
Normal file
|
@ -0,0 +1,98 @@
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisISAExt` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisISAExt_
|
||||||
|
{
|
||||||
|
ZYDIS_ISA_EXT_INVALID,
|
||||||
|
ZYDIS_ISA_EXT_ADOX_ADCX,
|
||||||
|
ZYDIS_ISA_EXT_AES,
|
||||||
|
ZYDIS_ISA_EXT_AMD3DNOW,
|
||||||
|
ZYDIS_ISA_EXT_AMD3DNOW_PREFETCH,
|
||||||
|
ZYDIS_ISA_EXT_AMD_INVLPGB,
|
||||||
|
ZYDIS_ISA_EXT_AMX_BF16,
|
||||||
|
ZYDIS_ISA_EXT_AMX_INT8,
|
||||||
|
ZYDIS_ISA_EXT_AMX_TILE,
|
||||||
|
ZYDIS_ISA_EXT_AVX,
|
||||||
|
ZYDIS_ISA_EXT_AVX2,
|
||||||
|
ZYDIS_ISA_EXT_AVX2GATHER,
|
||||||
|
ZYDIS_ISA_EXT_AVX512EVEX,
|
||||||
|
ZYDIS_ISA_EXT_AVX512VEX,
|
||||||
|
ZYDIS_ISA_EXT_AVXAES,
|
||||||
|
ZYDIS_ISA_EXT_BASE,
|
||||||
|
ZYDIS_ISA_EXT_BMI1,
|
||||||
|
ZYDIS_ISA_EXT_BMI2,
|
||||||
|
ZYDIS_ISA_EXT_CET,
|
||||||
|
ZYDIS_ISA_EXT_CLDEMOTE,
|
||||||
|
ZYDIS_ISA_EXT_CLFLUSHOPT,
|
||||||
|
ZYDIS_ISA_EXT_CLFSH,
|
||||||
|
ZYDIS_ISA_EXT_CLWB,
|
||||||
|
ZYDIS_ISA_EXT_CLZERO,
|
||||||
|
ZYDIS_ISA_EXT_ENQCMD,
|
||||||
|
ZYDIS_ISA_EXT_F16C,
|
||||||
|
ZYDIS_ISA_EXT_FMA,
|
||||||
|
ZYDIS_ISA_EXT_FMA4,
|
||||||
|
ZYDIS_ISA_EXT_GFNI,
|
||||||
|
ZYDIS_ISA_EXT_INVPCID,
|
||||||
|
ZYDIS_ISA_EXT_KNC,
|
||||||
|
ZYDIS_ISA_EXT_KNCE,
|
||||||
|
ZYDIS_ISA_EXT_KNCV,
|
||||||
|
ZYDIS_ISA_EXT_LONGMODE,
|
||||||
|
ZYDIS_ISA_EXT_LZCNT,
|
||||||
|
ZYDIS_ISA_EXT_MCOMMIT,
|
||||||
|
ZYDIS_ISA_EXT_MMX,
|
||||||
|
ZYDIS_ISA_EXT_MONITOR,
|
||||||
|
ZYDIS_ISA_EXT_MONITORX,
|
||||||
|
ZYDIS_ISA_EXT_MOVBE,
|
||||||
|
ZYDIS_ISA_EXT_MOVDIR,
|
||||||
|
ZYDIS_ISA_EXT_MPX,
|
||||||
|
ZYDIS_ISA_EXT_PADLOCK,
|
||||||
|
ZYDIS_ISA_EXT_PAUSE,
|
||||||
|
ZYDIS_ISA_EXT_PCLMULQDQ,
|
||||||
|
ZYDIS_ISA_EXT_PCONFIG,
|
||||||
|
ZYDIS_ISA_EXT_PKU,
|
||||||
|
ZYDIS_ISA_EXT_PREFETCHWT1,
|
||||||
|
ZYDIS_ISA_EXT_PT,
|
||||||
|
ZYDIS_ISA_EXT_RDPID,
|
||||||
|
ZYDIS_ISA_EXT_RDPRU,
|
||||||
|
ZYDIS_ISA_EXT_RDRAND,
|
||||||
|
ZYDIS_ISA_EXT_RDSEED,
|
||||||
|
ZYDIS_ISA_EXT_RDTSCP,
|
||||||
|
ZYDIS_ISA_EXT_RDWRFSGS,
|
||||||
|
ZYDIS_ISA_EXT_RTM,
|
||||||
|
ZYDIS_ISA_EXT_SERIALIZE,
|
||||||
|
ZYDIS_ISA_EXT_SGX,
|
||||||
|
ZYDIS_ISA_EXT_SGX_ENCLV,
|
||||||
|
ZYDIS_ISA_EXT_SHA,
|
||||||
|
ZYDIS_ISA_EXT_SMAP,
|
||||||
|
ZYDIS_ISA_EXT_SMX,
|
||||||
|
ZYDIS_ISA_EXT_SNP,
|
||||||
|
ZYDIS_ISA_EXT_SSE,
|
||||||
|
ZYDIS_ISA_EXT_SSE2,
|
||||||
|
ZYDIS_ISA_EXT_SSE3,
|
||||||
|
ZYDIS_ISA_EXT_SSE4,
|
||||||
|
ZYDIS_ISA_EXT_SSE4A,
|
||||||
|
ZYDIS_ISA_EXT_SSSE3,
|
||||||
|
ZYDIS_ISA_EXT_SVM,
|
||||||
|
ZYDIS_ISA_EXT_TBM,
|
||||||
|
ZYDIS_ISA_EXT_TSX_LDTRK,
|
||||||
|
ZYDIS_ISA_EXT_VAES,
|
||||||
|
ZYDIS_ISA_EXT_VMFUNC,
|
||||||
|
ZYDIS_ISA_EXT_VPCLMULQDQ,
|
||||||
|
ZYDIS_ISA_EXT_VTX,
|
||||||
|
ZYDIS_ISA_EXT_WAITPKG,
|
||||||
|
ZYDIS_ISA_EXT_X87,
|
||||||
|
ZYDIS_ISA_EXT_XOP,
|
||||||
|
ZYDIS_ISA_EXT_XSAVE,
|
||||||
|
ZYDIS_ISA_EXT_XSAVEC,
|
||||||
|
ZYDIS_ISA_EXT_XSAVEOPT,
|
||||||
|
ZYDIS_ISA_EXT_XSAVES,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_ISA_EXT_MAX_VALUE = ZYDIS_ISA_EXT_XSAVES,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_ISA_EXT_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_ISA_EXT_MAX_VALUE)
|
||||||
|
} ZydisISAExt;
|
184
include/Zydis/Generated/EnumISASet.h
Normal file
184
include/Zydis/Generated/EnumISASet.h
Normal file
|
@ -0,0 +1,184 @@
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisISASet` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisISASet_
|
||||||
|
{
|
||||||
|
ZYDIS_ISA_SET_INVALID,
|
||||||
|
ZYDIS_ISA_SET_ADOX_ADCX,
|
||||||
|
ZYDIS_ISA_SET_AES,
|
||||||
|
ZYDIS_ISA_SET_AMD,
|
||||||
|
ZYDIS_ISA_SET_AMD3DNOW,
|
||||||
|
ZYDIS_ISA_SET_AMX_BF16,
|
||||||
|
ZYDIS_ISA_SET_AMX_INT8,
|
||||||
|
ZYDIS_ISA_SET_AMX_TILE,
|
||||||
|
ZYDIS_ISA_SET_AVX,
|
||||||
|
ZYDIS_ISA_SET_AVX2,
|
||||||
|
ZYDIS_ISA_SET_AVX2GATHER,
|
||||||
|
ZYDIS_ISA_SET_AVX512BW_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512BW_128N,
|
||||||
|
ZYDIS_ISA_SET_AVX512BW_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512BW_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512BW_KOP,
|
||||||
|
ZYDIS_ISA_SET_AVX512CD_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512CD_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512CD_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512DQ_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512DQ_128N,
|
||||||
|
ZYDIS_ISA_SET_AVX512DQ_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512DQ_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512DQ_KOP,
|
||||||
|
ZYDIS_ISA_SET_AVX512DQ_SCALAR,
|
||||||
|
ZYDIS_ISA_SET_AVX512ER_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512ER_SCALAR,
|
||||||
|
ZYDIS_ISA_SET_AVX512F_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512F_128N,
|
||||||
|
ZYDIS_ISA_SET_AVX512F_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512F_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512F_KOP,
|
||||||
|
ZYDIS_ISA_SET_AVX512F_SCALAR,
|
||||||
|
ZYDIS_ISA_SET_AVX512PF_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_4FMAPS_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_4FMAPS_SCALAR,
|
||||||
|
ZYDIS_ISA_SET_AVX512_4VNNIW_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_BF16_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_BF16_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_BF16_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_BITALG_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_BITALG_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_BITALG_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_GFNI_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_GFNI_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_GFNI_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_IFMA_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_IFMA_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_IFMA_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VAES_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VAES_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VAES_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VBMI2_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VBMI2_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VBMI2_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VBMI_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VBMI_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VBMI_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VNNI_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VNNI_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VNNI_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VP2INTERSECT_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VP2INTERSECT_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VP2INTERSECT_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VPCLMULQDQ_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VPCLMULQDQ_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VPCLMULQDQ_512,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VPOPCNTDQ_128,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VPOPCNTDQ_256,
|
||||||
|
ZYDIS_ISA_SET_AVX512_VPOPCNTDQ_512,
|
||||||
|
ZYDIS_ISA_SET_AVXAES,
|
||||||
|
ZYDIS_ISA_SET_AVX_GFNI,
|
||||||
|
ZYDIS_ISA_SET_BMI1,
|
||||||
|
ZYDIS_ISA_SET_BMI2,
|
||||||
|
ZYDIS_ISA_SET_CET,
|
||||||
|
ZYDIS_ISA_SET_CLDEMOTE,
|
||||||
|
ZYDIS_ISA_SET_CLFLUSHOPT,
|
||||||
|
ZYDIS_ISA_SET_CLFSH,
|
||||||
|
ZYDIS_ISA_SET_CLWB,
|
||||||
|
ZYDIS_ISA_SET_CLZERO,
|
||||||
|
ZYDIS_ISA_SET_CMOV,
|
||||||
|
ZYDIS_ISA_SET_CMPXCHG16B,
|
||||||
|
ZYDIS_ISA_SET_ENQCMD,
|
||||||
|
ZYDIS_ISA_SET_F16C,
|
||||||
|
ZYDIS_ISA_SET_FAT_NOP,
|
||||||
|
ZYDIS_ISA_SET_FCMOV,
|
||||||
|
ZYDIS_ISA_SET_FMA,
|
||||||
|
ZYDIS_ISA_SET_FMA4,
|
||||||
|
ZYDIS_ISA_SET_FXSAVE,
|
||||||
|
ZYDIS_ISA_SET_FXSAVE64,
|
||||||
|
ZYDIS_ISA_SET_GFNI,
|
||||||
|
ZYDIS_ISA_SET_I186,
|
||||||
|
ZYDIS_ISA_SET_I286PROTECTED,
|
||||||
|
ZYDIS_ISA_SET_I286REAL,
|
||||||
|
ZYDIS_ISA_SET_I386,
|
||||||
|
ZYDIS_ISA_SET_I486,
|
||||||
|
ZYDIS_ISA_SET_I486REAL,
|
||||||
|
ZYDIS_ISA_SET_I86,
|
||||||
|
ZYDIS_ISA_SET_INVPCID,
|
||||||
|
ZYDIS_ISA_SET_KNCE,
|
||||||
|
ZYDIS_ISA_SET_KNCJKBR,
|
||||||
|
ZYDIS_ISA_SET_KNCSTREAM,
|
||||||
|
ZYDIS_ISA_SET_KNCV,
|
||||||
|
ZYDIS_ISA_SET_KNC_MISC,
|
||||||
|
ZYDIS_ISA_SET_KNC_PF_HINT,
|
||||||
|
ZYDIS_ISA_SET_LAHF,
|
||||||
|
ZYDIS_ISA_SET_LONGMODE,
|
||||||
|
ZYDIS_ISA_SET_LZCNT,
|
||||||
|
ZYDIS_ISA_SET_MCOMMIT,
|
||||||
|
ZYDIS_ISA_SET_MONITOR,
|
||||||
|
ZYDIS_ISA_SET_MONITORX,
|
||||||
|
ZYDIS_ISA_SET_MOVBE,
|
||||||
|
ZYDIS_ISA_SET_MOVDIR,
|
||||||
|
ZYDIS_ISA_SET_MPX,
|
||||||
|
ZYDIS_ISA_SET_PADLOCK_ACE,
|
||||||
|
ZYDIS_ISA_SET_PADLOCK_PHE,
|
||||||
|
ZYDIS_ISA_SET_PADLOCK_PMM,
|
||||||
|
ZYDIS_ISA_SET_PADLOCK_RNG,
|
||||||
|
ZYDIS_ISA_SET_PAUSE,
|
||||||
|
ZYDIS_ISA_SET_PCLMULQDQ,
|
||||||
|
ZYDIS_ISA_SET_PCONFIG,
|
||||||
|
ZYDIS_ISA_SET_PENTIUMMMX,
|
||||||
|
ZYDIS_ISA_SET_PENTIUMREAL,
|
||||||
|
ZYDIS_ISA_SET_PKU,
|
||||||
|
ZYDIS_ISA_SET_POPCNT,
|
||||||
|
ZYDIS_ISA_SET_PPRO,
|
||||||
|
ZYDIS_ISA_SET_PREFETCHWT1,
|
||||||
|
ZYDIS_ISA_SET_PREFETCH_NOP,
|
||||||
|
ZYDIS_ISA_SET_PT,
|
||||||
|
ZYDIS_ISA_SET_RDPID,
|
||||||
|
ZYDIS_ISA_SET_RDPMC,
|
||||||
|
ZYDIS_ISA_SET_RDPRU,
|
||||||
|
ZYDIS_ISA_SET_RDRAND,
|
||||||
|
ZYDIS_ISA_SET_RDSEED,
|
||||||
|
ZYDIS_ISA_SET_RDTSCP,
|
||||||
|
ZYDIS_ISA_SET_RDWRFSGS,
|
||||||
|
ZYDIS_ISA_SET_RTM,
|
||||||
|
ZYDIS_ISA_SET_SERIALIZE,
|
||||||
|
ZYDIS_ISA_SET_SGX,
|
||||||
|
ZYDIS_ISA_SET_SGX_ENCLV,
|
||||||
|
ZYDIS_ISA_SET_SHA,
|
||||||
|
ZYDIS_ISA_SET_SMAP,
|
||||||
|
ZYDIS_ISA_SET_SMX,
|
||||||
|
ZYDIS_ISA_SET_SSE,
|
||||||
|
ZYDIS_ISA_SET_SSE2,
|
||||||
|
ZYDIS_ISA_SET_SSE2MMX,
|
||||||
|
ZYDIS_ISA_SET_SSE3,
|
||||||
|
ZYDIS_ISA_SET_SSE3X87,
|
||||||
|
ZYDIS_ISA_SET_SSE4,
|
||||||
|
ZYDIS_ISA_SET_SSE42,
|
||||||
|
ZYDIS_ISA_SET_SSE4A,
|
||||||
|
ZYDIS_ISA_SET_SSEMXCSR,
|
||||||
|
ZYDIS_ISA_SET_SSE_PREFETCH,
|
||||||
|
ZYDIS_ISA_SET_SSSE3,
|
||||||
|
ZYDIS_ISA_SET_SSSE3MMX,
|
||||||
|
ZYDIS_ISA_SET_SVM,
|
||||||
|
ZYDIS_ISA_SET_TBM,
|
||||||
|
ZYDIS_ISA_SET_TSX_LDTRK,
|
||||||
|
ZYDIS_ISA_SET_VAES,
|
||||||
|
ZYDIS_ISA_SET_VMFUNC,
|
||||||
|
ZYDIS_ISA_SET_VPCLMULQDQ,
|
||||||
|
ZYDIS_ISA_SET_VTX,
|
||||||
|
ZYDIS_ISA_SET_WAITPKG,
|
||||||
|
ZYDIS_ISA_SET_X87,
|
||||||
|
ZYDIS_ISA_SET_XOP,
|
||||||
|
ZYDIS_ISA_SET_XSAVE,
|
||||||
|
ZYDIS_ISA_SET_XSAVEC,
|
||||||
|
ZYDIS_ISA_SET_XSAVEOPT,
|
||||||
|
ZYDIS_ISA_SET_XSAVES,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_ISA_SET_MAX_VALUE = ZYDIS_ISA_SET_XSAVES,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_ISA_SET_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_ISA_SET_MAX_VALUE)
|
||||||
|
} ZydisISASet;
|
117
include/Zydis/Generated/EnumInstructionCategory.h
Normal file
117
include/Zydis/Generated/EnumInstructionCategory.h
Normal file
|
@ -0,0 +1,117 @@
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionCategory` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisInstructionCategory_
|
||||||
|
{
|
||||||
|
ZYDIS_CATEGORY_INVALID,
|
||||||
|
ZYDIS_CATEGORY_ADOX_ADCX,
|
||||||
|
ZYDIS_CATEGORY_AES,
|
||||||
|
ZYDIS_CATEGORY_AMD3DNOW,
|
||||||
|
ZYDIS_CATEGORY_AMX_TILE,
|
||||||
|
ZYDIS_CATEGORY_AVX,
|
||||||
|
ZYDIS_CATEGORY_AVX2,
|
||||||
|
ZYDIS_CATEGORY_AVX2GATHER,
|
||||||
|
ZYDIS_CATEGORY_AVX512,
|
||||||
|
ZYDIS_CATEGORY_AVX512_4FMAPS,
|
||||||
|
ZYDIS_CATEGORY_AVX512_4VNNIW,
|
||||||
|
ZYDIS_CATEGORY_AVX512_BITALG,
|
||||||
|
ZYDIS_CATEGORY_AVX512_VBMI,
|
||||||
|
ZYDIS_CATEGORY_AVX512_VP2INTERSECT,
|
||||||
|
ZYDIS_CATEGORY_BINARY,
|
||||||
|
ZYDIS_CATEGORY_BITBYTE,
|
||||||
|
ZYDIS_CATEGORY_BLEND,
|
||||||
|
ZYDIS_CATEGORY_BMI1,
|
||||||
|
ZYDIS_CATEGORY_BMI2,
|
||||||
|
ZYDIS_CATEGORY_BROADCAST,
|
||||||
|
ZYDIS_CATEGORY_CALL,
|
||||||
|
ZYDIS_CATEGORY_CET,
|
||||||
|
ZYDIS_CATEGORY_CLDEMOTE,
|
||||||
|
ZYDIS_CATEGORY_CLFLUSHOPT,
|
||||||
|
ZYDIS_CATEGORY_CLWB,
|
||||||
|
ZYDIS_CATEGORY_CLZERO,
|
||||||
|
ZYDIS_CATEGORY_CMOV,
|
||||||
|
ZYDIS_CATEGORY_COMPRESS,
|
||||||
|
ZYDIS_CATEGORY_COND_BR,
|
||||||
|
ZYDIS_CATEGORY_CONFLICT,
|
||||||
|
ZYDIS_CATEGORY_CONVERT,
|
||||||
|
ZYDIS_CATEGORY_DATAXFER,
|
||||||
|
ZYDIS_CATEGORY_DECIMAL,
|
||||||
|
ZYDIS_CATEGORY_ENQCMD,
|
||||||
|
ZYDIS_CATEGORY_EXPAND,
|
||||||
|
ZYDIS_CATEGORY_FCMOV,
|
||||||
|
ZYDIS_CATEGORY_FLAGOP,
|
||||||
|
ZYDIS_CATEGORY_FMA4,
|
||||||
|
ZYDIS_CATEGORY_GATHER,
|
||||||
|
ZYDIS_CATEGORY_GFNI,
|
||||||
|
ZYDIS_CATEGORY_IFMA,
|
||||||
|
ZYDIS_CATEGORY_INTERRUPT,
|
||||||
|
ZYDIS_CATEGORY_IO,
|
||||||
|
ZYDIS_CATEGORY_IOSTRINGOP,
|
||||||
|
ZYDIS_CATEGORY_KMASK,
|
||||||
|
ZYDIS_CATEGORY_KNC,
|
||||||
|
ZYDIS_CATEGORY_KNCMASK,
|
||||||
|
ZYDIS_CATEGORY_KNCSCALAR,
|
||||||
|
ZYDIS_CATEGORY_LOGICAL,
|
||||||
|
ZYDIS_CATEGORY_LOGICAL_FP,
|
||||||
|
ZYDIS_CATEGORY_LZCNT,
|
||||||
|
ZYDIS_CATEGORY_MISC,
|
||||||
|
ZYDIS_CATEGORY_MMX,
|
||||||
|
ZYDIS_CATEGORY_MOVDIR,
|
||||||
|
ZYDIS_CATEGORY_MPX,
|
||||||
|
ZYDIS_CATEGORY_NOP,
|
||||||
|
ZYDIS_CATEGORY_PADLOCK,
|
||||||
|
ZYDIS_CATEGORY_PCLMULQDQ,
|
||||||
|
ZYDIS_CATEGORY_PCONFIG,
|
||||||
|
ZYDIS_CATEGORY_PKU,
|
||||||
|
ZYDIS_CATEGORY_POP,
|
||||||
|
ZYDIS_CATEGORY_PREFETCH,
|
||||||
|
ZYDIS_CATEGORY_PREFETCHWT1,
|
||||||
|
ZYDIS_CATEGORY_PT,
|
||||||
|
ZYDIS_CATEGORY_PUSH,
|
||||||
|
ZYDIS_CATEGORY_RDPID,
|
||||||
|
ZYDIS_CATEGORY_RDPRU,
|
||||||
|
ZYDIS_CATEGORY_RDRAND,
|
||||||
|
ZYDIS_CATEGORY_RDSEED,
|
||||||
|
ZYDIS_CATEGORY_RDWRFSGS,
|
||||||
|
ZYDIS_CATEGORY_RET,
|
||||||
|
ZYDIS_CATEGORY_ROTATE,
|
||||||
|
ZYDIS_CATEGORY_SCATTER,
|
||||||
|
ZYDIS_CATEGORY_SEGOP,
|
||||||
|
ZYDIS_CATEGORY_SEMAPHORE,
|
||||||
|
ZYDIS_CATEGORY_SERIALIZE,
|
||||||
|
ZYDIS_CATEGORY_SETCC,
|
||||||
|
ZYDIS_CATEGORY_SGX,
|
||||||
|
ZYDIS_CATEGORY_SHA,
|
||||||
|
ZYDIS_CATEGORY_SHIFT,
|
||||||
|
ZYDIS_CATEGORY_SMAP,
|
||||||
|
ZYDIS_CATEGORY_SSE,
|
||||||
|
ZYDIS_CATEGORY_STRINGOP,
|
||||||
|
ZYDIS_CATEGORY_STTNI,
|
||||||
|
ZYDIS_CATEGORY_SYSCALL,
|
||||||
|
ZYDIS_CATEGORY_SYSRET,
|
||||||
|
ZYDIS_CATEGORY_SYSTEM,
|
||||||
|
ZYDIS_CATEGORY_TBM,
|
||||||
|
ZYDIS_CATEGORY_TSX_LDTRK,
|
||||||
|
ZYDIS_CATEGORY_UFMA,
|
||||||
|
ZYDIS_CATEGORY_UNCOND_BR,
|
||||||
|
ZYDIS_CATEGORY_VAES,
|
||||||
|
ZYDIS_CATEGORY_VBMI2,
|
||||||
|
ZYDIS_CATEGORY_VFMA,
|
||||||
|
ZYDIS_CATEGORY_VPCLMULQDQ,
|
||||||
|
ZYDIS_CATEGORY_VTX,
|
||||||
|
ZYDIS_CATEGORY_WAITPKG,
|
||||||
|
ZYDIS_CATEGORY_WIDENOP,
|
||||||
|
ZYDIS_CATEGORY_X87_ALU,
|
||||||
|
ZYDIS_CATEGORY_XOP,
|
||||||
|
ZYDIS_CATEGORY_XSAVE,
|
||||||
|
ZYDIS_CATEGORY_XSAVEOPT,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_CATEGORY_MAX_VALUE = ZYDIS_CATEGORY_XSAVEOPT,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_CATEGORY_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_CATEGORY_MAX_VALUE)
|
||||||
|
} ZydisInstructionCategory;
|
1643
include/Zydis/Generated/EnumMnemonic.h
Normal file
1643
include/Zydis/Generated/EnumMnemonic.h
Normal file
File diff suppressed because it is too large
Load diff
301
include/Zydis/Generated/EnumRegister.h
Normal file
301
include/Zydis/Generated/EnumRegister.h
Normal file
|
@ -0,0 +1,301 @@
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisRegister` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisRegister_
|
||||||
|
{
|
||||||
|
ZYDIS_REGISTER_NONE,
|
||||||
|
|
||||||
|
// General purpose registers 8-bit
|
||||||
|
ZYDIS_REGISTER_AL,
|
||||||
|
ZYDIS_REGISTER_CL,
|
||||||
|
ZYDIS_REGISTER_DL,
|
||||||
|
ZYDIS_REGISTER_BL,
|
||||||
|
ZYDIS_REGISTER_AH,
|
||||||
|
ZYDIS_REGISTER_CH,
|
||||||
|
ZYDIS_REGISTER_DH,
|
||||||
|
ZYDIS_REGISTER_BH,
|
||||||
|
ZYDIS_REGISTER_SPL,
|
||||||
|
ZYDIS_REGISTER_BPL,
|
||||||
|
ZYDIS_REGISTER_SIL,
|
||||||
|
ZYDIS_REGISTER_DIL,
|
||||||
|
ZYDIS_REGISTER_R8B,
|
||||||
|
ZYDIS_REGISTER_R9B,
|
||||||
|
ZYDIS_REGISTER_R10B,
|
||||||
|
ZYDIS_REGISTER_R11B,
|
||||||
|
ZYDIS_REGISTER_R12B,
|
||||||
|
ZYDIS_REGISTER_R13B,
|
||||||
|
ZYDIS_REGISTER_R14B,
|
||||||
|
ZYDIS_REGISTER_R15B,
|
||||||
|
// General purpose registers 16-bit
|
||||||
|
ZYDIS_REGISTER_AX,
|
||||||
|
ZYDIS_REGISTER_CX,
|
||||||
|
ZYDIS_REGISTER_DX,
|
||||||
|
ZYDIS_REGISTER_BX,
|
||||||
|
ZYDIS_REGISTER_SP,
|
||||||
|
ZYDIS_REGISTER_BP,
|
||||||
|
ZYDIS_REGISTER_SI,
|
||||||
|
ZYDIS_REGISTER_DI,
|
||||||
|
ZYDIS_REGISTER_R8W,
|
||||||
|
ZYDIS_REGISTER_R9W,
|
||||||
|
ZYDIS_REGISTER_R10W,
|
||||||
|
ZYDIS_REGISTER_R11W,
|
||||||
|
ZYDIS_REGISTER_R12W,
|
||||||
|
ZYDIS_REGISTER_R13W,
|
||||||
|
ZYDIS_REGISTER_R14W,
|
||||||
|
ZYDIS_REGISTER_R15W,
|
||||||
|
// General purpose registers 32-bit
|
||||||
|
ZYDIS_REGISTER_EAX,
|
||||||
|
ZYDIS_REGISTER_ECX,
|
||||||
|
ZYDIS_REGISTER_EDX,
|
||||||
|
ZYDIS_REGISTER_EBX,
|
||||||
|
ZYDIS_REGISTER_ESP,
|
||||||
|
ZYDIS_REGISTER_EBP,
|
||||||
|
ZYDIS_REGISTER_ESI,
|
||||||
|
ZYDIS_REGISTER_EDI,
|
||||||
|
ZYDIS_REGISTER_R8D,
|
||||||
|
ZYDIS_REGISTER_R9D,
|
||||||
|
ZYDIS_REGISTER_R10D,
|
||||||
|
ZYDIS_REGISTER_R11D,
|
||||||
|
ZYDIS_REGISTER_R12D,
|
||||||
|
ZYDIS_REGISTER_R13D,
|
||||||
|
ZYDIS_REGISTER_R14D,
|
||||||
|
ZYDIS_REGISTER_R15D,
|
||||||
|
// General purpose registers 64-bit
|
||||||
|
ZYDIS_REGISTER_RAX,
|
||||||
|
ZYDIS_REGISTER_RCX,
|
||||||
|
ZYDIS_REGISTER_RDX,
|
||||||
|
ZYDIS_REGISTER_RBX,
|
||||||
|
ZYDIS_REGISTER_RSP,
|
||||||
|
ZYDIS_REGISTER_RBP,
|
||||||
|
ZYDIS_REGISTER_RSI,
|
||||||
|
ZYDIS_REGISTER_RDI,
|
||||||
|
ZYDIS_REGISTER_R8,
|
||||||
|
ZYDIS_REGISTER_R9,
|
||||||
|
ZYDIS_REGISTER_R10,
|
||||||
|
ZYDIS_REGISTER_R11,
|
||||||
|
ZYDIS_REGISTER_R12,
|
||||||
|
ZYDIS_REGISTER_R13,
|
||||||
|
ZYDIS_REGISTER_R14,
|
||||||
|
ZYDIS_REGISTER_R15,
|
||||||
|
// Floating point legacy registers
|
||||||
|
ZYDIS_REGISTER_ST0,
|
||||||
|
ZYDIS_REGISTER_ST1,
|
||||||
|
ZYDIS_REGISTER_ST2,
|
||||||
|
ZYDIS_REGISTER_ST3,
|
||||||
|
ZYDIS_REGISTER_ST4,
|
||||||
|
ZYDIS_REGISTER_ST5,
|
||||||
|
ZYDIS_REGISTER_ST6,
|
||||||
|
ZYDIS_REGISTER_ST7,
|
||||||
|
ZYDIS_REGISTER_X87CONTROL,
|
||||||
|
ZYDIS_REGISTER_X87STATUS,
|
||||||
|
ZYDIS_REGISTER_X87TAG,
|
||||||
|
// Floating point multimedia registers
|
||||||
|
ZYDIS_REGISTER_MM0,
|
||||||
|
ZYDIS_REGISTER_MM1,
|
||||||
|
ZYDIS_REGISTER_MM2,
|
||||||
|
ZYDIS_REGISTER_MM3,
|
||||||
|
ZYDIS_REGISTER_MM4,
|
||||||
|
ZYDIS_REGISTER_MM5,
|
||||||
|
ZYDIS_REGISTER_MM6,
|
||||||
|
ZYDIS_REGISTER_MM7,
|
||||||
|
// Floating point vector registers 128-bit
|
||||||
|
ZYDIS_REGISTER_XMM0,
|
||||||
|
ZYDIS_REGISTER_XMM1,
|
||||||
|
ZYDIS_REGISTER_XMM2,
|
||||||
|
ZYDIS_REGISTER_XMM3,
|
||||||
|
ZYDIS_REGISTER_XMM4,
|
||||||
|
ZYDIS_REGISTER_XMM5,
|
||||||
|
ZYDIS_REGISTER_XMM6,
|
||||||
|
ZYDIS_REGISTER_XMM7,
|
||||||
|
ZYDIS_REGISTER_XMM8,
|
||||||
|
ZYDIS_REGISTER_XMM9,
|
||||||
|
ZYDIS_REGISTER_XMM10,
|
||||||
|
ZYDIS_REGISTER_XMM11,
|
||||||
|
ZYDIS_REGISTER_XMM12,
|
||||||
|
ZYDIS_REGISTER_XMM13,
|
||||||
|
ZYDIS_REGISTER_XMM14,
|
||||||
|
ZYDIS_REGISTER_XMM15,
|
||||||
|
ZYDIS_REGISTER_XMM16,
|
||||||
|
ZYDIS_REGISTER_XMM17,
|
||||||
|
ZYDIS_REGISTER_XMM18,
|
||||||
|
ZYDIS_REGISTER_XMM19,
|
||||||
|
ZYDIS_REGISTER_XMM20,
|
||||||
|
ZYDIS_REGISTER_XMM21,
|
||||||
|
ZYDIS_REGISTER_XMM22,
|
||||||
|
ZYDIS_REGISTER_XMM23,
|
||||||
|
ZYDIS_REGISTER_XMM24,
|
||||||
|
ZYDIS_REGISTER_XMM25,
|
||||||
|
ZYDIS_REGISTER_XMM26,
|
||||||
|
ZYDIS_REGISTER_XMM27,
|
||||||
|
ZYDIS_REGISTER_XMM28,
|
||||||
|
ZYDIS_REGISTER_XMM29,
|
||||||
|
ZYDIS_REGISTER_XMM30,
|
||||||
|
ZYDIS_REGISTER_XMM31,
|
||||||
|
// Floating point vector registers 256-bit
|
||||||
|
ZYDIS_REGISTER_YMM0,
|
||||||
|
ZYDIS_REGISTER_YMM1,
|
||||||
|
ZYDIS_REGISTER_YMM2,
|
||||||
|
ZYDIS_REGISTER_YMM3,
|
||||||
|
ZYDIS_REGISTER_YMM4,
|
||||||
|
ZYDIS_REGISTER_YMM5,
|
||||||
|
ZYDIS_REGISTER_YMM6,
|
||||||
|
ZYDIS_REGISTER_YMM7,
|
||||||
|
ZYDIS_REGISTER_YMM8,
|
||||||
|
ZYDIS_REGISTER_YMM9,
|
||||||
|
ZYDIS_REGISTER_YMM10,
|
||||||
|
ZYDIS_REGISTER_YMM11,
|
||||||
|
ZYDIS_REGISTER_YMM12,
|
||||||
|
ZYDIS_REGISTER_YMM13,
|
||||||
|
ZYDIS_REGISTER_YMM14,
|
||||||
|
ZYDIS_REGISTER_YMM15,
|
||||||
|
ZYDIS_REGISTER_YMM16,
|
||||||
|
ZYDIS_REGISTER_YMM17,
|
||||||
|
ZYDIS_REGISTER_YMM18,
|
||||||
|
ZYDIS_REGISTER_YMM19,
|
||||||
|
ZYDIS_REGISTER_YMM20,
|
||||||
|
ZYDIS_REGISTER_YMM21,
|
||||||
|
ZYDIS_REGISTER_YMM22,
|
||||||
|
ZYDIS_REGISTER_YMM23,
|
||||||
|
ZYDIS_REGISTER_YMM24,
|
||||||
|
ZYDIS_REGISTER_YMM25,
|
||||||
|
ZYDIS_REGISTER_YMM26,
|
||||||
|
ZYDIS_REGISTER_YMM27,
|
||||||
|
ZYDIS_REGISTER_YMM28,
|
||||||
|
ZYDIS_REGISTER_YMM29,
|
||||||
|
ZYDIS_REGISTER_YMM30,
|
||||||
|
ZYDIS_REGISTER_YMM31,
|
||||||
|
// Floating point vector registers 512-bit
|
||||||
|
ZYDIS_REGISTER_ZMM0,
|
||||||
|
ZYDIS_REGISTER_ZMM1,
|
||||||
|
ZYDIS_REGISTER_ZMM2,
|
||||||
|
ZYDIS_REGISTER_ZMM3,
|
||||||
|
ZYDIS_REGISTER_ZMM4,
|
||||||
|
ZYDIS_REGISTER_ZMM5,
|
||||||
|
ZYDIS_REGISTER_ZMM6,
|
||||||
|
ZYDIS_REGISTER_ZMM7,
|
||||||
|
ZYDIS_REGISTER_ZMM8,
|
||||||
|
ZYDIS_REGISTER_ZMM9,
|
||||||
|
ZYDIS_REGISTER_ZMM10,
|
||||||
|
ZYDIS_REGISTER_ZMM11,
|
||||||
|
ZYDIS_REGISTER_ZMM12,
|
||||||
|
ZYDIS_REGISTER_ZMM13,
|
||||||
|
ZYDIS_REGISTER_ZMM14,
|
||||||
|
ZYDIS_REGISTER_ZMM15,
|
||||||
|
ZYDIS_REGISTER_ZMM16,
|
||||||
|
ZYDIS_REGISTER_ZMM17,
|
||||||
|
ZYDIS_REGISTER_ZMM18,
|
||||||
|
ZYDIS_REGISTER_ZMM19,
|
||||||
|
ZYDIS_REGISTER_ZMM20,
|
||||||
|
ZYDIS_REGISTER_ZMM21,
|
||||||
|
ZYDIS_REGISTER_ZMM22,
|
||||||
|
ZYDIS_REGISTER_ZMM23,
|
||||||
|
ZYDIS_REGISTER_ZMM24,
|
||||||
|
ZYDIS_REGISTER_ZMM25,
|
||||||
|
ZYDIS_REGISTER_ZMM26,
|
||||||
|
ZYDIS_REGISTER_ZMM27,
|
||||||
|
ZYDIS_REGISTER_ZMM28,
|
||||||
|
ZYDIS_REGISTER_ZMM29,
|
||||||
|
ZYDIS_REGISTER_ZMM30,
|
||||||
|
ZYDIS_REGISTER_ZMM31,
|
||||||
|
// Matrix registers
|
||||||
|
ZYDIS_REGISTER_TMM0,
|
||||||
|
ZYDIS_REGISTER_TMM1,
|
||||||
|
ZYDIS_REGISTER_TMM2,
|
||||||
|
ZYDIS_REGISTER_TMM3,
|
||||||
|
ZYDIS_REGISTER_TMM4,
|
||||||
|
ZYDIS_REGISTER_TMM5,
|
||||||
|
ZYDIS_REGISTER_TMM6,
|
||||||
|
ZYDIS_REGISTER_TMM7,
|
||||||
|
// Flags registers
|
||||||
|
ZYDIS_REGISTER_FLAGS,
|
||||||
|
ZYDIS_REGISTER_EFLAGS,
|
||||||
|
ZYDIS_REGISTER_RFLAGS,
|
||||||
|
// Instruction-pointer registers
|
||||||
|
ZYDIS_REGISTER_IP,
|
||||||
|
ZYDIS_REGISTER_EIP,
|
||||||
|
ZYDIS_REGISTER_RIP,
|
||||||
|
// Segment registers
|
||||||
|
ZYDIS_REGISTER_ES,
|
||||||
|
ZYDIS_REGISTER_CS,
|
||||||
|
ZYDIS_REGISTER_SS,
|
||||||
|
ZYDIS_REGISTER_DS,
|
||||||
|
ZYDIS_REGISTER_FS,
|
||||||
|
ZYDIS_REGISTER_GS,
|
||||||
|
// Table registers
|
||||||
|
ZYDIS_REGISTER_GDTR,
|
||||||
|
ZYDIS_REGISTER_LDTR,
|
||||||
|
ZYDIS_REGISTER_IDTR,
|
||||||
|
ZYDIS_REGISTER_TR,
|
||||||
|
// Test registers
|
||||||
|
ZYDIS_REGISTER_TR0,
|
||||||
|
ZYDIS_REGISTER_TR1,
|
||||||
|
ZYDIS_REGISTER_TR2,
|
||||||
|
ZYDIS_REGISTER_TR3,
|
||||||
|
ZYDIS_REGISTER_TR4,
|
||||||
|
ZYDIS_REGISTER_TR5,
|
||||||
|
ZYDIS_REGISTER_TR6,
|
||||||
|
ZYDIS_REGISTER_TR7,
|
||||||
|
// Control registers
|
||||||
|
ZYDIS_REGISTER_CR0,
|
||||||
|
ZYDIS_REGISTER_CR1,
|
||||||
|
ZYDIS_REGISTER_CR2,
|
||||||
|
ZYDIS_REGISTER_CR3,
|
||||||
|
ZYDIS_REGISTER_CR4,
|
||||||
|
ZYDIS_REGISTER_CR5,
|
||||||
|
ZYDIS_REGISTER_CR6,
|
||||||
|
ZYDIS_REGISTER_CR7,
|
||||||
|
ZYDIS_REGISTER_CR8,
|
||||||
|
ZYDIS_REGISTER_CR9,
|
||||||
|
ZYDIS_REGISTER_CR10,
|
||||||
|
ZYDIS_REGISTER_CR11,
|
||||||
|
ZYDIS_REGISTER_CR12,
|
||||||
|
ZYDIS_REGISTER_CR13,
|
||||||
|
ZYDIS_REGISTER_CR14,
|
||||||
|
ZYDIS_REGISTER_CR15,
|
||||||
|
// Debug registers
|
||||||
|
ZYDIS_REGISTER_DR0,
|
||||||
|
ZYDIS_REGISTER_DR1,
|
||||||
|
ZYDIS_REGISTER_DR2,
|
||||||
|
ZYDIS_REGISTER_DR3,
|
||||||
|
ZYDIS_REGISTER_DR4,
|
||||||
|
ZYDIS_REGISTER_DR5,
|
||||||
|
ZYDIS_REGISTER_DR6,
|
||||||
|
ZYDIS_REGISTER_DR7,
|
||||||
|
ZYDIS_REGISTER_DR8,
|
||||||
|
ZYDIS_REGISTER_DR9,
|
||||||
|
ZYDIS_REGISTER_DR10,
|
||||||
|
ZYDIS_REGISTER_DR11,
|
||||||
|
ZYDIS_REGISTER_DR12,
|
||||||
|
ZYDIS_REGISTER_DR13,
|
||||||
|
ZYDIS_REGISTER_DR14,
|
||||||
|
ZYDIS_REGISTER_DR15,
|
||||||
|
// Mask registers
|
||||||
|
ZYDIS_REGISTER_K0,
|
||||||
|
ZYDIS_REGISTER_K1,
|
||||||
|
ZYDIS_REGISTER_K2,
|
||||||
|
ZYDIS_REGISTER_K3,
|
||||||
|
ZYDIS_REGISTER_K4,
|
||||||
|
ZYDIS_REGISTER_K5,
|
||||||
|
ZYDIS_REGISTER_K6,
|
||||||
|
ZYDIS_REGISTER_K7,
|
||||||
|
// Bound registers
|
||||||
|
ZYDIS_REGISTER_BND0,
|
||||||
|
ZYDIS_REGISTER_BND1,
|
||||||
|
ZYDIS_REGISTER_BND2,
|
||||||
|
ZYDIS_REGISTER_BND3,
|
||||||
|
ZYDIS_REGISTER_BNDCFG,
|
||||||
|
ZYDIS_REGISTER_BNDSTATUS,
|
||||||
|
// Uncategorized
|
||||||
|
ZYDIS_REGISTER_MXCSR,
|
||||||
|
ZYDIS_REGISTER_PKRU,
|
||||||
|
ZYDIS_REGISTER_XCR0,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGISTER_MAX_VALUE = ZYDIS_REGISTER_XCR0,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGISTER_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_REGISTER_MAX_VALUE)
|
||||||
|
} ZydisRegister;
|
331
include/Zydis/Internal/DecoderData.h
Normal file
331
include/Zydis/Internal/DecoderData.h
Normal file
|
@ -0,0 +1,331 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_INTERNAL_DECODERDATA_H
|
||||||
|
#define ZYDIS_INTERNAL_DECODERDATA_H
|
||||||
|
|
||||||
|
#include <Zycore/Defines.h>
|
||||||
|
#include <Zydis/DecoderTypes.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
// MSVC does not like types other than (un-)signed int for bit-fields
|
||||||
|
#ifdef ZYAN_MSVC
|
||||||
|
# pragma warning(push)
|
||||||
|
# pragma warning(disable:4214)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Decoder tree */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisDecoderTreeNodeType` data-type.
|
||||||
|
*/
|
||||||
|
typedef ZyanU8 ZydisDecoderTreeNodeType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Values that represent zydis decoder tree node types.
|
||||||
|
*/
|
||||||
|
enum ZydisDecoderTreeNodeTypes
|
||||||
|
{
|
||||||
|
ZYDIS_NODETYPE_INVALID = 0x00,
|
||||||
|
/**
|
||||||
|
* Reference to an instruction-definition.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_DEFINITION_MASK = 0x80,
|
||||||
|
/**
|
||||||
|
* Reference to an XOP-map filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_XOP = 0x01,
|
||||||
|
/**
|
||||||
|
* Reference to an VEX-map filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_VEX = 0x02,
|
||||||
|
/**
|
||||||
|
* Reference to an EVEX/MVEX-map filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_EMVEX = 0x03,
|
||||||
|
/**
|
||||||
|
* Reference to an opcode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_OPCODE = 0x04,
|
||||||
|
/**
|
||||||
|
* Reference to an instruction-mode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODE = 0x05,
|
||||||
|
/**
|
||||||
|
* Reference to an compacted instruction-mode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODE_COMPACT = 0x06,
|
||||||
|
/**
|
||||||
|
* Reference to a ModRM.mod filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODRM_MOD = 0x07,
|
||||||
|
/**
|
||||||
|
* Reference to a compacted ModRM.mod filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODRM_MOD_COMPACT = 0x08,
|
||||||
|
/**
|
||||||
|
* Reference to a ModRM.reg filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODRM_REG = 0x09,
|
||||||
|
/**
|
||||||
|
* Reference to a ModRM.rm filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODRM_RM = 0x0A,
|
||||||
|
/**
|
||||||
|
* Reference to a PrefixGroup1 filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_PREFIX_GROUP1 = 0x0B,
|
||||||
|
/**
|
||||||
|
* Reference to a mandatory-prefix filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MANDATORY_PREFIX = 0x0C,
|
||||||
|
/**
|
||||||
|
* Reference to an operand-size filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_OPERAND_SIZE = 0x0D,
|
||||||
|
/**
|
||||||
|
* Reference to an address-size filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_ADDRESS_SIZE = 0x0E,
|
||||||
|
/**
|
||||||
|
* Reference to a vector-length filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_VECTOR_LENGTH = 0x0F,
|
||||||
|
/**
|
||||||
|
* Reference to an REX/VEX/EVEX.W filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_REX_W = 0x10,
|
||||||
|
/**
|
||||||
|
* Reference to an REX/VEX/EVEX.B filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_REX_B = 0x11,
|
||||||
|
/**
|
||||||
|
* Reference to an EVEX.b filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_EVEX_B = 0x12,
|
||||||
|
/**
|
||||||
|
* Reference to an MVEX.E filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MVEX_E = 0x13,
|
||||||
|
/**
|
||||||
|
* Reference to a AMD-mode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODE_AMD = 0x14,
|
||||||
|
/**
|
||||||
|
* Reference to a KNC-mode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODE_KNC = 0x15,
|
||||||
|
/**
|
||||||
|
* Reference to a MPX-mode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODE_MPX = 0x16,
|
||||||
|
/**
|
||||||
|
* Reference to a CET-mode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODE_CET = 0x17,
|
||||||
|
/**
|
||||||
|
* Reference to a LZCNT-mode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODE_LZCNT = 0x18,
|
||||||
|
/**
|
||||||
|
* Reference to a TZCNT-mode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODE_TZCNT = 0x19,
|
||||||
|
/**
|
||||||
|
* Reference to a WBNOINVD-mode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODE_WBNOINVD = 0x1A,
|
||||||
|
/**
|
||||||
|
* Reference to a CLDEMOTE-mode filter.
|
||||||
|
*/
|
||||||
|
ZYDIS_NODETYPE_FILTER_MODE_CLDEMOTE = 0x1B
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisDecoderTreeNodeValue` data-type.
|
||||||
|
*/
|
||||||
|
typedef ZyanU16 ZydisDecoderTreeNodeValue;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisDecoderTreeNode` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisDecoderTreeNode_
|
||||||
|
{
|
||||||
|
ZydisDecoderTreeNodeType type;
|
||||||
|
ZydisDecoderTreeNodeValue value;
|
||||||
|
} ZydisDecoderTreeNode;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
#ifdef ZYAN_MSVC
|
||||||
|
# pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Physical instruction encoding info */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionEncodingFlags` data-type.
|
||||||
|
*/
|
||||||
|
typedef ZyanU8 ZydisInstructionEncodingFlags;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The instruction has an optional modrm byte.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_INSTR_ENC_FLAG_HAS_MODRM 0x01
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The instruction has an optional displacement value.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_INSTR_ENC_FLAG_HAS_DISP 0x02
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The instruction has an optional immediate value.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_INSTR_ENC_FLAG_HAS_IMM0 0x04
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The instruction has a second optional immediate value.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_INSTR_ENC_FLAG_HAS_IMM1 0x08
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The instruction ignores the value of `modrm.mod` and always assumes `modrm.mod == 3`
|
||||||
|
* ("reg, reg" - form).
|
||||||
|
*
|
||||||
|
* Instructions with this flag can't have a SIB byte or a displacement value.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_INSTR_ENC_FLAG_FORCE_REG_FORM 0x10
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionEncodingInfo` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisInstructionEncodingInfo_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Contains flags with information about the physical instruction-encoding.
|
||||||
|
*/
|
||||||
|
ZydisInstructionEncodingFlags flags;
|
||||||
|
/**
|
||||||
|
* Displacement info.
|
||||||
|
*/
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The size of the displacement value.
|
||||||
|
*/
|
||||||
|
ZyanU8 size[3];
|
||||||
|
} disp;
|
||||||
|
/**
|
||||||
|
* Immediate info.
|
||||||
|
*/
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The size of the immediate value.
|
||||||
|
*/
|
||||||
|
ZyanU8 size[3];
|
||||||
|
/**
|
||||||
|
* Signals, if the value is signed.
|
||||||
|
*/
|
||||||
|
ZyanBool is_signed;
|
||||||
|
/**
|
||||||
|
* Signals, if the value is a relative offset.
|
||||||
|
*/
|
||||||
|
ZyanBool is_relative;
|
||||||
|
} imm[2];
|
||||||
|
} ZydisInstructionEncodingInfo;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Decoder tree */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
extern const ZydisDecoderTreeNode zydis_decoder_tree_root;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the root node of the instruction tree.
|
||||||
|
*
|
||||||
|
* @return The root node of the instruction tree.
|
||||||
|
*/
|
||||||
|
ZYAN_INLINE const ZydisDecoderTreeNode* ZydisDecoderTreeGetRootNode(void)
|
||||||
|
{
|
||||||
|
return &zydis_decoder_tree_root;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the child node of `parent` specified by `index`.
|
||||||
|
*
|
||||||
|
* @param parent The parent node.
|
||||||
|
* @param index The index of the child node to retrieve.
|
||||||
|
*
|
||||||
|
* @return The specified child node.
|
||||||
|
*/
|
||||||
|
ZYDIS_NO_EXPORT const ZydisDecoderTreeNode* ZydisDecoderTreeGetChildNode(
|
||||||
|
const ZydisDecoderTreeNode* parent, ZyanU16 index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns information about optional instruction parts (like modrm, displacement or
|
||||||
|
* immediates) for the instruction that is linked to the given `node`.
|
||||||
|
*
|
||||||
|
* @param node The instruction definition node.
|
||||||
|
* @param info A pointer to the `ZydisInstructionParts` struct.
|
||||||
|
*/
|
||||||
|
ZYDIS_NO_EXPORT void ZydisGetInstructionEncodingInfo(const ZydisDecoderTreeNode* node,
|
||||||
|
const ZydisInstructionEncodingInfo** info);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_INTERNAL_DECODERDATA_H */
|
178
include/Zydis/Internal/FormatterATT.h
Normal file
178
include/Zydis/Internal/FormatterATT.h
Normal file
|
@ -0,0 +1,178 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd, Joel Hoener
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Implements the `AT&T` style instruction-formatter.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_FORMATTER_ATT_H
|
||||||
|
#define ZYDIS_FORMATTER_ATT_H
|
||||||
|
|
||||||
|
#include <Zydis/Formatter.h>
|
||||||
|
#include <Zydis/Internal/FormatterBase.h>
|
||||||
|
#include <Zydis/Internal/String.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Formatter functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Instruction */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTFormatInstruction(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operands */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTFormatOperandMEM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Elemental tokens */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTPrintMnemonic(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTPrintRegister(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context, ZydisRegister reg);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTPrintDISP(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTPrintIMM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Fomatter presets */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* AT&T */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The default formatter configuration for `AT&T` style disassembly.
|
||||||
|
*/
|
||||||
|
static const ZydisFormatter FORMATTER_ATT =
|
||||||
|
{
|
||||||
|
/* style */ ZYDIS_FORMATTER_STYLE_ATT,
|
||||||
|
/* force_memory_size */ ZYAN_FALSE,
|
||||||
|
/* force_memory_seg */ ZYAN_FALSE,
|
||||||
|
/* force_relative_branches */ ZYAN_FALSE,
|
||||||
|
/* force_relative_riprel */ ZYAN_FALSE,
|
||||||
|
/* print_branch_size */ ZYAN_FALSE,
|
||||||
|
/* detailed_prefixes */ ZYAN_FALSE,
|
||||||
|
/* addr_base */ ZYDIS_NUMERIC_BASE_HEX,
|
||||||
|
/* addr_signedness */ ZYDIS_SIGNEDNESS_SIGNED,
|
||||||
|
/* addr_padding_absolute */ ZYDIS_PADDING_AUTO,
|
||||||
|
/* addr_padding_relative */ 2,
|
||||||
|
/* disp_base */ ZYDIS_NUMERIC_BASE_HEX,
|
||||||
|
/* disp_signedness */ ZYDIS_SIGNEDNESS_SIGNED,
|
||||||
|
/* disp_padding */ 2,
|
||||||
|
/* imm_base */ ZYDIS_NUMERIC_BASE_HEX,
|
||||||
|
/* imm_signedness */ ZYDIS_SIGNEDNESS_AUTO,
|
||||||
|
/* imm_padding */ 2,
|
||||||
|
/* case_prefixes */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_mnemonic */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_registers */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_typecasts */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_decorators */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* hex_uppercase */ ZYAN_TRUE,
|
||||||
|
/* number_format */
|
||||||
|
{
|
||||||
|
// ZYDIS_NUMERIC_BASE_DEC
|
||||||
|
{
|
||||||
|
// Prefix
|
||||||
|
{
|
||||||
|
/* string */ ZYAN_NULL,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW(""),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
},
|
||||||
|
// Suffix
|
||||||
|
{
|
||||||
|
/* string */ ZYAN_NULL,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW(""),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// ZYDIS_NUMERIC_BASE_HEX
|
||||||
|
{
|
||||||
|
// Prefix
|
||||||
|
{
|
||||||
|
/* string */ &FORMATTER_ATT.number_format[
|
||||||
|
ZYDIS_NUMERIC_BASE_HEX][0].string_data,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW("0x"),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
},
|
||||||
|
// Suffix
|
||||||
|
{
|
||||||
|
/* string */ ZYAN_NULL,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW(""),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/* func_pre_instruction */ ZYAN_NULL,
|
||||||
|
/* func_post_instruction */ ZYAN_NULL,
|
||||||
|
/* func_format_instruction */ &ZydisFormatterATTFormatInstruction,
|
||||||
|
/* func_pre_operand */ ZYAN_NULL,
|
||||||
|
/* func_post_operand */ ZYAN_NULL,
|
||||||
|
/* func_format_operand_reg */ &ZydisFormatterBaseFormatOperandREG,
|
||||||
|
/* func_format_operand_mem */ &ZydisFormatterATTFormatOperandMEM,
|
||||||
|
/* func_format_operand_ptr */ &ZydisFormatterBaseFormatOperandPTR,
|
||||||
|
/* func_format_operand_imm */ &ZydisFormatterBaseFormatOperandIMM,
|
||||||
|
/* func_print_mnemonic */ &ZydisFormatterATTPrintMnemonic,
|
||||||
|
/* func_print_register */ &ZydisFormatterATTPrintRegister,
|
||||||
|
/* func_print_address_abs */ &ZydisFormatterBasePrintAddressABS,
|
||||||
|
/* func_print_address_rel */ &ZydisFormatterBasePrintAddressREL,
|
||||||
|
/* func_print_disp */ &ZydisFormatterATTPrintDISP,
|
||||||
|
/* func_print_imm */ &ZydisFormatterATTPrintIMM,
|
||||||
|
/* func_print_typecast */ ZYAN_NULL,
|
||||||
|
/* func_print_segment */ &ZydisFormatterBasePrintSegment,
|
||||||
|
/* func_print_prefixes */ &ZydisFormatterBasePrintPrefixes,
|
||||||
|
/* func_print_decorator */ &ZydisFormatterBasePrintDecorator
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // ZYDIS_FORMATTER_ATT_H
|
318
include/Zydis/Internal/FormatterBase.h
Normal file
318
include/Zydis/Internal/FormatterBase.h
Normal file
|
@ -0,0 +1,318 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd, Joel Hoener
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Provides formatter functions that are shared between the different formatters.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_FORMATTER_BASE_H
|
||||||
|
#define ZYDIS_FORMATTER_BASE_H
|
||||||
|
|
||||||
|
#include <Zydis/Formatter.h>
|
||||||
|
#include <Zydis/Internal/String.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Macros */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* String */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends an unsigned numeric value to the given string.
|
||||||
|
*
|
||||||
|
* @param formatter A pointer to the `ZydisFormatter` instance.
|
||||||
|
* @param base The numeric base.
|
||||||
|
* @param str The destination string.
|
||||||
|
* @param value The value.
|
||||||
|
* @param padding_length The padding length.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STRING_APPEND_NUM_U(formatter, base, str, value, padding_length) \
|
||||||
|
switch (base) \
|
||||||
|
{ \
|
||||||
|
case ZYDIS_NUMERIC_BASE_DEC: \
|
||||||
|
ZYAN_CHECK(ZydisStringAppendDecU(str, value, padding_length, \
|
||||||
|
(formatter)->number_format[base][0].string, \
|
||||||
|
(formatter)->number_format[base][1].string)); \
|
||||||
|
break; \
|
||||||
|
case ZYDIS_NUMERIC_BASE_HEX: \
|
||||||
|
ZYAN_CHECK(ZydisStringAppendHexU(str, value, padding_length, \
|
||||||
|
(formatter)->hex_uppercase, \
|
||||||
|
(formatter)->number_format[base][0].string, \
|
||||||
|
(formatter)->number_format[base][1].string)); \
|
||||||
|
break; \
|
||||||
|
default: \
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT; \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends a signed numeric value to the given string.
|
||||||
|
*
|
||||||
|
* @param formatter A pointer to the `ZydisFormatter` instance.
|
||||||
|
* @param base The numeric base.
|
||||||
|
* @param str The destination string.
|
||||||
|
* @param value The value.
|
||||||
|
* @param padding_length The padding length.
|
||||||
|
* @param force_sign Forces printing of the '+' sign for positive numbers.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STRING_APPEND_NUM_S(formatter, base, str, value, padding_length, force_sign) \
|
||||||
|
switch (base) \
|
||||||
|
{ \
|
||||||
|
case ZYDIS_NUMERIC_BASE_DEC: \
|
||||||
|
ZYAN_CHECK(ZydisStringAppendDecS(str, value, padding_length, force_sign, \
|
||||||
|
(formatter)->number_format[base][0].string, \
|
||||||
|
(formatter)->number_format[base][1].string)); \
|
||||||
|
break; \
|
||||||
|
case ZYDIS_NUMERIC_BASE_HEX: \
|
||||||
|
ZYAN_CHECK(ZydisStringAppendHexS(str, value, padding_length, \
|
||||||
|
(formatter)->hex_uppercase, force_sign, \
|
||||||
|
(formatter)->number_format[base][0].string, \
|
||||||
|
(formatter)->number_format[base][1].string)); \
|
||||||
|
break; \
|
||||||
|
default: \
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT; \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Buffer */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invokes the `ZydisFormatterBufferAppend` routine, if tokenization is enabled for the
|
||||||
|
* current pass.
|
||||||
|
*
|
||||||
|
* @param buffer A pointer to the `ZydisFormatterBuffer` struct.
|
||||||
|
* @param type The token type.
|
||||||
|
*
|
||||||
|
* Using this macro instead of direct calls to `ZydisFormatterBufferAppend` greatly improves the
|
||||||
|
* performance for non-tokenizing passes.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_BUFFER_APPEND_TOKEN(buffer, type) \
|
||||||
|
if ((buffer)->is_token_list) \
|
||||||
|
{ \
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferAppend(buffer, type)); \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a snapshot of the buffer-state.
|
||||||
|
*
|
||||||
|
* @param buffer A pointer to the `ZydisFormatterBuffer` struct.
|
||||||
|
* @param state Receives a snapshot of the buffer-state.
|
||||||
|
*
|
||||||
|
* Using this macro instead of direct calls to `ZydisFormatterBufferRemember` improves the
|
||||||
|
* performance for non-tokenizing passes.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_BUFFER_REMEMBER(buffer, state) \
|
||||||
|
if ((buffer)->is_token_list) \
|
||||||
|
{ \
|
||||||
|
(state) = (ZyanUPointer)(buffer)->string.vector.data; \
|
||||||
|
} else \
|
||||||
|
{ \
|
||||||
|
(state) = (ZyanUPointer)(buffer)->string.vector.size; \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends a string (`STR_`-prefix) or a predefined token-list (`TOK_`-prefix).
|
||||||
|
*
|
||||||
|
* @param buffer A pointer to the `ZydisFormatterBuffer` struct.
|
||||||
|
* @param name The base name (without prefix) of the string- or token.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_BUFFER_APPEND(buffer, name) \
|
||||||
|
if ((buffer)->is_token_list) \
|
||||||
|
{ \
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferAppendPredefined(buffer, TOK_ ## name)); \
|
||||||
|
} else \
|
||||||
|
{ \
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShort(&buffer->string, &STR_ ## name)); \
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: Implement `letter_case` for predefined tokens
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends a string (`STR_`-prefix) or a predefined token-list (`TOK_`-prefix).
|
||||||
|
*
|
||||||
|
* @param buffer A pointer to the `ZydisFormatterBuffer` struct.
|
||||||
|
* @param name The base name (without prefix) of the string- or token.
|
||||||
|
* @param letter-case The desired letter-case.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_BUFFER_APPEND_CASE(buffer, name, letter_case) \
|
||||||
|
if ((buffer)->is_token_list) \
|
||||||
|
{ \
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferAppendPredefined(buffer, TOK_ ## name)); \
|
||||||
|
} else \
|
||||||
|
{ \
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShortCase(&buffer->string, &STR_ ## name, letter_case)); \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Helper functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Buffer */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
// MSVC does not like the C99 flexible-array extension
|
||||||
|
#ifdef ZYAN_MSVC
|
||||||
|
# pragma warning(push)
|
||||||
|
# pragma warning(disable:4200)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
|
typedef struct ZydisPredefinedToken_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[];
|
||||||
|
} ZydisPredefinedToken;
|
||||||
|
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
#ifdef ZYAN_MSVC
|
||||||
|
# pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends a predefined token-list to the `buffer`.
|
||||||
|
*
|
||||||
|
* @param buffer A pointer to the `ZydisFormatterBuffer` struct.
|
||||||
|
* @param data A pointer to the `ZydisPredefinedToken` struct.
|
||||||
|
*
|
||||||
|
* @return A zycore status code.
|
||||||
|
*
|
||||||
|
* This function is internally used to improve performance while adding static strings or multiple
|
||||||
|
* tokens at once.
|
||||||
|
*/
|
||||||
|
ZYAN_INLINE ZyanStatus ZydisFormatterBufferAppendPredefined(ZydisFormatterBuffer* buffer,
|
||||||
|
const ZydisPredefinedToken* data)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(data);
|
||||||
|
|
||||||
|
const ZyanUSize len = buffer->string.vector.size;
|
||||||
|
ZYAN_ASSERT((len > 0) && (len < 256));
|
||||||
|
if (buffer->capacity <= len + data->size)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZydisFormatterToken* const last = (ZydisFormatterToken*)buffer->string.vector.data - 1;
|
||||||
|
last->next = (ZyanU8)len;
|
||||||
|
|
||||||
|
ZYAN_MEMCPY((ZyanU8*)buffer->string.vector.data + len, &data->data[0], data->size);
|
||||||
|
|
||||||
|
const ZyanUSize delta = len + data->next;
|
||||||
|
buffer->capacity -= delta;
|
||||||
|
buffer->string.vector.data = (ZyanU8*)buffer->string.vector.data + delta;
|
||||||
|
buffer->string.vector.size = data->size - data->next;
|
||||||
|
buffer->string.vector.capacity = ZYAN_MIN(buffer->capacity, 255);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* General */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the size to be used as explicit size suffix (`AT&T`) or explicit typecast
|
||||||
|
* (`INTEL`), if required.
|
||||||
|
*
|
||||||
|
* @param formatter A pointer to the `ZydisFormatter` instance.
|
||||||
|
* @param context A pointer to the `ZydisFormatterContext` struct.
|
||||||
|
* @param memop_id The operand-id of the instructions first memory operand.
|
||||||
|
*
|
||||||
|
* @return Returns the explicit size, if required, or `0`, if not needed.
|
||||||
|
*
|
||||||
|
* This function always returns a size different to `0`, if the `ZYDIS_FORMATTER_PROP_FORCE_SIZE`
|
||||||
|
* is set to `ZYAN_TRUE`.
|
||||||
|
*/
|
||||||
|
ZyanU32 ZydisFormatterHelperGetExplicitSize(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterContext* context, ZyanU8 memop_id);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Formatter functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operands */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBaseFormatOperandREG(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBaseFormatOperandPTR(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBaseFormatOperandIMM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Elemental tokens */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintAddressABS(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintAddressREL(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintIMM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Optional tokens */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintSegment(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintPrefixes(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintDecorator(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context, ZydisDecorator decorator);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // ZYDIS_FORMATTER_BASE_H
|
267
include/Zydis/Internal/FormatterIntel.h
Normal file
267
include/Zydis/Internal/FormatterIntel.h
Normal file
|
@ -0,0 +1,267 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd, Joel Hoener
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Implements the `INTEL` style instruction-formatter.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_FORMATTER_INTEL_H
|
||||||
|
#define ZYDIS_FORMATTER_INTEL_H
|
||||||
|
|
||||||
|
#include <Zydis/Formatter.h>
|
||||||
|
#include <Zydis/Internal/FormatterBase.h>
|
||||||
|
#include <Zydis/Internal/String.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Formatter functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Intel */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelFormatInstruction(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelFormatOperandMEM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelPrintMnemonic(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelPrintRegister(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context, ZydisRegister reg);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelPrintDISP(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelPrintTypecast(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* MASM */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelFormatInstructionMASM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelPrintAddressMASM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Fomatter presets */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* INTEL */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The default formatter configuration for `INTEL` style disassembly.
|
||||||
|
*/
|
||||||
|
static const ZydisFormatter FORMATTER_INTEL =
|
||||||
|
{
|
||||||
|
/* style */ ZYDIS_FORMATTER_STYLE_INTEL,
|
||||||
|
/* force_memory_size */ ZYAN_FALSE,
|
||||||
|
/* force_memory_seg */ ZYAN_FALSE,
|
||||||
|
/* force_relative_branches */ ZYAN_FALSE,
|
||||||
|
/* force_relative_riprel */ ZYAN_FALSE,
|
||||||
|
/* print_branch_size */ ZYAN_FALSE,
|
||||||
|
/* detailed_prefixes */ ZYAN_FALSE,
|
||||||
|
/* addr_base */ ZYDIS_NUMERIC_BASE_HEX,
|
||||||
|
/* addr_signedness */ ZYDIS_SIGNEDNESS_SIGNED,
|
||||||
|
/* addr_padding_absolute */ ZYDIS_PADDING_AUTO,
|
||||||
|
/* addr_padding_relative */ 2,
|
||||||
|
/* disp_base */ ZYDIS_NUMERIC_BASE_HEX,
|
||||||
|
/* disp_signedness */ ZYDIS_SIGNEDNESS_SIGNED,
|
||||||
|
/* disp_padding */ 2,
|
||||||
|
/* imm_base */ ZYDIS_NUMERIC_BASE_HEX,
|
||||||
|
/* imm_signedness */ ZYDIS_SIGNEDNESS_UNSIGNED,
|
||||||
|
/* imm_padding */ 2,
|
||||||
|
/* case_prefixes */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_mnemonic */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_registers */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_typecasts */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_decorators */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* hex_uppercase */ ZYAN_TRUE,
|
||||||
|
/* number_format */
|
||||||
|
{
|
||||||
|
// ZYDIS_NUMERIC_BASE_DEC
|
||||||
|
{
|
||||||
|
// Prefix
|
||||||
|
{
|
||||||
|
/* string */ ZYAN_NULL,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW(""),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
},
|
||||||
|
// Suffix
|
||||||
|
{
|
||||||
|
/* string */ ZYAN_NULL,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW(""),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// ZYDIS_NUMERIC_BASE_HEX
|
||||||
|
{
|
||||||
|
// Prefix
|
||||||
|
{
|
||||||
|
/* string */ &FORMATTER_INTEL.number_format[
|
||||||
|
ZYDIS_NUMERIC_BASE_HEX][0].string_data,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW("0x"),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
},
|
||||||
|
// Suffix
|
||||||
|
{
|
||||||
|
/* string */ ZYAN_NULL,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW(""),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/* func_pre_instruction */ ZYAN_NULL,
|
||||||
|
/* func_post_instruction */ ZYAN_NULL,
|
||||||
|
/* func_format_instruction */ &ZydisFormatterIntelFormatInstruction,
|
||||||
|
/* func_pre_operand */ ZYAN_NULL,
|
||||||
|
/* func_post_operand */ ZYAN_NULL,
|
||||||
|
/* func_format_operand_reg */ &ZydisFormatterBaseFormatOperandREG,
|
||||||
|
/* func_format_operand_mem */ &ZydisFormatterIntelFormatOperandMEM,
|
||||||
|
/* func_format_operand_ptr */ &ZydisFormatterBaseFormatOperandPTR,
|
||||||
|
/* func_format_operand_imm */ &ZydisFormatterBaseFormatOperandIMM,
|
||||||
|
/* func_print_mnemonic */ &ZydisFormatterIntelPrintMnemonic,
|
||||||
|
/* func_print_register */ &ZydisFormatterIntelPrintRegister,
|
||||||
|
/* func_print_address_abs */ &ZydisFormatterBasePrintAddressABS,
|
||||||
|
/* func_print_address_rel */ &ZydisFormatterBasePrintAddressREL,
|
||||||
|
/* func_print_disp */ &ZydisFormatterIntelPrintDISP,
|
||||||
|
/* func_print_imm */ &ZydisFormatterBasePrintIMM,
|
||||||
|
/* func_print_typecast */ &ZydisFormatterIntelPrintTypecast,
|
||||||
|
/* func_print_segment */ &ZydisFormatterBasePrintSegment,
|
||||||
|
/* func_print_prefixes */ &ZydisFormatterBasePrintPrefixes,
|
||||||
|
/* func_print_decorator */ &ZydisFormatterBasePrintDecorator
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* MASM */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The default formatter configuration for `MASM` style disassembly.
|
||||||
|
*/
|
||||||
|
static const ZydisFormatter FORMATTER_INTEL_MASM =
|
||||||
|
{
|
||||||
|
/* style */ ZYDIS_FORMATTER_STYLE_INTEL_MASM,
|
||||||
|
/* force_memory_size */ ZYAN_TRUE,
|
||||||
|
/* force_memory_seg */ ZYAN_FALSE,
|
||||||
|
/* force_relative_branches */ ZYAN_FALSE,
|
||||||
|
/* force_relative_riprel */ ZYAN_FALSE,
|
||||||
|
/* print_branch_size */ ZYAN_FALSE,
|
||||||
|
/* detailed_prefixes */ ZYAN_FALSE,
|
||||||
|
/* addr_base */ ZYDIS_NUMERIC_BASE_HEX,
|
||||||
|
/* addr_signedness */ ZYDIS_SIGNEDNESS_SIGNED,
|
||||||
|
/* addr_padding_absolute */ ZYDIS_PADDING_DISABLED,
|
||||||
|
/* addr_padding_relative */ ZYDIS_PADDING_DISABLED,
|
||||||
|
/* disp_base */ ZYDIS_NUMERIC_BASE_HEX,
|
||||||
|
/* disp_signedness */ ZYDIS_SIGNEDNESS_SIGNED,
|
||||||
|
/* disp_padding */ ZYDIS_PADDING_DISABLED,
|
||||||
|
/* imm_base */ ZYDIS_NUMERIC_BASE_HEX,
|
||||||
|
/* imm_signedness */ ZYDIS_SIGNEDNESS_AUTO,
|
||||||
|
/* imm_padding */ ZYDIS_PADDING_DISABLED,
|
||||||
|
/* case_prefixes */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_mnemonic */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_registers */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_typecasts */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* case_decorators */ ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/* hex_uppercase */ ZYAN_TRUE,
|
||||||
|
/* number_format */
|
||||||
|
{
|
||||||
|
// ZYDIS_NUMERIC_BASE_DEC
|
||||||
|
{
|
||||||
|
// Prefix
|
||||||
|
{
|
||||||
|
/* string */ ZYAN_NULL,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW(""),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
},
|
||||||
|
// Suffix
|
||||||
|
{
|
||||||
|
/* string */ ZYAN_NULL,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW(""),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// ZYDIS_NUMERIC_BASE_HEX
|
||||||
|
{
|
||||||
|
// Prefix
|
||||||
|
{
|
||||||
|
/* string */ ZYAN_NULL,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW(""),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
},
|
||||||
|
// Suffix
|
||||||
|
{
|
||||||
|
/* string */ &FORMATTER_INTEL_MASM.number_format[
|
||||||
|
ZYDIS_NUMERIC_BASE_HEX][1].string_data,
|
||||||
|
/* string_data */ ZYAN_DEFINE_STRING_VIEW("h"),
|
||||||
|
/* buffer */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/* func_pre_instruction */ ZYAN_NULL,
|
||||||
|
/* func_post_instruction */ ZYAN_NULL,
|
||||||
|
/* func_format_instruction */ &ZydisFormatterIntelFormatInstructionMASM,
|
||||||
|
/* func_pre_operand */ ZYAN_NULL,
|
||||||
|
/* func_post_operand */ ZYAN_NULL,
|
||||||
|
/* func_format_operand_reg */ &ZydisFormatterBaseFormatOperandREG,
|
||||||
|
/* func_format_operand_mem */ &ZydisFormatterIntelFormatOperandMEM,
|
||||||
|
/* func_format_operand_ptr */ &ZydisFormatterBaseFormatOperandPTR,
|
||||||
|
/* func_format_operand_imm */ &ZydisFormatterBaseFormatOperandIMM,
|
||||||
|
/* func_print_mnemonic */ &ZydisFormatterIntelPrintMnemonic,
|
||||||
|
/* func_print_register */ &ZydisFormatterIntelPrintRegister,
|
||||||
|
/* func_print_address_abs */ &ZydisFormatterIntelPrintAddressMASM,
|
||||||
|
/* func_print_address_rel */ &ZydisFormatterIntelPrintAddressMASM,
|
||||||
|
/* func_print_disp */ &ZydisFormatterIntelPrintDISP,
|
||||||
|
/* func_print_imm */ &ZydisFormatterBasePrintIMM,
|
||||||
|
/* func_print_typecast */ &ZydisFormatterIntelPrintTypecast,
|
||||||
|
/* func_print_segment */ &ZydisFormatterBasePrintSegment,
|
||||||
|
/* func_print_prefixes */ &ZydisFormatterBasePrintPrefixes,
|
||||||
|
/* func_print_decorator */ &ZydisFormatterBasePrintDecorator
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // ZYDIS_FORMATTER_INTEL_H
|
975
include/Zydis/Internal/SharedData.h
Normal file
975
include/Zydis/Internal/SharedData.h
Normal file
|
@ -0,0 +1,975 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_INTERNAL_SHAREDDATA_H
|
||||||
|
#define ZYDIS_INTERNAL_SHAREDDATA_H
|
||||||
|
|
||||||
|
#include <Zycore/Defines.h>
|
||||||
|
#include <Zydis/Mnemonic.h>
|
||||||
|
#include <Zydis/Register.h>
|
||||||
|
#include <Zydis/SharedTypes.h>
|
||||||
|
#include <Zydis/DecoderTypes.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
// MSVC does not like types other than (un-)signed int for bit-fields
|
||||||
|
#ifdef ZYAN_MSVC
|
||||||
|
# pragma warning(push)
|
||||||
|
# pragma warning(disable:4214)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operand definition */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisSemanticOperandType` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisSemanticOperandType_
|
||||||
|
{
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_UNUSED,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_IMPLICIT_REG,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_IMPLICIT_MEM,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_IMPLICIT_IMM1,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_GPR8,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_GPR16,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_GPR32,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_GPR64,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_GPR16_32_64,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_GPR32_32_64,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_GPR16_32_32,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_GPR_ASZ,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_FPR,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_MMX,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_XMM,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_YMM,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_ZMM,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_TMM,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_BND,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_SREG,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_CR,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_DR,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_MASK,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_MEM,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_MEM_VSIBX,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_MEM_VSIBY,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_MEM_VSIBZ,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_IMM,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_REL,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_PTR,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_AGEN,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_MOFFS,
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_MIB,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_MAX_VALUE = ZYDIS_SEMANTIC_OPTYPE_MIB,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_SEMANTIC_OPTYPE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_SEMANTIC_OPTYPE_MAX_VALUE)
|
||||||
|
} ZydisSemanticOperandType;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInternalElementType` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisInternalElementType_
|
||||||
|
{
|
||||||
|
ZYDIS_IELEMENT_TYPE_INVALID,
|
||||||
|
ZYDIS_IELEMENT_TYPE_VARIABLE,
|
||||||
|
ZYDIS_IELEMENT_TYPE_STRUCT,
|
||||||
|
ZYDIS_IELEMENT_TYPE_INT,
|
||||||
|
ZYDIS_IELEMENT_TYPE_UINT,
|
||||||
|
ZYDIS_IELEMENT_TYPE_INT1,
|
||||||
|
ZYDIS_IELEMENT_TYPE_INT8,
|
||||||
|
ZYDIS_IELEMENT_TYPE_INT16,
|
||||||
|
ZYDIS_IELEMENT_TYPE_INT32,
|
||||||
|
ZYDIS_IELEMENT_TYPE_INT64,
|
||||||
|
ZYDIS_IELEMENT_TYPE_UINT8,
|
||||||
|
ZYDIS_IELEMENT_TYPE_UINT16,
|
||||||
|
ZYDIS_IELEMENT_TYPE_UINT32,
|
||||||
|
ZYDIS_IELEMENT_TYPE_UINT64,
|
||||||
|
ZYDIS_IELEMENT_TYPE_UINT128,
|
||||||
|
ZYDIS_IELEMENT_TYPE_UINT256,
|
||||||
|
ZYDIS_IELEMENT_TYPE_FLOAT16,
|
||||||
|
ZYDIS_IELEMENT_TYPE_FLOAT32,
|
||||||
|
ZYDIS_IELEMENT_TYPE_FLOAT64,
|
||||||
|
ZYDIS_IELEMENT_TYPE_FLOAT80,
|
||||||
|
ZYDIS_IELEMENT_TYPE_BCD80,
|
||||||
|
ZYDIS_IELEMENT_TYPE_CC3,
|
||||||
|
ZYDIS_IELEMENT_TYPE_CC5,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_IELEMENT_TYPE_MAX_VALUE = ZYDIS_IELEMENT_TYPE_CC5,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_IELEMENT_TYPE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_IELEMENT_TYPE_MAX_VALUE)
|
||||||
|
} ZydisInternalElementType;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisImplicitRegisterType` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisImplicitRegisterType_
|
||||||
|
{
|
||||||
|
ZYDIS_IMPLREG_TYPE_STATIC,
|
||||||
|
ZYDIS_IMPLREG_TYPE_GPR_OSZ,
|
||||||
|
ZYDIS_IMPLREG_TYPE_GPR_ASZ,
|
||||||
|
ZYDIS_IMPLREG_TYPE_GPR_SSZ,
|
||||||
|
ZYDIS_IMPLREG_TYPE_IP_ASZ,
|
||||||
|
ZYDIS_IMPLREG_TYPE_IP_SSZ,
|
||||||
|
ZYDIS_IMPLREG_TYPE_FLAGS_SSZ,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_IMPLREG_TYPE_MAX_VALUE = ZYDIS_IMPLREG_TYPE_FLAGS_SSZ,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_IMPLREG_TYPE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_IMPLREG_TYPE_MAX_VALUE)
|
||||||
|
} ZydisImplicitRegisterType;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisImplicitMemBase` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisImplicitMemBase_
|
||||||
|
{
|
||||||
|
ZYDIS_IMPLMEM_BASE_AGPR_REG,
|
||||||
|
ZYDIS_IMPLMEM_BASE_AGPR_RM,
|
||||||
|
ZYDIS_IMPLMEM_BASE_AAX,
|
||||||
|
ZYDIS_IMPLMEM_BASE_ADX,
|
||||||
|
ZYDIS_IMPLMEM_BASE_ABX,
|
||||||
|
ZYDIS_IMPLMEM_BASE_ASP,
|
||||||
|
ZYDIS_IMPLMEM_BASE_ABP,
|
||||||
|
ZYDIS_IMPLMEM_BASE_ASI,
|
||||||
|
ZYDIS_IMPLMEM_BASE_ADI,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_IMPLMEM_BASE_MAX_VALUE = ZYDIS_IMPLMEM_BASE_ADI,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_IMPLMEM_BASE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_IMPLMEM_BASE_MAX_VALUE)
|
||||||
|
} ZydisImplicitMemBase;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
// MSVC does not correctly execute the `pragma pack(1)` compiler-directive, if we use the correct
|
||||||
|
// enum types
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_SEMANTIC_OPTYPE_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_OPERAND_VISIBILITY_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_OPERAND_ACTION_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_IELEMENT_TYPE_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_OPERAND_ENCODING_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_IMPLREG_TYPE_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_REGISTER_REQUIRED_BITS <= 16);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_IMPLMEM_BASE_REQUIRED_BITS <= 8);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisOperandDefinition` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisOperandDefinition_
|
||||||
|
{
|
||||||
|
ZyanU8 type ZYAN_BITFIELD(ZYDIS_SEMANTIC_OPTYPE_REQUIRED_BITS);
|
||||||
|
ZyanU8 visibility ZYAN_BITFIELD(ZYDIS_OPERAND_VISIBILITY_REQUIRED_BITS);
|
||||||
|
ZyanU8 actions ZYAN_BITFIELD(ZYDIS_OPERAND_ACTION_REQUIRED_BITS);
|
||||||
|
ZyanU16 size[3];
|
||||||
|
ZyanU8 element_type ZYAN_BITFIELD(ZYDIS_IELEMENT_TYPE_REQUIRED_BITS);
|
||||||
|
union
|
||||||
|
{
|
||||||
|
ZyanU8 encoding ZYAN_BITFIELD(ZYDIS_OPERAND_ENCODING_REQUIRED_BITS);
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
ZyanU8 type ZYAN_BITFIELD(ZYDIS_IMPLREG_TYPE_REQUIRED_BITS);
|
||||||
|
union
|
||||||
|
{
|
||||||
|
ZyanU16 reg ZYAN_BITFIELD(ZYDIS_REGISTER_REQUIRED_BITS);
|
||||||
|
ZyanU8 id ZYAN_BITFIELD(6);
|
||||||
|
} reg;
|
||||||
|
} reg;
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
ZyanU8 seg ZYAN_BITFIELD(3);
|
||||||
|
ZyanU8 base ZYAN_BITFIELD(ZYDIS_IMPLMEM_BASE_REQUIRED_BITS);
|
||||||
|
} mem;
|
||||||
|
} op;
|
||||||
|
ZyanBool is_multisource4 ZYAN_BITFIELD(1);
|
||||||
|
} ZydisOperandDefinition;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Instruction definition */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisReadWriteAction` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisReadWriteAction_
|
||||||
|
{
|
||||||
|
ZYDIS_RW_ACTION_NONE,
|
||||||
|
ZYDIS_RW_ACTION_READ,
|
||||||
|
ZYDIS_RW_ACTION_WRITE,
|
||||||
|
ZYDIS_RW_ACTION_READWRITE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_RW_ACTION_MAX_VALUE = ZYDIS_RW_ACTION_READWRITE,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_RW_ACTION_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_RW_ACTION_MAX_VALUE)
|
||||||
|
} ZydisReadWriteAction;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisRegisterConstraint` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisRegisterConstraint_
|
||||||
|
{
|
||||||
|
ZYDIS_REG_CONSTRAINTS_UNUSED,
|
||||||
|
ZYDIS_REG_CONSTRAINTS_NONE,
|
||||||
|
ZYDIS_REG_CONSTRAINTS_GPR,
|
||||||
|
ZYDIS_REG_CONSTRAINTS_SR_DEST,
|
||||||
|
ZYDIS_REG_CONSTRAINTS_SR,
|
||||||
|
ZYDIS_REG_CONSTRAINTS_CR,
|
||||||
|
ZYDIS_REG_CONSTRAINTS_DR,
|
||||||
|
ZYDIS_REG_CONSTRAINTS_MASK,
|
||||||
|
ZYDIS_REG_CONSTRAINTS_BND,
|
||||||
|
ZYDIS_REG_CONSTRAINTS_VSIB,
|
||||||
|
ZYDIS_REG_CONSTRAINTS_NO_REL,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_REG_CONSTRAINTS_MAX_VALUE = ZYDIS_REG_CONSTRAINTS_NO_REL,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_REG_CONSTRAINTS_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_REG_CONSTRAINTS_MAX_VALUE)
|
||||||
|
} ZydisRegisterConstraint;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInternalVectorLength` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisInternalVectorLength_
|
||||||
|
{
|
||||||
|
ZYDIS_IVECTOR_LENGTH_DEFAULT,
|
||||||
|
ZYDIS_IVECTOR_LENGTH_FIXED_128,
|
||||||
|
ZYDIS_IVECTOR_LENGTH_FIXED_256,
|
||||||
|
ZYDIS_IVECTOR_LENGTH_FIXED_512,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_IVECTOR_LENGTH_MAX_VALUE = ZYDIS_IVECTOR_LENGTH_FIXED_512,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_IVECTOR_LENGTH_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_IVECTOR_LENGTH_MAX_VALUE)
|
||||||
|
} ZydisInternalVectorLength;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInternalElementSize` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisInternalElementSize_
|
||||||
|
{
|
||||||
|
ZYDIS_IELEMENT_SIZE_INVALID,
|
||||||
|
ZYDIS_IELEMENT_SIZE_8,
|
||||||
|
ZYDIS_IELEMENT_SIZE_16,
|
||||||
|
ZYDIS_IELEMENT_SIZE_32,
|
||||||
|
ZYDIS_IELEMENT_SIZE_64,
|
||||||
|
ZYDIS_IELEMENT_SIZE_128,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_IELEMENT_SIZE_MAX_VALUE = ZYDIS_IELEMENT_SIZE_128,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_IELEMENT_SIZE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_IELEMENT_SIZE_MAX_VALUE)
|
||||||
|
} ZydisInternalElementSize;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisEVEXFunctionality` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisEVEXFunctionality_
|
||||||
|
{
|
||||||
|
ZYDIS_EVEX_FUNC_INVALID,
|
||||||
|
/**
|
||||||
|
* `EVEX.b` enables broadcast functionality.
|
||||||
|
*/
|
||||||
|
ZYDIS_EVEX_FUNC_BC,
|
||||||
|
/**
|
||||||
|
* `EVEX.b` enables embedded-rounding functionality.
|
||||||
|
*/
|
||||||
|
ZYDIS_EVEX_FUNC_RC,
|
||||||
|
/**
|
||||||
|
* `EVEX.b` enables sae functionality.
|
||||||
|
*/
|
||||||
|
ZYDIS_EVEX_FUNC_SAE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_EVEX_FUNC_MAX_VALUE = ZYDIS_EVEX_FUNC_SAE,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_EVEX_FUNC_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_EVEX_FUNC_MAX_VALUE)
|
||||||
|
} ZydisEVEXFunctionality;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisEVEXTupleType` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisEVEXTupleType_
|
||||||
|
{
|
||||||
|
ZYDIS_TUPLETYPE_INVALID,
|
||||||
|
/**
|
||||||
|
* Full Vector
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_FV,
|
||||||
|
/**
|
||||||
|
* Half Vector
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_HV,
|
||||||
|
/**
|
||||||
|
* Full Vector Mem
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_FVM,
|
||||||
|
/**
|
||||||
|
* Tuple1 Scalar
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_T1S,
|
||||||
|
/**
|
||||||
|
* Tuple1 Fixed
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_T1F,
|
||||||
|
/**
|
||||||
|
* Tuple1 4x32
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_T1_4X,
|
||||||
|
/**
|
||||||
|
* Gather / Scatter
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_GSCAT,
|
||||||
|
/**
|
||||||
|
* Tuple2
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_T2,
|
||||||
|
/**
|
||||||
|
* Tuple4
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_T4,
|
||||||
|
/**
|
||||||
|
* Tuple8
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_T8,
|
||||||
|
/**
|
||||||
|
* Half Mem
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_HVM,
|
||||||
|
/**
|
||||||
|
* QuarterMem
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_QVM,
|
||||||
|
/**
|
||||||
|
* OctMem
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_OVM,
|
||||||
|
/**
|
||||||
|
* Mem128
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_M128,
|
||||||
|
/**
|
||||||
|
* MOVDDUP
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_DUP,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_MAX_VALUE = ZYDIS_TUPLETYPE_DUP,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_TUPLETYPE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_TUPLETYPE_MAX_VALUE)
|
||||||
|
} ZydisEVEXTupleType;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisMVEXFunctionality` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisMVEXFunctionality_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The `MVEX.SSS` value is ignored.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_IGNORED,
|
||||||
|
/**
|
||||||
|
* `MVEX.SSS` must be `000b`.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_INVALID,
|
||||||
|
/**
|
||||||
|
* `MVEX.SSS` controls embedded-rounding functionality.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_RC,
|
||||||
|
/**
|
||||||
|
* `MVEX.SSS` controls sae functionality.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SAE,
|
||||||
|
/**
|
||||||
|
* No special operation (32bit float elements).
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_F_32,
|
||||||
|
/**
|
||||||
|
* No special operation (32bit uint elements).
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_I_32,
|
||||||
|
/**
|
||||||
|
* No special operation (64bit float elements).
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_F_64,
|
||||||
|
/**
|
||||||
|
* No special operation (64bit uint elements).
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_I_64,
|
||||||
|
/**
|
||||||
|
* Sf32(reg) or Si32(reg).
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SWIZZLE_32,
|
||||||
|
/**
|
||||||
|
* Sf64(reg) or Si64(reg).
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SWIZZLE_64,
|
||||||
|
/**
|
||||||
|
* Sf32(mem).
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SF_32,
|
||||||
|
/**
|
||||||
|
* Sf32(mem) broadcast only.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SF_32_BCST,
|
||||||
|
/**
|
||||||
|
* Sf32(mem) broadcast 4to16 only.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SF_32_BCST_4TO16,
|
||||||
|
/**
|
||||||
|
* Sf64(mem).
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SF_64,
|
||||||
|
/**
|
||||||
|
* Si32(mem).
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SI_32,
|
||||||
|
/**
|
||||||
|
* Si32(mem) broadcast only.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SI_32_BCST,
|
||||||
|
/**
|
||||||
|
* Si32(mem) broadcast 4to16 only.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SI_32_BCST_4TO16,
|
||||||
|
/**
|
||||||
|
* Si64(mem).
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_SI_64,
|
||||||
|
/**
|
||||||
|
* Uf32.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_UF_32,
|
||||||
|
/**
|
||||||
|
* Uf64.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_UF_64,
|
||||||
|
/**
|
||||||
|
* Ui32.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_UI_32,
|
||||||
|
/**
|
||||||
|
* Ui64.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_UI_64,
|
||||||
|
/**
|
||||||
|
* Df32.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_DF_32,
|
||||||
|
/**
|
||||||
|
* Df64.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_DF_64,
|
||||||
|
/**
|
||||||
|
* Di32.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_DI_32,
|
||||||
|
/**
|
||||||
|
* Di64.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_DI_64,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_MAX_VALUE = ZYDIS_MVEX_FUNC_DI_64,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_FUNC_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_MVEX_FUNC_MAX_VALUE)
|
||||||
|
} ZydisMVEXFunctionality;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisVEXStaticBroadcast` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisVEXStaticBroadcast
|
||||||
|
{
|
||||||
|
ZYDIS_VEX_STATIC_BROADCAST_NONE,
|
||||||
|
ZYDIS_VEX_STATIC_BROADCAST_1_TO_2,
|
||||||
|
ZYDIS_VEX_STATIC_BROADCAST_1_TO_4,
|
||||||
|
ZYDIS_VEX_STATIC_BROADCAST_1_TO_8,
|
||||||
|
ZYDIS_VEX_STATIC_BROADCAST_1_TO_16,
|
||||||
|
ZYDIS_VEX_STATIC_BROADCAST_1_TO_32,
|
||||||
|
ZYDIS_VEX_STATIC_BROADCAST_2_TO_4,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_VEX_STATIC_BROADCAST_MAX_VALUE = ZYDIS_VEX_STATIC_BROADCAST_2_TO_4,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_VEX_STATIC_BROADCAST_REQUIRED_BITS =
|
||||||
|
ZYAN_BITS_TO_REPRESENT(ZYDIS_VEX_STATIC_BROADCAST_MAX_VALUE)
|
||||||
|
} ZydisVEXStaticBroadcast;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisEVEXStaticBroadcast` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisEVEXStaticBroadcast_
|
||||||
|
{
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_NONE,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_1_TO_2,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_1_TO_4,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_1_TO_8,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_1_TO_16,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_1_TO_32,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_1_TO_64,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_2_TO_4,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_2_TO_8,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_2_TO_16,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_4_TO_8,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_4_TO_16,
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_8_TO_16,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_MAX_VALUE = ZYDIS_EVEX_STATIC_BROADCAST_8_TO_16,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_EVEX_STATIC_BROADCAST_REQUIRED_BITS =
|
||||||
|
ZYAN_BITS_TO_REPRESENT(ZYDIS_EVEX_STATIC_BROADCAST_MAX_VALUE)
|
||||||
|
} ZydisEVEXStaticBroadcast;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisMVEXStaticBroadcast` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisMVEXStaticBroadcast_
|
||||||
|
{
|
||||||
|
ZYDIS_MVEX_STATIC_BROADCAST_NONE,
|
||||||
|
ZYDIS_MVEX_STATIC_BROADCAST_1_TO_8,
|
||||||
|
ZYDIS_MVEX_STATIC_BROADCAST_1_TO_16,
|
||||||
|
ZYDIS_MVEX_STATIC_BROADCAST_4_TO_8,
|
||||||
|
ZYDIS_MVEX_STATIC_BROADCAST_4_TO_16,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_STATIC_BROADCAST_MAX_VALUE = ZYDIS_MVEX_STATIC_BROADCAST_4_TO_16,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_MVEX_STATIC_BROADCAST_REQUIRED_BITS =
|
||||||
|
ZYAN_BITS_TO_REPRESENT(ZYDIS_MVEX_STATIC_BROADCAST_MAX_VALUE)
|
||||||
|
} ZydisMVEXStaticBroadcast;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisMaskPolicy` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisMaskPolicy_
|
||||||
|
{
|
||||||
|
ZYDIS_MASK_POLICY_INVALID,
|
||||||
|
/**
|
||||||
|
* The instruction accepts mask-registers other than the default-mask (K0), but
|
||||||
|
* does not require them.
|
||||||
|
*/
|
||||||
|
ZYDIS_MASK_POLICY_ALLOWED,
|
||||||
|
/**
|
||||||
|
* The instruction requires a mask-register other than the default-mask (K0).
|
||||||
|
*/
|
||||||
|
ZYDIS_MASK_POLICY_REQUIRED,
|
||||||
|
/**
|
||||||
|
* The instruction does not allow a mask-register other than the default-mask (K0).
|
||||||
|
*/
|
||||||
|
ZYDIS_MASK_POLICY_FORBIDDEN,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_MASK_POLICY_MAX_VALUE = ZYDIS_MASK_POLICY_FORBIDDEN,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_MASK_POLICY_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_MASK_POLICY_MAX_VALUE)
|
||||||
|
} ZydisMaskPolicy;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisMaskOverride` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisMaskOverride_
|
||||||
|
{
|
||||||
|
ZYDIS_MASK_OVERRIDE_DEFAULT,
|
||||||
|
ZYDIS_MASK_OVERRIDE_ZEROING,
|
||||||
|
ZYDIS_MASK_OVERRIDE_CONTROL,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_MASK_OVERRIDE_MAX_VALUE = ZYDIS_MASK_OVERRIDE_CONTROL,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_MASK_OVERRIDE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_MASK_OVERRIDE_MAX_VALUE)
|
||||||
|
} ZydisMaskOverride;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
// MSVC does not correctly execute the `pragma pack(1)` compiler-directive, if we use the correct
|
||||||
|
// enum types
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_MNEMONIC_REQUIRED_BITS <= 16);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_CATEGORY_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_ISA_SET_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_ISA_EXT_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_BRANCH_TYPE_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_EXCEPTION_CLASS_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_REG_CONSTRAINTS_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_RW_ACTION_REQUIRED_BITS <= 8);
|
||||||
|
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
# define ZYDIS_INSTRUCTION_DEFINITION_BASE \
|
||||||
|
ZyanU16 mnemonic ZYAN_BITFIELD(ZYDIS_MNEMONIC_REQUIRED_BITS); \
|
||||||
|
ZyanU8 operand_count ZYAN_BITFIELD( 4); \
|
||||||
|
ZyanU16 operand_reference ZYAN_BITFIELD(15); \
|
||||||
|
ZyanU8 operand_size_map ZYAN_BITFIELD( 3); \
|
||||||
|
ZyanU8 address_size_map ZYAN_BITFIELD( 2); \
|
||||||
|
ZyanU8 flags_reference ZYAN_BITFIELD( 7); \
|
||||||
|
ZyanBool requires_protected_mode ZYAN_BITFIELD( 1); \
|
||||||
|
ZyanU8 category ZYAN_BITFIELD(ZYDIS_CATEGORY_REQUIRED_BITS); \
|
||||||
|
ZyanU8 isa_set ZYAN_BITFIELD(ZYDIS_ISA_SET_REQUIRED_BITS); \
|
||||||
|
ZyanU8 isa_ext ZYAN_BITFIELD(ZYDIS_ISA_EXT_REQUIRED_BITS); \
|
||||||
|
ZyanU8 branch_type ZYAN_BITFIELD(ZYDIS_BRANCH_TYPE_REQUIRED_BITS); \
|
||||||
|
ZyanU8 exception_class ZYAN_BITFIELD(ZYDIS_EXCEPTION_CLASS_REQUIRED_BITS); \
|
||||||
|
ZyanU8 constr_REG ZYAN_BITFIELD(ZYDIS_REG_CONSTRAINTS_REQUIRED_BITS); \
|
||||||
|
ZyanU8 constr_RM ZYAN_BITFIELD(ZYDIS_REG_CONSTRAINTS_REQUIRED_BITS); \
|
||||||
|
ZyanU8 cpu_state ZYAN_BITFIELD(ZYDIS_RW_ACTION_REQUIRED_BITS); \
|
||||||
|
ZyanU8 fpu_state ZYAN_BITFIELD(ZYDIS_RW_ACTION_REQUIRED_BITS); \
|
||||||
|
ZyanU8 xmm_state ZYAN_BITFIELD(ZYDIS_RW_ACTION_REQUIRED_BITS)
|
||||||
|
#else
|
||||||
|
# define ZYDIS_INSTRUCTION_DEFINITION_BASE \
|
||||||
|
ZyanU16 mnemonic ZYAN_BITFIELD(ZYDIS_MNEMONIC_REQUIRED_BITS); \
|
||||||
|
ZyanU8 operand_size_map ZYAN_BITFIELD( 3); \
|
||||||
|
ZyanU8 address_size_map ZYAN_BITFIELD( 2); \
|
||||||
|
ZyanBool requires_protected_mode ZYAN_BITFIELD( 1); \
|
||||||
|
ZyanU8 constr_REG ZYAN_BITFIELD(ZYDIS_REG_CONSTRAINTS_REQUIRED_BITS); \
|
||||||
|
ZyanU8 constr_RM ZYAN_BITFIELD(ZYDIS_REG_CONSTRAINTS_REQUIRED_BITS)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR \
|
||||||
|
ZYDIS_INSTRUCTION_DEFINITION_BASE; \
|
||||||
|
ZyanU8 constr_NDSNDD ZYAN_BITFIELD(ZYDIS_REG_CONSTRAINTS_REQUIRED_BITS)
|
||||||
|
|
||||||
|
#define ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR_INTEL \
|
||||||
|
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR; \
|
||||||
|
ZyanBool is_gather ZYAN_BITFIELD( 1)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionDefinition` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisInstructionDefinition_
|
||||||
|
{
|
||||||
|
ZYDIS_INSTRUCTION_DEFINITION_BASE;
|
||||||
|
} ZydisInstructionDefinition;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionDefinitionLEGACY` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisInstructionDefinitionLEGACY_
|
||||||
|
{
|
||||||
|
ZYDIS_INSTRUCTION_DEFINITION_BASE;
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
ZyanBool is_privileged ZYAN_BITFIELD( 1);
|
||||||
|
#endif
|
||||||
|
ZyanBool accepts_LOCK ZYAN_BITFIELD( 1);
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
ZyanBool accepts_REP ZYAN_BITFIELD( 1);
|
||||||
|
ZyanBool accepts_REPEREPZ ZYAN_BITFIELD( 1);
|
||||||
|
ZyanBool accepts_REPNEREPNZ ZYAN_BITFIELD( 1);
|
||||||
|
ZyanBool accepts_BOUND ZYAN_BITFIELD( 1);
|
||||||
|
ZyanBool accepts_XACQUIRE ZYAN_BITFIELD( 1);
|
||||||
|
ZyanBool accepts_XRELEASE ZYAN_BITFIELD( 1);
|
||||||
|
ZyanBool accepts_hle_without_lock ZYAN_BITFIELD( 1);
|
||||||
|
ZyanBool accepts_branch_hints ZYAN_BITFIELD( 1);
|
||||||
|
ZyanBool accepts_segment ZYAN_BITFIELD( 1);
|
||||||
|
#endif
|
||||||
|
} ZydisInstructionDefinitionLEGACY;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionDefinition3DNOW` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisInstructionDefinition3DNOW_
|
||||||
|
{
|
||||||
|
ZYDIS_INSTRUCTION_DEFINITION_BASE;
|
||||||
|
} ZydisInstructionDefinition3DNOW;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionDefinitionXOP` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisInstructionDefinitionXOP_
|
||||||
|
{
|
||||||
|
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR;
|
||||||
|
} ZydisInstructionDefinitionXOP;
|
||||||
|
|
||||||
|
// MSVC does not correctly execute the `pragma pack(1)` compiler-directive, if we use the correct
|
||||||
|
// enum types
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_VEX_STATIC_BROADCAST_REQUIRED_BITS <= 8);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionDefinitionVEX` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisInstructionDefinitionVEX_
|
||||||
|
{
|
||||||
|
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR_INTEL;
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
ZyanU8 broadcast ZYAN_BITFIELD(ZYDIS_VEX_STATIC_BROADCAST_REQUIRED_BITS);
|
||||||
|
#endif
|
||||||
|
} ZydisInstructionDefinitionVEX;
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DISABLE_AVX512
|
||||||
|
|
||||||
|
// MSVC does not correctly execute the `pragma pack(1)` compiler-directive, if we use the correct
|
||||||
|
// enum types
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_IVECTOR_LENGTH_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_TUPLETYPE_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_IELEMENT_SIZE_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_EVEX_FUNC_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_MASK_POLICY_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_MASK_OVERRIDE_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_EVEX_STATIC_BROADCAST_REQUIRED_BITS <= 8);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionDefinitionEVEX` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisInstructionDefinitionEVEX_
|
||||||
|
{
|
||||||
|
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR_INTEL;
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
ZyanU8 vector_length ZYAN_BITFIELD(ZYDIS_IVECTOR_LENGTH_REQUIRED_BITS);
|
||||||
|
ZyanU8 tuple_type ZYAN_BITFIELD(ZYDIS_TUPLETYPE_REQUIRED_BITS);
|
||||||
|
ZyanU8 element_size ZYAN_BITFIELD(ZYDIS_IELEMENT_SIZE_REQUIRED_BITS);
|
||||||
|
ZyanU8 functionality ZYAN_BITFIELD(ZYDIS_EVEX_FUNC_REQUIRED_BITS);
|
||||||
|
#endif
|
||||||
|
ZyanU8 mask_policy ZYAN_BITFIELD(ZYDIS_MASK_POLICY_REQUIRED_BITS);
|
||||||
|
ZyanBool accepts_zero_mask ZYAN_BITFIELD( 1);
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
ZyanU8 mask_override ZYAN_BITFIELD(ZYDIS_MASK_OVERRIDE_REQUIRED_BITS);
|
||||||
|
ZyanU8 broadcast ZYAN_BITFIELD(ZYDIS_EVEX_STATIC_BROADCAST_REQUIRED_BITS);
|
||||||
|
#endif
|
||||||
|
} ZydisInstructionDefinitionEVEX;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DISABLE_KNC
|
||||||
|
|
||||||
|
// MSVC does not correctly execute the `pragma pack(1)` compiler-directive, if we use the correct
|
||||||
|
// enum types
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_MVEX_FUNC_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_MASK_POLICY_REQUIRED_BITS <= 8);
|
||||||
|
ZYAN_STATIC_ASSERT(ZYDIS_MVEX_STATIC_BROADCAST_REQUIRED_BITS <= 8);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionDefinitionMVEX` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisInstructionDefinitionMVEX_
|
||||||
|
{
|
||||||
|
ZYDIS_INSTRUCTION_DEFINITION_BASE_VECTOR_INTEL;
|
||||||
|
ZyanU8 functionality ZYAN_BITFIELD(ZYDIS_MVEX_FUNC_REQUIRED_BITS);
|
||||||
|
ZyanU8 mask_policy ZYAN_BITFIELD(ZYDIS_MASK_POLICY_REQUIRED_BITS);
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
ZyanBool has_element_granularity ZYAN_BITFIELD( 1);
|
||||||
|
ZyanU8 broadcast ZYAN_BITFIELD(ZYDIS_MVEX_STATIC_BROADCAST_REQUIRED_BITS);
|
||||||
|
#endif
|
||||||
|
} ZydisInstructionDefinitionMVEX;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Accessed CPU flags */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
typedef struct ZydisAccessedFlags_
|
||||||
|
{
|
||||||
|
ZydisCPUFlagAction action[ZYDIS_CPUFLAG_MAX_VALUE + 1];
|
||||||
|
ZyanU32 cpu_flags_read ZYAN_BITFIELD(22);
|
||||||
|
ZyanU32 cpu_flags_written ZYAN_BITFIELD(22);
|
||||||
|
ZyanU8 fpu_flags_read ZYAN_BITFIELD( 4);
|
||||||
|
ZyanU8 fpu_flags_written ZYAN_BITFIELD( 4);
|
||||||
|
} ZydisAccessedFlags;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
#ifdef ZYAN_MSVC
|
||||||
|
# pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Instruction definition */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the instruction-definition with the given `encoding` and `id`.
|
||||||
|
*
|
||||||
|
* @param encoding The instruction-encoding.
|
||||||
|
* @param id The definition-id.
|
||||||
|
* @param definition A pointer to the variable that receives a pointer to the instruction-
|
||||||
|
* definition.
|
||||||
|
*/
|
||||||
|
ZYDIS_NO_EXPORT void ZydisGetInstructionDefinition(ZydisInstructionEncoding encoding,
|
||||||
|
ZyanU16 id, const ZydisInstructionDefinition** definition);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operand definition */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
/**
|
||||||
|
* Returns the the operand-definitions for the given instruction-`definition`.
|
||||||
|
*
|
||||||
|
* @param definition A pointer to the instruction-definition.
|
||||||
|
* @param operand A pointer to the variable that receives a pointer to the first operand-
|
||||||
|
* definition of the instruction.
|
||||||
|
*
|
||||||
|
* @return The number of operands for the given instruction-definition.
|
||||||
|
*/
|
||||||
|
ZYDIS_NO_EXPORT ZyanU8 ZydisGetOperandDefinitions(const ZydisInstructionDefinition* definition,
|
||||||
|
const ZydisOperandDefinition** operand);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Element info */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
/**
|
||||||
|
* Returns the actual type and size of an internal element-type.
|
||||||
|
*
|
||||||
|
* @param element The internal element type.
|
||||||
|
* @param type The actual element type.
|
||||||
|
* @param size The element size.
|
||||||
|
*/
|
||||||
|
ZYDIS_NO_EXPORT void ZydisGetElementInfo(ZydisInternalElementType element, ZydisElementType* type,
|
||||||
|
ZydisElementSize* size);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Accessed CPU flags */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
/**
|
||||||
|
* Returns the the operand-definitions for the given instruction-`definition`.
|
||||||
|
*
|
||||||
|
* @param definition A pointer to the instruction-definition.
|
||||||
|
* @param flags A pointer to the variable that receives the `ZydisAccessedFlags` struct.
|
||||||
|
*
|
||||||
|
* @return `ZYAN_TRUE`, if the instruction accesses any flags, or `ZYAN_FALSE`, if not.
|
||||||
|
*/
|
||||||
|
ZYDIS_NO_EXPORT ZyanBool ZydisGetAccessedFlags(const ZydisInstructionDefinition* definition,
|
||||||
|
const ZydisAccessedFlags** flags);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_INTERNAL_SHAREDDATA_H */
|
464
include/Zydis/Internal/String.h
Normal file
464
include/Zydis/Internal/String.h
Normal file
|
@ -0,0 +1,464 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd, Joel Hoener
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Provides some internal, more performant, but unsafe helper functions for the `ZyanString`
|
||||||
|
* data-type.
|
||||||
|
*
|
||||||
|
* Most of these functions are very similar to the ones in `Zycore/String.h`, but inlined and
|
||||||
|
* without optional overhead like parameter-validation checks, etc ...
|
||||||
|
*
|
||||||
|
* The `ZyanString` data-type is able to dynamically allocate memory on the heap, but as `Zydis` is
|
||||||
|
* designed to be a non-'malloc'ing library, all functions in this file assume that the instances
|
||||||
|
* they are operating on are created with a user-defined static-buffer.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_INTERNAL_STRING_H
|
||||||
|
#define ZYDIS_INTERNAL_STRING_H
|
||||||
|
|
||||||
|
#include <Zycore/LibC.h>
|
||||||
|
#include <Zycore/String.h>
|
||||||
|
#include <Zycore/Types.h>
|
||||||
|
#include <Zycore/Format.h>
|
||||||
|
#include <Zydis/ShortString.h>
|
||||||
|
#include <Zydis/Status.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Letter Case */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisLetterCase` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisLetterCase_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Uses the given text "as is".
|
||||||
|
*/
|
||||||
|
ZYDIS_LETTER_CASE_DEFAULT,
|
||||||
|
/**
|
||||||
|
* Converts the given text to lowercase letters.
|
||||||
|
*/
|
||||||
|
ZYDIS_LETTER_CASE_LOWER,
|
||||||
|
/**
|
||||||
|
* Converts the given text to uppercase letters.
|
||||||
|
*/
|
||||||
|
ZYDIS_LETTER_CASE_UPPER,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_LETTER_CASE_MAX_VALUE = ZYDIS_LETTER_CASE_UPPER,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_LETTER_CASE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_LETTER_CASE_MAX_VALUE)
|
||||||
|
} ZydisLetterCase;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Macros */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Internal macros */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks for a terminating '\0' character at the end of the string data.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STRING_ASSERT_NULLTERMINATION(string) \
|
||||||
|
ZYAN_ASSERT(*(char*)((ZyanU8*)(string)->vector.data + (string)->vector.size - 1) == '\0');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Writes a terminating '\0' character at the end of the string data.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STRING_NULLTERMINATE(string) \
|
||||||
|
*(char*)((ZyanU8*)(string)->vector.data + (string)->vector.size - 1) = '\0';
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Internal Functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Appending */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends the content of the source string to the end of the destination string.
|
||||||
|
*
|
||||||
|
* @param destination The destination string.
|
||||||
|
* @param source The source string.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYAN_INLINE ZyanStatus ZydisStringAppend(ZyanString* destination, const ZyanStringView* source)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(destination && source);
|
||||||
|
ZYAN_ASSERT(!destination->vector.allocator);
|
||||||
|
ZYAN_ASSERT(destination->vector.size && source->string.vector.size);
|
||||||
|
|
||||||
|
if (destination->vector.size + source->string.vector.size - 1 > destination->vector.capacity)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_MEMCPY((char*)destination->vector.data + destination->vector.size - 1,
|
||||||
|
source->string.vector.data, source->string.vector.size - 1);
|
||||||
|
|
||||||
|
destination->vector.size += source->string.vector.size - 1;
|
||||||
|
ZYDIS_STRING_NULLTERMINATE(destination);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends the content of the source string to the end of the destination
|
||||||
|
* string, converting the characters to the specified letter-case.
|
||||||
|
*
|
||||||
|
* @param destination The destination string.
|
||||||
|
* @param source The source string.
|
||||||
|
* @param letter_case The desired letter-case.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYAN_INLINE ZyanStatus ZydisStringAppendCase(ZyanString* destination, const ZyanStringView* source,
|
||||||
|
ZydisLetterCase letter_case)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(destination && source);
|
||||||
|
ZYAN_ASSERT(!destination->vector.allocator);
|
||||||
|
ZYAN_ASSERT(destination->vector.size && source->string.vector.size);
|
||||||
|
|
||||||
|
if (destination->vector.size + source->string.vector.size - 1 > destination->vector.capacity)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_MEMCPY((char*)destination->vector.data + destination->vector.size - 1,
|
||||||
|
source->string.vector.data, source->string.vector.size - 1);
|
||||||
|
|
||||||
|
switch (letter_case)
|
||||||
|
{
|
||||||
|
case ZYDIS_LETTER_CASE_DEFAULT:
|
||||||
|
break;
|
||||||
|
case ZYDIS_LETTER_CASE_LOWER:
|
||||||
|
{
|
||||||
|
const ZyanUSize index = destination->vector.size - 1;
|
||||||
|
const ZyanUSize count = source->string.vector.size - 1;
|
||||||
|
char* s = (char*)destination->vector.data + index;
|
||||||
|
for (ZyanUSize i = index; i < index + count; ++i)
|
||||||
|
{
|
||||||
|
const char c = *s;
|
||||||
|
if ((c >= 'A') && (c <= 'Z'))
|
||||||
|
{
|
||||||
|
*s = c | 32;
|
||||||
|
}
|
||||||
|
++s;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_LETTER_CASE_UPPER:
|
||||||
|
{
|
||||||
|
const ZyanUSize index = destination->vector.size - 1;
|
||||||
|
const ZyanUSize count = source->string.vector.size - 1;
|
||||||
|
char* s = (char*)destination->vector.data + index;
|
||||||
|
for (ZyanUSize i = index; i < index + count; ++i)
|
||||||
|
{
|
||||||
|
const char c = *s;
|
||||||
|
if ((c >= 'a') && (c <= 'z'))
|
||||||
|
{
|
||||||
|
*s = c & ~32;
|
||||||
|
}
|
||||||
|
++s;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
ZYAN_UNREACHABLE;
|
||||||
|
}
|
||||||
|
|
||||||
|
destination->vector.size += source->string.vector.size - 1;
|
||||||
|
ZYDIS_STRING_NULLTERMINATE(destination);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends the content of the source short-string to the end of the destination string.
|
||||||
|
*
|
||||||
|
* @param destination The destination string.
|
||||||
|
* @param source The source string.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYAN_INLINE ZyanStatus ZydisStringAppendShort(ZyanString* destination,
|
||||||
|
const ZydisShortString* source)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(destination && source);
|
||||||
|
ZYAN_ASSERT(!destination->vector.allocator);
|
||||||
|
ZYAN_ASSERT(destination->vector.size && source->size);
|
||||||
|
|
||||||
|
if (destination->vector.size + source->size > destination->vector.capacity)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_MEMCPY((char*)destination->vector.data + destination->vector.size - 1, source->data,
|
||||||
|
(ZyanUSize)source->size + 1);
|
||||||
|
|
||||||
|
destination->vector.size += source->size;
|
||||||
|
ZYDIS_STRING_ASSERT_NULLTERMINATION(destination);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Appends the content of the source short-string to the end of the destination string,
|
||||||
|
* converting the characters to the specified letter-case.
|
||||||
|
*
|
||||||
|
* @param destination The destination string.
|
||||||
|
* @param source The source string.
|
||||||
|
* @param letter_case The desired letter-case.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYAN_INLINE ZyanStatus ZydisStringAppendShortCase(ZyanString* destination,
|
||||||
|
const ZydisShortString* source, ZydisLetterCase letter_case)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(destination && source);
|
||||||
|
ZYAN_ASSERT(!destination->vector.allocator);
|
||||||
|
ZYAN_ASSERT(destination->vector.size && source->size);
|
||||||
|
|
||||||
|
if (destination->vector.size + source->size > destination->vector.capacity)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_MEMCPY((char*)destination->vector.data + destination->vector.size - 1, source->data,
|
||||||
|
(ZyanUSize)source->size + 1);
|
||||||
|
|
||||||
|
switch (letter_case)
|
||||||
|
{
|
||||||
|
case ZYDIS_LETTER_CASE_DEFAULT:
|
||||||
|
break;
|
||||||
|
case ZYDIS_LETTER_CASE_LOWER:
|
||||||
|
{
|
||||||
|
const ZyanUSize index = destination->vector.size - 1;
|
||||||
|
const ZyanUSize count = source->size;
|
||||||
|
char* s = (char*)destination->vector.data + index;
|
||||||
|
for (ZyanUSize i = index; i < index + count; ++i)
|
||||||
|
{
|
||||||
|
const char c = *s;
|
||||||
|
if ((c >= 'A') && (c <= 'Z'))
|
||||||
|
{
|
||||||
|
*s = c | 32;
|
||||||
|
}
|
||||||
|
++s;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_LETTER_CASE_UPPER:
|
||||||
|
{
|
||||||
|
const ZyanUSize index = destination->vector.size - 1;
|
||||||
|
const ZyanUSize count = source->size;
|
||||||
|
char* s = (char*)destination->vector.data + index;
|
||||||
|
for (ZyanUSize i = index; i < index + count; ++i)
|
||||||
|
{
|
||||||
|
const char c = *s;
|
||||||
|
if ((c >= 'a') && (c <= 'z'))
|
||||||
|
{
|
||||||
|
*s = c & ~32;
|
||||||
|
}
|
||||||
|
++s;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
ZYAN_UNREACHABLE;
|
||||||
|
}
|
||||||
|
|
||||||
|
destination->vector.size += source->size;
|
||||||
|
ZYDIS_STRING_ASSERT_NULLTERMINATION(destination);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Formatting */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Formats the given unsigned ordinal `value` to its decimal text-representation and
|
||||||
|
* appends it to the `string`.
|
||||||
|
*
|
||||||
|
* @param string A pointer to the `ZyanString` instance.
|
||||||
|
* @param value The value.
|
||||||
|
* @param padding_length Padds the converted value with leading zeros, if the number of chars is
|
||||||
|
* less than the `padding_length`.
|
||||||
|
* @param prefix The string to use as prefix or `ZYAN_NULL`, if not needed.
|
||||||
|
* @param suffix The string to use as suffix or `ZYAN_NULL`, if not needed.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*
|
||||||
|
* This function will fail, if the `ZYAN_STRING_IS_IMMUTABLE` flag is set for the specified
|
||||||
|
* `ZyanString` instance.
|
||||||
|
*/
|
||||||
|
ZyanStatus ZydisStringAppendDecU(ZyanString* string, ZyanU64 value, ZyanU8 padding_length,
|
||||||
|
const ZyanStringView* prefix, const ZyanStringView* suffix);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Formats the given signed ordinal `value` to its decimal text-representation and
|
||||||
|
* appends it to the `string`.
|
||||||
|
*
|
||||||
|
* @param string A pointer to the `ZyanString` instance.
|
||||||
|
* @param value The value.
|
||||||
|
* @param padding_length Padds the converted value with leading zeros, if the number of chars is
|
||||||
|
* less than the `padding_length`.
|
||||||
|
* @param force_sign Set `ZYAN_TRUE`, to force printing of the `+` sign for positive numbers.
|
||||||
|
* @param prefix The string to use as prefix or `ZYAN_NULL`, if not needed.
|
||||||
|
* @param suffix The string to use as suffix or `ZYAN_NULL`, if not needed.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*
|
||||||
|
* This function will fail, if the `ZYAN_STRING_IS_IMMUTABLE` flag is set for the specified
|
||||||
|
* `ZyanString` instance.
|
||||||
|
*/
|
||||||
|
ZYAN_INLINE ZyanStatus ZydisStringAppendDecS(ZyanString* string, ZyanI64 value,
|
||||||
|
ZyanU8 padding_length, ZyanBool force_sign, const ZyanStringView* prefix,
|
||||||
|
const ZyanStringView* suffix)
|
||||||
|
{
|
||||||
|
static const ZydisShortString str_add = ZYDIS_MAKE_SHORTSTRING("+");
|
||||||
|
static const ZydisShortString str_sub = ZYDIS_MAKE_SHORTSTRING("-");
|
||||||
|
|
||||||
|
if (value < 0)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShort(string, &str_sub));
|
||||||
|
if (prefix)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppend(string, prefix));
|
||||||
|
}
|
||||||
|
return ZydisStringAppendDecU(string, ZyanAbsI64(value), padding_length,
|
||||||
|
(const ZyanStringView*)ZYAN_NULL, suffix);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (force_sign)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(value >= 0);
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShort(string, &str_add));
|
||||||
|
}
|
||||||
|
return ZydisStringAppendDecU(string, value, padding_length, prefix, suffix);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Formats the given unsigned ordinal `value` to its hexadecimal text-representation and
|
||||||
|
* appends it to the `string`.
|
||||||
|
*
|
||||||
|
* @param string A pointer to the `ZyanString` instance.
|
||||||
|
* @param value The value.
|
||||||
|
* @param padding_length Padds the converted value with leading zeros, if the number of chars is
|
||||||
|
* less than the `padding_length`.
|
||||||
|
* @param uppercase Set `ZYAN_TRUE` to use uppercase letters ('A'-'F') instead of lowercase
|
||||||
|
* ones ('a'-'f').
|
||||||
|
* @param prefix The string to use as prefix or `ZYAN_NULL`, if not needed.
|
||||||
|
* @param suffix The string to use as suffix or `ZYAN_NULL`, if not needed.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*
|
||||||
|
* This function will fail, if the `ZYAN_STRING_IS_IMMUTABLE` flag is set for the specified
|
||||||
|
* `ZyanString` instance.
|
||||||
|
*/
|
||||||
|
ZyanStatus ZydisStringAppendHexU(ZyanString* string, ZyanU64 value, ZyanU8 padding_length,
|
||||||
|
ZyanBool uppercase, const ZyanStringView* prefix, const ZyanStringView* suffix);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Formats the given signed ordinal `value` to its hexadecimal text-representation and
|
||||||
|
* appends it to the `string`.
|
||||||
|
*
|
||||||
|
* @param string A pointer to the string.
|
||||||
|
* @param value The value.
|
||||||
|
* @param padding_length Padds the converted value with leading zeros, if the number of chars is
|
||||||
|
* less than the `padding_length` (the sign char is ignored).
|
||||||
|
* @param uppercase Set `ZYAN_TRUE` to print the hexadecimal value in uppercase letters
|
||||||
|
* instead of lowercase ones.
|
||||||
|
* @param force_sign Set to `ZYAN_TRUE`, to force printing of the `+` sign for positive
|
||||||
|
* numbers.
|
||||||
|
* @param prefix The string to use as prefix or `NULL`, if not needed.
|
||||||
|
* @param suffix The string to use as suffix or `NULL`, if not needed.
|
||||||
|
*
|
||||||
|
* @return `ZYAN_STATUS_SUCCESS`, if the function succeeded, or
|
||||||
|
* `ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE`, if the size of the buffer was not
|
||||||
|
* sufficient to append the given `value`.
|
||||||
|
*
|
||||||
|
* The string-buffer pointer is increased by the number of chars written, if the call was
|
||||||
|
* successful.
|
||||||
|
*/
|
||||||
|
ZYAN_INLINE ZyanStatus ZydisStringAppendHexS(ZyanString* string, ZyanI64 value,
|
||||||
|
ZyanU8 padding_length, ZyanBool uppercase, ZyanBool force_sign, const ZyanStringView* prefix,
|
||||||
|
const ZyanStringView* suffix)
|
||||||
|
{
|
||||||
|
static const ZydisShortString str_add = ZYDIS_MAKE_SHORTSTRING("+");
|
||||||
|
static const ZydisShortString str_sub = ZYDIS_MAKE_SHORTSTRING("-");
|
||||||
|
|
||||||
|
if (value < 0)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShort(string, &str_sub));
|
||||||
|
if (prefix)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppend(string, prefix));
|
||||||
|
}
|
||||||
|
return ZydisStringAppendHexU(string, ZyanAbsI64(value), padding_length, uppercase,
|
||||||
|
(const ZyanStringView*)ZYAN_NULL, suffix);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (force_sign)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(value >= 0);
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShort(string, &str_add));
|
||||||
|
}
|
||||||
|
return ZydisStringAppendHexU(string, value, padding_length, uppercase, prefix, suffix);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // ZYDIS_INTERNAL_STRING_H
|
88
include/Zydis/MetaInfo.h
Normal file
88
include/Zydis/MetaInfo.h
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* @brief
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_METAINFO_H
|
||||||
|
#define ZYDIS_METAINFO_H
|
||||||
|
|
||||||
|
#include <ZydisExportConfig.h>
|
||||||
|
#include <Zycore/Defines.h>
|
||||||
|
#include <Zycore/Types.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#include <Zydis/Generated/EnumInstructionCategory.h>
|
||||||
|
#include <Zydis/Generated/EnumISASet.h>
|
||||||
|
#include <Zydis/Generated/EnumISAExt.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the specified instruction category string.
|
||||||
|
*
|
||||||
|
* @param category The instruction category.
|
||||||
|
*
|
||||||
|
* @return The instruction category string or `ZYAN_NULL`, if an invalid category was passed.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT const char* ZydisCategoryGetString(ZydisInstructionCategory category);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the specified isa-set string.
|
||||||
|
*
|
||||||
|
* @param isa_set The isa-set.
|
||||||
|
*
|
||||||
|
* @return The isa-set string or `ZYAN_NULL`, if an invalid isa-set was passed.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT const char* ZydisISASetGetString(ZydisISASet isa_set);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the specified isa-extension string.
|
||||||
|
*
|
||||||
|
* @param isa_ext The isa-extension.
|
||||||
|
*
|
||||||
|
* @return The isa-extension string or `ZYAN_NULL`, if an invalid isa-extension was passed.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT const char* ZydisISAExtGetString(ZydisISAExt isa_ext);
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_METAINFO_H */
|
88
include/Zydis/Mnemonic.h
Normal file
88
include/Zydis/Mnemonic.h
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Mnemonic constant definitions and helper functions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_MNEMONIC_H
|
||||||
|
#define ZYDIS_MNEMONIC_H
|
||||||
|
|
||||||
|
#include <Zycore/Types.h>
|
||||||
|
#include <Zydis/ShortString.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#include <Zydis/Generated/EnumMnemonic.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @addtogroup mnemonic Mnemonic
|
||||||
|
* Functions for retrieving mnemonic names.
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the specified instruction mnemonic string.
|
||||||
|
*
|
||||||
|
* @param mnemonic The mnemonic.
|
||||||
|
*
|
||||||
|
* @return The instruction mnemonic string or `ZYAN_NULL`, if an invalid mnemonic was passed.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT const char* ZydisMnemonicGetString(ZydisMnemonic mnemonic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the specified instruction mnemonic as `ZydisShortString`.
|
||||||
|
*
|
||||||
|
* @param mnemonic The mnemonic.
|
||||||
|
*
|
||||||
|
* @return The instruction mnemonic string or `ZYAN_NULL`, if an invalid mnemonic was passed.
|
||||||
|
*
|
||||||
|
* The `buffer` of the returned struct is guaranteed to be zero-terminated in this special case.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT const ZydisShortString* ZydisMnemonicGetStringWrapped(ZydisMnemonic mnemonic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_MNEMONIC_H */
|
293
include/Zydis/Register.h
Normal file
293
include/Zydis/Register.h
Normal file
|
@ -0,0 +1,293 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Utility functions and constants for registers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_REGISTER_H
|
||||||
|
#define ZYDIS_REGISTER_H
|
||||||
|
|
||||||
|
#include <Zycore/Defines.h>
|
||||||
|
#include <Zycore/Types.h>
|
||||||
|
#include <Zydis/SharedTypes.h>
|
||||||
|
#include <Zydis/ShortString.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Registers */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#include <Zydis/Generated/EnumRegister.h>
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Register classes */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisRegisterClass` enum.
|
||||||
|
*
|
||||||
|
* Please note that this enum does not contain a matching entry for all values of the
|
||||||
|
* `ZydisRegister` enum, but only for those registers where it makes sense to logically group them
|
||||||
|
* for decoding/encoding purposes.
|
||||||
|
*
|
||||||
|
* These are mainly the registers that can be identified by an id within their corresponding
|
||||||
|
* register-class. The `IP` and `FLAGS` values are exceptions to this rule.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisRegisterClass_
|
||||||
|
{
|
||||||
|
ZYDIS_REGCLASS_INVALID,
|
||||||
|
/**
|
||||||
|
* 8-bit general-purpose registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_GPR8,
|
||||||
|
/**
|
||||||
|
* 16-bit general-purpose registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_GPR16,
|
||||||
|
/**
|
||||||
|
* 32-bit general-purpose registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_GPR32,
|
||||||
|
/**
|
||||||
|
* 64-bit general-purpose registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_GPR64,
|
||||||
|
/**
|
||||||
|
* Floating point legacy registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_X87,
|
||||||
|
/**
|
||||||
|
* Floating point multimedia registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_MMX,
|
||||||
|
/**
|
||||||
|
* 128-bit vector registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_XMM,
|
||||||
|
/**
|
||||||
|
* 256-bit vector registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_YMM,
|
||||||
|
/**
|
||||||
|
* 512-bit vector registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_ZMM,
|
||||||
|
/**
|
||||||
|
* Matrix registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_TMM,
|
||||||
|
/*
|
||||||
|
* Flags registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_FLAGS,
|
||||||
|
/**
|
||||||
|
* Instruction-pointer registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_IP,
|
||||||
|
/**
|
||||||
|
* Segment registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_SEGMENT,
|
||||||
|
/**
|
||||||
|
* Test registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_TEST,
|
||||||
|
/**
|
||||||
|
* Control registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_CONTROL,
|
||||||
|
/**
|
||||||
|
* Debug registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_DEBUG,
|
||||||
|
/**
|
||||||
|
* Mask registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_MASK,
|
||||||
|
/**
|
||||||
|
* Bound registers.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_BOUND,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_MAX_VALUE = ZYDIS_REGCLASS_BOUND,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_REGCLASS_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_REGCLASS_MAX_VALUE)
|
||||||
|
} ZydisRegisterClass;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Register width */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisRegisterWidth` data-type.
|
||||||
|
*/
|
||||||
|
typedef ZyanU16 ZydisRegisterWidth;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Register context */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisRegisterContext` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisRegisterContext_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The values stored in the register context.
|
||||||
|
*/
|
||||||
|
ZyanU64 values[ZYDIS_REGISTER_MAX_VALUE + 1];
|
||||||
|
} ZydisRegisterContext;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @addtogroup register Register
|
||||||
|
* Functions allowing retrieval of information about registers.
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Register */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the register specified by the `register_class` and `id` tuple.
|
||||||
|
*
|
||||||
|
* @param register_class The register class.
|
||||||
|
* @param id The register id.
|
||||||
|
*
|
||||||
|
* @return The register specified by the `register_class` and `id` tuple or `ZYDIS_REGISTER_NONE`,
|
||||||
|
* if an invalid parameter was passed.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZydisRegister ZydisRegisterEncode(ZydisRegisterClass register_class, ZyanU8 id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the id of the specified register.
|
||||||
|
*
|
||||||
|
* @param reg The register.
|
||||||
|
*
|
||||||
|
* @return The id of the specified register, or -1 if an invalid parameter was passed.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanI8 ZydisRegisterGetId(ZydisRegister reg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the register-class of the specified register.
|
||||||
|
*
|
||||||
|
* @param reg The register.
|
||||||
|
*
|
||||||
|
* @return The register-class of the specified register.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZydisRegisterClass ZydisRegisterGetClass(ZydisRegister reg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the width of the specified register.
|
||||||
|
*
|
||||||
|
* @param mode The active machine mode.
|
||||||
|
* @param reg The register.
|
||||||
|
*
|
||||||
|
* @return The width of the specified register, or `ZYDIS_REGISTER_NONE` if the register is
|
||||||
|
* invalid for the active machine-mode.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZydisRegisterWidth ZydisRegisterGetWidth(ZydisMachineMode mode, ZydisRegister reg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the largest enclosing register of the given register.
|
||||||
|
*
|
||||||
|
* @param mode The active machine mode.
|
||||||
|
* @param reg The register.
|
||||||
|
*
|
||||||
|
* @return The largest enclosing register of the given register, or `ZYDIS_REGISTER_NONE` if the
|
||||||
|
* register is invalid for the active machine-mode or does not have an enclosing-register.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZydisRegister ZydisRegisterGetLargestEnclosing(ZydisMachineMode mode,
|
||||||
|
ZydisRegister reg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the specified register string.
|
||||||
|
*
|
||||||
|
* @param reg The register.
|
||||||
|
*
|
||||||
|
* @return The register string or `ZYAN_NULL`, if an invalid register was passed.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT const char* ZydisRegisterGetString(ZydisRegister reg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the specified register string as `ZydisShortString`.
|
||||||
|
*
|
||||||
|
* @param reg The register.
|
||||||
|
*
|
||||||
|
* @return The register string or `ZYAN_NULL`, if an invalid register was passed.
|
||||||
|
*
|
||||||
|
* The `buffer` of the returned struct is guaranteed to be zero-terminated in this special case.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT const ZydisShortString* ZydisRegisterGetStringWrapped(ZydisRegister reg);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Register class */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the width of the specified register-class.
|
||||||
|
*
|
||||||
|
* @param mode The active machine mode.
|
||||||
|
* @param register_class The register class.
|
||||||
|
*
|
||||||
|
* @return The width of the specified register.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZydisRegisterWidth ZydisRegisterClassGetWidth(ZydisMachineMode mode,
|
||||||
|
ZydisRegisterClass register_class);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_REGISTER_H */
|
480
include/Zydis/SharedTypes.h
Normal file
480
include/Zydis/SharedTypes.h
Normal file
|
@ -0,0 +1,480 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Defines decoder/encoder-shared macros and types.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_SHAREDTYPES_H
|
||||||
|
#define ZYDIS_SHAREDTYPES_H
|
||||||
|
|
||||||
|
#include <Zycore/Types.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Macros */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Constants */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#define ZYDIS_MAX_INSTRUCTION_LENGTH 15
|
||||||
|
#define ZYDIS_MAX_OPERAND_COUNT 10
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Machine mode */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisMachineMode` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisMachineMode_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 64 bit mode.
|
||||||
|
*/
|
||||||
|
ZYDIS_MACHINE_MODE_LONG_64,
|
||||||
|
/**
|
||||||
|
* 32 bit protected mode.
|
||||||
|
*/
|
||||||
|
ZYDIS_MACHINE_MODE_LONG_COMPAT_32,
|
||||||
|
/**
|
||||||
|
* 16 bit protected mode.
|
||||||
|
*/
|
||||||
|
ZYDIS_MACHINE_MODE_LONG_COMPAT_16,
|
||||||
|
/**
|
||||||
|
* 32 bit protected mode.
|
||||||
|
*/
|
||||||
|
ZYDIS_MACHINE_MODE_LEGACY_32,
|
||||||
|
/**
|
||||||
|
* 16 bit protected mode.
|
||||||
|
*/
|
||||||
|
ZYDIS_MACHINE_MODE_LEGACY_16,
|
||||||
|
/**
|
||||||
|
* 16 bit real mode.
|
||||||
|
*/
|
||||||
|
ZYDIS_MACHINE_MODE_REAL_16,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_MACHINE_MODE_MAX_VALUE = ZYDIS_MACHINE_MODE_REAL_16,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_MACHINE_MODE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_MACHINE_MODE_MAX_VALUE)
|
||||||
|
} ZydisMachineMode;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Address width */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisAddressWidth` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisAddressWidth_
|
||||||
|
{
|
||||||
|
ZYDIS_ADDRESS_WIDTH_16,
|
||||||
|
ZYDIS_ADDRESS_WIDTH_32,
|
||||||
|
ZYDIS_ADDRESS_WIDTH_64,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_ADDRESS_WIDTH_MAX_VALUE = ZYDIS_ADDRESS_WIDTH_64,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_ADDRESS_WIDTH_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_ADDRESS_WIDTH_MAX_VALUE)
|
||||||
|
} ZydisAddressWidth;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Element type */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisElementType` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisElementType_
|
||||||
|
{
|
||||||
|
ZYDIS_ELEMENT_TYPE_INVALID,
|
||||||
|
/**
|
||||||
|
* A struct type.
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_STRUCT,
|
||||||
|
/**
|
||||||
|
* Unsigned integer value.
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_UINT,
|
||||||
|
/**
|
||||||
|
* Signed integer value.
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_INT,
|
||||||
|
/**
|
||||||
|
* 16-bit floating point value (`half`).
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_FLOAT16,
|
||||||
|
/**
|
||||||
|
* 32-bit floating point value (`single`).
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_FLOAT32,
|
||||||
|
/**
|
||||||
|
* 64-bit floating point value (`double`).
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_FLOAT64,
|
||||||
|
/**
|
||||||
|
* 80-bit floating point value (`extended`).
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_FLOAT80,
|
||||||
|
/**
|
||||||
|
* Binary coded decimal value.
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_LONGBCD,
|
||||||
|
/**
|
||||||
|
* A condition code (e.g. used by `CMPPD`, `VCMPPD`, ...).
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_CC,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_MAX_VALUE = ZYDIS_ELEMENT_TYPE_CC,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_ELEMENT_TYPE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_ELEMENT_TYPE_MAX_VALUE)
|
||||||
|
} ZydisElementType;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Element size */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisElementSize` datatype.
|
||||||
|
*/
|
||||||
|
typedef ZyanU16 ZydisElementSize;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operand type */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisOperandType` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisOperandType_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The operand is not used.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_TYPE_UNUSED,
|
||||||
|
/**
|
||||||
|
* The operand is a register operand.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_TYPE_REGISTER,
|
||||||
|
/**
|
||||||
|
* The operand is a memory operand.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_TYPE_MEMORY,
|
||||||
|
/**
|
||||||
|
* The operand is a pointer operand with a segment:offset lvalue.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_TYPE_POINTER,
|
||||||
|
/**
|
||||||
|
* The operand is an immediate operand.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_TYPE_IMMEDIATE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_TYPE_MAX_VALUE = ZYDIS_OPERAND_TYPE_IMMEDIATE,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_TYPE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_OPERAND_TYPE_MAX_VALUE)
|
||||||
|
} ZydisOperandType;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operand encoding */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisOperandEncoding` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisOperandEncoding_
|
||||||
|
{
|
||||||
|
ZYDIS_OPERAND_ENCODING_NONE,
|
||||||
|
ZYDIS_OPERAND_ENCODING_MODRM_REG,
|
||||||
|
ZYDIS_OPERAND_ENCODING_MODRM_RM,
|
||||||
|
ZYDIS_OPERAND_ENCODING_OPCODE,
|
||||||
|
ZYDIS_OPERAND_ENCODING_NDSNDD,
|
||||||
|
ZYDIS_OPERAND_ENCODING_IS4,
|
||||||
|
ZYDIS_OPERAND_ENCODING_MASK,
|
||||||
|
ZYDIS_OPERAND_ENCODING_DISP8,
|
||||||
|
ZYDIS_OPERAND_ENCODING_DISP16,
|
||||||
|
ZYDIS_OPERAND_ENCODING_DISP32,
|
||||||
|
ZYDIS_OPERAND_ENCODING_DISP64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_DISP16_32_64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_DISP32_32_64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_DISP16_32_32,
|
||||||
|
ZYDIS_OPERAND_ENCODING_UIMM8,
|
||||||
|
ZYDIS_OPERAND_ENCODING_UIMM16,
|
||||||
|
ZYDIS_OPERAND_ENCODING_UIMM32,
|
||||||
|
ZYDIS_OPERAND_ENCODING_UIMM64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_UIMM16_32_64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_UIMM32_32_64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_UIMM16_32_32,
|
||||||
|
ZYDIS_OPERAND_ENCODING_SIMM8,
|
||||||
|
ZYDIS_OPERAND_ENCODING_SIMM16,
|
||||||
|
ZYDIS_OPERAND_ENCODING_SIMM32,
|
||||||
|
ZYDIS_OPERAND_ENCODING_SIMM64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_SIMM16_32_64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_SIMM32_32_64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_SIMM16_32_32,
|
||||||
|
ZYDIS_OPERAND_ENCODING_JIMM8,
|
||||||
|
ZYDIS_OPERAND_ENCODING_JIMM16,
|
||||||
|
ZYDIS_OPERAND_ENCODING_JIMM32,
|
||||||
|
ZYDIS_OPERAND_ENCODING_JIMM64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_JIMM16_32_64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_JIMM32_32_64,
|
||||||
|
ZYDIS_OPERAND_ENCODING_JIMM16_32_32,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ENCODING_MAX_VALUE = ZYDIS_OPERAND_ENCODING_JIMM16_32_32,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ENCODING_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_OPERAND_ENCODING_MAX_VALUE)
|
||||||
|
} ZydisOperandEncoding;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operand visibility */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisOperandVisibility` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisOperandVisibility_
|
||||||
|
{
|
||||||
|
ZYDIS_OPERAND_VISIBILITY_INVALID,
|
||||||
|
/**
|
||||||
|
* The operand is explicitly encoded in the instruction.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_VISIBILITY_EXPLICIT,
|
||||||
|
/**
|
||||||
|
* The operand is part of the opcode, but listed as an operand.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_VISIBILITY_IMPLICIT,
|
||||||
|
/**
|
||||||
|
* The operand is part of the opcode, and not typically listed as an operand.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_VISIBILITY_HIDDEN,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_VISIBILITY_MAX_VALUE = ZYDIS_OPERAND_VISIBILITY_HIDDEN,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_VISIBILITY_REQUIRED_BITS =
|
||||||
|
ZYAN_BITS_TO_REPRESENT(ZYDIS_OPERAND_VISIBILITY_MAX_VALUE)
|
||||||
|
} ZydisOperandVisibility;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operand action */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisOperandAction` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisOperandAction_
|
||||||
|
{
|
||||||
|
/* ------------------------------------------------------------------------------------------ */
|
||||||
|
/* Elemental actions */
|
||||||
|
/* ------------------------------------------------------------------------------------------ */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The operand is read by the instruction.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_READ = 0x01,
|
||||||
|
/**
|
||||||
|
* The operand is written by the instruction (must write).
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_WRITE = 0x02,
|
||||||
|
/**
|
||||||
|
* The operand is conditionally read by the instruction.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_CONDREAD = 0x04,
|
||||||
|
/**
|
||||||
|
* The operand is conditionally written by the instruction (may write).
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_CONDWRITE = 0x08,
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------------------------------------ */
|
||||||
|
/* Combined actions */
|
||||||
|
/* ------------------------------------------------------------------------------------------ */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The operand is read (must read) and written by the instruction (must write).
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_READWRITE = ZYDIS_OPERAND_ACTION_READ | ZYDIS_OPERAND_ACTION_WRITE,
|
||||||
|
/**
|
||||||
|
* The operand is conditionally read (may read) and conditionally written by
|
||||||
|
* the instruction (may write).
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_CONDREAD_CONDWRITE =
|
||||||
|
ZYDIS_OPERAND_ACTION_CONDREAD | ZYDIS_OPERAND_ACTION_CONDWRITE,
|
||||||
|
/**
|
||||||
|
* The operand is read (must read) and conditionally written by the
|
||||||
|
* instruction (may write).
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_READ_CONDWRITE =
|
||||||
|
ZYDIS_OPERAND_ACTION_READ | ZYDIS_OPERAND_ACTION_CONDWRITE,
|
||||||
|
/**
|
||||||
|
* The operand is written (must write) and conditionally read by the
|
||||||
|
* instruction (may read).
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_CONDREAD_WRITE =
|
||||||
|
ZYDIS_OPERAND_ACTION_CONDREAD | ZYDIS_OPERAND_ACTION_WRITE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mask combining all reading access flags.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_MASK_READ = ZYDIS_OPERAND_ACTION_READ | ZYDIS_OPERAND_ACTION_CONDREAD,
|
||||||
|
/**
|
||||||
|
* Mask combining all writing access flags.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_MASK_WRITE = ZYDIS_OPERAND_ACTION_WRITE | ZYDIS_OPERAND_ACTION_CONDWRITE,
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------------------------------------ */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this bitset.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPERAND_ACTION_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_OPERAND_ACTION_CONDWRITE)
|
||||||
|
} ZydisOperandAction;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisOperandActions` data-type.
|
||||||
|
*/
|
||||||
|
typedef ZyanU8 ZydisOperandActions;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Instruction encoding */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionEncoding` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisInstructionEncoding_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The instruction uses the legacy encoding.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTRUCTION_ENCODING_LEGACY,
|
||||||
|
/**
|
||||||
|
* The instruction uses the AMD 3DNow-encoding.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTRUCTION_ENCODING_3DNOW,
|
||||||
|
/**
|
||||||
|
* The instruction uses the AMD XOP-encoding.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTRUCTION_ENCODING_XOP,
|
||||||
|
/**
|
||||||
|
* The instruction uses the VEX-encoding.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTRUCTION_ENCODING_VEX,
|
||||||
|
/**
|
||||||
|
* The instruction uses the EVEX-encoding.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTRUCTION_ENCODING_EVEX,
|
||||||
|
/**
|
||||||
|
* The instruction uses the MVEX-encoding.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTRUCTION_ENCODING_MVEX,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTRUCTION_ENCODING_MAX_VALUE = ZYDIS_INSTRUCTION_ENCODING_MVEX,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTRUCTION_ENCODING_REQUIRED_BITS =
|
||||||
|
ZYAN_BITS_TO_REPRESENT(ZYDIS_INSTRUCTION_ENCODING_MAX_VALUE)
|
||||||
|
} ZydisInstructionEncoding;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Opcode map */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisOpcodeMap` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisOpcodeMap_
|
||||||
|
{
|
||||||
|
ZYDIS_OPCODE_MAP_DEFAULT,
|
||||||
|
ZYDIS_OPCODE_MAP_0F,
|
||||||
|
ZYDIS_OPCODE_MAP_0F38,
|
||||||
|
ZYDIS_OPCODE_MAP_0F3A,
|
||||||
|
ZYDIS_OPCODE_MAP_0F0F,
|
||||||
|
ZYDIS_OPCODE_MAP_XOP8,
|
||||||
|
ZYDIS_OPCODE_MAP_XOP9,
|
||||||
|
ZYDIS_OPCODE_MAP_XOPA,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPCODE_MAP_MAX_VALUE = ZYDIS_OPCODE_MAP_XOPA,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_OPCODE_MAP_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_OPCODE_MAP_MAX_VALUE)
|
||||||
|
} ZydisOpcodeMap;
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_SHAREDTYPES_H */
|
90
include/Zydis/ShortString.h
Normal file
90
include/Zydis/ShortString.h
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Defines the immutable and storage-efficient `ZydisShortString` struct, which
|
||||||
|
* is used to store strings in the generated tables.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_SHORTSTRING_H
|
||||||
|
#define ZYDIS_SHORTSTRING_H
|
||||||
|
|
||||||
|
#include <ZydisExportConfig.h>
|
||||||
|
#include <Zycore/Defines.h>
|
||||||
|
#include <Zycore/Types.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisShortString` struct.
|
||||||
|
*
|
||||||
|
* This compact struct is mainly used for internal string-tables to save up some bytes.
|
||||||
|
*
|
||||||
|
* All fields in this struct should be considered as "private". Any changes may lead to unexpected
|
||||||
|
* behavior.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisShortString_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The buffer that contains the actual (null-terminated) string.
|
||||||
|
*/
|
||||||
|
const char* data;
|
||||||
|
/**
|
||||||
|
* The length (number of characters) of the string (without 0-termination).
|
||||||
|
*/
|
||||||
|
ZyanU8 size;
|
||||||
|
} ZydisShortString;
|
||||||
|
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Macros */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Declares a `ZydisShortString` from a static C-style string.
|
||||||
|
*
|
||||||
|
* @param string The C-string constant.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_MAKE_SHORTSTRING(string) \
|
||||||
|
{ string, sizeof(string) - 1 }
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_SHORTSTRING_H */
|
159
include/Zydis/Status.h
Normal file
159
include/Zydis/Status.h
Normal file
|
@ -0,0 +1,159 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Status code definitions and check macros.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_STATUS_H
|
||||||
|
#define ZYDIS_STATUS_H
|
||||||
|
|
||||||
|
#include <Zycore/Status.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Status codes */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Module IDs */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The zydis module id.
|
||||||
|
*/
|
||||||
|
#define ZYAN_MODULE_ZYDIS 0x002u
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Status codes */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Decoder */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An attempt was made to read data from an input data-source that has no more
|
||||||
|
* data available.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_NO_MORE_DATA \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x00u)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An general error occured while decoding the current instruction. The
|
||||||
|
* instruction might be undefined.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_DECODING_ERROR \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x01u)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The instruction exceeded the maximum length of 15 bytes.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_INSTRUCTION_TOO_LONG \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x02u)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The instruction encoded an invalid register.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_BAD_REGISTER \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x03u)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A lock-prefix (F0) was found while decoding an instruction that does not
|
||||||
|
* support locking.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_ILLEGAL_LOCK \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x04u)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A legacy-prefix (F2, F3, 66) was found while decoding a XOP/VEX/EVEX/MVEX
|
||||||
|
* instruction.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_ILLEGAL_LEGACY_PFX \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x05u)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A rex-prefix was found while decoding a XOP/VEX/EVEX/MVEX instruction.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_ILLEGAL_REX \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x06u)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An invalid opcode-map value was found while decoding a XOP/VEX/EVEX/MVEX-prefix.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_INVALID_MAP \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x07u)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An error occured while decoding the EVEX-prefix.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_MALFORMED_EVEX \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x08u)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An error occured while decoding the MVEX-prefix.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_MALFORMED_MVEX \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x09u)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An invalid write-mask was specified for an EVEX/MVEX instruction.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_INVALID_MASK \
|
||||||
|
ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYDIS, 0x0Au)
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Formatter */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returning this status code in some specified formatter callbacks will cause
|
||||||
|
* the formatter to omit the corresponding token.
|
||||||
|
*
|
||||||
|
* Valid callbacks:
|
||||||
|
* - `ZYDIS_FORMATTER_FUNC_PRE_OPERAND`
|
||||||
|
* - `ZYDIS_FORMATTER_FUNC_POST_OPERAND`
|
||||||
|
* - `ZYDIS_FORMATTER_FUNC_FORMAT_OPERAND_REG`
|
||||||
|
* - `ZYDIS_FORMATTER_FUNC_FORMAT_OPERAND_MEM`
|
||||||
|
* - `ZYDIS_FORMATTER_FUNC_FORMAT_OPERAND_PTR`
|
||||||
|
* - `ZYDIS_FORMATTER_FUNC_FORMAT_OPERAND_IMM`
|
||||||
|
*/
|
||||||
|
#define ZYDIS_STATUS_SKIP_TOKEN \
|
||||||
|
ZYAN_MAKE_STATUS(0u, ZYAN_MODULE_ZYDIS, 0x0Bu)
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_STATUS_H */
|
275
include/Zydis/Utils.h
Normal file
275
include/Zydis/Utils.h
Normal file
|
@ -0,0 +1,275 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Other utility functions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_UTILS_H
|
||||||
|
#define ZYDIS_UTILS_H
|
||||||
|
|
||||||
|
#include <Zycore/Defines.h>
|
||||||
|
#include <Zydis/DecoderTypes.h>
|
||||||
|
#include <Zydis/Status.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Macros */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Constants */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#define ZYDIS_MAX_INSTRUCTION_SEGMENT_COUNT 9
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionSegment` struct.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisInstructionSegment_
|
||||||
|
{
|
||||||
|
ZYDIS_INSTR_SEGMENT_NONE,
|
||||||
|
/**
|
||||||
|
* The legacy prefixes (including ignored `REX` prefixes).
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_PREFIXES,
|
||||||
|
/**
|
||||||
|
* The effective `REX` prefix byte.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_REX,
|
||||||
|
/**
|
||||||
|
* The `XOP` prefix bytes.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_XOP,
|
||||||
|
/**
|
||||||
|
* The `VEX` prefix bytes.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_VEX,
|
||||||
|
/**
|
||||||
|
* The `EVEX` prefix bytes.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_EVEX,
|
||||||
|
/**
|
||||||
|
* The `MVEX` prefix bytes.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_MVEX,
|
||||||
|
/**
|
||||||
|
* The opcode bytes.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_OPCODE,
|
||||||
|
/**
|
||||||
|
* The `ModRM` byte.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_MODRM,
|
||||||
|
/**
|
||||||
|
* The `SIB` byte.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_SIB,
|
||||||
|
/**
|
||||||
|
* The displacement bytes.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_DISPLACEMENT,
|
||||||
|
/**
|
||||||
|
* The immediate bytes.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_IMMEDIATE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_MAX_VALUE = ZYDIS_INSTR_SEGMENT_IMMEDIATE,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_INSTR_SEGMENT_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_INSTR_SEGMENT_MAX_VALUE)
|
||||||
|
} ZydisInstructionSegment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisInstructionSegments` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisInstructionSegments_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The number of logical instruction segments.
|
||||||
|
*/
|
||||||
|
ZyanU8 count;
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The type of the segment.
|
||||||
|
*/
|
||||||
|
ZydisInstructionSegment type;
|
||||||
|
/**
|
||||||
|
* The offset of the segment relative to the start of the instruction (in bytes).
|
||||||
|
*/
|
||||||
|
ZyanU8 offset;
|
||||||
|
/**
|
||||||
|
* The size of the segment, in bytes.
|
||||||
|
*/
|
||||||
|
ZyanU8 size;
|
||||||
|
} segments[ZYDIS_MAX_INSTRUCTION_SEGMENT_COUNT];
|
||||||
|
} ZydisInstructionSegments;
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @addtogroup utils Utils
|
||||||
|
* Miscellaneous utility functions. Address translation and other helpers.
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Address calculation */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
// TODO: Provide a function that works in minimal-mode and does not require a operand parameter
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calculates the absolute address value for the given instruction operand.
|
||||||
|
*
|
||||||
|
* @param instruction A pointer to the `ZydisDecodedInstruction` struct.
|
||||||
|
* @param operand A pointer to the `ZydisDecodedOperand` struct.
|
||||||
|
* @param runtime_address The runtime address of the instruction.
|
||||||
|
* @param result_address A pointer to the memory that receives the absolute address.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*
|
||||||
|
* You should use this function in the following cases:
|
||||||
|
* - `IMM` operands with relative address (e.g. `JMP`, `CALL`, ...)
|
||||||
|
* - `MEM` operands with `RIP`/`EIP`-relative address (e.g. `MOV RAX, [RIP+0x12345678]`)
|
||||||
|
* - `MEM` operands with absolute address (e.g. `MOV RAX, [0x12345678]`)
|
||||||
|
* - The displacement needs to get truncated and zero extended
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisCalcAbsoluteAddress(const ZydisDecodedInstruction* instruction,
|
||||||
|
const ZydisDecodedOperand* operand, ZyanU64 runtime_address, ZyanU64* result_address);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calculates the absolute address value for the given instruction operand.
|
||||||
|
*
|
||||||
|
* @param instruction A pointer to the `ZydisDecodedInstruction` struct.
|
||||||
|
* @param operand A pointer to the `ZydisDecodedOperand` struct.
|
||||||
|
* @param runtime_address The runtime address of the instruction.
|
||||||
|
* @param register_context A pointer to the `ZydisRegisterContext` struct.
|
||||||
|
* @param result_address A pointer to the memory that receives the absolute target-address.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*
|
||||||
|
* This function behaves like `ZydisCalcAbsoluteAddress` but takes an additional register-context
|
||||||
|
* argument to allow calculation of addresses depending on runtime register values.
|
||||||
|
*
|
||||||
|
* Note that `IP/EIP/RIP` from the register-context will be ignored in favor of the passed
|
||||||
|
* runtime-address.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisCalcAbsoluteAddressEx(const ZydisDecodedInstruction* instruction,
|
||||||
|
const ZydisDecodedOperand* operand, ZyanU64 runtime_address,
|
||||||
|
const ZydisRegisterContext* register_context, ZyanU64* result_address);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Accessed CPU flags */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a mask of accessed CPU-flags matching the given `action`.
|
||||||
|
*
|
||||||
|
* @param instruction A pointer to the `ZydisDecodedInstruction` struct.
|
||||||
|
* @param action The CPU-flag action.
|
||||||
|
* @param flags Receives the flag mask.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisGetAccessedFlagsByAction(const ZydisDecodedInstruction* instruction,
|
||||||
|
ZydisCPUFlagAction action, ZydisCPUFlags* flags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a mask of accessed CPU-flags that are read (tested) by the current instruction.
|
||||||
|
*
|
||||||
|
* DEPRECATED. This function will be removed in the next major release. Please refer to the
|
||||||
|
* `cpu_flags_read` or `fpu_flags_read` fields of the `ZydisDecodedInstruction` instead.
|
||||||
|
*
|
||||||
|
* @param instruction A pointer to the `ZydisDecodedInstruction` struct.
|
||||||
|
* @param flags Receives the flag mask.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYDIS_DEPRECATED_EXPORT ZyanStatus ZydisGetAccessedFlagsRead(
|
||||||
|
const ZydisDecodedInstruction* instruction, ZydisCPUFlags* flags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a mask of accessed CPU-flags that are written (modified, undefined) by the current
|
||||||
|
* instruction.
|
||||||
|
*
|
||||||
|
* DEPRECATED. This function will be removed in the next major release. Please refer to the
|
||||||
|
* `cpu_flags_written` or `fpu_flags_written` fields of the `ZydisDecodedInstruction` instead.
|
||||||
|
*
|
||||||
|
* @param instruction A pointer to the `ZydisDecodedInstruction` struct.
|
||||||
|
* @param flags Receives the flag mask.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYDIS_DEPRECATED_EXPORT ZyanStatus ZydisGetAccessedFlagsWritten(
|
||||||
|
const ZydisDecodedInstruction* instruction, ZydisCPUFlags* flags);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Instruction segments */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns offsets and sizes of all logical instruction segments (e.g. `OPCODE`,
|
||||||
|
* `MODRM`, ...).
|
||||||
|
*
|
||||||
|
* @param instruction A pointer to the `ZydisDecodedInstruction` struct.
|
||||||
|
* @param segments Receives the instruction segments information.
|
||||||
|
*
|
||||||
|
* @return A zyan status code.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisGetInstructionSegments(const ZydisDecodedInstruction* instruction,
|
||||||
|
ZydisInstructionSegments* segments);
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_UTILS_H */
|
169
include/Zydis/Zydis.h
Normal file
169
include/Zydis/Zydis.h
Normal file
|
@ -0,0 +1,169 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Master include file, including everything else.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ZYDIS_H
|
||||||
|
#define ZYDIS_H
|
||||||
|
|
||||||
|
#include <Zycore/Defines.h>
|
||||||
|
#include <Zycore/Types.h>
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DISABLE_DECODER
|
||||||
|
# include <Zydis/Decoder.h>
|
||||||
|
# include <Zydis/DecoderTypes.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DISABLE_FORMATTER
|
||||||
|
# include <Zydis/Formatter.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <Zydis/MetaInfo.h>
|
||||||
|
#include <Zydis/Mnemonic.h>
|
||||||
|
#include <Zydis/Register.h>
|
||||||
|
#include <Zydis/SharedTypes.h>
|
||||||
|
#include <Zydis/Status.h>
|
||||||
|
#include <Zydis/Utils.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Macros */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Constants */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A macro that defines the zydis version.
|
||||||
|
*/
|
||||||
|
#define ZYDIS_VERSION (ZyanU64)0x0003000100000000
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Helper macros */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extracts the major-part of the zydis version.
|
||||||
|
*
|
||||||
|
* @param version The zydis version value
|
||||||
|
*/
|
||||||
|
#define ZYDIS_VERSION_MAJOR(version) (ZyanU16)(((version) & 0xFFFF000000000000) >> 48)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extracts the minor-part of the zydis version.
|
||||||
|
*
|
||||||
|
* @param version The zydis version value
|
||||||
|
*/
|
||||||
|
#define ZYDIS_VERSION_MINOR(version) (ZyanU16)(((version) & 0x0000FFFF00000000) >> 32)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extracts the patch-part of the zydis version.
|
||||||
|
*
|
||||||
|
* @param version The zydis version value
|
||||||
|
*/
|
||||||
|
#define ZYDIS_VERSION_PATCH(version) (ZyanU16)(((version) & 0x00000000FFFF0000) >> 16)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extracts the build-part of the zydis version.
|
||||||
|
*
|
||||||
|
* @param version The zydis version value
|
||||||
|
*/
|
||||||
|
#define ZYDIS_VERSION_BUILD(version) (ZyanU16)((version) & 0x000000000000FFFF)
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enums and types */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisFeature` enum.
|
||||||
|
*/
|
||||||
|
typedef enum ZydisFeature_
|
||||||
|
{
|
||||||
|
ZYDIS_FEATURE_DECODER,
|
||||||
|
ZYDIS_FEATURE_FORMATTER,
|
||||||
|
ZYDIS_FEATURE_AVX512,
|
||||||
|
ZYDIS_FEATURE_KNC,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum value of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_FEATURE_MAX_VALUE = ZYDIS_FEATURE_KNC,
|
||||||
|
/**
|
||||||
|
* The minimum number of bits required to represent all values of this enum.
|
||||||
|
*/
|
||||||
|
ZYDIS_FEATURE_REQUIRED_BITS = ZYAN_BITS_TO_REPRESENT(ZYDIS_FEATURE_MAX_VALUE)
|
||||||
|
} ZydisFeature;
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @addtogroup version Version
|
||||||
|
* Functions for checking the library version and build options.
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the zydis version.
|
||||||
|
*
|
||||||
|
* @return The zydis version.
|
||||||
|
*
|
||||||
|
* Use the macros provided in this file to extract the major, minor, patch and build part from the
|
||||||
|
* returned version value.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanU64 ZydisGetVersion(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks, if the specified feature is enabled in the current zydis library instance.
|
||||||
|
*
|
||||||
|
* @param feature The feature.
|
||||||
|
*
|
||||||
|
* @return `ZYAN_STATUS_TRUE` if the feature is enabled, `ZYAN_STATUS_FALSE` if not. Another
|
||||||
|
* zyan status code, if an error occured.
|
||||||
|
*/
|
||||||
|
ZYDIS_EXPORT ZyanStatus ZydisIsFeatureEnabled(ZydisFeature feature);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_H */
|
17
msvc/README.md
Normal file
17
msvc/README.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
## Readme
|
||||||
|
|
||||||
|
This directory contains MSVC project files to build Zydis and the included tools and examples.
|
||||||
|
|
||||||
|
There are five build configurations, each with 32/64 bit and debug/release versions:
|
||||||
|
- Static with dynamic run-time library (MD)
|
||||||
|
- Static with static run-time library (MT)
|
||||||
|
- Dynamic (DLL) with dynamic run-time library (MD)
|
||||||
|
- Dynamic (DLL) with static run-time library (MT)
|
||||||
|
- Kernel mode
|
||||||
|
|
||||||
|
In order to build the kernel mode configuration you must have the Microsoft WDK installed, available at https://developer.microsoft.com/en-us/windows/hardware/windows-driver-kit.
|
||||||
|
The kernel mode configuration only builds `Zydis` and the `ZydisWinKernel` driver sample. The other configurations build all projects except for `ZydisWinKernel`.
|
||||||
|
|
||||||
|
NOTE: If you already have the WDK installed, make sure it is updated to at least the Windows 10 1709 version (10.0.16299.0) in order to prevent issues opening the solution file. This is due to a bug in older WDK toolsets.
|
||||||
|
|
||||||
|
All Zydis features are enabled by default. In order to disable specific features you can define preprocessor directives such as `ZYDIS_DISABLE_FORMATTER`. Refer to `CMakeLists.txt` for the full list of feature switches.
|
42
msvc/ZycoreExportConfig.h
Normal file
42
msvc/ZycoreExportConfig.h
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
|
||||||
|
#ifndef ZYCORE_EXPORT_H
|
||||||
|
#define ZYCORE_EXPORT_H
|
||||||
|
|
||||||
|
#ifdef ZYCORE_STATIC_DEFINE
|
||||||
|
# define ZYCORE_EXPORT
|
||||||
|
# define ZYCORE_NO_EXPORT
|
||||||
|
#else
|
||||||
|
# ifndef ZYCORE_EXPORT
|
||||||
|
# ifdef Zycore_EXPORTS
|
||||||
|
/* We are building this library */
|
||||||
|
# define ZYCORE_EXPORT __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
/* We are using this library */
|
||||||
|
# define ZYCORE_EXPORT __declspec(dllimport)
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# ifndef ZYCORE_NO_EXPORT
|
||||||
|
# define ZYCORE_NO_EXPORT
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYCORE_DEPRECATED
|
||||||
|
# define ZYCORE_DEPRECATED __declspec(deprecated)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYCORE_DEPRECATED_EXPORT
|
||||||
|
# define ZYCORE_DEPRECATED_EXPORT ZYCORE_EXPORT ZYCORE_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYCORE_DEPRECATED_NO_EXPORT
|
||||||
|
# define ZYCORE_DEPRECATED_NO_EXPORT ZYCORE_NO_EXPORT ZYCORE_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 0 /* DEFINE_NO_DEPRECATED */
|
||||||
|
# ifndef ZYCORE_NO_DEPRECATED
|
||||||
|
# define ZYCORE_NO_DEPRECATED
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYCORE_EXPORT_H */
|
458
msvc/Zydis.sln
Normal file
458
msvc/Zydis.sln
Normal file
|
@ -0,0 +1,458 @@
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 15
|
||||||
|
VisualStudioVersion = 15.0.28307.421
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{4F5048C7-CB90-437E-AB21-32258F9650B6}"
|
||||||
|
EndProject
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{292A9E1E-C557-4570-ABE1-8EEC0E1B79C4}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Formatter01", "examples\Formatter01.vcxproj", "{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2} = {88A23124-5640-35A0-B890-311D7A67A7D2}
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2} = {E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Formatter02", "examples\Formatter02.vcxproj", "{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2} = {88A23124-5640-35A0-B890-311D7A67A7D2}
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2} = {E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Formatter03", "examples\Formatter03.vcxproj", "{A67C94F3-60F8-4AAF-9309-F86F73F8529C}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2} = {88A23124-5640-35A0-B890-311D7A67A7D2}
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2} = {E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZydisPerfTest", "examples\ZydisPerfTest.vcxproj", "{91EF3E98-CD57-3870-A399-A0D98D193F80}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2} = {88A23124-5640-35A0-B890-311D7A67A7D2}
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2} = {E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZydisDisasm", "tools\ZydisDisasm.vcxproj", "{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2} = {88A23124-5640-35A0-B890-311D7A67A7D2}
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2} = {E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZydisFuzzIn", "tools\ZydisFuzzIn.vcxproj", "{A0C9A331-13CC-3762-9D26-9F82C6518CAA}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2} = {88A23124-5640-35A0-B890-311D7A67A7D2}
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2} = {E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZydisInfo", "tools\ZydisInfo.vcxproj", "{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2} = {88A23124-5640-35A0-B890-311D7A67A7D2}
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2} = {E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Zydis", "zydis\Zydis.vcxproj", "{88A23124-5640-35A0-B890-311D7A67A7D2}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZydisWinKernel", "examples\ZydisWinKernel.vcxproj", "{45BD58A5-1711-417F-99E7-B640C56F8009}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2} = {88A23124-5640-35A0-B890-311D7A67A7D2}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Zycore", "dependencies\zycore\Zycore.vcxproj", "{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug Kernel|X64 = Debug Kernel|X64
|
||||||
|
Debug Kernel|X86 = Debug Kernel|X86
|
||||||
|
Debug MD DLL|X64 = Debug MD DLL|X64
|
||||||
|
Debug MD DLL|X86 = Debug MD DLL|X86
|
||||||
|
Debug MD|X64 = Debug MD|X64
|
||||||
|
Debug MD|X86 = Debug MD|X86
|
||||||
|
Debug MT DLL|X64 = Debug MT DLL|X64
|
||||||
|
Debug MT DLL|X86 = Debug MT DLL|X86
|
||||||
|
Debug MT|X64 = Debug MT|X64
|
||||||
|
Debug MT|X86 = Debug MT|X86
|
||||||
|
Release Kernel|X64 = Release Kernel|X64
|
||||||
|
Release Kernel|X86 = Release Kernel|X86
|
||||||
|
Release MD DLL|X64 = Release MD DLL|X64
|
||||||
|
Release MD DLL|X86 = Release MD DLL|X86
|
||||||
|
Release MD|X64 = Release MD|X64
|
||||||
|
Release MD|X86 = Release MD|X86
|
||||||
|
Release MT DLL|X64 = Release MT DLL|X64
|
||||||
|
Release MT DLL|X86 = Release MT DLL|X86
|
||||||
|
Release MT|X64 = Release MT|X64
|
||||||
|
Release MT|X86 = Release MT|X86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug Kernel|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug Kernel|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MD DLL|X64.ActiveCfg = Debug MD DLL|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MD DLL|X64.Build.0 = Debug MD DLL|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MD DLL|X86.ActiveCfg = Debug MD DLL|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MD DLL|X86.Build.0 = Debug MD DLL|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MD|X64.ActiveCfg = Debug MD|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MD|X64.Build.0 = Debug MD|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MD|X86.ActiveCfg = Debug MD|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MD|X86.Build.0 = Debug MD|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MT DLL|X64.ActiveCfg = Debug MT DLL|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MT DLL|X64.Build.0 = Debug MT DLL|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MT DLL|X86.ActiveCfg = Debug MT DLL|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MT DLL|X86.Build.0 = Debug MT DLL|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MT|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MT|X64.Build.0 = Debug MT|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MT|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Debug MT|X86.Build.0 = Debug MT|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release Kernel|X64.ActiveCfg = Release MT|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release Kernel|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MD DLL|X64.ActiveCfg = Release MD DLL|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MD DLL|X64.Build.0 = Release MD DLL|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MD DLL|X86.ActiveCfg = Release MD DLL|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MD DLL|X86.Build.0 = Release MD DLL|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MD|X64.ActiveCfg = Release MD|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MD|X64.Build.0 = Release MD|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MD|X86.ActiveCfg = Release MD|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MD|X86.Build.0 = Release MD|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MT DLL|X64.ActiveCfg = Release MT DLL|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MT DLL|X64.Build.0 = Release MT DLL|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MT DLL|X86.ActiveCfg = Release MT DLL|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MT DLL|X86.Build.0 = Release MT DLL|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MT|X64.ActiveCfg = Release MT|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MT|X64.Build.0 = Release MT|x64
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MT|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}.Release MT|X86.Build.0 = Release MT|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug Kernel|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug Kernel|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MD DLL|X64.ActiveCfg = Debug MD DLL|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MD DLL|X64.Build.0 = Debug MD DLL|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MD DLL|X86.ActiveCfg = Debug MD DLL|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MD DLL|X86.Build.0 = Debug MD DLL|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MD|X64.ActiveCfg = Debug MD|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MD|X64.Build.0 = Debug MD|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MD|X86.ActiveCfg = Debug MD|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MD|X86.Build.0 = Debug MD|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MT DLL|X64.ActiveCfg = Debug MT DLL|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MT DLL|X64.Build.0 = Debug MT DLL|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MT DLL|X86.ActiveCfg = Debug MT DLL|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MT DLL|X86.Build.0 = Debug MT DLL|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MT|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MT|X64.Build.0 = Debug MT|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MT|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Debug MT|X86.Build.0 = Debug MT|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release Kernel|X64.ActiveCfg = Release MT|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release Kernel|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MD DLL|X64.ActiveCfg = Release MD DLL|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MD DLL|X64.Build.0 = Release MD DLL|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MD DLL|X86.ActiveCfg = Release MD DLL|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MD DLL|X86.Build.0 = Release MD DLL|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MD|X64.ActiveCfg = Release MD|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MD|X64.Build.0 = Release MD|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MD|X86.ActiveCfg = Release MD|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MD|X86.Build.0 = Release MD|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MT DLL|X64.ActiveCfg = Release MT DLL|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MT DLL|X64.Build.0 = Release MT DLL|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MT DLL|X86.ActiveCfg = Release MT DLL|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MT DLL|X86.Build.0 = Release MT DLL|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MT|X64.ActiveCfg = Release MT|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MT|X64.Build.0 = Release MT|x64
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MT|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}.Release MT|X86.Build.0 = Release MT|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug Kernel|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug Kernel|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MD DLL|X64.ActiveCfg = Debug MD DLL|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MD DLL|X64.Build.0 = Debug MD DLL|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MD DLL|X86.ActiveCfg = Debug MD DLL|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MD DLL|X86.Build.0 = Debug MD DLL|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MD|X64.ActiveCfg = Debug MD|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MD|X64.Build.0 = Debug MD|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MD|X86.ActiveCfg = Debug MD|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MD|X86.Build.0 = Debug MD|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MT DLL|X64.ActiveCfg = Debug MT DLL|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MT DLL|X64.Build.0 = Debug MT DLL|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MT DLL|X86.ActiveCfg = Debug MT DLL|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MT DLL|X86.Build.0 = Debug MT DLL|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MT|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MT|X64.Build.0 = Debug MT|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MT|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Debug MT|X86.Build.0 = Debug MT|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release Kernel|X64.ActiveCfg = Release MT|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release Kernel|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MD DLL|X64.ActiveCfg = Release MD DLL|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MD DLL|X64.Build.0 = Release MD DLL|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MD DLL|X86.ActiveCfg = Release MD DLL|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MD DLL|X86.Build.0 = Release MD DLL|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MD|X64.ActiveCfg = Release MD|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MD|X64.Build.0 = Release MD|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MD|X86.ActiveCfg = Release MD|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MD|X86.Build.0 = Release MD|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MT DLL|X64.ActiveCfg = Release MT DLL|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MT DLL|X64.Build.0 = Release MT DLL|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MT DLL|X86.ActiveCfg = Release MT DLL|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MT DLL|X86.Build.0 = Release MT DLL|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MT|X64.ActiveCfg = Release MT|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MT|X64.Build.0 = Release MT|x64
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MT|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C}.Release MT|X86.Build.0 = Release MT|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug Kernel|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug Kernel|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MD DLL|X64.ActiveCfg = Debug MD DLL|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MD DLL|X64.Build.0 = Debug MD DLL|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MD DLL|X86.ActiveCfg = Debug MD DLL|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MD DLL|X86.Build.0 = Debug MD DLL|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MD|X64.ActiveCfg = Debug MD|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MD|X64.Build.0 = Debug MD|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MD|X86.ActiveCfg = Debug MD|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MD|X86.Build.0 = Debug MD|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MT DLL|X64.ActiveCfg = Debug MT DLL|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MT DLL|X64.Build.0 = Debug MT DLL|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MT DLL|X86.ActiveCfg = Debug MT DLL|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MT DLL|X86.Build.0 = Debug MT DLL|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MT|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MT|X64.Build.0 = Debug MT|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MT|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Debug MT|X86.Build.0 = Debug MT|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release Kernel|X64.ActiveCfg = Release MT|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release Kernel|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MD DLL|X64.ActiveCfg = Release MD DLL|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MD DLL|X64.Build.0 = Release MD DLL|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MD DLL|X86.ActiveCfg = Release MD DLL|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MD DLL|X86.Build.0 = Release MD DLL|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MD|X64.ActiveCfg = Release MD|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MD|X64.Build.0 = Release MD|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MD|X86.ActiveCfg = Release MD|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MD|X86.Build.0 = Release MD|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MT DLL|X64.ActiveCfg = Release MT DLL|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MT DLL|X64.Build.0 = Release MT DLL|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MT DLL|X86.ActiveCfg = Release MT DLL|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MT DLL|X86.Build.0 = Release MT DLL|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MT|X64.ActiveCfg = Release MT|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MT|X64.Build.0 = Release MT|x64
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MT|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80}.Release MT|X86.Build.0 = Release MT|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug Kernel|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug Kernel|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MD DLL|X64.ActiveCfg = Debug MD DLL|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MD DLL|X64.Build.0 = Debug MD DLL|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MD DLL|X86.ActiveCfg = Debug MD DLL|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MD DLL|X86.Build.0 = Debug MD DLL|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MD|X64.ActiveCfg = Debug MD|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MD|X64.Build.0 = Debug MD|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MD|X86.ActiveCfg = Debug MD|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MD|X86.Build.0 = Debug MD|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MT DLL|X64.ActiveCfg = Debug MT DLL|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MT DLL|X64.Build.0 = Debug MT DLL|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MT DLL|X86.ActiveCfg = Debug MT DLL|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MT DLL|X86.Build.0 = Debug MT DLL|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MT|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MT|X64.Build.0 = Debug MT|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MT|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Debug MT|X86.Build.0 = Debug MT|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release Kernel|X64.ActiveCfg = Release MT|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release Kernel|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MD DLL|X64.ActiveCfg = Release MD DLL|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MD DLL|X64.Build.0 = Release MD DLL|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MD DLL|X86.ActiveCfg = Release MD DLL|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MD DLL|X86.Build.0 = Release MD DLL|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MD|X64.ActiveCfg = Release MD|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MD|X64.Build.0 = Release MD|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MD|X86.ActiveCfg = Release MD|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MD|X86.Build.0 = Release MD|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MT DLL|X64.ActiveCfg = Release MT DLL|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MT DLL|X64.Build.0 = Release MT DLL|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MT DLL|X86.ActiveCfg = Release MT DLL|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MT DLL|X86.Build.0 = Release MT DLL|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MT|X64.ActiveCfg = Release MT|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MT|X64.Build.0 = Release MT|x64
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MT|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}.Release MT|X86.Build.0 = Release MT|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug Kernel|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug Kernel|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MD DLL|X64.ActiveCfg = Debug MD DLL|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MD DLL|X64.Build.0 = Debug MD DLL|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MD DLL|X86.ActiveCfg = Debug MD DLL|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MD DLL|X86.Build.0 = Debug MD DLL|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MD|X64.ActiveCfg = Debug MD|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MD|X64.Build.0 = Debug MD|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MD|X86.ActiveCfg = Debug MD|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MD|X86.Build.0 = Debug MD|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MT DLL|X64.ActiveCfg = Debug MT DLL|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MT DLL|X64.Build.0 = Debug MT DLL|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MT DLL|X86.ActiveCfg = Debug MT DLL|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MT DLL|X86.Build.0 = Debug MT DLL|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MT|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MT|X64.Build.0 = Debug MT|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MT|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Debug MT|X86.Build.0 = Debug MT|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release Kernel|X64.ActiveCfg = Release MT|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release Kernel|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MD DLL|X64.ActiveCfg = Release MD DLL|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MD DLL|X64.Build.0 = Release MD DLL|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MD DLL|X86.ActiveCfg = Release MD DLL|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MD DLL|X86.Build.0 = Release MD DLL|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MD|X64.ActiveCfg = Release MD|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MD|X64.Build.0 = Release MD|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MD|X86.ActiveCfg = Release MD|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MD|X86.Build.0 = Release MD|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MT DLL|X64.ActiveCfg = Release MT DLL|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MT DLL|X64.Build.0 = Release MT DLL|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MT DLL|X86.ActiveCfg = Release MT DLL|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MT DLL|X86.Build.0 = Release MT DLL|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MT|X64.ActiveCfg = Release MT|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MT|X64.Build.0 = Release MT|x64
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MT|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA}.Release MT|X86.Build.0 = Release MT|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug Kernel|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug Kernel|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MD DLL|X64.ActiveCfg = Debug MD DLL|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MD DLL|X64.Build.0 = Debug MD DLL|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MD DLL|X86.ActiveCfg = Debug MD DLL|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MD DLL|X86.Build.0 = Debug MD DLL|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MD|X64.ActiveCfg = Debug MD|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MD|X64.Build.0 = Debug MD|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MD|X86.ActiveCfg = Debug MD|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MD|X86.Build.0 = Debug MD|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MT DLL|X64.ActiveCfg = Debug MT DLL|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MT DLL|X64.Build.0 = Debug MT DLL|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MT DLL|X86.ActiveCfg = Debug MT DLL|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MT DLL|X86.Build.0 = Debug MT DLL|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MT|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MT|X64.Build.0 = Debug MT|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MT|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Debug MT|X86.Build.0 = Debug MT|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release Kernel|X64.ActiveCfg = Release MT|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release Kernel|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MD DLL|X64.ActiveCfg = Release MD DLL|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MD DLL|X64.Build.0 = Release MD DLL|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MD DLL|X86.ActiveCfg = Release MD DLL|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MD DLL|X86.Build.0 = Release MD DLL|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MD|X64.ActiveCfg = Release MD|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MD|X64.Build.0 = Release MD|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MD|X86.ActiveCfg = Release MD|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MD|X86.Build.0 = Release MD|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MT DLL|X64.ActiveCfg = Release MT DLL|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MT DLL|X64.Build.0 = Release MT DLL|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MT DLL|X86.ActiveCfg = Release MT DLL|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MT DLL|X86.Build.0 = Release MT DLL|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MT|X64.ActiveCfg = Release MT|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MT|X64.Build.0 = Release MT|x64
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MT|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}.Release MT|X86.Build.0 = Release MT|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug Kernel|X64.ActiveCfg = Debug Kernel|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug Kernel|X64.Build.0 = Debug Kernel|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug Kernel|X86.ActiveCfg = Debug Kernel|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug Kernel|X86.Build.0 = Debug Kernel|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MD DLL|X64.ActiveCfg = Debug MD DLL|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MD DLL|X64.Build.0 = Debug MD DLL|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MD DLL|X86.ActiveCfg = Debug MD DLL|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MD DLL|X86.Build.0 = Debug MD DLL|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MD|X64.ActiveCfg = Debug MD|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MD|X64.Build.0 = Debug MD|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MD|X86.ActiveCfg = Debug MD|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MD|X86.Build.0 = Debug MD|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MT DLL|X64.ActiveCfg = Debug MT DLL|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MT DLL|X64.Build.0 = Debug MT DLL|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MT DLL|X86.ActiveCfg = Debug MT DLL|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MT DLL|X86.Build.0 = Debug MT DLL|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MT|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MT|X64.Build.0 = Debug MT|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MT|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Debug MT|X86.Build.0 = Debug MT|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release Kernel|X64.ActiveCfg = Release Kernel|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release Kernel|X64.Build.0 = Release Kernel|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release Kernel|X86.ActiveCfg = Release Kernel|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release Kernel|X86.Build.0 = Release Kernel|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MD DLL|X64.ActiveCfg = Release MD DLL|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MD DLL|X64.Build.0 = Release MD DLL|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MD DLL|X86.ActiveCfg = Release MD DLL|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MD DLL|X86.Build.0 = Release MD DLL|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MD|X64.ActiveCfg = Release MD|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MD|X64.Build.0 = Release MD|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MD|X86.ActiveCfg = Release MD|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MD|X86.Build.0 = Release MD|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MT DLL|X64.ActiveCfg = Release MT DLL|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MT DLL|X64.Build.0 = Release MT DLL|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MT DLL|X86.ActiveCfg = Release MT DLL|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MT DLL|X86.Build.0 = Release MT DLL|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MT|X64.ActiveCfg = Release MT|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MT|X64.Build.0 = Release MT|x64
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MT|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{88A23124-5640-35A0-B890-311D7A67A7D2}.Release MT|X86.Build.0 = Release MT|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug Kernel|X64.ActiveCfg = Debug|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug Kernel|X64.Build.0 = Debug|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug Kernel|X86.ActiveCfg = Debug|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug Kernel|X86.Build.0 = Debug|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug MD DLL|X64.ActiveCfg = Debug|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug MD DLL|X86.ActiveCfg = Debug|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug MD|X64.ActiveCfg = Debug|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug MD|X86.ActiveCfg = Debug|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug MT DLL|X64.ActiveCfg = Debug|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug MT DLL|X86.ActiveCfg = Debug|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug MT DLL|X86.Deploy.0 = Debug|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug MT|X64.ActiveCfg = Debug|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug MT|X86.ActiveCfg = Debug|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Debug MT|X86.Deploy.0 = Debug|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release Kernel|X64.ActiveCfg = Release|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release Kernel|X64.Build.0 = Release|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release Kernel|X86.ActiveCfg = Release|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release Kernel|X86.Build.0 = Release|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MD DLL|X64.ActiveCfg = Release|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MD DLL|X86.ActiveCfg = Release|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MD|X64.ActiveCfg = Release|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MD|X86.ActiveCfg = Release|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MT DLL|X64.ActiveCfg = Release|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MT DLL|X64.Deploy.0 = Release|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MT DLL|X86.ActiveCfg = Release|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MT DLL|X86.Deploy.0 = Release|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MT|X64.ActiveCfg = Release|x64
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MT|X86.ActiveCfg = Release|Win32
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009}.Release MT|X86.Deploy.0 = Release|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug Kernel|X64.ActiveCfg = Debug Kernel|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug Kernel|X86.ActiveCfg = Debug Kernel|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MD DLL|X64.ActiveCfg = Debug MD DLL|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MD DLL|X64.Build.0 = Debug MD DLL|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MD DLL|X86.ActiveCfg = Debug MD DLL|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MD DLL|X86.Build.0 = Debug MD DLL|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MD|X64.ActiveCfg = Debug MD|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MD|X64.Build.0 = Debug MD|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MD|X86.ActiveCfg = Debug MD|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MD|X86.Build.0 = Debug MD|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MT DLL|X64.ActiveCfg = Debug MT DLL|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MT DLL|X64.Build.0 = Debug MT DLL|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MT DLL|X86.ActiveCfg = Debug MT DLL|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MT DLL|X86.Build.0 = Debug MT DLL|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MT|X64.ActiveCfg = Debug MT|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MT|X64.Build.0 = Debug MT|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MT|X86.ActiveCfg = Debug MT|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Debug MT|X86.Build.0 = Debug MT|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release Kernel|X64.ActiveCfg = Release Kernel|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release Kernel|X86.ActiveCfg = Release Kernel|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MD DLL|X64.ActiveCfg = Release MD DLL|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MD DLL|X64.Build.0 = Release MD DLL|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MD DLL|X86.ActiveCfg = Release MD DLL|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MD DLL|X86.Build.0 = Release MD DLL|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MD|X64.ActiveCfg = Release MD|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MD|X64.Build.0 = Release MD|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MD|X86.ActiveCfg = Release MD|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MD|X86.Build.0 = Release MD|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MT DLL|X64.ActiveCfg = Release MT DLL|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MT DLL|X64.Build.0 = Release MT DLL|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MT DLL|X86.ActiveCfg = Release MT DLL|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MT DLL|X86.Build.0 = Release MT DLL|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MT|X64.ActiveCfg = Release MT|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MT|X64.Build.0 = Release MT|x64
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MT|X86.ActiveCfg = Release MT|Win32
|
||||||
|
{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}.Release MT|X86.Build.0 = Release MT|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(NestedProjects) = preSolution
|
||||||
|
{B715A378-C8B9-4DC1-A57B-8BC4C47CED28} = {4F5048C7-CB90-437E-AB21-32258F9650B6}
|
||||||
|
{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F} = {4F5048C7-CB90-437E-AB21-32258F9650B6}
|
||||||
|
{A67C94F3-60F8-4AAF-9309-F86F73F8529C} = {4F5048C7-CB90-437E-AB21-32258F9650B6}
|
||||||
|
{91EF3E98-CD57-3870-A399-A0D98D193F80} = {4F5048C7-CB90-437E-AB21-32258F9650B6}
|
||||||
|
{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2} = {292A9E1E-C557-4570-ABE1-8EEC0E1B79C4}
|
||||||
|
{A0C9A331-13CC-3762-9D26-9F82C6518CAA} = {292A9E1E-C557-4570-ABE1-8EEC0E1B79C4}
|
||||||
|
{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E} = {292A9E1E-C557-4570-ABE1-8EEC0E1B79C4}
|
||||||
|
{45BD58A5-1711-417F-99E7-B640C56F8009} = {4F5048C7-CB90-437E-AB21-32258F9650B6}
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {F578E55A-EB10-4D4A-9F4E-C74DCB58DE73}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
42
msvc/ZydisExportConfig.h
Normal file
42
msvc/ZydisExportConfig.h
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
|
||||||
|
#ifndef ZYDIS_EXPORT_H
|
||||||
|
#define ZYDIS_EXPORT_H
|
||||||
|
|
||||||
|
#ifdef ZYDIS_STATIC_DEFINE
|
||||||
|
# define ZYDIS_EXPORT
|
||||||
|
# define ZYDIS_NO_EXPORT
|
||||||
|
#else
|
||||||
|
# ifndef ZYDIS_EXPORT
|
||||||
|
# ifdef Zydis_EXPORTS
|
||||||
|
/* We are building this library */
|
||||||
|
# define ZYDIS_EXPORT __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
/* We are using this library */
|
||||||
|
# define ZYDIS_EXPORT __declspec(dllimport)
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# ifndef ZYDIS_NO_EXPORT
|
||||||
|
# define ZYDIS_NO_EXPORT
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DEPRECATED
|
||||||
|
# define ZYDIS_DEPRECATED __declspec(deprecated)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DEPRECATED_EXPORT
|
||||||
|
# define ZYDIS_DEPRECATED_EXPORT ZYDIS_EXPORT ZYDIS_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ZYDIS_DEPRECATED_NO_EXPORT
|
||||||
|
# define ZYDIS_DEPRECATED_NO_EXPORT ZYDIS_NO_EXPORT ZYDIS_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 0 /* DEFINE_NO_DEPRECATED */
|
||||||
|
# ifndef ZYDIS_NO_DEPRECATED
|
||||||
|
# define ZYDIS_NO_DEPRECATED
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* ZYDIS_EXPORT_H */
|
893
msvc/dependencies/zycore/Zycore.vcxproj
Normal file
893
msvc/dependencies/zycore/Zycore.vcxproj
Normal file
|
@ -0,0 +1,893 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|Win32">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|x64">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|Win32">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|x64">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug Kernel|Win32">
|
||||||
|
<Configuration>Debug Kernel</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug Kernel|x64">
|
||||||
|
<Configuration>Debug Kernel</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|Win32">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|Win32">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|x64">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|Win32">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|x64">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|Win32">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|x64">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release Kernel|Win32">
|
||||||
|
<Configuration>Release Kernel</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release Kernel|x64">
|
||||||
|
<Configuration>Release Kernel</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|Win32">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|x64">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|x64">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|Win32">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|x64">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{E06E2E87-82B9-4DC2-A1E9-FE371CDBAAC2}</ProjectGuid>
|
||||||
|
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform Condition="'$(Platform)' == ''">x64</Platform>
|
||||||
|
<RootNamespace>$(MSBuildProjectName)</RootNamespace>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|Win32'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|Win32'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|x64'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|x64'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<OutDir>..\..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<OutDir>..\..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|Win32'">
|
||||||
|
<OutDir>..\..\bin\DebugX86Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<OutDir>..\..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<OutDir>..\..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<OutDir>..\..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<OutDir>..\..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|Win32'">
|
||||||
|
<OutDir>..\..\bin\ReleaseX86Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<OutDir>..\..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<OutDir>..\..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<OutDir>..\..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<OutDir>..\..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|x64'">
|
||||||
|
<OutDir>..\..\bin\DebugX64Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<OutDir>..\..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<OutDir>..\..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<OutDir>..\..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<OutDir>..\..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|x64'">
|
||||||
|
<OutDir>..\..\bin\ReleaseX64Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<OutDir>..\..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<OutDir>..\..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;WINAPI_PARTITION_DESKTOP=1;WINAPI_PARTITION_SYSTEM=1;WINAPI_PARTITION_APP=1;WINAPI_PARTITION_PC_APP=1;_X86_=1;i386=1;STD_CALL;DBG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Native</SubSystem>
|
||||||
|
<MinimumRequiredVersion>$(SUBSYSTEM_NATVER)</MinimumRequiredVersion>
|
||||||
|
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;_DLL;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../../include;../../../src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;_DLL;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../../include;../../../src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;WINAPI_PARTITION_DESKTOP=1;WINAPI_PARTITION_SYSTEM=1;WINAPI_PARTITION_APP=1;WINAPI_PARTITION_PC_APP=1;_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Native</SubSystem>
|
||||||
|
<MinimumRequiredVersion>$(SUBSYSTEM_NATVER)</MinimumRequiredVersion>
|
||||||
|
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;_DLL;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../../include;../../../src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;_DLL;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../../include;../../../src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;WINAPI_PARTITION_DESKTOP=1;WINAPI_PARTITION_SYSTEM=1;WINAPI_PARTITION_APP=1;WINAPI_PARTITION_PC_APP=1;_AMD64_;AMD64;DBG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Native</SubSystem>
|
||||||
|
<MinimumRequiredVersion>$(SUBSYSTEM_NATVER)</MinimumRequiredVersion>
|
||||||
|
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;_DLL;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../../include;../../../src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;_DLL;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../../include;../../../src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<IgnoreSpecificDefaultLibraries>
|
||||||
|
</IgnoreSpecificDefaultLibraries>
|
||||||
|
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYCORE_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;WINAPI_PARTITION_DESKTOP=1;WINAPI_PARTITION_SYSTEM=1;WINAPI_PARTITION_APP=1;WINAPI_PARTITION_PC_APP=1;_AMD64_;AMD64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Native</SubSystem>
|
||||||
|
<MinimumRequiredVersion>$(SUBSYSTEM_NATVER)</MinimumRequiredVersion>
|
||||||
|
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;_DLL;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../../include;../../../src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../../dependencies/zycore/include;../../../dependencies/zycore;../../../dependencies/zycore/src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zycore_EXPORTS;ZYCORE_EXPORTS;_DLL;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../../include;../../../src;../..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\Allocator.c" />
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\API\Terminal.c" />
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\Bitset.c" />
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\Format.c" />
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\String.c" />
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\Vector.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\API\Terminal.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Vector.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="..\..\..\dependencies\zycore\resources\VersionInfo.rc" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
79
msvc/dependencies/zycore/Zycore.vcxproj.filters
Normal file
79
msvc/dependencies/zycore/Zycore.vcxproj.filters
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{74C76D08-D2D9-4FE6-A464-D503802742AC}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{5DACC7C8-9BD3-4566-9AFE-6C4725ADAEB0}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{4175306a-1bd9-42e5-9e16-98a33f23f385}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\Allocator.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\Bitset.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\Format.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\String.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\Vector.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\dependencies\zycore\src\API\Terminal.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\dependencies\zycore\include\Zycore\API\Terminal.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="..\..\..\dependencies\zycore\resources\VersionInfo.rc">
|
||||||
|
<Filter>Resource Files</Filter>
|
||||||
|
</ResourceCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
818
msvc/examples/Formatter01.vcxproj
Normal file
818
msvc/examples/Formatter01.vcxproj
Normal file
|
@ -0,0 +1,818 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|Win32">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|x64">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|Win32">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|x64">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|Win32">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|x64">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|Win32">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|x64">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|Win32">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|x64">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|Win32">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|x64">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|Win32">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|x64">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|Win32">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|x64">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{B715A378-C8B9-4DC1-A57B-8BC4C47CED28}</ProjectGuid>
|
||||||
|
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectName>Formatter01</ProjectName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\examples\Formatter01.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
95
msvc/examples/Formatter01.vcxproj.filters
Normal file
95
msvc/examples/Formatter01.vcxproj.filters
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{696C4839-0CFE-4685-8A7E-17D6CEA8A9E1}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{B33CB479-1C96-4E23-AABF-6F6AFE4EC48F}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore">
|
||||||
|
<UniqueIdentifier>{F16C31FA-178D-4018-B19B-AC17921D4BBA}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis">
|
||||||
|
<UniqueIdentifier>{7E5DB78A-D59D-4537-B5FE-D5BFB35D8684}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\examples\Formatter01.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
818
msvc/examples/Formatter02.vcxproj
Normal file
818
msvc/examples/Formatter02.vcxproj
Normal file
|
@ -0,0 +1,818 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|Win32">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|x64">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|Win32">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|x64">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|Win32">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|x64">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|Win32">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|x64">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|Win32">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|x64">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|Win32">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|x64">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|Win32">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|x64">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|Win32">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|x64">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{FD558EDB-A3E1-4FB5-A40A-4BE19346B24F}</ProjectGuid>
|
||||||
|
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectName>Formatter02</ProjectName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\examples\Formatter02.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
95
msvc/examples/Formatter02.vcxproj.filters
Normal file
95
msvc/examples/Formatter02.vcxproj.filters
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{EEA2894A-5270-4A30-A19A-6E197DF8F321}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{D13CAF58-E8F9-44C6-BB28-12E3A9124A6B}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore">
|
||||||
|
<UniqueIdentifier>{2DA0252F-A511-42D7-87CF-B4CAC2AF15F1}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis">
|
||||||
|
<UniqueIdentifier>{3F259D2B-7A0D-4147-B076-203B5EC4AF31}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\examples\Formatter02.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
818
msvc/examples/Formatter03.vcxproj
Normal file
818
msvc/examples/Formatter03.vcxproj
Normal file
|
@ -0,0 +1,818 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|Win32">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|x64">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|Win32">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|x64">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|Win32">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|x64">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|Win32">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|x64">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|Win32">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|x64">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|Win32">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|x64">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|Win32">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|x64">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|Win32">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|x64">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{A67C94F3-60F8-4AAF-9309-F86F73F8529C}</ProjectGuid>
|
||||||
|
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectName>Formatter03</ProjectName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\examples\Formatter03.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
95
msvc/examples/Formatter03.vcxproj.filters
Normal file
95
msvc/examples/Formatter03.vcxproj.filters
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{F4C79A89-1963-4A14-84DB-EF4DF9F46217}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{3E5632E3-79C0-48D1-B2F0-A7CC3B08344B}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore">
|
||||||
|
<UniqueIdentifier>{AE8ED7E6-E8D2-466E-B5D7-51B0B5D3B3AF}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis">
|
||||||
|
<UniqueIdentifier>{E6AAE699-279A-49D1-BF5F-B4A08678A442}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\examples\Formatter03.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
818
msvc/examples/ZydisPerfTest.vcxproj
Normal file
818
msvc/examples/ZydisPerfTest.vcxproj
Normal file
|
@ -0,0 +1,818 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|Win32">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|x64">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|Win32">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|x64">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|Win32">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|x64">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|Win32">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|x64">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|Win32">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|x64">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|Win32">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|x64">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|Win32">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|x64">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|Win32">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|x64">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{91EF3E98-CD57-3870-A399-A0D98D193F80}</ProjectGuid>
|
||||||
|
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectName>ZydisPerfTest</ProjectName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\examples\ZydisPerfTest.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
95
msvc/examples/ZydisPerfTest.vcxproj.filters
Normal file
95
msvc/examples/ZydisPerfTest.vcxproj.filters
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{664BBE0B-918F-3B41-8D06-1875B10A7BE5}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{54CFF9CE-5525-3FCE-8ECE-9A26FB686F56}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore">
|
||||||
|
<UniqueIdentifier>{8CD89CBF-4A23-408A-AED4-3CDFB9296284}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis">
|
||||||
|
<UniqueIdentifier>{A98CBC54-AA7E-4AEE-80CE-19DD4304363F}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\examples\ZydisPerfTest.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
245
msvc/examples/ZydisWinKernel.vcxproj
Normal file
245
msvc/examples/ZydisWinKernel.vcxproj
Normal file
|
@ -0,0 +1,245 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{45BD58A5-1711-417f-99E7-B640C56F8009}</ProjectGuid>
|
||||||
|
<TemplateGuid>{1bc93793-694f-48fe-9372-81e2b05556fd}</TemplateGuid>
|
||||||
|
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform Condition="'$(Platform)' == ''">x64</Platform>
|
||||||
|
<RootNamespace>$(MSBuildProjectName)</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>Driver</ConfigurationType>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>Driver</ConfigurationType>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>Driver</ConfigurationType>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>Driver</ConfigurationType>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Label="PropertySheets">
|
||||||
|
<DisableProductionSignDebugWarnings>true</DisableProductionSignDebugWarnings>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
|
||||||
|
<TimeStampServer />
|
||||||
|
<OutDir>..\bin\DebugX86Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
|
||||||
|
<TimeStampServer />
|
||||||
|
<OutDir>..\bin\ReleaseX86Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
|
||||||
|
<TimeStampServer />
|
||||||
|
<OutDir>..\bin\DebugX64Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
|
||||||
|
<TimeStampServer />
|
||||||
|
<OutDir>..\bin\ReleaseX64Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYDIS_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;POOL_NX_OPTIN;_X86_=1;i386=1;STD_CALL;DBG;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||||
|
<ControlFlowGuard>false</ControlFlowGuard>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<Profile>false</Profile>
|
||||||
|
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||||
|
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<Version>6.1</Version>
|
||||||
|
<AdditionalDependencies>Zydis.lib;%(AdditionalDependencies);$(KernelBufferOverflowLib);$(DDK_LIB_PATH)ntoskrnl.lib;$(DDK_LIB_PATH)hal.lib;$(DDK_LIB_PATH)wmilib.lib</AdditionalDependencies>
|
||||||
|
<EntryPointSymbol>DriverEntry@8</EntryPointSymbol>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYDIS_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;POOL_NX_OPTIN;_X86_=1;i386=1;STD_CALL;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<ControlFlowGuard>false</ControlFlowGuard>
|
||||||
|
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<EntryPointSymbol>DriverEntry@8</EntryPointSymbol>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<Profile>false</Profile>
|
||||||
|
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||||
|
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalDependencies>Zydis.lib;%(AdditionalDependencies);$(DDK_LIB_PATH)ntoskrnl.lib;$(DDK_LIB_PATH)hal.lib;$(DDK_LIB_PATH)wmilib.lib</AdditionalDependencies>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<Version>6.1</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYDIS_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;POOL_NX_OPTIN;_WIN64;_AMD64_;AMD64;DBG;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||||
|
<ControlFlowGuard>false</ControlFlowGuard>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<Profile>false</Profile>
|
||||||
|
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||||
|
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<Version>6.1</Version>
|
||||||
|
<AdditionalDependencies>Zydis.lib;%(AdditionalDependencies);$(KernelBufferOverflowLib);$(DDK_LIB_PATH)ntoskrnl.lib;$(DDK_LIB_PATH)hal.lib;$(DDK_LIB_PATH)wmilib.lib</AdditionalDependencies>
|
||||||
|
<EntryPointSymbol>DriverEntry</EntryPointSymbol>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYDIS_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;POOL_NX_OPTIN;_WIN64;_AMD64_;AMD64;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<ControlFlowGuard>false</ControlFlowGuard>
|
||||||
|
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<EntryPointSymbol>DriverEntry</EntryPointSymbol>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<Profile>false</Profile>
|
||||||
|
<RandomizedBaseAddress>true</RandomizedBaseAddress>
|
||||||
|
<DataExecutionPrevention>true</DataExecutionPrevention>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalDependencies>Zydis.lib;%(AdditionalDependencies);$(DDK_LIB_PATH)ntoskrnl.lib;$(DDK_LIB_PATH)hal.lib;$(DDK_LIB_PATH)wmilib.lib</AdditionalDependencies>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<Version>6.1</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Inf Exclude="@(Inf)" Include="*.inf" />
|
||||||
|
<FilesToPackage Include="$(TargetPath)" Condition="'$(ConfigurationType)'=='Driver' or '$(ConfigurationType)'=='DynamicLibrary'" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\examples\ZydisWinKernel.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
95
msvc/examples/ZydisWinKernel.vcxproj.filters
Normal file
95
msvc/examples/ZydisWinKernel.vcxproj.filters
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{664BBE0B-918F-3B41-8D06-1875B10A7BE5}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{54CFF9CE-5525-3FCE-8ECE-9A26FB686F56}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore">
|
||||||
|
<UniqueIdentifier>{53777263-749B-4134-9A9E-42DB87A66F18}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis">
|
||||||
|
<UniqueIdentifier>{9A331546-C5D3-48F8-ACCF-992D48C1F6EE}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\examples\ZydisWinKernel.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
818
msvc/tools/ZydisDisasm.vcxproj
Normal file
818
msvc/tools/ZydisDisasm.vcxproj
Normal file
|
@ -0,0 +1,818 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|Win32">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|x64">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|Win32">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|x64">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|Win32">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|x64">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|Win32">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|x64">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|Win32">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|x64">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|Win32">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|x64">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|Win32">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|x64">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|Win32">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|x64">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{805CBF3F-3DDC-3141-AD7C-3B452FBEBCD2}</ProjectGuid>
|
||||||
|
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectName>ZydisDisasm</ProjectName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\tools\ZydisDisasm.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
95
msvc/tools/ZydisDisasm.vcxproj.filters
Normal file
95
msvc/tools/ZydisDisasm.vcxproj.filters
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{664BBE0B-918F-3B41-8D06-1875B10A7BE5}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{54CFF9CE-5525-3FCE-8ECE-9A26FB686F56}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore">
|
||||||
|
<UniqueIdentifier>{349C208E-6013-4B2A-86D4-F5CBD4C9B359}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis">
|
||||||
|
<UniqueIdentifier>{599A7DB6-1F45-4378-90DD-94C11D46EC4D}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\tools\ZydisDisasm.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
818
msvc/tools/ZydisFuzzIn.vcxproj
Normal file
818
msvc/tools/ZydisFuzzIn.vcxproj
Normal file
|
@ -0,0 +1,818 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|Win32">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|x64">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|Win32">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|x64">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|Win32">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|x64">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|Win32">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|x64">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|Win32">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|x64">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|Win32">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|x64">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|Win32">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|x64">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|Win32">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|x64">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{A0C9A331-13CC-3762-9D26-9F82C6518CAA}</ProjectGuid>
|
||||||
|
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectName>ZydisFuzzIn</ProjectName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\tools\ZydisFuzzIn.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
95
msvc/tools/ZydisFuzzIn.vcxproj.filters
Normal file
95
msvc/tools/ZydisFuzzIn.vcxproj.filters
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{664BBE0B-918F-3B41-8D06-1875B10A7BE5}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{54CFF9CE-5525-3FCE-8ECE-9A26FB686F56}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore">
|
||||||
|
<UniqueIdentifier>{48794B8D-2E4F-4E2F-901F-77F8CB177A92}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis">
|
||||||
|
<UniqueIdentifier>{B4E29716-3340-4942-8633-40107E569597}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\tools\ZydisFuzzIn.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
818
msvc/tools/ZydisInfo.vcxproj
Normal file
818
msvc/tools/ZydisInfo.vcxproj
Normal file
|
@ -0,0 +1,818 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|Win32">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|x64">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|Win32">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|x64">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|Win32">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|x64">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|Win32">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|x64">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|Win32">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|x64">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|Win32">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|x64">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|Win32">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|x64">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|Win32">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|x64">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{BC04B6A7-D80C-3FED-97AC-BCC8370D6A7E}</ProjectGuid>
|
||||||
|
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectName>ZydisInfo</ProjectName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalOptions>/Gw</AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_WINDOWS;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>$(TargetDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<AdditionalDependencies>Zycore.lib;Zydis.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\tools\ZydisInfo.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
95
msvc/tools/ZydisInfo.vcxproj.filters
Normal file
95
msvc/tools/ZydisInfo.vcxproj.filters
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{664BBE0B-918F-3B41-8D06-1875B10A7BE5}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{54CFF9CE-5525-3FCE-8ECE-9A26FB686F56}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore">
|
||||||
|
<UniqueIdentifier>{2C8FA06C-89F9-4D92-8182-B42C1D5E459D}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis">
|
||||||
|
<UniqueIdentifier>{1314C403-E579-49B8-9A96-4C9483FBB054}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\tools\ZydisInfo.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
916
msvc/zydis/Zydis.vcxproj
Normal file
916
msvc/zydis/Zydis.vcxproj
Normal file
|
@ -0,0 +1,916 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|Win32">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD DLL|x64">
|
||||||
|
<Configuration>Debug MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|Win32">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT DLL|x64">
|
||||||
|
<Configuration>Debug MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug Kernel|Win32">
|
||||||
|
<Configuration>Debug Kernel</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug Kernel|x64">
|
||||||
|
<Configuration>Debug Kernel</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|Win32">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|Win32">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MT|x64">
|
||||||
|
<Configuration>Debug MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|Win32">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD DLL|x64">
|
||||||
|
<Configuration>Release MD DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|Win32">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT DLL|x64">
|
||||||
|
<Configuration>Release MT DLL</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release Kernel|Win32">
|
||||||
|
<Configuration>Release Kernel</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release Kernel|x64">
|
||||||
|
<Configuration>Release Kernel</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|Win32">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug MD|x64">
|
||||||
|
<Configuration>Debug MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MD|x64">
|
||||||
|
<Configuration>Release MD</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|Win32">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release MT|x64">
|
||||||
|
<Configuration>Release MT</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{88A23124-5640-35A0-B890-311D7A67A7D2}</ProjectGuid>
|
||||||
|
<TemplateGuid>{0a049372-4c4d-4ea0-a64e-dc6ad88ceca1}</TemplateGuid>
|
||||||
|
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform Condition="'$(Platform)' == ''">x64</Platform>
|
||||||
|
<RootNamespace>$(MSBuildProjectName)</RootNamespace>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|Win32'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|Win32'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|x64'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|x64'" Label="Configuration">
|
||||||
|
<TargetVersion>Windows7</TargetVersion>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<DriverTargetPlatform>Desktop</DriverTargetPlatform>
|
||||||
|
<DriverType>WDM</DriverType>
|
||||||
|
<SupportsPackaging>false</SupportsPackaging>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'" Label="Configuration">
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\DebugX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<OutDir>..\bin\ReleaseX86\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\DebugX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64Kernel\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<EnableInf2cat>false</EnableInf2cat>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<OutDir>..\bin\ReleaseX64\</OutDir>
|
||||||
|
<IntDir>obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYDIS_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;WINAPI_PARTITION_DESKTOP=1;WINAPI_PARTITION_SYSTEM=1;WINAPI_PARTITION_APP=1;WINAPI_PARTITION_PC_APP=1;_X86_=1;i386=1;STD_CALL;DBG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Native</SubSystem>
|
||||||
|
<MinimumRequiredVersion>$(SUBSYSTEM_NATVER)</MinimumRequiredVersion>
|
||||||
|
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;_DLL;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;_DLL;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYDIS_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;WINAPI_PARTITION_DESKTOP=1;WINAPI_PARTITION_SYSTEM=1;WINAPI_PARTITION_APP=1;WINAPI_PARTITION_PC_APP=1;_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Native</SubSystem>
|
||||||
|
<MinimumRequiredVersion>$(SUBSYSTEM_NATVER)</MinimumRequiredVersion>
|
||||||
|
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;_DLL;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;WINVER=0x0501;_WIN32_WINNT=0x0501;NTDDI_VERSION=0x05010000;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;_DLL;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.1</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Kernel|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYDIS_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;WINAPI_PARTITION_DESKTOP=1;WINAPI_PARTITION_SYSTEM=1;WINAPI_PARTITION_APP=1;WINAPI_PARTITION_PC_APP=1;_AMD64_;AMD64;DBG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Native</SubSystem>
|
||||||
|
<MinimumRequiredVersion>$(SUBSYSTEM_NATVER)</MinimumRequiredVersion>
|
||||||
|
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;_DLL;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;_DLL;WIN32;_WIN64;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<SupportJustMyCode>false</SupportJustMyCode>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Kernel|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>ZYAN_NO_LIBC;ZYDIS_NO_LIBC;ZYCORE_STATIC_DEFINE;ZYDIS_STATIC_DEFINE;ZYDIS_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP;WINAPI_PARTITION_DESKTOP=1;WINAPI_PARTITION_SYSTEM=1;WINAPI_PARTITION_APP=1;WINAPI_PARTITION_PC_APP=1;_AMD64_;AMD64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw /kernel</AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<OmitDefaultLibName>true</OmitDefaultLibName>
|
||||||
|
</ClCompile>
|
||||||
|
<Lib>
|
||||||
|
<SubSystem>Native</SubSystem>
|
||||||
|
<MinimumRequiredVersion>$(SUBSYSTEM_NATVER)</MinimumRequiredVersion>
|
||||||
|
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Lib>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MD DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;_DLL;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MT DLL|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;WINVER=0x0502;_WIN32_WINNT=0x0502;NTDDI_VERSION=0x05020000;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<DiagnosticsFormat>Caret</DiagnosticsFormat>
|
||||||
|
<AdditionalOptions>/Gw </AdditionalOptions>
|
||||||
|
<AdditionalIncludeDirectories>../../dependencies/zycore/include;../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<ResourceCompile>
|
||||||
|
<PreprocessorDefinitions>Zydis_EXPORTS;ZYDIS_EXPORTS;_DLL;WIN32;_WIN64;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>../../include;../../src;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ResourceCompile>
|
||||||
|
<Link>
|
||||||
|
<Version>5.2</Version>
|
||||||
|
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
|
||||||
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<SetChecksum>true</SetChecksum>
|
||||||
|
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\src\FormatterATT.c" />
|
||||||
|
<ClCompile Include="..\..\src\FormatterBase.c" />
|
||||||
|
<ClCompile Include="..\..\src\FormatterBuffer.c" />
|
||||||
|
<ClCompile Include="..\..\src\FormatterIntel.c" />
|
||||||
|
<ClCompile Include="..\..\src\MetaInfo.c" />
|
||||||
|
<ClCompile Include="..\..\src\Mnemonic.c" />
|
||||||
|
<ClCompile Include="..\..\src\Register.c" />
|
||||||
|
<ClCompile Include="..\..\src\SharedData.c" />
|
||||||
|
<ClCompile Include="..\..\src\String.c" />
|
||||||
|
<ClCompile Include="..\..\src\Utils.c" />
|
||||||
|
<ClCompile Include="..\..\src\Zydis.c" />
|
||||||
|
<ClCompile Include="..\..\src\Decoder.c" />
|
||||||
|
<ClCompile Include="..\..\src\DecoderData.c" />
|
||||||
|
<ClCompile Include="..\..\src\Formatter.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\SharedData.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\DecoderData.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\FormatterATT.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\FormatterBase.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\FormatterIntel.h" />
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\String.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="..\..\resources\VersionInfo.rc" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
161
msvc/zydis/Zydis.vcxproj.filters
Normal file
161
msvc/zydis/Zydis.vcxproj.filters
Normal file
|
@ -0,0 +1,161 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{664BBE0B-918F-3B41-8D06-1875B10A7BE5}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{54CFF9CE-5525-3FCE-8ECE-9A26FB686F56}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{97DEB7A2-7CAF-45B9-B945-FA454AAAC4FB}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore">
|
||||||
|
<UniqueIdentifier>{66C82A41-23B4-4DFF-AF72-77FF19742312}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Internal">
|
||||||
|
<UniqueIdentifier>{CEA317BE-1F0E-40DD-A546-67659EB71E9A}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\src\Decoder.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\DecoderData.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\Formatter.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\MetaInfo.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\Mnemonic.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\Register.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\SharedData.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\String.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\Utils.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\Zydis.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\FormatterATT.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\FormatterBase.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\FormatterBuffer.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\FormatterIntel.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Terminal.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dependencies\zycore\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Decoder.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\DecoderTypes.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Formatter.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\MetaInfo.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Mnemonic.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Register.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\SharedTypes.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\ShortString.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Status.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Utils.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Zydis.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\SharedData.h">
|
||||||
|
<Filter>Header Files\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\DecoderData.h">
|
||||||
|
<Filter>Header Files\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\FormatterATT.h">
|
||||||
|
<Filter>Header Files\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\FormatterBase.h">
|
||||||
|
<Filter>Header Files\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\FormatterIntel.h">
|
||||||
|
<Filter>Header Files\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\Zydis\Internal\String.h">
|
||||||
|
<Filter>Header Files\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="..\..\resources\VersionInfo.rc">
|
||||||
|
<Filter>Resource Files</Filter>
|
||||||
|
</ResourceCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
BIN
resources/VersionInfo.rc
Normal file
BIN
resources/VersionInfo.rc
Normal file
Binary file not shown.
4941
src/Decoder.c
Normal file
4941
src/Decoder.c
Normal file
File diff suppressed because it is too large
Load diff
174
src/DecoderData.c
Normal file
174
src/DecoderData.c
Normal file
|
@ -0,0 +1,174 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/Internal/DecoderData.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Data tables */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Physical instruction encodings */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#include <Generated/InstructionEncodings.inc>
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Decoder tree */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#define ZYDIS_INVALID \
|
||||||
|
{ ZYDIS_NODETYPE_INVALID, 0x00000000 }
|
||||||
|
#define ZYDIS_FILTER(type, id) \
|
||||||
|
{ type, id }
|
||||||
|
#define ZYDIS_DEFINITION(encoding_id, id) \
|
||||||
|
{ ZYDIS_NODETYPE_DEFINITION_MASK | encoding_id, id }
|
||||||
|
|
||||||
|
#include <Generated/DecoderTables.inc>
|
||||||
|
|
||||||
|
#undef ZYDIS_INVALID
|
||||||
|
#undef ZYDIS_FILTER
|
||||||
|
#undef ZYDIS_DEFINITION
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Decoder tree */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
const ZydisDecoderTreeNode zydis_decoder_tree_root = { ZYDIS_NODETYPE_FILTER_OPCODE, 0x0000 };
|
||||||
|
|
||||||
|
const ZydisDecoderTreeNode* ZydisDecoderTreeGetChildNode(const ZydisDecoderTreeNode* parent,
|
||||||
|
ZyanU16 index)
|
||||||
|
{
|
||||||
|
switch (parent->type)
|
||||||
|
{
|
||||||
|
case ZYDIS_NODETYPE_FILTER_XOP:
|
||||||
|
ZYAN_ASSERT(index < 13);
|
||||||
|
return &FILTERS_XOP[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_VEX:
|
||||||
|
ZYAN_ASSERT(index < 17);
|
||||||
|
return &FILTERS_VEX[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_EMVEX:
|
||||||
|
ZYAN_ASSERT(index < 33);
|
||||||
|
return &FILTERS_EMVEX[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_OPCODE:
|
||||||
|
ZYAN_ASSERT(index < 256);
|
||||||
|
return &FILTERS_OPCODE[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODE:
|
||||||
|
ZYAN_ASSERT(index < 4);
|
||||||
|
return &FILTERS_MODE[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODE_COMPACT:
|
||||||
|
ZYAN_ASSERT(index < 3);
|
||||||
|
return &FILTERS_MODE_COMPACT[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODRM_MOD:
|
||||||
|
ZYAN_ASSERT(index < 4);
|
||||||
|
return &FILTERS_MODRM_MOD[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODRM_MOD_COMPACT:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_MODRM_MOD_COMPACT[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODRM_REG:
|
||||||
|
ZYAN_ASSERT(index < 8);
|
||||||
|
return &FILTERS_MODRM_REG[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODRM_RM:
|
||||||
|
ZYAN_ASSERT(index < 8);
|
||||||
|
return &FILTERS_MODRM_RM[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_PREFIX_GROUP1:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_PREFIX_GROUP1[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MANDATORY_PREFIX:
|
||||||
|
ZYAN_ASSERT(index < 5);
|
||||||
|
return &FILTERS_MANDATORY_PREFIX[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_OPERAND_SIZE:
|
||||||
|
ZYAN_ASSERT(index < 3);
|
||||||
|
return &FILTERS_OPERAND_SIZE[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_ADDRESS_SIZE:
|
||||||
|
ZYAN_ASSERT(index < 3);
|
||||||
|
return &FILTERS_ADDRESS_SIZE[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_VECTOR_LENGTH:
|
||||||
|
ZYAN_ASSERT(index < 3);
|
||||||
|
return &FILTERS_VECTOR_LENGTH[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_REX_W:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_REX_W[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_REX_B:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_REX_B[parent->value][index];
|
||||||
|
#ifndef ZYDIS_DISABLE_AVX512
|
||||||
|
case ZYDIS_NODETYPE_FILTER_EVEX_B:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_EVEX_B[parent->value][index];
|
||||||
|
#endif
|
||||||
|
#ifndef ZYDIS_DISABLE_KNC
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MVEX_E:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_MVEX_E[parent->value][index];
|
||||||
|
#endif
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODE_AMD:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_MODE_AMD[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODE_KNC:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_MODE_KNC[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODE_MPX:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_MODE_MPX[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODE_CET:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_MODE_CET[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODE_LZCNT:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_MODE_LZCNT[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODE_TZCNT:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_MODE_TZCNT[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODE_WBNOINVD:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_MODE_WBNOINVD[parent->value][index];
|
||||||
|
case ZYDIS_NODETYPE_FILTER_MODE_CLDEMOTE:
|
||||||
|
ZYAN_ASSERT(index < 2);
|
||||||
|
return &FILTERS_MODE_CLDEMOTE[parent->value][index];
|
||||||
|
default:
|
||||||
|
ZYAN_UNREACHABLE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void ZydisGetInstructionEncodingInfo(const ZydisDecoderTreeNode* node,
|
||||||
|
const ZydisInstructionEncodingInfo** info)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(node->type & ZYDIS_NODETYPE_DEFINITION_MASK);
|
||||||
|
const ZyanU8 class = (node->type) & 0x7F;
|
||||||
|
ZYAN_ASSERT(class < ZYAN_ARRAY_LENGTH(INSTR_ENCODINGS));
|
||||||
|
*info = &INSTR_ENCODINGS[class];
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
646
src/Formatter.c
Normal file
646
src/Formatter.c
Normal file
|
@ -0,0 +1,646 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd, Joel Hoener
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zycore/LibC.h>
|
||||||
|
#include <Zydis/Formatter.h>
|
||||||
|
#include <Zydis/Internal/FormatterATT.h>
|
||||||
|
#include <Zydis/Internal/FormatterIntel.h>
|
||||||
|
#include <Zydis/Internal/String.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Constants */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Formatter presets */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
static const ZydisFormatter* const FORMATTER_PRESETS[ZYDIS_FORMATTER_STYLE_MAX_VALUE + 1] =
|
||||||
|
{
|
||||||
|
&FORMATTER_ATT,
|
||||||
|
&FORMATTER_INTEL,
|
||||||
|
&FORMATTER_INTEL_MASM
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Internal functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Helper functions */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
void ZydisFormatterBufferInit(ZydisFormatterBuffer* buffer, char* user_buffer,
|
||||||
|
ZyanUSize length)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(user_buffer);
|
||||||
|
ZYAN_ASSERT(length);
|
||||||
|
|
||||||
|
buffer->is_token_list = ZYAN_FALSE;
|
||||||
|
buffer->string.flags = ZYAN_STRING_HAS_FIXED_CAPACITY;
|
||||||
|
buffer->string.vector.allocator = ZYAN_NULL;
|
||||||
|
buffer->string.vector.element_size = sizeof(char);
|
||||||
|
buffer->string.vector.size = 1;
|
||||||
|
buffer->string.vector.capacity = length;
|
||||||
|
buffer->string.vector.data = user_buffer;
|
||||||
|
*user_buffer = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
void ZydisFormatterBufferInitTokenized(ZydisFormatterBuffer* buffer,
|
||||||
|
ZydisFormatterToken** first_token, void* user_buffer, ZyanUSize length)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(first_token);
|
||||||
|
ZYAN_ASSERT(user_buffer);
|
||||||
|
ZYAN_ASSERT(length);
|
||||||
|
|
||||||
|
*first_token = user_buffer;
|
||||||
|
(*first_token)->type = ZYDIS_TOKEN_INVALID;
|
||||||
|
(*first_token)->next = 0;
|
||||||
|
|
||||||
|
user_buffer = (ZyanU8*)user_buffer + sizeof(ZydisFormatterToken);
|
||||||
|
length -= sizeof(ZydisFormatterToken);
|
||||||
|
|
||||||
|
buffer->is_token_list = ZYAN_TRUE;
|
||||||
|
buffer->capacity = length;
|
||||||
|
buffer->string.flags = ZYAN_STRING_HAS_FIXED_CAPACITY;
|
||||||
|
buffer->string.vector.allocator = ZYAN_NULL;
|
||||||
|
buffer->string.vector.element_size = sizeof(char);
|
||||||
|
buffer->string.vector.size = 1;
|
||||||
|
buffer->string.vector.capacity = length;
|
||||||
|
buffer->string.vector.data = user_buffer;
|
||||||
|
*(char*)user_buffer = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Initialization */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterInit(ZydisFormatter* formatter, ZydisFormatterStyle style)
|
||||||
|
{
|
||||||
|
if (!formatter || (style > ZYDIS_FORMATTER_STYLE_MAX_VALUE))
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_MEMCPY(formatter, FORMATTER_PRESETS[style], sizeof(*formatter));
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Setter */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterSetProperty(ZydisFormatter* formatter, ZydisFormatterProperty property,
|
||||||
|
ZyanUPointer value)
|
||||||
|
{
|
||||||
|
if (!formatter)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZydisNumericBase base = (ZydisNumericBase)(-1);
|
||||||
|
ZyanU8 index = 0xFF;
|
||||||
|
|
||||||
|
switch (property)
|
||||||
|
{
|
||||||
|
case ZYDIS_FORMATTER_PROP_FORCE_SIZE:
|
||||||
|
{
|
||||||
|
formatter->force_memory_size = (value) ? ZYAN_TRUE : ZYAN_FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_FORCE_SEGMENT:
|
||||||
|
{
|
||||||
|
formatter->force_memory_segment = (value) ? ZYAN_TRUE : ZYAN_FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_FORCE_RELATIVE_BRANCHES:
|
||||||
|
{
|
||||||
|
formatter->force_relative_branches = (value) ? ZYAN_TRUE : ZYAN_FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_FORCE_RELATIVE_RIPREL:
|
||||||
|
{
|
||||||
|
formatter->force_relative_riprel = (value) ? ZYAN_TRUE : ZYAN_FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_PRINT_BRANCH_SIZE:
|
||||||
|
{
|
||||||
|
formatter->print_branch_size = (value) ? ZYAN_TRUE : ZYAN_FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_DETAILED_PREFIXES:
|
||||||
|
{
|
||||||
|
formatter->detailed_prefixes = (value) ? ZYAN_TRUE : ZYAN_FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_ADDR_BASE:
|
||||||
|
{
|
||||||
|
if ((ZydisNumericBase)value > ZYDIS_NUMERIC_BASE_MAX_VALUE)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
formatter->addr_base = (ZydisNumericBase)value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_ADDR_SIGNEDNESS:
|
||||||
|
{
|
||||||
|
if ((ZydisSignedness)value > ZYDIS_SIGNEDNESS_MAX_VALUE)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
formatter->addr_signedness = (ZydisSignedness)value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_ADDR_PADDING_ABSOLUTE:
|
||||||
|
{
|
||||||
|
formatter->addr_padding_absolute = (ZydisPadding)value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_ADDR_PADDING_RELATIVE:
|
||||||
|
{
|
||||||
|
formatter->addr_padding_relative = (ZydisPadding)value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_DISP_BASE:
|
||||||
|
{
|
||||||
|
if ((ZydisNumericBase)value > ZYDIS_NUMERIC_BASE_MAX_VALUE)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
formatter->disp_base = (ZydisNumericBase)value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_DISP_SIGNEDNESS:
|
||||||
|
{
|
||||||
|
if ((ZydisSignedness)value > ZYDIS_SIGNEDNESS_MAX_VALUE)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
formatter->disp_signedness = (ZydisSignedness)value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_DISP_PADDING:
|
||||||
|
{
|
||||||
|
if ((ZydisPadding)value == ZYDIS_PADDING_AUTO)
|
||||||
|
{
|
||||||
|
if (formatter->style > ZYDIS_FORMATTER_STYLE_MAX_VALUE)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
formatter->disp_padding = FORMATTER_PRESETS[formatter->style]->disp_padding;
|
||||||
|
}
|
||||||
|
formatter->disp_padding = (ZydisPadding)value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_IMM_BASE:
|
||||||
|
{
|
||||||
|
if ((ZydisNumericBase)value > ZYDIS_NUMERIC_BASE_MAX_VALUE)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
formatter->imm_base = (ZydisNumericBase)value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_IMM_SIGNEDNESS:
|
||||||
|
{
|
||||||
|
if ((ZydisSignedness)value > ZYDIS_SIGNEDNESS_MAX_VALUE)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
formatter->imm_signedness = (ZydisSignedness)value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_IMM_PADDING:
|
||||||
|
{
|
||||||
|
if ((ZydisPadding)value == ZYDIS_PADDING_AUTO)
|
||||||
|
{
|
||||||
|
if (formatter->style > ZYDIS_FORMATTER_STYLE_MAX_VALUE)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
formatter->imm_padding = FORMATTER_PRESETS[formatter->style]->imm_padding;
|
||||||
|
}
|
||||||
|
formatter->imm_padding = (ZydisPadding)value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_UPPERCASE_PREFIXES:
|
||||||
|
{
|
||||||
|
formatter->case_prefixes = (value) ? ZYDIS_LETTER_CASE_UPPER : ZYDIS_LETTER_CASE_DEFAULT;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_UPPERCASE_MNEMONIC:
|
||||||
|
{
|
||||||
|
formatter->case_mnemonic = (value) ? ZYDIS_LETTER_CASE_UPPER : ZYDIS_LETTER_CASE_DEFAULT;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_UPPERCASE_REGISTERS:
|
||||||
|
{
|
||||||
|
formatter->case_registers = (value) ? ZYDIS_LETTER_CASE_UPPER : ZYDIS_LETTER_CASE_DEFAULT;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_UPPERCASE_TYPECASTS:
|
||||||
|
{
|
||||||
|
formatter->case_typecasts = (value) ? ZYDIS_LETTER_CASE_UPPER : ZYDIS_LETTER_CASE_DEFAULT;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_UPPERCASE_DECORATORS:
|
||||||
|
{
|
||||||
|
formatter->case_decorators = (value) ? ZYDIS_LETTER_CASE_UPPER : ZYDIS_LETTER_CASE_DEFAULT;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_DEC_PREFIX:
|
||||||
|
{
|
||||||
|
base = ZYDIS_NUMERIC_BASE_DEC;
|
||||||
|
index = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_DEC_SUFFIX:
|
||||||
|
{
|
||||||
|
base = ZYDIS_NUMERIC_BASE_DEC;
|
||||||
|
index = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_HEX_UPPERCASE:
|
||||||
|
{
|
||||||
|
formatter->hex_uppercase = (value) ? ZYAN_TRUE : ZYAN_FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_HEX_PREFIX:
|
||||||
|
{
|
||||||
|
base = ZYDIS_NUMERIC_BASE_HEX;
|
||||||
|
index = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_FORMATTER_PROP_HEX_SUFFIX:
|
||||||
|
{
|
||||||
|
base = ZYDIS_NUMERIC_BASE_HEX;
|
||||||
|
index = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set prefix or suffix
|
||||||
|
if (base != (ZydisNumericBase)(-1))
|
||||||
|
{
|
||||||
|
if (value)
|
||||||
|
{
|
||||||
|
const ZyanUSize len = ZYAN_STRLEN((char*)value);
|
||||||
|
if (len > 10)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
ZYAN_MEMCPY(formatter->number_format[base][index].buffer, (void*)value, len);
|
||||||
|
formatter->number_format[base][index].buffer[len] = '\0';
|
||||||
|
formatter->number_format[base][index].string_data.string.vector.data =
|
||||||
|
formatter->number_format[base][index].buffer;
|
||||||
|
formatter->number_format[base][index].string_data.string.vector.size = len + 1;
|
||||||
|
formatter->number_format[base][index].string =
|
||||||
|
&formatter->number_format[base][index].string_data;
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
formatter->number_format[base][index].string = ZYAN_NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterSetHook(ZydisFormatter* formatter, ZydisFormatterFunction type,
|
||||||
|
const void** callback)
|
||||||
|
{
|
||||||
|
if (!formatter || !callback || (type > ZYDIS_FORMATTER_FUNC_MAX_VALUE))
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
const void* const temp = *callback;
|
||||||
|
|
||||||
|
// The following code relies on the order of the enum values and the function fields inside
|
||||||
|
// the `ZydisFormatter` struct
|
||||||
|
|
||||||
|
#ifdef ZYAN_DEBUG
|
||||||
|
const ZyanUPointer* test = (ZyanUPointer*)(&formatter->func_pre_instruction + type);
|
||||||
|
switch (type)
|
||||||
|
{
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRE_INSTRUCTION:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_pre_instruction ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_POST_INSTRUCTION:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_post_instruction ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_FORMAT_INSTRUCTION:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_format_instruction); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRE_OPERAND:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_pre_operand ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_POST_OPERAND:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_post_operand ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_FORMAT_OPERAND_REG:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_format_operand_reg); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_FORMAT_OPERAND_MEM:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_format_operand_mem); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_FORMAT_OPERAND_PTR:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_format_operand_ptr); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_FORMAT_OPERAND_IMM:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_format_operand_imm); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRINT_MNEMONIC:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_print_mnemonic ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRINT_REGISTER:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_print_register ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRINT_ADDRESS_ABS:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_print_address_abs ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRINT_ADDRESS_REL:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_print_address_rel ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRINT_DISP:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_print_disp ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRINT_IMM:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_print_imm ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRINT_TYPECAST:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_print_typecast ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRINT_SEGMENT:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_print_segment ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRINT_PREFIXES:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_print_prefixes ); break;
|
||||||
|
case ZYDIS_FORMATTER_FUNC_PRINT_DECORATOR:
|
||||||
|
ZYAN_ASSERT(test == (ZyanUPointer*)&formatter->func_print_decorator ); break;
|
||||||
|
default:
|
||||||
|
ZYAN_UNREACHABLE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
*callback = *(const void**)(&formatter->func_pre_instruction + type);
|
||||||
|
if (!temp)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
ZYAN_MEMCPY(&formatter->func_pre_instruction + type, &temp, sizeof(ZyanUPointer));
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Formatting */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterFormatInstruction(const ZydisFormatter* formatter,
|
||||||
|
const ZydisDecodedInstruction* instruction, char* buffer, ZyanUSize length,
|
||||||
|
ZyanU64 runtime_address)
|
||||||
|
{
|
||||||
|
return ZydisFormatterFormatInstructionEx(formatter, instruction, buffer, length,
|
||||||
|
runtime_address, ZYAN_NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterFormatInstructionEx(const ZydisFormatter* formatter,
|
||||||
|
const ZydisDecodedInstruction* instruction, char* buffer, ZyanUSize length,
|
||||||
|
ZyanU64 runtime_address, void* user_data)
|
||||||
|
{
|
||||||
|
if (!formatter || !instruction || !buffer || (length == 0))
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZydisFormatterBuffer formatter_buffer;
|
||||||
|
ZydisFormatterBufferInit(&formatter_buffer, buffer, length);
|
||||||
|
|
||||||
|
ZydisFormatterContext context;
|
||||||
|
context.instruction = instruction;
|
||||||
|
context.runtime_address = runtime_address;
|
||||||
|
context.operand = ZYAN_NULL;
|
||||||
|
context.user_data = user_data;
|
||||||
|
|
||||||
|
if (formatter->func_pre_instruction)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_pre_instruction(formatter, &formatter_buffer, &context));
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_CHECK(formatter->func_format_instruction(formatter, &formatter_buffer, &context));
|
||||||
|
|
||||||
|
if (formatter->func_post_instruction)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_post_instruction(formatter, &formatter_buffer, &context));
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterFormatOperand(const ZydisFormatter* formatter,
|
||||||
|
const ZydisDecodedInstruction* instruction, ZyanU8 index, char* buffer, ZyanUSize length,
|
||||||
|
ZyanU64 runtime_address)
|
||||||
|
{
|
||||||
|
return ZydisFormatterFormatOperandEx(formatter, instruction, index, buffer, length,
|
||||||
|
runtime_address, ZYAN_NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterFormatOperandEx(const ZydisFormatter* formatter,
|
||||||
|
const ZydisDecodedInstruction* instruction, ZyanU8 index, char* buffer, ZyanUSize length,
|
||||||
|
ZyanU64 runtime_address, void* user_data)
|
||||||
|
{
|
||||||
|
if (!formatter || !instruction || index >= instruction->operand_count || !buffer ||
|
||||||
|
(length == 0))
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZydisFormatterBuffer formatter_buffer;
|
||||||
|
ZydisFormatterBufferInit(&formatter_buffer, buffer, length);
|
||||||
|
|
||||||
|
ZydisFormatterContext context;
|
||||||
|
context.instruction = instruction;
|
||||||
|
context.runtime_address = runtime_address;
|
||||||
|
context.operand = &instruction->operands[index];
|
||||||
|
context.user_data = user_data;
|
||||||
|
|
||||||
|
// We ignore `ZYDIS_STATUS_SKIP_TOKEN` for all operand-functions as it does not make any sense
|
||||||
|
// to skip the only operand printed by this function
|
||||||
|
|
||||||
|
if (formatter->func_pre_operand)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_pre_operand(formatter, &formatter_buffer, &context));
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (context.operand->type)
|
||||||
|
{
|
||||||
|
case ZYDIS_OPERAND_TYPE_REGISTER:
|
||||||
|
ZYAN_CHECK(formatter->func_format_operand_reg(formatter, &formatter_buffer, &context));
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_MEMORY:
|
||||||
|
ZYAN_CHECK(formatter->func_format_operand_mem(formatter, &formatter_buffer, &context));
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_IMMEDIATE:
|
||||||
|
ZYAN_CHECK(formatter->func_format_operand_imm(formatter, &formatter_buffer, &context));
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_POINTER:
|
||||||
|
ZYAN_CHECK(formatter->func_format_operand_ptr(formatter, &formatter_buffer, &context));
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (formatter->func_post_operand)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_post_operand(formatter, &formatter_buffer, &context));
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Tokenizing */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterTokenizeInstruction(const ZydisFormatter* formatter,
|
||||||
|
const ZydisDecodedInstruction* instruction, void* buffer, ZyanUSize length,
|
||||||
|
ZyanU64 runtime_address, ZydisFormatterTokenConst** token)
|
||||||
|
{
|
||||||
|
return ZydisFormatterTokenizeInstructionEx(formatter, instruction, buffer, length,
|
||||||
|
runtime_address, token, ZYAN_NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterTokenizeInstructionEx(const ZydisFormatter* formatter,
|
||||||
|
const ZydisDecodedInstruction* instruction, void* buffer, ZyanUSize length,
|
||||||
|
ZyanU64 runtime_address, ZydisFormatterTokenConst** token, void* user_data)
|
||||||
|
{
|
||||||
|
if (!formatter || !instruction || !buffer || (length <= sizeof(ZydisFormatterToken)) || !token)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZydisFormatterBuffer formatter_buffer;
|
||||||
|
ZydisFormatterToken* first_token;
|
||||||
|
ZydisFormatterBufferInitTokenized(&formatter_buffer, &first_token, buffer, length);
|
||||||
|
|
||||||
|
ZydisFormatterContext context;
|
||||||
|
context.instruction = instruction;
|
||||||
|
context.runtime_address = runtime_address;
|
||||||
|
context.operand = ZYAN_NULL;
|
||||||
|
context.user_data = user_data;
|
||||||
|
|
||||||
|
if (formatter->func_pre_instruction)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_pre_instruction(formatter, &formatter_buffer, &context));
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_CHECK(formatter->func_format_instruction(formatter, &formatter_buffer, &context));
|
||||||
|
|
||||||
|
if (formatter->func_post_instruction)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_post_instruction(formatter, &formatter_buffer, &context));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (first_token->next)
|
||||||
|
{
|
||||||
|
*token = (ZydisFormatterTokenConst*)((ZyanU8*)first_token + sizeof(ZydisFormatterToken) +
|
||||||
|
first_token->next);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
*token = first_token;
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterTokenizeOperand(const ZydisFormatter* formatter,
|
||||||
|
const ZydisDecodedInstruction* instruction, ZyanU8 index, void* buffer, ZyanUSize length,
|
||||||
|
ZyanU64 runtime_address, ZydisFormatterTokenConst** token)
|
||||||
|
{
|
||||||
|
return ZydisFormatterTokenizeOperandEx(formatter, instruction, index, buffer, length,
|
||||||
|
runtime_address, token, ZYAN_NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterTokenizeOperandEx(const ZydisFormatter* formatter,
|
||||||
|
const ZydisDecodedInstruction* instruction, ZyanU8 index, void* buffer, ZyanUSize length,
|
||||||
|
ZyanU64 runtime_address, ZydisFormatterTokenConst** token, void* user_data)
|
||||||
|
{
|
||||||
|
if (!formatter || !instruction || (index >= instruction->operand_count) || !buffer ||
|
||||||
|
(length <= sizeof(ZydisFormatterToken)) || !token)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZydisFormatterToken* first_token;
|
||||||
|
ZydisFormatterBuffer formatter_buffer;
|
||||||
|
ZydisFormatterBufferInitTokenized(&formatter_buffer, &first_token, buffer, length);
|
||||||
|
|
||||||
|
ZydisFormatterContext context;
|
||||||
|
context.instruction = instruction;
|
||||||
|
context.runtime_address = runtime_address;
|
||||||
|
context.operand = &instruction->operands[index];
|
||||||
|
context.user_data = user_data;
|
||||||
|
|
||||||
|
// We ignore `ZYDIS_STATUS_SKIP_TOKEN` for all operand-functions as it does not make any sense
|
||||||
|
// to skip the only operand printed by this function
|
||||||
|
|
||||||
|
if (formatter->func_pre_operand)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_pre_operand(formatter, &formatter_buffer, &context));
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (context.operand->type)
|
||||||
|
{
|
||||||
|
case ZYDIS_OPERAND_TYPE_REGISTER:
|
||||||
|
ZYAN_CHECK(formatter->func_format_operand_reg(formatter, &formatter_buffer, &context));
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_MEMORY:
|
||||||
|
ZYAN_CHECK(formatter->func_format_operand_mem(formatter, &formatter_buffer, &context));
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_IMMEDIATE:
|
||||||
|
ZYAN_CHECK(formatter->func_format_operand_imm(formatter, &formatter_buffer, &context));
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_POINTER:
|
||||||
|
ZYAN_CHECK(formatter->func_format_operand_ptr(formatter, &formatter_buffer, &context));
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (formatter->func_post_operand)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_post_operand(formatter, &formatter_buffer, &context));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (first_token->next)
|
||||||
|
{
|
||||||
|
*token = (ZydisFormatterTokenConst*)((ZyanU8*)first_token + sizeof(ZydisFormatterToken) +
|
||||||
|
first_token->next);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
*token = first_token;
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
395
src/FormatterATT.c
Normal file
395
src/FormatterATT.c
Normal file
|
@ -0,0 +1,395 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd, Joel Hoener
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/Internal/FormatterATT.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Constants */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#include <Generated/FormatterStrings.inc>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Formatter functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Instruction */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTFormatInstruction(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZYAN_CHECK(formatter->func_print_prefixes(formatter, buffer, context));
|
||||||
|
ZYAN_CHECK(formatter->func_print_mnemonic(formatter, buffer, context));
|
||||||
|
|
||||||
|
ZyanUPointer state_mnemonic;
|
||||||
|
ZYDIS_BUFFER_REMEMBER(buffer, state_mnemonic);
|
||||||
|
ZyanI8 c = (ZyanI8)context->instruction->operand_count - 1;
|
||||||
|
for (; c >= 0; --c)
|
||||||
|
{
|
||||||
|
if (context->instruction->operands[c].visibility != ZYDIS_OPERAND_VISIBILITY_HIDDEN)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (ZyanI8 i = c; i >= 0; --i)
|
||||||
|
{
|
||||||
|
const ZydisDecodedOperand* const operand = &context->instruction->operands[i];
|
||||||
|
|
||||||
|
// Print embedded-mask registers as decorator instead of a regular operand
|
||||||
|
if ((i == 1) && (operand->type == ZYDIS_OPERAND_TYPE_REGISTER) &&
|
||||||
|
(operand->encoding == ZYDIS_OPERAND_ENCODING_MASK))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanUPointer buffer_state;
|
||||||
|
ZYDIS_BUFFER_REMEMBER(buffer, buffer_state);
|
||||||
|
|
||||||
|
if (buffer_state != state_mnemonic)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, DELIM_OPERAND);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, DELIM_MNEMONIC);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set current operand
|
||||||
|
context->operand = operand;
|
||||||
|
|
||||||
|
ZyanStatus status;
|
||||||
|
if (formatter->func_pre_operand)
|
||||||
|
{
|
||||||
|
status = formatter->func_pre_operand(formatter, buffer, context);
|
||||||
|
if (status == ZYDIS_STATUS_SKIP_TOKEN)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferRestore(buffer, buffer_state));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!ZYAN_SUCCESS(status))
|
||||||
|
{
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (operand->type)
|
||||||
|
{
|
||||||
|
case ZYDIS_OPERAND_TYPE_REGISTER:
|
||||||
|
status = formatter->func_format_operand_reg(formatter, buffer, context);
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_MEMORY:
|
||||||
|
status = formatter->func_format_operand_mem(formatter, buffer, context);
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_POINTER:
|
||||||
|
status = formatter->func_format_operand_ptr(formatter, buffer, context);
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_IMMEDIATE:
|
||||||
|
status = formatter->func_format_operand_imm(formatter, buffer, context);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
if (status == ZYDIS_STATUS_SKIP_TOKEN)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferRestore(buffer, buffer_state));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!ZYAN_SUCCESS(status))
|
||||||
|
{
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (formatter->func_post_operand)
|
||||||
|
{
|
||||||
|
status = formatter->func_post_operand(formatter, buffer, context);
|
||||||
|
if (status == ZYDIS_STATUS_SKIP_TOKEN)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferRestore(buffer, buffer_state));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (ZYAN_SUCCESS(status))
|
||||||
|
{
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !defined(ZYDIS_DISABLE_AVX512) || !defined(ZYDIS_DISABLE_KNC)
|
||||||
|
if ((context->instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_EVEX) ||
|
||||||
|
(context->instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_MVEX))
|
||||||
|
{
|
||||||
|
if ((i == 0) &&
|
||||||
|
(context->instruction->operands[i + 1].encoding == ZYDIS_OPERAND_ENCODING_MASK))
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_MASK));
|
||||||
|
}
|
||||||
|
if (operand->type == ZYDIS_OPERAND_TYPE_MEMORY)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_BC));
|
||||||
|
if (context->instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_MVEX)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_CONVERSION));
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_EH));
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
if ((i == (context->instruction->operand_count - 1)) ||
|
||||||
|
(context->instruction->operands[i + 1].type == ZYDIS_OPERAND_TYPE_IMMEDIATE))
|
||||||
|
{
|
||||||
|
if (context->instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_MVEX)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_SWIZZLE));
|
||||||
|
}
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_RC));
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_SAE));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operands */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTFormatOperandMEM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZYAN_CHECK(formatter->func_print_segment(formatter, buffer, context));
|
||||||
|
|
||||||
|
const ZyanBool absolute = !formatter->force_relative_riprel &&
|
||||||
|
(context->runtime_address != ZYDIS_RUNTIME_ADDRESS_NONE);
|
||||||
|
if (absolute && context->operand->mem.disp.has_displacement &&
|
||||||
|
(context->operand->mem.index == ZYDIS_REGISTER_NONE) &&
|
||||||
|
((context->operand->mem.base == ZYDIS_REGISTER_NONE) ||
|
||||||
|
(context->operand->mem.base == ZYDIS_REGISTER_EIP ) ||
|
||||||
|
(context->operand->mem.base == ZYDIS_REGISTER_RIP )))
|
||||||
|
{
|
||||||
|
// EIP/RIP-relative or absolute-displacement address operand
|
||||||
|
ZYAN_CHECK(formatter->func_print_address_abs(formatter, buffer, context));
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
ZyanBool should_print_reg = context->operand->mem.base != ZYDIS_REGISTER_NONE;
|
||||||
|
ZyanBool should_print_idx = (context->operand->mem.index != ZYDIS_REGISTER_NONE) &&
|
||||||
|
(context->operand->mem.type != ZYDIS_MEMOP_TYPE_MIB);
|
||||||
|
ZyanBool neither_reg_nor_idx = !should_print_reg && !should_print_idx;
|
||||||
|
|
||||||
|
// Regular memory operand
|
||||||
|
if (context->operand->mem.disp.has_displacement && (context->operand->mem.disp.value
|
||||||
|
|| neither_reg_nor_idx))
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_disp(formatter, buffer, context));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (neither_reg_nor_idx)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, MEMORY_BEGIN_ATT);
|
||||||
|
|
||||||
|
if (should_print_reg)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context,
|
||||||
|
context->operand->mem.base));
|
||||||
|
}
|
||||||
|
if (should_print_idx)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, DELIM_MEMORY);
|
||||||
|
ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context,
|
||||||
|
context->operand->mem.index));
|
||||||
|
if (context->operand->mem.scale)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_DELIMITER);
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, DELIM_MEMORY);
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_IMMEDIATE);
|
||||||
|
ZYAN_CHECK(ZydisStringAppendDecU(&buffer->string, context->operand->mem.scale, 0,
|
||||||
|
ZYAN_NULL, ZYAN_NULL));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, MEMORY_END_ATT);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Elemental tokens */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTPrintMnemonic(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
const ZydisShortString* mnemonic = ZydisMnemonicGetStringWrapped(
|
||||||
|
context->instruction->mnemonic);
|
||||||
|
if (!mnemonic)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, INVALID_MNEMONIC, formatter->case_mnemonic);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_MNEMONIC);
|
||||||
|
if (context->instruction->meta.branch_type == ZYDIS_BRANCH_TYPE_FAR)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShortCase(&buffer->string, &STR_FAR_ATT,
|
||||||
|
formatter->case_mnemonic));
|
||||||
|
}
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShortCase(&buffer->string, mnemonic, formatter->case_mnemonic));
|
||||||
|
|
||||||
|
// Append operand-size suffix
|
||||||
|
ZyanU32 size = 0;
|
||||||
|
for (ZyanU8 i = 0; i < context->instruction->operand_count; ++i)
|
||||||
|
{
|
||||||
|
const ZydisDecodedOperand* const operand = &context->instruction->operands[i];
|
||||||
|
if (operand->visibility == ZYDIS_OPERAND_VISIBILITY_HIDDEN)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ((operand->type == ZYDIS_OPERAND_TYPE_MEMORY) &&
|
||||||
|
(operand->mem.type == ZYDIS_MEMOP_TYPE_MEM))
|
||||||
|
{
|
||||||
|
size = ZydisFormatterHelperGetExplicitSize(formatter, context, i);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (size)
|
||||||
|
{
|
||||||
|
case 8: ZydisStringAppendShort(&buffer->string, &STR_SIZE_8_ATT ); break;
|
||||||
|
case 16: ZydisStringAppendShort(&buffer->string, &STR_SIZE_16_ATT ); break;
|
||||||
|
case 32: ZydisStringAppendShort(&buffer->string, &STR_SIZE_32_ATT ); break;
|
||||||
|
case 64: ZydisStringAppendShort(&buffer->string, &STR_SIZE_64_ATT ); break;
|
||||||
|
case 128: ZydisStringAppendShort(&buffer->string, &STR_SIZE_128_ATT); break;
|
||||||
|
case 256: ZydisStringAppendShort(&buffer->string, &STR_SIZE_256_ATT); break;
|
||||||
|
case 512: ZydisStringAppendShort(&buffer->string, &STR_SIZE_512_ATT); break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (formatter->print_branch_size)
|
||||||
|
{
|
||||||
|
switch (context->instruction->meta.branch_type)
|
||||||
|
{
|
||||||
|
case ZYDIS_BRANCH_TYPE_NONE:
|
||||||
|
break;
|
||||||
|
case ZYDIS_BRANCH_TYPE_SHORT:
|
||||||
|
return ZydisStringAppendShortCase(&buffer->string, &STR_SHORT,
|
||||||
|
formatter->case_mnemonic);
|
||||||
|
case ZYDIS_BRANCH_TYPE_NEAR:
|
||||||
|
return ZydisStringAppendShortCase(&buffer->string, &STR_NEAR,
|
||||||
|
formatter->case_mnemonic);
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTPrintRegister(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context, ZydisRegister reg)
|
||||||
|
{
|
||||||
|
ZYAN_UNUSED(context);
|
||||||
|
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, REGISTER);
|
||||||
|
const ZydisShortString* str = ZydisRegisterGetStringWrapped(reg);
|
||||||
|
if (!str)
|
||||||
|
{
|
||||||
|
return ZydisStringAppendShortCase(&buffer->string, &STR_INVALID_REG,
|
||||||
|
formatter->case_registers);
|
||||||
|
}
|
||||||
|
return ZydisStringAppendShortCase(&buffer->string, str, formatter->case_registers);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTPrintDISP(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_DISPLACEMENT);
|
||||||
|
switch (formatter->disp_signedness)
|
||||||
|
{
|
||||||
|
case ZYDIS_SIGNEDNESS_AUTO:
|
||||||
|
case ZYDIS_SIGNEDNESS_SIGNED:
|
||||||
|
ZYDIS_STRING_APPEND_NUM_S(formatter, formatter->disp_base, &buffer->string,
|
||||||
|
context->operand->mem.disp.value, formatter->disp_padding, ZYAN_FALSE);
|
||||||
|
break;
|
||||||
|
case ZYDIS_SIGNEDNESS_UNSIGNED:
|
||||||
|
ZYDIS_STRING_APPEND_NUM_U(formatter, formatter->disp_base, &buffer->string,
|
||||||
|
context->operand->mem.disp.value, formatter->disp_padding);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterATTPrintIMM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, IMMEDIATE);
|
||||||
|
return ZydisFormatterBasePrintIMM(formatter, buffer, context);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
756
src/FormatterBase.c
Normal file
756
src/FormatterBase.c
Normal file
|
@ -0,0 +1,756 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd, Joel Hoener
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/Internal/FormatterBase.h>
|
||||||
|
#include <Zydis/Utils.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Constants */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#include <Generated/FormatterStrings.inc>
|
||||||
|
|
||||||
|
static const ZydisShortString* const STR_PREF_REX[16] =
|
||||||
|
{
|
||||||
|
&STR_PREF_REX_40,
|
||||||
|
&STR_PREF_REX_41,
|
||||||
|
&STR_PREF_REX_42,
|
||||||
|
&STR_PREF_REX_43,
|
||||||
|
&STR_PREF_REX_44,
|
||||||
|
&STR_PREF_REX_45,
|
||||||
|
&STR_PREF_REX_46,
|
||||||
|
&STR_PREF_REX_47,
|
||||||
|
&STR_PREF_REX_48,
|
||||||
|
&STR_PREF_REX_49,
|
||||||
|
&STR_PREF_REX_4A,
|
||||||
|
&STR_PREF_REX_4B,
|
||||||
|
&STR_PREF_REX_4C,
|
||||||
|
&STR_PREF_REX_4D,
|
||||||
|
&STR_PREF_REX_4E,
|
||||||
|
&STR_PREF_REX_4F
|
||||||
|
};
|
||||||
|
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX[16] =
|
||||||
|
{
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_40,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_41,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_42,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_43,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_44,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_45,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_46,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_47,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_48,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_49,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4A,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4B,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4C,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4D,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4E,
|
||||||
|
(const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4F
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Helper functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
ZyanU32 ZydisFormatterHelperGetExplicitSize(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterContext* context, ZyanU8 memop_id)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
ZYAN_ASSERT(memop_id < context->instruction->operand_count);
|
||||||
|
|
||||||
|
const ZydisDecodedOperand* const operand = &context->instruction->operands[memop_id];
|
||||||
|
ZYAN_ASSERT(operand->type == ZYDIS_OPERAND_TYPE_MEMORY);
|
||||||
|
ZYAN_ASSERT(operand->mem.type == ZYDIS_MEMOP_TYPE_MEM);
|
||||||
|
|
||||||
|
if (formatter->force_memory_size)
|
||||||
|
{
|
||||||
|
return operand->size;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (operand->id)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
if ((context->instruction->operands[1].type == ZYDIS_OPERAND_TYPE_UNUSED) ||
|
||||||
|
(context->instruction->operands[1].type == ZYDIS_OPERAND_TYPE_IMMEDIATE))
|
||||||
|
{
|
||||||
|
return context->instruction->operands[0].size;
|
||||||
|
}
|
||||||
|
if (context->instruction->operands[0].size != context->instruction->operands[1].size)
|
||||||
|
{
|
||||||
|
return context->instruction->operands[0].size;
|
||||||
|
}
|
||||||
|
if ((context->instruction->operands[1].type == ZYDIS_OPERAND_TYPE_REGISTER) &&
|
||||||
|
(context->instruction->operands[1].visibility == ZYDIS_OPERAND_VISIBILITY_IMPLICIT) &&
|
||||||
|
(context->instruction->operands[1].reg.value == ZYDIS_REGISTER_CL))
|
||||||
|
{
|
||||||
|
return context->instruction->operands[0].size;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
case 2:
|
||||||
|
if (context->instruction->operands[operand->id - 1].size !=
|
||||||
|
context->instruction->operands[operand->id].size)
|
||||||
|
{
|
||||||
|
return context->instruction->operands[operand->id].size;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Formatter functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operands */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBaseFormatOperandREG(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
return formatter->func_print_register(formatter, buffer, context, context->operand->reg.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBaseFormatOperandPTR(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_IMMEDIATE);
|
||||||
|
ZYDIS_STRING_APPEND_NUM_U(formatter, formatter->addr_base, &buffer->string,
|
||||||
|
context->operand->ptr.segment, 4);
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, DELIM_SEGMENT);
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_IMMEDIATE);
|
||||||
|
ZYDIS_STRING_APPEND_NUM_U(formatter, formatter->addr_base, &buffer->string,
|
||||||
|
context->operand->ptr.offset , 8);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBaseFormatOperandIMM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
// The immediate operand contains an address
|
||||||
|
if (context->operand->imm.is_relative)
|
||||||
|
{
|
||||||
|
const ZyanBool absolute = !formatter->force_relative_branches &&
|
||||||
|
(context->runtime_address != ZYDIS_RUNTIME_ADDRESS_NONE);
|
||||||
|
if (absolute)
|
||||||
|
{
|
||||||
|
return formatter->func_print_address_abs(formatter, buffer, context);
|
||||||
|
}
|
||||||
|
return formatter->func_print_address_rel(formatter, buffer, context);
|
||||||
|
}
|
||||||
|
|
||||||
|
// The immediate operand contains an actual ordinal value
|
||||||
|
return formatter->func_print_imm(formatter, buffer, context);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Elemental tokens */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintAddressABS(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZyanU64 address;
|
||||||
|
ZYAN_CHECK(ZydisCalcAbsoluteAddress(context->instruction, context->operand,
|
||||||
|
context->runtime_address, &address));
|
||||||
|
ZyanU8 padding = (formatter->addr_padding_absolute ==
|
||||||
|
ZYDIS_PADDING_AUTO) ? 0 : (ZyanU8)formatter->addr_padding_absolute;
|
||||||
|
if ((formatter->addr_padding_absolute == ZYDIS_PADDING_AUTO) &&
|
||||||
|
(formatter->addr_base == ZYDIS_NUMERIC_BASE_HEX))
|
||||||
|
{
|
||||||
|
switch (context->instruction->stack_width)
|
||||||
|
{
|
||||||
|
case 16:
|
||||||
|
padding = 4;
|
||||||
|
address = (ZyanU16)address;
|
||||||
|
break;
|
||||||
|
case 32:
|
||||||
|
padding = 8;
|
||||||
|
address = (ZyanU32)address;
|
||||||
|
break;
|
||||||
|
case 64:
|
||||||
|
padding = 16;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_ADDRESS_ABS);
|
||||||
|
ZYDIS_STRING_APPEND_NUM_U(formatter, formatter->addr_base, &buffer->string, address, padding);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintAddressREL(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZyanU64 address;
|
||||||
|
ZYAN_CHECK(ZydisCalcAbsoluteAddress(context->instruction, context->operand, 0, &address));
|
||||||
|
|
||||||
|
ZyanU8 padding = (formatter->addr_padding_relative ==
|
||||||
|
ZYDIS_PADDING_AUTO) ? 0 : (ZyanU8)formatter->addr_padding_relative;
|
||||||
|
if ((formatter->addr_padding_relative == ZYDIS_PADDING_AUTO) &&
|
||||||
|
(formatter->addr_base == ZYDIS_NUMERIC_BASE_HEX))
|
||||||
|
{
|
||||||
|
switch (context->instruction->stack_width)
|
||||||
|
{
|
||||||
|
case 16:
|
||||||
|
padding = 4;
|
||||||
|
address = (ZyanU16)address;
|
||||||
|
break;
|
||||||
|
case 32:
|
||||||
|
padding = 8;
|
||||||
|
address = (ZyanU32)address;
|
||||||
|
break;
|
||||||
|
case 64:
|
||||||
|
padding = 16;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_ADDRESS_REL);
|
||||||
|
switch (formatter->addr_signedness)
|
||||||
|
{
|
||||||
|
case ZYDIS_SIGNEDNESS_AUTO:
|
||||||
|
case ZYDIS_SIGNEDNESS_SIGNED:
|
||||||
|
ZYDIS_STRING_APPEND_NUM_S(formatter, formatter->addr_base, &buffer->string, address,
|
||||||
|
padding, ZYAN_TRUE);
|
||||||
|
break;
|
||||||
|
case ZYDIS_SIGNEDNESS_UNSIGNED:
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShort(&buffer->string, &STR_ADD));
|
||||||
|
ZYDIS_STRING_APPEND_NUM_U(formatter, formatter->addr_base, &buffer->string, address,
|
||||||
|
padding);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintIMM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_IMMEDIATE);
|
||||||
|
|
||||||
|
const ZyanBool is_signed =
|
||||||
|
(formatter->imm_signedness == ZYDIS_SIGNEDNESS_SIGNED) ||
|
||||||
|
(formatter->imm_signedness == ZYDIS_SIGNEDNESS_AUTO && (context->operand->imm.is_signed));
|
||||||
|
if (is_signed && (context->operand->imm.value.s < 0))
|
||||||
|
{
|
||||||
|
ZYDIS_STRING_APPEND_NUM_S(formatter, formatter->imm_base, &buffer->string,
|
||||||
|
context->operand->imm.value.s, formatter->imm_padding, ZYAN_FALSE);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
ZyanU64 value;
|
||||||
|
ZyanU8 padding = (formatter->imm_padding ==
|
||||||
|
ZYDIS_PADDING_AUTO) ? 0 : (ZyanU8)formatter->imm_padding;
|
||||||
|
switch (context->instruction->operand_width)
|
||||||
|
{
|
||||||
|
case 8:
|
||||||
|
if (formatter->imm_padding == ZYDIS_PADDING_AUTO)
|
||||||
|
{
|
||||||
|
padding = 2;
|
||||||
|
}
|
||||||
|
value = (ZyanU8 )context->operand->imm.value.u;
|
||||||
|
break;
|
||||||
|
case 16:
|
||||||
|
if (formatter->imm_padding == ZYDIS_PADDING_AUTO)
|
||||||
|
{
|
||||||
|
padding = 4;
|
||||||
|
}
|
||||||
|
value = (ZyanU16)context->operand->imm.value.u;
|
||||||
|
break;
|
||||||
|
case 32:
|
||||||
|
if (formatter->imm_padding == ZYDIS_PADDING_AUTO)
|
||||||
|
{
|
||||||
|
padding = 8;
|
||||||
|
}
|
||||||
|
value = (ZyanU32)context->operand->imm.value.u;
|
||||||
|
break;
|
||||||
|
case 64:
|
||||||
|
if (formatter->imm_padding == ZYDIS_PADDING_AUTO)
|
||||||
|
{
|
||||||
|
padding = 16;
|
||||||
|
}
|
||||||
|
value = (ZyanU64)context->operand->imm.value.u;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
ZYDIS_STRING_APPEND_NUM_U(formatter, formatter->imm_base, &buffer->string, value, padding);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Optional tokens */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintSegment(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZyanBool printed_segment = ZYAN_FALSE;
|
||||||
|
switch (context->operand->mem.segment)
|
||||||
|
{
|
||||||
|
case ZYDIS_REGISTER_ES:
|
||||||
|
case ZYDIS_REGISTER_CS:
|
||||||
|
case ZYDIS_REGISTER_FS:
|
||||||
|
case ZYDIS_REGISTER_GS:
|
||||||
|
ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context,
|
||||||
|
context->operand->mem.segment));
|
||||||
|
printed_segment = ZYAN_TRUE;
|
||||||
|
break;
|
||||||
|
case ZYDIS_REGISTER_SS:
|
||||||
|
if ((formatter->force_memory_segment) ||
|
||||||
|
(context->instruction->attributes & ZYDIS_ATTRIB_HAS_SEGMENT_SS))
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context,
|
||||||
|
context->operand->mem.segment));
|
||||||
|
printed_segment = ZYAN_TRUE;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case ZYDIS_REGISTER_DS:
|
||||||
|
if ((formatter->force_memory_segment) ||
|
||||||
|
(context->instruction->attributes & ZYDIS_ATTRIB_HAS_SEGMENT_DS))
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context,
|
||||||
|
context->operand->mem.segment));
|
||||||
|
printed_segment = ZYAN_TRUE;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (printed_segment)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, DELIM_SEGMENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintPrefixes(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
if (formatter->detailed_prefixes)
|
||||||
|
{
|
||||||
|
for (ZyanU8 i = 0; i < context->instruction->raw.prefix_count; ++i)
|
||||||
|
{
|
||||||
|
const ZyanU8 value = context->instruction->raw.prefixes[i].value;
|
||||||
|
switch (context->instruction->raw.prefixes[i].type)
|
||||||
|
{
|
||||||
|
case ZYDIS_PREFIX_TYPE_IGNORED:
|
||||||
|
case ZYDIS_PREFIX_TYPE_MANDATORY:
|
||||||
|
{
|
||||||
|
if ((value & 0xF0) == 0x40)
|
||||||
|
{
|
||||||
|
if (buffer->is_token_list)
|
||||||
|
{
|
||||||
|
// TODO: Case
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferAppendPredefined(buffer,
|
||||||
|
TOK_PREF_REX[value & 0x0F]));
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShortCase(&buffer->string,
|
||||||
|
STR_PREF_REX[value & 0x0F], formatter->case_prefixes));
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
switch (value)
|
||||||
|
{
|
||||||
|
case 0xF0:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_LOCK, formatter->case_prefixes);
|
||||||
|
break;
|
||||||
|
case 0x2E:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_SEG_CS, formatter->case_prefixes);
|
||||||
|
break;
|
||||||
|
case 0x36:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_SEG_SS, formatter->case_prefixes);
|
||||||
|
break;
|
||||||
|
case 0x3E:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_SEG_DS, formatter->case_prefixes);
|
||||||
|
break;
|
||||||
|
case 0x26:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_SEG_ES, formatter->case_prefixes);
|
||||||
|
break;
|
||||||
|
case 0x64:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_SEG_FS, formatter->case_prefixes);
|
||||||
|
break;
|
||||||
|
case 0x65:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_SEG_GS, formatter->case_prefixes);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_PREFIX);
|
||||||
|
ZYAN_CHECK(ZydisStringAppendHexU(&buffer->string, value, 0,
|
||||||
|
formatter->hex_uppercase, ZYAN_NULL, ZYAN_NULL));
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_WHITESPACE);
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShort(&buffer->string, &STR_WHITESPACE));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_PREFIX_TYPE_EFFECTIVE:
|
||||||
|
switch (value)
|
||||||
|
{
|
||||||
|
case 0xF0:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_LOCK, formatter->case_prefixes);
|
||||||
|
break;
|
||||||
|
case 0xF2:
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_XACQUIRE)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_XACQUIRE, formatter->case_prefixes);
|
||||||
|
}
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_REPNE)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_REPNE, formatter->case_prefixes);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_BND)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_BND, formatter->case_prefixes);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 0xF3:
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_XRELEASE)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_XRELEASE, formatter->case_prefixes);
|
||||||
|
}
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_REP)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_REP, formatter->case_prefixes);
|
||||||
|
}
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_REPE)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_REPE, formatter->case_prefixes);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_XACQUIRE)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_XACQUIRE, formatter->case_prefixes);
|
||||||
|
}
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_XRELEASE)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_XRELEASE, formatter->case_prefixes);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_LOCK)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_LOCK, formatter->case_prefixes);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_REP)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_REP, formatter->case_prefixes);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_REPE)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_REPE, formatter->case_prefixes);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_REPNE)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_REPNE, formatter->case_prefixes);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (context->instruction->attributes & ZYDIS_ATTRIB_HAS_BND)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, PREF_BND, formatter->case_prefixes);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBasePrintDecorator(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context, ZydisDecorator decorator)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
#if defined(ZYDIS_DISABLE_AVX512) && defined(ZYDIS_DISABLE_KNC)
|
||||||
|
ZYAN_UNUSED(formatter);
|
||||||
|
ZYAN_UNUSED(buffer);
|
||||||
|
ZYAN_UNUSED(context);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
switch (decorator)
|
||||||
|
{
|
||||||
|
case ZYDIS_DECORATOR_MASK:
|
||||||
|
{
|
||||||
|
#if !defined(ZYDIS_DISABLE_AVX512) || !defined(ZYDIS_DISABLE_KNC)
|
||||||
|
if (context->instruction->avx.mask.reg != ZYDIS_REGISTER_K0)
|
||||||
|
{
|
||||||
|
if (buffer->is_token_list)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, DECO_BEGIN);
|
||||||
|
ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context,
|
||||||
|
context->instruction->avx.mask.reg));
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, DECO_END);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShort(&buffer->string, &STR_DECO_BEGIN));
|
||||||
|
ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context,
|
||||||
|
context->instruction->avx.mask.reg));
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShort(&buffer->string, &STR_DECO_END));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Only print the zeroing decorator, if the instruction is not a "zeroing masking only"
|
||||||
|
// instruction (e.g. `vcmpsd`)
|
||||||
|
if ((context->instruction->avx.mask.mode == ZYDIS_MASK_MODE_ZEROING ||
|
||||||
|
context->instruction->avx.mask.mode == ZYDIS_MASK_MODE_CONTROL_ZEROING) &&
|
||||||
|
(context->instruction->raw.evex.z))
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_ZERO, formatter->case_decorators);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ZYDIS_DECORATOR_BC:
|
||||||
|
#if !defined(ZYDIS_DISABLE_AVX512)
|
||||||
|
if (!context->instruction->avx.broadcast.is_static)
|
||||||
|
{
|
||||||
|
switch (context->instruction->avx.broadcast.mode)
|
||||||
|
{
|
||||||
|
case ZYDIS_BROADCAST_MODE_INVALID:
|
||||||
|
break;
|
||||||
|
case ZYDIS_BROADCAST_MODE_1_TO_2:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_1TO2, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_BROADCAST_MODE_1_TO_4:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_1TO4, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_BROADCAST_MODE_1_TO_8:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_1TO8, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_BROADCAST_MODE_1_TO_16:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_1TO16, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_BROADCAST_MODE_4_TO_8:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_4TO8, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_BROADCAST_MODE_4_TO_16:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_4TO16, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
case ZYDIS_DECORATOR_RC:
|
||||||
|
#if !defined(ZYDIS_DISABLE_AVX512)
|
||||||
|
if (context->instruction->avx.has_sae)
|
||||||
|
{
|
||||||
|
switch (context->instruction->avx.rounding.mode)
|
||||||
|
{
|
||||||
|
case ZYDIS_ROUNDING_MODE_INVALID:
|
||||||
|
break;
|
||||||
|
case ZYDIS_ROUNDING_MODE_RN:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_RN_SAE, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_ROUNDING_MODE_RD:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_RD_SAE, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_ROUNDING_MODE_RU:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_RU_SAE, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_ROUNDING_MODE_RZ:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_RZ_SAE, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
switch (context->instruction->avx.rounding.mode)
|
||||||
|
{
|
||||||
|
case ZYDIS_ROUNDING_MODE_INVALID:
|
||||||
|
break;
|
||||||
|
case ZYDIS_ROUNDING_MODE_RN:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_RN, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_ROUNDING_MODE_RD:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_RD, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_ROUNDING_MODE_RU:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_RU, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_ROUNDING_MODE_RZ:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_RZ, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
case ZYDIS_DECORATOR_SAE:
|
||||||
|
#if !defined(ZYDIS_DISABLE_AVX512)
|
||||||
|
if (context->instruction->avx.has_sae && !context->instruction->avx.rounding.mode)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_SAE, formatter->case_decorators);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
case ZYDIS_DECORATOR_SWIZZLE:
|
||||||
|
#if !defined(ZYDIS_DISABLE_KNC)
|
||||||
|
switch (context->instruction->avx.swizzle.mode)
|
||||||
|
{
|
||||||
|
case ZYDIS_SWIZZLE_MODE_INVALID:
|
||||||
|
case ZYDIS_SWIZZLE_MODE_DCBA:
|
||||||
|
// Nothing to do here
|
||||||
|
break;
|
||||||
|
case ZYDIS_SWIZZLE_MODE_CDAB:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_CDAB, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_SWIZZLE_MODE_BADC:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_BADC, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_SWIZZLE_MODE_DACB:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_DACB, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_SWIZZLE_MODE_AAAA:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_AAAA, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_SWIZZLE_MODE_BBBB:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_BBBB, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_SWIZZLE_MODE_CCCC:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_CCCC, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_SWIZZLE_MODE_DDDD:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_DDDD, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
case ZYDIS_DECORATOR_CONVERSION:
|
||||||
|
#if !defined(ZYDIS_DISABLE_KNC)
|
||||||
|
switch (context->instruction->avx.conversion.mode)
|
||||||
|
{
|
||||||
|
case ZYDIS_CONVERSION_MODE_INVALID:
|
||||||
|
break;
|
||||||
|
case ZYDIS_CONVERSION_MODE_FLOAT16:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_FLOAT16, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_CONVERSION_MODE_SINT8:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_SINT8, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_CONVERSION_MODE_UINT8:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_UINT8, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_CONVERSION_MODE_SINT16:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_SINT16, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
case ZYDIS_CONVERSION_MODE_UINT16:
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_UINT16, formatter->case_decorators);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
case ZYDIS_DECORATOR_EH:
|
||||||
|
#if !defined(ZYDIS_DISABLE_KNC)
|
||||||
|
if (context->instruction->avx.has_eviction_hint)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, DECO_EH, formatter->case_decorators);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
191
src/FormatterBuffer.c
Normal file
191
src/FormatterBuffer.c
Normal file
|
@ -0,0 +1,191 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/Internal/String.h>
|
||||||
|
#include <Zydis/FormatterBuffer.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Token */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterTokenGetValue(const ZydisFormatterToken* token,
|
||||||
|
ZydisTokenType* type, ZyanConstCharPointer* value)
|
||||||
|
{
|
||||||
|
if (!token || !type || !value)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
*type = token->type;
|
||||||
|
*value = (ZyanConstCharPointer)((ZyanU8*)token + sizeof(ZydisFormatterToken));
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterTokenNext(ZydisFormatterTokenConst** token)
|
||||||
|
{
|
||||||
|
if (!token || !*token)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ZyanU8 next = (*token)->next;
|
||||||
|
if (!next)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_OUT_OF_RANGE;
|
||||||
|
}
|
||||||
|
*token = (ZydisFormatterTokenConst*)((ZyanU8*)*token + sizeof(ZydisFormatterToken) + next);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Buffer */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBufferGetToken(const ZydisFormatterBuffer* buffer,
|
||||||
|
ZydisFormatterTokenConst** token)
|
||||||
|
{
|
||||||
|
if (!buffer || !token)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
*token = ((ZydisFormatterTokenConst*)buffer->string.vector.data - 1);
|
||||||
|
if ((*token)->type == ZYDIS_TOKEN_INVALID)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_OPERATION;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBufferGetString(ZydisFormatterBuffer* buffer, ZyanString** string)
|
||||||
|
{
|
||||||
|
if (!buffer || !string)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (buffer->is_token_list &&
|
||||||
|
((ZydisFormatterTokenConst*)buffer->string.vector.data - 1)->type == ZYDIS_TOKEN_INVALID)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_OPERATION;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_ASSERT(buffer->string.vector.data);
|
||||||
|
ZYAN_ASSERT(buffer->string.vector.size);
|
||||||
|
|
||||||
|
*string = &buffer->string;
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBufferAppend(ZydisFormatterBuffer* buffer, ZydisTokenType type)
|
||||||
|
{
|
||||||
|
if (!buffer)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!buffer->is_token_list)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ZyanUSize len = buffer->string.vector.size;
|
||||||
|
ZYAN_ASSERT((len > 0) && (len < 256));
|
||||||
|
if (buffer->capacity <= len + sizeof(ZydisFormatterToken))
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZydisFormatterToken* const last = (ZydisFormatterToken*)buffer->string.vector.data - 1;
|
||||||
|
last->next = (ZyanU8)len;
|
||||||
|
|
||||||
|
const ZyanUSize delta = len + sizeof(ZydisFormatterToken);
|
||||||
|
buffer->capacity -= delta;
|
||||||
|
buffer->string.vector.data = (ZyanU8*)buffer->string.vector.data + delta;
|
||||||
|
buffer->string.vector.size = 1;
|
||||||
|
buffer->string.vector.capacity = ZYAN_MIN(buffer->capacity, 255);
|
||||||
|
*(char*)buffer->string.vector.data = '\0';
|
||||||
|
|
||||||
|
ZydisFormatterToken* const token = (ZydisFormatterToken*)buffer->string.vector.data - 1;
|
||||||
|
token->type = type;
|
||||||
|
token->next = 0;
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBufferRemember(const ZydisFormatterBuffer* buffer, ZyanUPointer* state)
|
||||||
|
{
|
||||||
|
if (!buffer || !state)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (buffer->is_token_list)
|
||||||
|
{
|
||||||
|
*state = (ZyanUPointer)buffer->string.vector.data;
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
*state = (ZyanUPointer)buffer->string.vector.size;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterBufferRestore(ZydisFormatterBuffer* buffer, ZyanUPointer state)
|
||||||
|
{
|
||||||
|
if (!buffer)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (buffer->is_token_list)
|
||||||
|
{
|
||||||
|
const ZyanUSize delta = (ZyanUPointer)buffer->string.vector.data - state;
|
||||||
|
buffer->capacity += delta;
|
||||||
|
buffer->string.vector.data = (void*)state;
|
||||||
|
buffer->string.vector.size = 1; // TODO: Restore size?
|
||||||
|
buffer->string.vector.capacity = ZYAN_MIN(buffer->capacity, 255);
|
||||||
|
*(char*)buffer->string.vector.data = '\0';
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
buffer->string.vector.size = (ZyanUSize)state;
|
||||||
|
ZYDIS_STRING_NULLTERMINATE(&buffer->string);
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
442
src/FormatterIntel.c
Normal file
442
src/FormatterIntel.c
Normal file
|
@ -0,0 +1,442 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd, Joel Hoener
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/Internal/FormatterIntel.h>
|
||||||
|
#include <Zydis/Utils.h>
|
||||||
|
#include <Zycore/Format.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Constants */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#include <Generated/FormatterStrings.inc>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Formatter functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Intel */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelFormatInstruction(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZYAN_CHECK(formatter->func_print_prefixes(formatter, buffer, context));
|
||||||
|
ZYAN_CHECK(formatter->func_print_mnemonic(formatter, buffer, context));
|
||||||
|
|
||||||
|
ZyanUPointer state_mnemonic;
|
||||||
|
ZYDIS_BUFFER_REMEMBER(buffer, state_mnemonic);
|
||||||
|
for (ZyanU8 i = 0; i < context->instruction->operand_count; ++i)
|
||||||
|
{
|
||||||
|
const ZydisDecodedOperand* const operand = &context->instruction->operands[i];
|
||||||
|
|
||||||
|
if (operand->visibility == ZYDIS_OPERAND_VISIBILITY_HIDDEN)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print embedded-mask registers as decorator instead of a regular operand
|
||||||
|
if ((i == 1) && (operand->type == ZYDIS_OPERAND_TYPE_REGISTER) &&
|
||||||
|
(operand->encoding == ZYDIS_OPERAND_ENCODING_MASK))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanUPointer buffer_state;
|
||||||
|
ZYDIS_BUFFER_REMEMBER(buffer, buffer_state);
|
||||||
|
|
||||||
|
if (buffer_state != state_mnemonic)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, DELIM_OPERAND);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, DELIM_MNEMONIC);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set current operand
|
||||||
|
context->operand = operand;
|
||||||
|
|
||||||
|
ZyanStatus status;
|
||||||
|
if (formatter->func_pre_operand)
|
||||||
|
{
|
||||||
|
status = formatter->func_pre_operand(formatter, buffer, context);
|
||||||
|
if (status == ZYDIS_STATUS_SKIP_TOKEN)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferRestore(buffer, buffer_state));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!ZYAN_SUCCESS(status))
|
||||||
|
{
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (operand->type)
|
||||||
|
{
|
||||||
|
case ZYDIS_OPERAND_TYPE_REGISTER:
|
||||||
|
status = formatter->func_format_operand_reg(formatter, buffer, context);
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_MEMORY:
|
||||||
|
status = formatter->func_format_operand_mem(formatter, buffer, context);
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_POINTER:
|
||||||
|
status = formatter->func_format_operand_ptr(formatter, buffer, context);
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_IMMEDIATE:
|
||||||
|
status = formatter->func_format_operand_imm(formatter, buffer, context);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
if (status == ZYDIS_STATUS_SKIP_TOKEN)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferRestore(buffer, buffer_state));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!ZYAN_SUCCESS(status))
|
||||||
|
{
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (formatter->func_post_operand)
|
||||||
|
{
|
||||||
|
status = formatter->func_post_operand(formatter, buffer, context);
|
||||||
|
if (status == ZYDIS_STATUS_SKIP_TOKEN)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisFormatterBufferRestore(buffer, buffer_state));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (ZYAN_SUCCESS(status))
|
||||||
|
{
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !defined(ZYDIS_DISABLE_AVX512) || !defined(ZYDIS_DISABLE_KNC)
|
||||||
|
if ((context->instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_EVEX) ||
|
||||||
|
(context->instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_MVEX))
|
||||||
|
{
|
||||||
|
if ((i == 0) &&
|
||||||
|
(context->instruction->operands[i + 1].encoding == ZYDIS_OPERAND_ENCODING_MASK))
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_MASK));
|
||||||
|
}
|
||||||
|
if (operand->type == ZYDIS_OPERAND_TYPE_MEMORY)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_BC));
|
||||||
|
if (context->instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_MVEX)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_CONVERSION));
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_EH));
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
// TODO: `sae` is displayed twice e.g. for `62 E30D1B 0A D3 A5`
|
||||||
|
// TODO: Checking the `operand_count` does not work for instructions with hidden operands
|
||||||
|
if ((i == (context->instruction->operand_count - 1)) ||
|
||||||
|
(context->instruction->operands[i + 1].type == ZYDIS_OPERAND_TYPE_IMMEDIATE))
|
||||||
|
{
|
||||||
|
if (context->instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_MVEX)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_SWIZZLE));
|
||||||
|
}
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_RC));
|
||||||
|
ZYAN_CHECK(formatter->func_print_decorator(formatter, buffer, context,
|
||||||
|
ZYDIS_DECORATOR_SAE));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelFormatOperandMEM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
if (context->operand->mem.type == ZYDIS_MEMOP_TYPE_MEM)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_typecast(formatter, buffer, context));
|
||||||
|
}
|
||||||
|
ZYAN_CHECK(formatter->func_print_segment(formatter, buffer, context));
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, MEMORY_BEGIN_INTEL);
|
||||||
|
|
||||||
|
const ZyanBool absolute = !formatter->force_relative_riprel &&
|
||||||
|
(context->runtime_address != ZYDIS_RUNTIME_ADDRESS_NONE);
|
||||||
|
if (absolute && context->operand->mem.disp.has_displacement &&
|
||||||
|
(context->operand->mem.index == ZYDIS_REGISTER_NONE) &&
|
||||||
|
((context->operand->mem.base == ZYDIS_REGISTER_NONE) ||
|
||||||
|
(context->operand->mem.base == ZYDIS_REGISTER_EIP ) ||
|
||||||
|
(context->operand->mem.base == ZYDIS_REGISTER_RIP )))
|
||||||
|
{
|
||||||
|
// EIP/RIP-relative or absolute-displacement address operand
|
||||||
|
ZYAN_CHECK(formatter->func_print_address_abs(formatter, buffer, context));
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
ZyanBool should_print_reg = context->operand->mem.base != ZYDIS_REGISTER_NONE;
|
||||||
|
ZyanBool should_print_idx = (context->operand->mem.index != ZYDIS_REGISTER_NONE) &&
|
||||||
|
(context->operand->mem.type != ZYDIS_MEMOP_TYPE_MIB);
|
||||||
|
ZyanBool neither_reg_nor_idx = !should_print_reg && !should_print_idx;
|
||||||
|
|
||||||
|
// Regular memory operand
|
||||||
|
if (should_print_reg)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context,
|
||||||
|
context->operand->mem.base));
|
||||||
|
}
|
||||||
|
if (should_print_idx)
|
||||||
|
{
|
||||||
|
if (context->operand->mem.base != ZYDIS_REGISTER_NONE)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, ADD);
|
||||||
|
}
|
||||||
|
ZYAN_CHECK(formatter->func_print_register(formatter, buffer, context,
|
||||||
|
context->operand->mem.index));
|
||||||
|
if (context->operand->mem.scale)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, MUL);
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_IMMEDIATE);
|
||||||
|
ZYAN_CHECK(ZydisStringAppendDecU(&buffer->string, context->operand->mem.scale, 0,
|
||||||
|
ZYAN_NULL, ZYAN_NULL));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (context->operand->mem.disp.has_displacement && (context->operand->mem.disp.value
|
||||||
|
|| neither_reg_nor_idx))
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(formatter->func_print_disp(formatter, buffer, context));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, MEMORY_END_INTEL);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelPrintMnemonic(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
const ZydisShortString* mnemonic = ZydisMnemonicGetStringWrapped(
|
||||||
|
context->instruction->mnemonic);
|
||||||
|
if (!mnemonic)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, INVALID_MNEMONIC, formatter->case_mnemonic);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_MNEMONIC);
|
||||||
|
ZYAN_CHECK(ZydisStringAppendShortCase(&buffer->string, mnemonic, formatter->case_mnemonic));
|
||||||
|
if (context->instruction->meta.branch_type == ZYDIS_BRANCH_TYPE_FAR)
|
||||||
|
{
|
||||||
|
return ZydisStringAppendShortCase(&buffer->string, &STR_FAR, formatter->case_mnemonic);
|
||||||
|
}
|
||||||
|
if (formatter->print_branch_size)
|
||||||
|
{
|
||||||
|
switch (context->instruction->meta.branch_type)
|
||||||
|
{
|
||||||
|
case ZYDIS_BRANCH_TYPE_NONE:
|
||||||
|
break;
|
||||||
|
case ZYDIS_BRANCH_TYPE_SHORT:
|
||||||
|
return ZydisStringAppendShortCase(&buffer->string, &STR_SHORT,
|
||||||
|
formatter->case_mnemonic);
|
||||||
|
case ZYDIS_BRANCH_TYPE_NEAR:
|
||||||
|
return ZydisStringAppendShortCase(&buffer->string, &STR_NEAR,
|
||||||
|
formatter->case_mnemonic);
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelPrintRegister(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context, ZydisRegister reg)
|
||||||
|
{
|
||||||
|
ZYAN_UNUSED(context);
|
||||||
|
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
const ZydisShortString* str = ZydisRegisterGetStringWrapped(reg);
|
||||||
|
if (!str)
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND_CASE(buffer, INVALID_REG, formatter->case_registers);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_REGISTER);
|
||||||
|
return ZydisStringAppendShortCase(&buffer->string, str, formatter->case_registers);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelPrintDISP(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
switch (formatter->disp_signedness)
|
||||||
|
{
|
||||||
|
case ZYDIS_SIGNEDNESS_AUTO:
|
||||||
|
case ZYDIS_SIGNEDNESS_SIGNED:
|
||||||
|
if (context->operand->mem.disp.value < 0)
|
||||||
|
{
|
||||||
|
if ((context->operand->mem.base != ZYDIS_REGISTER_NONE) ||
|
||||||
|
(context->operand->mem.index != ZYDIS_REGISTER_NONE))
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, SUB);
|
||||||
|
}
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_DISPLACEMENT);
|
||||||
|
ZYDIS_STRING_APPEND_NUM_U(formatter, formatter->disp_base, &buffer->string,
|
||||||
|
ZyanAbsI64(context->operand->mem.disp.value), formatter->disp_padding);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
ZYAN_FALLTHROUGH;
|
||||||
|
case ZYDIS_SIGNEDNESS_UNSIGNED:
|
||||||
|
if ((context->operand->mem.base != ZYDIS_REGISTER_NONE) ||
|
||||||
|
(context->operand->mem.index != ZYDIS_REGISTER_NONE))
|
||||||
|
{
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, ADD);
|
||||||
|
}
|
||||||
|
ZYDIS_BUFFER_APPEND_TOKEN(buffer, ZYDIS_TOKEN_DISPLACEMENT);
|
||||||
|
ZYDIS_STRING_APPEND_NUM_U(formatter, formatter->disp_base, &buffer->string,
|
||||||
|
context->operand->mem.disp.value, formatter->disp_padding);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelPrintTypecast(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
switch (ZydisFormatterHelperGetExplicitSize(formatter, context, context->operand->id))
|
||||||
|
{
|
||||||
|
case 8: ZYDIS_BUFFER_APPEND(buffer, SIZE_8_INTEL ); break;
|
||||||
|
case 16: ZYDIS_BUFFER_APPEND(buffer, SIZE_16_INTEL ); break;
|
||||||
|
case 32: ZYDIS_BUFFER_APPEND(buffer, SIZE_32_INTEL ); break;
|
||||||
|
case 48: ZYDIS_BUFFER_APPEND(buffer, SIZE_48 ); break;
|
||||||
|
case 64: ZYDIS_BUFFER_APPEND(buffer, SIZE_64_INTEL ); break;
|
||||||
|
case 80: ZYDIS_BUFFER_APPEND(buffer, SIZE_80 ); break;
|
||||||
|
case 128: ZYDIS_BUFFER_APPEND(buffer, SIZE_128_INTEL); break;
|
||||||
|
case 256: ZYDIS_BUFFER_APPEND(buffer, SIZE_256_INTEL); break;
|
||||||
|
case 512: ZYDIS_BUFFER_APPEND(buffer, SIZE_512_INTEL); break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* MASM */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelFormatInstructionMASM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
// Force the formatter to always call our MASM `ZYDIS_FORMATTER_PRINT_ADDRESS_ABS` function.
|
||||||
|
// This implicitly omits printing of the `RIP`/`EIP` registers for `RIP`/`EIP`-relative
|
||||||
|
// memory operands
|
||||||
|
context->runtime_address = 0;
|
||||||
|
|
||||||
|
return ZydisFormatterIntelFormatInstruction(formatter, buffer, context);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisFormatterIntelPrintAddressMASM(const ZydisFormatter* formatter,
|
||||||
|
ZydisFormatterBuffer* buffer, ZydisFormatterContext* context)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(formatter);
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
ZYAN_ASSERT(context);
|
||||||
|
|
||||||
|
ZyanU64 address;
|
||||||
|
ZYAN_CHECK(ZydisCalcAbsoluteAddress(context->instruction, context->operand, 0, &address));
|
||||||
|
|
||||||
|
ZyanU8 padding = (formatter->addr_padding_relative ==
|
||||||
|
ZYDIS_PADDING_AUTO) ? 0 : (ZyanU8)formatter->addr_padding_relative;
|
||||||
|
if ((formatter->addr_padding_relative == ZYDIS_PADDING_AUTO) &&
|
||||||
|
(formatter->addr_base == ZYDIS_NUMERIC_BASE_HEX))
|
||||||
|
{
|
||||||
|
switch (context->instruction->stack_width)
|
||||||
|
{
|
||||||
|
case 16:
|
||||||
|
padding = 4;
|
||||||
|
address = (ZyanU16)address;
|
||||||
|
break;
|
||||||
|
case 32:
|
||||||
|
padding = 8;
|
||||||
|
address = (ZyanU32)address;
|
||||||
|
break;
|
||||||
|
case 64:
|
||||||
|
padding = 16;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYDIS_BUFFER_APPEND(buffer, ADDR_RELATIVE);
|
||||||
|
ZYDIS_STRING_APPEND_NUM_S(formatter, formatter->addr_base, &buffer->string, address, padding,
|
||||||
|
ZYAN_TRUE);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
77
src/Generated/AccessedFlags.inc
Normal file
77
src/Generated/AccessedFlags.inc
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
static const ZydisAccessedFlags ACCESSED_FLAGS[] =
|
||||||
|
{
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED }, 0x0, 0x0, 0x0, 0xF },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_UNDEFINED }, 0x0, 0x0, 0x0, 0xF },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED }, 0x0, 0x0, 0x0, 0xF },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED }, 0x0, 0x0, 0x0, 0xF },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x40000, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_1, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x40000, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x1000, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x800, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x800, 0x800, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x400, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x1400, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x400, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_1, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x400, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x1000, 0x80200, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x30200, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x21800, 0x74300, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x21000, 0xF4300, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x80, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x880, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x40, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED }, 0x40, 0x0, 0x0, 0xF },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x8C0, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x40, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x4, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED }, 0x4, 0x0, 0x0, 0xF },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D4, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x1, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED }, 0x1, 0x0, 0x0, 0xF },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x41, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED }, 0x41, 0x0, 0x0, 0xF },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0xD5, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x3F5FD5, 0x0, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x1, 0x1, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x1, 0x801, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x11, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x1, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x1, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x1, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x801, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x41, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x440, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0xD5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x400, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x25000, 0x3F5FD5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x21000, 0x3D5FD5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_TESTED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x121000, 0x2D5FD5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x3F5FD5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x3D5FD5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x3F5FD5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x2 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_TESTED_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x10, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x895, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x1, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_SET_0, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_SET_1, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x1, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_MODIFIED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 },
|
||||||
|
{ { ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_UNDEFINED, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE, ZYDIS_CPUFLAG_ACTION_NONE }, 0x0, 0x8D5, 0x0, 0x0 }
|
||||||
|
};
|
||||||
|
#endif
|
6929
src/Generated/DecoderTables.inc
Normal file
6929
src/Generated/DecoderTables.inc
Normal file
File diff suppressed because one or more lines are too long
11552
src/Generated/EncodableInstructions.inc
Normal file
11552
src/Generated/EncodableInstructions.inc
Normal file
File diff suppressed because it is too large
Load diff
86
src/Generated/EnumISAExt.inc
Normal file
86
src/Generated/EnumISAExt.inc
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
static const char* STR_ISAEXT[] =
|
||||||
|
{
|
||||||
|
"INVALID",
|
||||||
|
"ADOX_ADCX",
|
||||||
|
"AES",
|
||||||
|
"AMD3DNOW",
|
||||||
|
"AMD3DNOW_PREFETCH",
|
||||||
|
"AMD_INVLPGB",
|
||||||
|
"AMX_BF16",
|
||||||
|
"AMX_INT8",
|
||||||
|
"AMX_TILE",
|
||||||
|
"AVX",
|
||||||
|
"AVX2",
|
||||||
|
"AVX2GATHER",
|
||||||
|
"AVX512EVEX",
|
||||||
|
"AVX512VEX",
|
||||||
|
"AVXAES",
|
||||||
|
"BASE",
|
||||||
|
"BMI1",
|
||||||
|
"BMI2",
|
||||||
|
"CET",
|
||||||
|
"CLDEMOTE",
|
||||||
|
"CLFLUSHOPT",
|
||||||
|
"CLFSH",
|
||||||
|
"CLWB",
|
||||||
|
"CLZERO",
|
||||||
|
"ENQCMD",
|
||||||
|
"F16C",
|
||||||
|
"FMA",
|
||||||
|
"FMA4",
|
||||||
|
"GFNI",
|
||||||
|
"INVPCID",
|
||||||
|
"KNC",
|
||||||
|
"KNCE",
|
||||||
|
"KNCV",
|
||||||
|
"LONGMODE",
|
||||||
|
"LZCNT",
|
||||||
|
"MCOMMIT",
|
||||||
|
"MMX",
|
||||||
|
"MONITOR",
|
||||||
|
"MONITORX",
|
||||||
|
"MOVBE",
|
||||||
|
"MOVDIR",
|
||||||
|
"MPX",
|
||||||
|
"PADLOCK",
|
||||||
|
"PAUSE",
|
||||||
|
"PCLMULQDQ",
|
||||||
|
"PCONFIG",
|
||||||
|
"PKU",
|
||||||
|
"PREFETCHWT1",
|
||||||
|
"PT",
|
||||||
|
"RDPID",
|
||||||
|
"RDPRU",
|
||||||
|
"RDRAND",
|
||||||
|
"RDSEED",
|
||||||
|
"RDTSCP",
|
||||||
|
"RDWRFSGS",
|
||||||
|
"RTM",
|
||||||
|
"SERIALIZE",
|
||||||
|
"SGX",
|
||||||
|
"SGX_ENCLV",
|
||||||
|
"SHA",
|
||||||
|
"SMAP",
|
||||||
|
"SMX",
|
||||||
|
"SNP",
|
||||||
|
"SSE",
|
||||||
|
"SSE2",
|
||||||
|
"SSE3",
|
||||||
|
"SSE4",
|
||||||
|
"SSE4A",
|
||||||
|
"SSSE3",
|
||||||
|
"SVM",
|
||||||
|
"TBM",
|
||||||
|
"TSX_LDTRK",
|
||||||
|
"VAES",
|
||||||
|
"VMFUNC",
|
||||||
|
"VPCLMULQDQ",
|
||||||
|
"VTX",
|
||||||
|
"WAITPKG",
|
||||||
|
"X87",
|
||||||
|
"XOP",
|
||||||
|
"XSAVE",
|
||||||
|
"XSAVEC",
|
||||||
|
"XSAVEOPT",
|
||||||
|
"XSAVES"
|
||||||
|
};
|
172
src/Generated/EnumISASet.inc
Normal file
172
src/Generated/EnumISASet.inc
Normal file
|
@ -0,0 +1,172 @@
|
||||||
|
static const char* STR_ISASET[] =
|
||||||
|
{
|
||||||
|
"INVALID",
|
||||||
|
"ADOX_ADCX",
|
||||||
|
"AES",
|
||||||
|
"AMD",
|
||||||
|
"AMD3DNOW",
|
||||||
|
"AMX_BF16",
|
||||||
|
"AMX_INT8",
|
||||||
|
"AMX_TILE",
|
||||||
|
"AVX",
|
||||||
|
"AVX2",
|
||||||
|
"AVX2GATHER",
|
||||||
|
"AVX512BW_128",
|
||||||
|
"AVX512BW_128N",
|
||||||
|
"AVX512BW_256",
|
||||||
|
"AVX512BW_512",
|
||||||
|
"AVX512BW_KOP",
|
||||||
|
"AVX512CD_128",
|
||||||
|
"AVX512CD_256",
|
||||||
|
"AVX512CD_512",
|
||||||
|
"AVX512DQ_128",
|
||||||
|
"AVX512DQ_128N",
|
||||||
|
"AVX512DQ_256",
|
||||||
|
"AVX512DQ_512",
|
||||||
|
"AVX512DQ_KOP",
|
||||||
|
"AVX512DQ_SCALAR",
|
||||||
|
"AVX512ER_512",
|
||||||
|
"AVX512ER_SCALAR",
|
||||||
|
"AVX512F_128",
|
||||||
|
"AVX512F_128N",
|
||||||
|
"AVX512F_256",
|
||||||
|
"AVX512F_512",
|
||||||
|
"AVX512F_KOP",
|
||||||
|
"AVX512F_SCALAR",
|
||||||
|
"AVX512PF_512",
|
||||||
|
"AVX512_4FMAPS_512",
|
||||||
|
"AVX512_4FMAPS_SCALAR",
|
||||||
|
"AVX512_4VNNIW_512",
|
||||||
|
"AVX512_BF16_128",
|
||||||
|
"AVX512_BF16_256",
|
||||||
|
"AVX512_BF16_512",
|
||||||
|
"AVX512_BITALG_128",
|
||||||
|
"AVX512_BITALG_256",
|
||||||
|
"AVX512_BITALG_512",
|
||||||
|
"AVX512_GFNI_128",
|
||||||
|
"AVX512_GFNI_256",
|
||||||
|
"AVX512_GFNI_512",
|
||||||
|
"AVX512_IFMA_128",
|
||||||
|
"AVX512_IFMA_256",
|
||||||
|
"AVX512_IFMA_512",
|
||||||
|
"AVX512_VAES_128",
|
||||||
|
"AVX512_VAES_256",
|
||||||
|
"AVX512_VAES_512",
|
||||||
|
"AVX512_VBMI2_128",
|
||||||
|
"AVX512_VBMI2_256",
|
||||||
|
"AVX512_VBMI2_512",
|
||||||
|
"AVX512_VBMI_128",
|
||||||
|
"AVX512_VBMI_256",
|
||||||
|
"AVX512_VBMI_512",
|
||||||
|
"AVX512_VNNI_128",
|
||||||
|
"AVX512_VNNI_256",
|
||||||
|
"AVX512_VNNI_512",
|
||||||
|
"AVX512_VP2INTERSECT_128",
|
||||||
|
"AVX512_VP2INTERSECT_256",
|
||||||
|
"AVX512_VP2INTERSECT_512",
|
||||||
|
"AVX512_VPCLMULQDQ_128",
|
||||||
|
"AVX512_VPCLMULQDQ_256",
|
||||||
|
"AVX512_VPCLMULQDQ_512",
|
||||||
|
"AVX512_VPOPCNTDQ_128",
|
||||||
|
"AVX512_VPOPCNTDQ_256",
|
||||||
|
"AVX512_VPOPCNTDQ_512",
|
||||||
|
"AVXAES",
|
||||||
|
"AVX_GFNI",
|
||||||
|
"BMI1",
|
||||||
|
"BMI2",
|
||||||
|
"CET",
|
||||||
|
"CLDEMOTE",
|
||||||
|
"CLFLUSHOPT",
|
||||||
|
"CLFSH",
|
||||||
|
"CLWB",
|
||||||
|
"CLZERO",
|
||||||
|
"CMOV",
|
||||||
|
"CMPXCHG16B",
|
||||||
|
"ENQCMD",
|
||||||
|
"F16C",
|
||||||
|
"FAT_NOP",
|
||||||
|
"FCMOV",
|
||||||
|
"FMA",
|
||||||
|
"FMA4",
|
||||||
|
"FXSAVE",
|
||||||
|
"FXSAVE64",
|
||||||
|
"GFNI",
|
||||||
|
"I186",
|
||||||
|
"I286PROTECTED",
|
||||||
|
"I286REAL",
|
||||||
|
"I386",
|
||||||
|
"I486",
|
||||||
|
"I486REAL",
|
||||||
|
"I86",
|
||||||
|
"INVPCID",
|
||||||
|
"KNCE",
|
||||||
|
"KNCJKBR",
|
||||||
|
"KNCSTREAM",
|
||||||
|
"KNCV",
|
||||||
|
"KNC_MISC",
|
||||||
|
"KNC_PF_HINT",
|
||||||
|
"LAHF",
|
||||||
|
"LONGMODE",
|
||||||
|
"LZCNT",
|
||||||
|
"MCOMMIT",
|
||||||
|
"MONITOR",
|
||||||
|
"MONITORX",
|
||||||
|
"MOVBE",
|
||||||
|
"MOVDIR",
|
||||||
|
"MPX",
|
||||||
|
"PADLOCK_ACE",
|
||||||
|
"PADLOCK_PHE",
|
||||||
|
"PADLOCK_PMM",
|
||||||
|
"PADLOCK_RNG",
|
||||||
|
"PAUSE",
|
||||||
|
"PCLMULQDQ",
|
||||||
|
"PCONFIG",
|
||||||
|
"PENTIUMMMX",
|
||||||
|
"PENTIUMREAL",
|
||||||
|
"PKU",
|
||||||
|
"POPCNT",
|
||||||
|
"PPRO",
|
||||||
|
"PREFETCHWT1",
|
||||||
|
"PREFETCH_NOP",
|
||||||
|
"PT",
|
||||||
|
"RDPID",
|
||||||
|
"RDPMC",
|
||||||
|
"RDPRU",
|
||||||
|
"RDRAND",
|
||||||
|
"RDSEED",
|
||||||
|
"RDTSCP",
|
||||||
|
"RDWRFSGS",
|
||||||
|
"RTM",
|
||||||
|
"SERIALIZE",
|
||||||
|
"SGX",
|
||||||
|
"SGX_ENCLV",
|
||||||
|
"SHA",
|
||||||
|
"SMAP",
|
||||||
|
"SMX",
|
||||||
|
"SSE",
|
||||||
|
"SSE2",
|
||||||
|
"SSE2MMX",
|
||||||
|
"SSE3",
|
||||||
|
"SSE3X87",
|
||||||
|
"SSE4",
|
||||||
|
"SSE42",
|
||||||
|
"SSE4A",
|
||||||
|
"SSEMXCSR",
|
||||||
|
"SSE_PREFETCH",
|
||||||
|
"SSSE3",
|
||||||
|
"SSSE3MMX",
|
||||||
|
"SVM",
|
||||||
|
"TBM",
|
||||||
|
"TSX_LDTRK",
|
||||||
|
"VAES",
|
||||||
|
"VMFUNC",
|
||||||
|
"VPCLMULQDQ",
|
||||||
|
"VTX",
|
||||||
|
"WAITPKG",
|
||||||
|
"X87",
|
||||||
|
"XOP",
|
||||||
|
"XSAVE",
|
||||||
|
"XSAVEC",
|
||||||
|
"XSAVEOPT",
|
||||||
|
"XSAVES"
|
||||||
|
};
|
105
src/Generated/EnumInstructionCategory.inc
Normal file
105
src/Generated/EnumInstructionCategory.inc
Normal file
|
@ -0,0 +1,105 @@
|
||||||
|
static const char* STR_INSTRUCTIONCATEGORY[] =
|
||||||
|
{
|
||||||
|
"INVALID",
|
||||||
|
"ADOX_ADCX",
|
||||||
|
"AES",
|
||||||
|
"AMD3DNOW",
|
||||||
|
"AMX_TILE",
|
||||||
|
"AVX",
|
||||||
|
"AVX2",
|
||||||
|
"AVX2GATHER",
|
||||||
|
"AVX512",
|
||||||
|
"AVX512_4FMAPS",
|
||||||
|
"AVX512_4VNNIW",
|
||||||
|
"AVX512_BITALG",
|
||||||
|
"AVX512_VBMI",
|
||||||
|
"AVX512_VP2INTERSECT",
|
||||||
|
"BINARY",
|
||||||
|
"BITBYTE",
|
||||||
|
"BLEND",
|
||||||
|
"BMI1",
|
||||||
|
"BMI2",
|
||||||
|
"BROADCAST",
|
||||||
|
"CALL",
|
||||||
|
"CET",
|
||||||
|
"CLDEMOTE",
|
||||||
|
"CLFLUSHOPT",
|
||||||
|
"CLWB",
|
||||||
|
"CLZERO",
|
||||||
|
"CMOV",
|
||||||
|
"COMPRESS",
|
||||||
|
"COND_BR",
|
||||||
|
"CONFLICT",
|
||||||
|
"CONVERT",
|
||||||
|
"DATAXFER",
|
||||||
|
"DECIMAL",
|
||||||
|
"ENQCMD",
|
||||||
|
"EXPAND",
|
||||||
|
"FCMOV",
|
||||||
|
"FLAGOP",
|
||||||
|
"FMA4",
|
||||||
|
"GATHER",
|
||||||
|
"GFNI",
|
||||||
|
"IFMA",
|
||||||
|
"INTERRUPT",
|
||||||
|
"IO",
|
||||||
|
"IOSTRINGOP",
|
||||||
|
"KMASK",
|
||||||
|
"KNC",
|
||||||
|
"KNCMASK",
|
||||||
|
"KNCSCALAR",
|
||||||
|
"LOGICAL",
|
||||||
|
"LOGICAL_FP",
|
||||||
|
"LZCNT",
|
||||||
|
"MISC",
|
||||||
|
"MMX",
|
||||||
|
"MOVDIR",
|
||||||
|
"MPX",
|
||||||
|
"NOP",
|
||||||
|
"PADLOCK",
|
||||||
|
"PCLMULQDQ",
|
||||||
|
"PCONFIG",
|
||||||
|
"PKU",
|
||||||
|
"POP",
|
||||||
|
"PREFETCH",
|
||||||
|
"PREFETCHWT1",
|
||||||
|
"PT",
|
||||||
|
"PUSH",
|
||||||
|
"RDPID",
|
||||||
|
"RDPRU",
|
||||||
|
"RDRAND",
|
||||||
|
"RDSEED",
|
||||||
|
"RDWRFSGS",
|
||||||
|
"RET",
|
||||||
|
"ROTATE",
|
||||||
|
"SCATTER",
|
||||||
|
"SEGOP",
|
||||||
|
"SEMAPHORE",
|
||||||
|
"SERIALIZE",
|
||||||
|
"SETCC",
|
||||||
|
"SGX",
|
||||||
|
"SHA",
|
||||||
|
"SHIFT",
|
||||||
|
"SMAP",
|
||||||
|
"SSE",
|
||||||
|
"STRINGOP",
|
||||||
|
"STTNI",
|
||||||
|
"SYSCALL",
|
||||||
|
"SYSRET",
|
||||||
|
"SYSTEM",
|
||||||
|
"TBM",
|
||||||
|
"TSX_LDTRK",
|
||||||
|
"UFMA",
|
||||||
|
"UNCOND_BR",
|
||||||
|
"VAES",
|
||||||
|
"VBMI2",
|
||||||
|
"VFMA",
|
||||||
|
"VPCLMULQDQ",
|
||||||
|
"VTX",
|
||||||
|
"WAITPKG",
|
||||||
|
"WIDENOP",
|
||||||
|
"X87_ALU",
|
||||||
|
"XOP",
|
||||||
|
"XSAVE",
|
||||||
|
"XSAVEOPT"
|
||||||
|
};
|
1631
src/Generated/EnumMnemonic.inc
Normal file
1631
src/Generated/EnumMnemonic.inc
Normal file
File diff suppressed because it is too large
Load diff
289
src/Generated/EnumRegister.inc
Normal file
289
src/Generated/EnumRegister.inc
Normal file
|
@ -0,0 +1,289 @@
|
||||||
|
static const ZydisShortString STR_REGISTER[] =
|
||||||
|
{
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("none"),
|
||||||
|
|
||||||
|
// General purpose registers 8-bit
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("al"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cl"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dl"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bl"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ah"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ch"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dh"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bh"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("spl"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bpl"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("sil"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dil"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r8b"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r9b"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r10b"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r11b"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r12b"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r13b"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r14b"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r15b"),
|
||||||
|
// General purpose registers 16-bit
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ax"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cx"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dx"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bx"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("sp"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bp"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("si"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("di"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r8w"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r9w"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r10w"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r11w"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r12w"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r13w"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r14w"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r15w"),
|
||||||
|
// General purpose registers 32-bit
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("eax"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ecx"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("edx"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ebx"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("esp"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ebp"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("esi"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("edi"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r8d"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r9d"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r10d"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r11d"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r12d"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r13d"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r14d"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r15d"),
|
||||||
|
// General purpose registers 64-bit
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("rax"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("rcx"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("rdx"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("rbx"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("rsp"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("rbp"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("rsi"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("rdi"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r8"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r9"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r10"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r11"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r12"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r13"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r14"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("r15"),
|
||||||
|
// Floating point legacy registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("st0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("st1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("st2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("st3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("st4"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("st5"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("st6"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("st7"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("x87control"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("x87status"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("x87tag"),
|
||||||
|
// Floating point multimedia registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("mm0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("mm1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("mm2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("mm3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("mm4"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("mm5"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("mm6"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("mm7"),
|
||||||
|
// Floating point vector registers 128-bit
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm4"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm5"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm6"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm7"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm8"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm9"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm10"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm11"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm12"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm13"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm14"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm15"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm16"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm17"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm18"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm19"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm20"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm21"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm22"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm23"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm24"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm25"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm26"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm27"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm28"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm29"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm30"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xmm31"),
|
||||||
|
// Floating point vector registers 256-bit
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm4"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm5"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm6"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm7"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm8"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm9"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm10"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm11"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm12"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm13"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm14"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm15"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm16"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm17"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm18"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm19"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm20"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm21"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm22"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm23"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm24"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm25"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm26"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm27"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm28"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm29"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm30"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ymm31"),
|
||||||
|
// Floating point vector registers 512-bit
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm4"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm5"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm6"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm7"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm8"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm9"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm10"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm11"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm12"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm13"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm14"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm15"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm16"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm17"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm18"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm19"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm20"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm21"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm22"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm23"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm24"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm25"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm26"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm27"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm28"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm29"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm30"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("zmm31"),
|
||||||
|
// Matrix registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tmm0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tmm1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tmm2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tmm3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tmm4"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tmm5"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tmm6"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tmm7"),
|
||||||
|
// Flags registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("flags"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("eflags"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("rflags"),
|
||||||
|
// Instruction-pointer registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ip"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("eip"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("rip"),
|
||||||
|
// Segment registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("es"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cs"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ss"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ds"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("fs"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("gs"),
|
||||||
|
// Table registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("gdtr"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("ldtr"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("idtr"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tr"),
|
||||||
|
// Test registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tr0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tr1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tr2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tr3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tr4"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tr5"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tr6"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("tr7"),
|
||||||
|
// Control registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr4"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr5"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr6"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr7"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr8"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr9"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr10"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr11"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr12"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr13"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr14"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("cr15"),
|
||||||
|
// Debug registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr4"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr5"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr6"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr7"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr8"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr9"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr10"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr11"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr12"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr13"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr14"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("dr15"),
|
||||||
|
// Mask registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("k0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("k1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("k2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("k3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("k4"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("k5"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("k6"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("k7"),
|
||||||
|
// Bound registers
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bnd0"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bnd1"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bnd2"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bnd3"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bndcfg"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("bndstatus"),
|
||||||
|
// Uncategorized
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("mxcsr"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("pkru"),
|
||||||
|
ZYDIS_MAKE_SHORTSTRING("xcr0")
|
||||||
|
};
|
694
src/Generated/FormatterStrings.inc
Normal file
694
src/Generated/FormatterStrings.inc
Normal file
|
@ -0,0 +1,694 @@
|
||||||
|
#pragma pack(push, 1)
|
||||||
|
static const ZydisShortString STR_ADD = ZYDIS_MAKE_SHORTSTRING("+");
|
||||||
|
static const struct ZydisPredefinedTokenADD_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_ADD = { 4, 2, { ZYDIS_TOKEN_DELIMITER, 0, '+', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_ADD = (const ZydisPredefinedToken* const)&TOK_DATA_ADD;
|
||||||
|
static const ZydisShortString STR_ADDR_RELATIVE = ZYDIS_MAKE_SHORTSTRING("$");
|
||||||
|
static const struct ZydisPredefinedTokenADDR_RELATIVE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_ADDR_RELATIVE = { 4, 2, { ZYDIS_TOKEN_ADDRESS_REL, 0, '$', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_ADDR_RELATIVE = (const ZydisPredefinedToken* const)&TOK_DATA_ADDR_RELATIVE;
|
||||||
|
static const ZydisShortString STR_DECO_1TO2 = ZYDIS_MAKE_SHORTSTRING(" {1to2}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_1TO2_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_1TO2 = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, '1', 't', 'o', '2', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_1TO2 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_1TO2;
|
||||||
|
static const ZydisShortString STR_DECO_1TO4 = ZYDIS_MAKE_SHORTSTRING(" {1to4}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_1TO4_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_1TO4 = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, '1', 't', 'o', '4', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_1TO4 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_1TO4;
|
||||||
|
static const ZydisShortString STR_DECO_1TO8 = ZYDIS_MAKE_SHORTSTRING(" {1to8}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_1TO8_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_1TO8 = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, '1', 't', 'o', '8', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_1TO8 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_1TO8;
|
||||||
|
static const ZydisShortString STR_DECO_1TO16 = ZYDIS_MAKE_SHORTSTRING(" {1to16}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_1TO16_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[20];
|
||||||
|
} TOK_DATA_DECO_1TO16 = { 20, 18, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 6, '1', 't', 'o', '1', '6', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_1TO16 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_1TO16;
|
||||||
|
static const ZydisShortString STR_DECO_4TO8 = ZYDIS_MAKE_SHORTSTRING(" {4to8}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_4TO8_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_4TO8 = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, '4', 't', 'o', '8', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_4TO8 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_4TO8;
|
||||||
|
static const ZydisShortString STR_DECO_4TO16 = ZYDIS_MAKE_SHORTSTRING(" {4to16}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_4TO16_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[20];
|
||||||
|
} TOK_DATA_DECO_4TO16 = { 20, 18, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 6, '4', 't', 'o', '1', '6', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_4TO16 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_4TO16;
|
||||||
|
static const ZydisShortString STR_DECO_AAAA = ZYDIS_MAKE_SHORTSTRING(" {aaaa}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_AAAA_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_AAAA = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, 'a', 'a', 'a', 'a', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_AAAA = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_AAAA;
|
||||||
|
static const ZydisShortString STR_DECO_BADC = ZYDIS_MAKE_SHORTSTRING(" {badc}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_BADC_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_BADC = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, 'b', 'a', 'd', 'c', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_BADC = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_BADC;
|
||||||
|
static const ZydisShortString STR_DECO_BBBB = ZYDIS_MAKE_SHORTSTRING(" {bbbb}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_BBBB_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_BBBB = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, 'b', 'b', 'b', 'b', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_BBBB = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_BBBB;
|
||||||
|
static const ZydisShortString STR_DECO_BEGIN = ZYDIS_MAKE_SHORTSTRING(" {");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_BEGIN_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[8];
|
||||||
|
} TOK_DATA_DECO_BEGIN = { 8, 6, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 0, '{', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_BEGIN = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_BEGIN;
|
||||||
|
static const ZydisShortString STR_DECO_CCCC = ZYDIS_MAKE_SHORTSTRING(" {cccc}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_CCCC_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_CCCC = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, 'c', 'c', 'c', 'c', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_CCCC = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_CCCC;
|
||||||
|
static const ZydisShortString STR_DECO_CDAB = ZYDIS_MAKE_SHORTSTRING(" {cdab}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_CDAB_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_CDAB = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, 'c', 'd', 'a', 'b', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_CDAB = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_CDAB;
|
||||||
|
static const ZydisShortString STR_DECO_DACB = ZYDIS_MAKE_SHORTSTRING(" {dacb}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_DACB_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_DACB = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, 'd', 'a', 'c', 'b', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_DACB = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_DACB;
|
||||||
|
static const ZydisShortString STR_DECO_DDDD = ZYDIS_MAKE_SHORTSTRING(" {dddd}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_DDDD_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_DDDD = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, 'd', 'd', 'd', 'd', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_DDDD = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_DDDD;
|
||||||
|
static const ZydisShortString STR_DECO_EH = ZYDIS_MAKE_SHORTSTRING(" {cdab}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_EH_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[19];
|
||||||
|
} TOK_DATA_DECO_EH = { 19, 17, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 5, 'c', 'd', 'a', 'b', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_EH = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_EH;
|
||||||
|
static const ZydisShortString STR_DECO_END = ZYDIS_MAKE_SHORTSTRING("}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_END_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_DECO_END = { 4, 2, { ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_END = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_END;
|
||||||
|
static const ZydisShortString STR_DECO_FLOAT16 = ZYDIS_MAKE_SHORTSTRING(" {float16}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_FLOAT16_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[22];
|
||||||
|
} TOK_DATA_DECO_FLOAT16 = { 22, 20, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 8, 'f', 'l', 'o', 'a', 't', '1', '6', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_FLOAT16 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_FLOAT16;
|
||||||
|
static const ZydisShortString STR_DECO_RD = ZYDIS_MAKE_SHORTSTRING(" {rd}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_RD_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[17];
|
||||||
|
} TOK_DATA_DECO_RD = { 17, 15, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 3, 'r', 'd', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_RD = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_RD;
|
||||||
|
static const ZydisShortString STR_DECO_RD_SAE = ZYDIS_MAKE_SHORTSTRING(" {rd-sae}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_RD_SAE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[21];
|
||||||
|
} TOK_DATA_DECO_RD_SAE = { 21, 19, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 7, 'r', 'd', '-', 's', 'a', 'e', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_RD_SAE = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_RD_SAE;
|
||||||
|
static const ZydisShortString STR_DECO_RN = ZYDIS_MAKE_SHORTSTRING(" {rn}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_RN_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[17];
|
||||||
|
} TOK_DATA_DECO_RN = { 17, 15, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 3, 'r', 'n', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_RN = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_RN;
|
||||||
|
static const ZydisShortString STR_DECO_RN_SAE = ZYDIS_MAKE_SHORTSTRING(" {rn-sae}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_RN_SAE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[21];
|
||||||
|
} TOK_DATA_DECO_RN_SAE = { 21, 19, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 7, 'r', 'n', '-', 's', 'a', 'e', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_RN_SAE = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_RN_SAE;
|
||||||
|
static const ZydisShortString STR_DECO_RU = ZYDIS_MAKE_SHORTSTRING(" {ru}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_RU_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[17];
|
||||||
|
} TOK_DATA_DECO_RU = { 17, 15, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 3, 'r', 'u', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_RU = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_RU;
|
||||||
|
static const ZydisShortString STR_DECO_RU_SAE = ZYDIS_MAKE_SHORTSTRING(" {ru-sae}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_RU_SAE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[21];
|
||||||
|
} TOK_DATA_DECO_RU_SAE = { 21, 19, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 7, 'r', 'u', '-', 's', 'a', 'e', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_RU_SAE = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_RU_SAE;
|
||||||
|
static const ZydisShortString STR_DECO_RZ = ZYDIS_MAKE_SHORTSTRING(" {rz}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_RZ_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[17];
|
||||||
|
} TOK_DATA_DECO_RZ = { 17, 15, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 3, 'r', 'z', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_RZ = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_RZ;
|
||||||
|
static const ZydisShortString STR_DECO_RZ_SAE = ZYDIS_MAKE_SHORTSTRING(" {rz-sae}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_RZ_SAE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[21];
|
||||||
|
} TOK_DATA_DECO_RZ_SAE = { 21, 19, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 7, 'r', 'z', '-', 's', 'a', 'e', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_RZ_SAE = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_RZ_SAE;
|
||||||
|
static const ZydisShortString STR_DECO_SAE = ZYDIS_MAKE_SHORTSTRING(" {sae}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_SAE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[18];
|
||||||
|
} TOK_DATA_DECO_SAE = { 18, 16, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 4, 's', 'a', 'e', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_SAE = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_SAE;
|
||||||
|
static const ZydisShortString STR_DECO_SINT8 = ZYDIS_MAKE_SHORTSTRING(" {sint8}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_SINT8_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[20];
|
||||||
|
} TOK_DATA_DECO_SINT8 = { 20, 18, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 6, 's', 'i', 'n', 't', '8', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_SINT8 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_SINT8;
|
||||||
|
static const ZydisShortString STR_DECO_SINT16 = ZYDIS_MAKE_SHORTSTRING(" {sint16}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_SINT16_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[21];
|
||||||
|
} TOK_DATA_DECO_SINT16 = { 21, 19, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 7, 's', 'i', 'n', 't', '1', '6', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_SINT16 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_SINT16;
|
||||||
|
static const ZydisShortString STR_DECO_UINT8 = ZYDIS_MAKE_SHORTSTRING(" {uint8}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_UINT8_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[20];
|
||||||
|
} TOK_DATA_DECO_UINT8 = { 20, 18, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 6, 'u', 'i', 'n', 't', '8', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_UINT8 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_UINT8;
|
||||||
|
static const ZydisShortString STR_DECO_UINT16 = ZYDIS_MAKE_SHORTSTRING(" {uint16}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_UINT16_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[21];
|
||||||
|
} TOK_DATA_DECO_UINT16 = { 21, 19, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 7, 'u', 'i', 'n', 't', '1', '6', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_UINT16 = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_UINT16;
|
||||||
|
static const ZydisShortString STR_DECO_ZERO = ZYDIS_MAKE_SHORTSTRING(" {z}");
|
||||||
|
static const struct ZydisPredefinedTokenDECO_ZERO_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[16];
|
||||||
|
} TOK_DATA_DECO_ZERO = { 16, 14, { ZYDIS_TOKEN_WHITESPACE, 2, ' ', '\0', ZYDIS_TOKEN_PARENTHESIS_OPEN, 2, '{', '\0', ZYDIS_TOKEN_DECORATOR, 2, 'z', '\0', ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, '}', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DECO_ZERO = (const ZydisPredefinedToken* const)&TOK_DATA_DECO_ZERO;
|
||||||
|
static const ZydisShortString STR_DELIM_MEMORY = ZYDIS_MAKE_SHORTSTRING(",");
|
||||||
|
static const struct ZydisPredefinedTokenDELIM_MEMORY_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_DELIM_MEMORY = { 4, 2, { ZYDIS_TOKEN_DELIMITER, 0, ',', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DELIM_MEMORY = (const ZydisPredefinedToken* const)&TOK_DATA_DELIM_MEMORY;
|
||||||
|
static const ZydisShortString STR_DELIM_MNEMONIC = ZYDIS_MAKE_SHORTSTRING(" ");
|
||||||
|
static const struct ZydisPredefinedTokenDELIM_MNEMONIC_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_DELIM_MNEMONIC = { 4, 2, { ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DELIM_MNEMONIC = (const ZydisPredefinedToken* const)&TOK_DATA_DELIM_MNEMONIC;
|
||||||
|
static const ZydisShortString STR_DELIM_OPERAND = ZYDIS_MAKE_SHORTSTRING(", ");
|
||||||
|
static const struct ZydisPredefinedTokenDELIM_OPERAND_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[8];
|
||||||
|
} TOK_DATA_DELIM_OPERAND = { 8, 6, { ZYDIS_TOKEN_DELIMITER, 2, ',', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DELIM_OPERAND = (const ZydisPredefinedToken* const)&TOK_DATA_DELIM_OPERAND;
|
||||||
|
static const ZydisShortString STR_DELIM_SEGMENT = ZYDIS_MAKE_SHORTSTRING(":");
|
||||||
|
static const struct ZydisPredefinedTokenDELIM_SEGMENT_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_DELIM_SEGMENT = { 4, 2, { ZYDIS_TOKEN_DELIMITER, 0, ':', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_DELIM_SEGMENT = (const ZydisPredefinedToken* const)&TOK_DATA_DELIM_SEGMENT;
|
||||||
|
static const ZydisShortString STR_FAR = ZYDIS_MAKE_SHORTSTRING(" far");
|
||||||
|
static const ZydisShortString STR_FAR_ATT = ZYDIS_MAKE_SHORTSTRING("l");
|
||||||
|
static const ZydisShortString STR_IMMEDIATE = ZYDIS_MAKE_SHORTSTRING("$");
|
||||||
|
static const struct ZydisPredefinedTokenIMMEDIATE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_IMMEDIATE = { 4, 2, { ZYDIS_TOKEN_IMMEDIATE, 0, '$', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_IMMEDIATE = (const ZydisPredefinedToken* const)&TOK_DATA_IMMEDIATE;
|
||||||
|
static const ZydisShortString STR_INVALID_MNEMONIC = ZYDIS_MAKE_SHORTSTRING("invalid");
|
||||||
|
static const struct ZydisPredefinedTokenINVALID_MNEMONIC_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[10];
|
||||||
|
} TOK_DATA_INVALID_MNEMONIC = { 10, 2, { ZYDIS_TOKEN_MNEMONIC, 0, 'i', 'n', 'v', 'a', 'l', 'i', 'd', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_INVALID_MNEMONIC = (const ZydisPredefinedToken* const)&TOK_DATA_INVALID_MNEMONIC;
|
||||||
|
static const ZydisShortString STR_INVALID_REG = ZYDIS_MAKE_SHORTSTRING("invalid");
|
||||||
|
static const struct ZydisPredefinedTokenINVALID_REG_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[10];
|
||||||
|
} TOK_DATA_INVALID_REG = { 10, 2, { ZYDIS_TOKEN_REGISTER, 0, 'i', 'n', 'v', 'a', 'l', 'i', 'd', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_INVALID_REG = (const ZydisPredefinedToken* const)&TOK_DATA_INVALID_REG;
|
||||||
|
static const ZydisShortString STR_MEMORY_BEGIN_ATT = ZYDIS_MAKE_SHORTSTRING("(");
|
||||||
|
static const struct ZydisPredefinedTokenMEMORY_BEGIN_ATT_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_MEMORY_BEGIN_ATT = { 4, 2, { ZYDIS_TOKEN_PARENTHESIS_OPEN, 0, '(', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_MEMORY_BEGIN_ATT = (const ZydisPredefinedToken* const)&TOK_DATA_MEMORY_BEGIN_ATT;
|
||||||
|
static const ZydisShortString STR_MEMORY_BEGIN_INTEL = ZYDIS_MAKE_SHORTSTRING("[");
|
||||||
|
static const struct ZydisPredefinedTokenMEMORY_BEGIN_INTEL_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_MEMORY_BEGIN_INTEL = { 4, 2, { ZYDIS_TOKEN_PARENTHESIS_OPEN, 0, '[', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_MEMORY_BEGIN_INTEL = (const ZydisPredefinedToken* const)&TOK_DATA_MEMORY_BEGIN_INTEL;
|
||||||
|
static const ZydisShortString STR_MEMORY_END_ATT = ZYDIS_MAKE_SHORTSTRING(")");
|
||||||
|
static const struct ZydisPredefinedTokenMEMORY_END_ATT_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_MEMORY_END_ATT = { 4, 2, { ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, ')', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_MEMORY_END_ATT = (const ZydisPredefinedToken* const)&TOK_DATA_MEMORY_END_ATT;
|
||||||
|
static const ZydisShortString STR_MEMORY_END_INTEL = ZYDIS_MAKE_SHORTSTRING("]");
|
||||||
|
static const struct ZydisPredefinedTokenMEMORY_END_INTEL_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_MEMORY_END_INTEL = { 4, 2, { ZYDIS_TOKEN_PARENTHESIS_CLOSE, 0, ']', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_MEMORY_END_INTEL = (const ZydisPredefinedToken* const)&TOK_DATA_MEMORY_END_INTEL;
|
||||||
|
static const ZydisShortString STR_MUL = ZYDIS_MAKE_SHORTSTRING("*");
|
||||||
|
static const struct ZydisPredefinedTokenMUL_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_MUL = { 4, 2, { ZYDIS_TOKEN_DELIMITER, 0, '*', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_MUL = (const ZydisPredefinedToken* const)&TOK_DATA_MUL;
|
||||||
|
static const ZydisShortString STR_NEAR = ZYDIS_MAKE_SHORTSTRING(" near");
|
||||||
|
static const ZydisShortString STR_PREF_BND = ZYDIS_MAKE_SHORTSTRING("bnd ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_BND_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[10];
|
||||||
|
} TOK_DATA_PREF_BND = { 10, 8, { ZYDIS_TOKEN_PREFIX, 4, 'b', 'n', 'd', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_BND = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_BND;
|
||||||
|
static const ZydisShortString STR_PREF_LOCK = ZYDIS_MAKE_SHORTSTRING("lock ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_LOCK_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[11];
|
||||||
|
} TOK_DATA_PREF_LOCK = { 11, 9, { ZYDIS_TOKEN_PREFIX, 5, 'l', 'o', 'c', 'k', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_LOCK = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_LOCK;
|
||||||
|
static const ZydisShortString STR_PREF_REP = ZYDIS_MAKE_SHORTSTRING("rep ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REP_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[10];
|
||||||
|
} TOK_DATA_PREF_REP = { 10, 8, { ZYDIS_TOKEN_PREFIX, 4, 'r', 'e', 'p', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REP = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REP;
|
||||||
|
static const ZydisShortString STR_PREF_REPE = ZYDIS_MAKE_SHORTSTRING("repe ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REPE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[11];
|
||||||
|
} TOK_DATA_PREF_REPE = { 11, 9, { ZYDIS_TOKEN_PREFIX, 5, 'r', 'e', 'p', 'e', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REPE = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REPE;
|
||||||
|
static const ZydisShortString STR_PREF_REPNE = ZYDIS_MAKE_SHORTSTRING("repne ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REPNE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[12];
|
||||||
|
} TOK_DATA_PREF_REPNE = { 12, 10, { ZYDIS_TOKEN_PREFIX, 6, 'r', 'e', 'p', 'n', 'e', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REPNE = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REPNE;
|
||||||
|
static const ZydisShortString STR_PREF_REX_4A = ZYDIS_MAKE_SHORTSTRING("rex.wx ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_4A_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[13];
|
||||||
|
} TOK_DATA_PREF_REX_4A = { 13, 11, { ZYDIS_TOKEN_PREFIX, 7, 'r', 'e', 'x', '.', 'w', 'x', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_4A = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4A;
|
||||||
|
static const ZydisShortString STR_PREF_REX_4B = ZYDIS_MAKE_SHORTSTRING("rex.wxb ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_4B_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[14];
|
||||||
|
} TOK_DATA_PREF_REX_4B = { 14, 12, { ZYDIS_TOKEN_PREFIX, 8, 'r', 'e', 'x', '.', 'w', 'x', 'b', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_4B = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4B;
|
||||||
|
static const ZydisShortString STR_PREF_REX_4C = ZYDIS_MAKE_SHORTSTRING("rex.wr ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_4C_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[13];
|
||||||
|
} TOK_DATA_PREF_REX_4C = { 13, 11, { ZYDIS_TOKEN_PREFIX, 7, 'r', 'e', 'x', '.', 'w', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_4C = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4C;
|
||||||
|
static const ZydisShortString STR_PREF_REX_4D = ZYDIS_MAKE_SHORTSTRING("rex.wrb ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_4D_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[14];
|
||||||
|
} TOK_DATA_PREF_REX_4D = { 14, 12, { ZYDIS_TOKEN_PREFIX, 8, 'r', 'e', 'x', '.', 'w', 'r', 'b', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_4D = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4D;
|
||||||
|
static const ZydisShortString STR_PREF_REX_4E = ZYDIS_MAKE_SHORTSTRING("rex.wrx ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_4E_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[14];
|
||||||
|
} TOK_DATA_PREF_REX_4E = { 14, 12, { ZYDIS_TOKEN_PREFIX, 8, 'r', 'e', 'x', '.', 'w', 'r', 'x', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_4E = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4E;
|
||||||
|
static const ZydisShortString STR_PREF_REX_4F = ZYDIS_MAKE_SHORTSTRING("rex.wrxb ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_4F_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[15];
|
||||||
|
} TOK_DATA_PREF_REX_4F = { 15, 13, { ZYDIS_TOKEN_PREFIX, 9, 'r', 'e', 'x', '.', 'w', 'r', 'x', 'b', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_4F = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_4F;
|
||||||
|
static const ZydisShortString STR_PREF_REX_40 = ZYDIS_MAKE_SHORTSTRING("rex ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_40_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[10];
|
||||||
|
} TOK_DATA_PREF_REX_40 = { 10, 8, { ZYDIS_TOKEN_PREFIX, 4, 'r', 'e', 'x', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_40 = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_40;
|
||||||
|
static const ZydisShortString STR_PREF_REX_41 = ZYDIS_MAKE_SHORTSTRING("rex.b ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_41_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[12];
|
||||||
|
} TOK_DATA_PREF_REX_41 = { 12, 10, { ZYDIS_TOKEN_PREFIX, 6, 'r', 'e', 'x', '.', 'b', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_41 = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_41;
|
||||||
|
static const ZydisShortString STR_PREF_REX_42 = ZYDIS_MAKE_SHORTSTRING("rex.x ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_42_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[12];
|
||||||
|
} TOK_DATA_PREF_REX_42 = { 12, 10, { ZYDIS_TOKEN_PREFIX, 6, 'r', 'e', 'x', '.', 'x', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_42 = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_42;
|
||||||
|
static const ZydisShortString STR_PREF_REX_43 = ZYDIS_MAKE_SHORTSTRING("rex.xb ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_43_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[13];
|
||||||
|
} TOK_DATA_PREF_REX_43 = { 13, 11, { ZYDIS_TOKEN_PREFIX, 7, 'r', 'e', 'x', '.', 'x', 'b', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_43 = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_43;
|
||||||
|
static const ZydisShortString STR_PREF_REX_44 = ZYDIS_MAKE_SHORTSTRING("rex.r ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_44_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[12];
|
||||||
|
} TOK_DATA_PREF_REX_44 = { 12, 10, { ZYDIS_TOKEN_PREFIX, 6, 'r', 'e', 'x', '.', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_44 = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_44;
|
||||||
|
static const ZydisShortString STR_PREF_REX_45 = ZYDIS_MAKE_SHORTSTRING("rex.rb ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_45_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[13];
|
||||||
|
} TOK_DATA_PREF_REX_45 = { 13, 11, { ZYDIS_TOKEN_PREFIX, 7, 'r', 'e', 'x', '.', 'r', 'b', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_45 = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_45;
|
||||||
|
static const ZydisShortString STR_PREF_REX_46 = ZYDIS_MAKE_SHORTSTRING("rex.rx ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_46_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[13];
|
||||||
|
} TOK_DATA_PREF_REX_46 = { 13, 11, { ZYDIS_TOKEN_PREFIX, 7, 'r', 'e', 'x', '.', 'r', 'x', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_46 = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_46;
|
||||||
|
static const ZydisShortString STR_PREF_REX_47 = ZYDIS_MAKE_SHORTSTRING("rex.rxb ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_47_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[14];
|
||||||
|
} TOK_DATA_PREF_REX_47 = { 14, 12, { ZYDIS_TOKEN_PREFIX, 8, 'r', 'e', 'x', '.', 'r', 'x', 'b', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_47 = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_47;
|
||||||
|
static const ZydisShortString STR_PREF_REX_48 = ZYDIS_MAKE_SHORTSTRING("rex.w ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_48_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[12];
|
||||||
|
} TOK_DATA_PREF_REX_48 = { 12, 10, { ZYDIS_TOKEN_PREFIX, 6, 'r', 'e', 'x', '.', 'w', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_48 = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_48;
|
||||||
|
static const ZydisShortString STR_PREF_REX_49 = ZYDIS_MAKE_SHORTSTRING("rex.wb ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_REX_49_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[13];
|
||||||
|
} TOK_DATA_PREF_REX_49 = { 13, 11, { ZYDIS_TOKEN_PREFIX, 7, 'r', 'e', 'x', '.', 'w', 'b', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_REX_49 = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_REX_49;
|
||||||
|
static const ZydisShortString STR_PREF_SEG_CS = ZYDIS_MAKE_SHORTSTRING("cs ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_SEG_CS_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[9];
|
||||||
|
} TOK_DATA_PREF_SEG_CS = { 9, 7, { ZYDIS_TOKEN_PREFIX, 3, 'c', 's', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_SEG_CS = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_SEG_CS;
|
||||||
|
static const ZydisShortString STR_PREF_SEG_DS = ZYDIS_MAKE_SHORTSTRING("ds ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_SEG_DS_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[9];
|
||||||
|
} TOK_DATA_PREF_SEG_DS = { 9, 7, { ZYDIS_TOKEN_PREFIX, 3, 'd', 's', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_SEG_DS = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_SEG_DS;
|
||||||
|
static const ZydisShortString STR_PREF_SEG_ES = ZYDIS_MAKE_SHORTSTRING("es ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_SEG_ES_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[9];
|
||||||
|
} TOK_DATA_PREF_SEG_ES = { 9, 7, { ZYDIS_TOKEN_PREFIX, 3, 'e', 's', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_SEG_ES = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_SEG_ES;
|
||||||
|
static const ZydisShortString STR_PREF_SEG_FS = ZYDIS_MAKE_SHORTSTRING("fs ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_SEG_FS_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[9];
|
||||||
|
} TOK_DATA_PREF_SEG_FS = { 9, 7, { ZYDIS_TOKEN_PREFIX, 3, 'f', 's', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_SEG_FS = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_SEG_FS;
|
||||||
|
static const ZydisShortString STR_PREF_SEG_GS = ZYDIS_MAKE_SHORTSTRING("gs ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_SEG_GS_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[9];
|
||||||
|
} TOK_DATA_PREF_SEG_GS = { 9, 7, { ZYDIS_TOKEN_PREFIX, 3, 'g', 's', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_SEG_GS = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_SEG_GS;
|
||||||
|
static const ZydisShortString STR_PREF_SEG_SS = ZYDIS_MAKE_SHORTSTRING("ss ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_SEG_SS_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[9];
|
||||||
|
} TOK_DATA_PREF_SEG_SS = { 9, 7, { ZYDIS_TOKEN_PREFIX, 3, 's', 's', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_SEG_SS = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_SEG_SS;
|
||||||
|
static const ZydisShortString STR_PREF_XACQUIRE = ZYDIS_MAKE_SHORTSTRING("xacquire ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_XACQUIRE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[15];
|
||||||
|
} TOK_DATA_PREF_XACQUIRE = { 15, 13, { ZYDIS_TOKEN_PREFIX, 9, 'x', 'a', 'c', 'q', 'u', 'i', 'r', 'e', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_XACQUIRE = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_XACQUIRE;
|
||||||
|
static const ZydisShortString STR_PREF_XRELEASE = ZYDIS_MAKE_SHORTSTRING("xrelease ");
|
||||||
|
static const struct ZydisPredefinedTokenPREF_XRELEASE_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[15];
|
||||||
|
} TOK_DATA_PREF_XRELEASE = { 15, 13, { ZYDIS_TOKEN_PREFIX, 9, 'x', 'r', 'e', 'l', 'e', 'a', 's', 'e', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_PREF_XRELEASE = (const ZydisPredefinedToken* const)&TOK_DATA_PREF_XRELEASE;
|
||||||
|
static const ZydisShortString STR_REGISTER = ZYDIS_MAKE_SHORTSTRING("%");
|
||||||
|
static const struct ZydisPredefinedTokenREGISTER_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_REGISTER = { 4, 2, { ZYDIS_TOKEN_REGISTER, 0, '%', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_REGISTER = (const ZydisPredefinedToken* const)&TOK_DATA_REGISTER;
|
||||||
|
static const ZydisShortString STR_SHORT = ZYDIS_MAKE_SHORTSTRING(" short");
|
||||||
|
static const ZydisShortString STR_SIZE_8_ATT = ZYDIS_MAKE_SHORTSTRING("b");
|
||||||
|
static const ZydisShortString STR_SIZE_8_INTEL = ZYDIS_MAKE_SHORTSTRING("byte ptr ");
|
||||||
|
static const struct ZydisPredefinedTokenSIZE_8_INTEL_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[15];
|
||||||
|
} TOK_DATA_SIZE_8_INTEL = { 15, 13, { ZYDIS_TOKEN_TYPECAST, 9, 'b', 'y', 't', 'e', ' ', 'p', 't', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_SIZE_8_INTEL = (const ZydisPredefinedToken* const)&TOK_DATA_SIZE_8_INTEL;
|
||||||
|
static const ZydisShortString STR_SIZE_16_ATT = ZYDIS_MAKE_SHORTSTRING("w");
|
||||||
|
static const ZydisShortString STR_SIZE_16_INTEL = ZYDIS_MAKE_SHORTSTRING("word ptr ");
|
||||||
|
static const struct ZydisPredefinedTokenSIZE_16_INTEL_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[15];
|
||||||
|
} TOK_DATA_SIZE_16_INTEL = { 15, 13, { ZYDIS_TOKEN_TYPECAST, 9, 'w', 'o', 'r', 'd', ' ', 'p', 't', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_SIZE_16_INTEL = (const ZydisPredefinedToken* const)&TOK_DATA_SIZE_16_INTEL;
|
||||||
|
static const ZydisShortString STR_SIZE_32_ATT = ZYDIS_MAKE_SHORTSTRING("l");
|
||||||
|
static const ZydisShortString STR_SIZE_32_INTEL = ZYDIS_MAKE_SHORTSTRING("dword ptr ");
|
||||||
|
static const struct ZydisPredefinedTokenSIZE_32_INTEL_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[16];
|
||||||
|
} TOK_DATA_SIZE_32_INTEL = { 16, 14, { ZYDIS_TOKEN_TYPECAST, 10, 'd', 'w', 'o', 'r', 'd', ' ', 'p', 't', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_SIZE_32_INTEL = (const ZydisPredefinedToken* const)&TOK_DATA_SIZE_32_INTEL;
|
||||||
|
static const ZydisShortString STR_SIZE_48 = ZYDIS_MAKE_SHORTSTRING("fword ptr ");
|
||||||
|
static const struct ZydisPredefinedTokenSIZE_48_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[16];
|
||||||
|
} TOK_DATA_SIZE_48 = { 16, 14, { ZYDIS_TOKEN_TYPECAST, 10, 'f', 'w', 'o', 'r', 'd', ' ', 'p', 't', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_SIZE_48 = (const ZydisPredefinedToken* const)&TOK_DATA_SIZE_48;
|
||||||
|
static const ZydisShortString STR_SIZE_64_ATT = ZYDIS_MAKE_SHORTSTRING("q");
|
||||||
|
static const ZydisShortString STR_SIZE_64_INTEL = ZYDIS_MAKE_SHORTSTRING("qword ptr ");
|
||||||
|
static const struct ZydisPredefinedTokenSIZE_64_INTEL_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[16];
|
||||||
|
} TOK_DATA_SIZE_64_INTEL = { 16, 14, { ZYDIS_TOKEN_TYPECAST, 10, 'q', 'w', 'o', 'r', 'd', ' ', 'p', 't', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_SIZE_64_INTEL = (const ZydisPredefinedToken* const)&TOK_DATA_SIZE_64_INTEL;
|
||||||
|
static const ZydisShortString STR_SIZE_80 = ZYDIS_MAKE_SHORTSTRING("tbyte ptr ");
|
||||||
|
static const struct ZydisPredefinedTokenSIZE_80_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[16];
|
||||||
|
} TOK_DATA_SIZE_80 = { 16, 14, { ZYDIS_TOKEN_TYPECAST, 10, 't', 'b', 'y', 't', 'e', ' ', 'p', 't', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_SIZE_80 = (const ZydisPredefinedToken* const)&TOK_DATA_SIZE_80;
|
||||||
|
static const ZydisShortString STR_SIZE_128_ATT = ZYDIS_MAKE_SHORTSTRING("x");
|
||||||
|
static const ZydisShortString STR_SIZE_128_INTEL = ZYDIS_MAKE_SHORTSTRING("xmmword ptr ");
|
||||||
|
static const struct ZydisPredefinedTokenSIZE_128_INTEL_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[18];
|
||||||
|
} TOK_DATA_SIZE_128_INTEL = { 18, 16, { ZYDIS_TOKEN_TYPECAST, 12, 'x', 'm', 'm', 'w', 'o', 'r', 'd', ' ', 'p', 't', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_SIZE_128_INTEL = (const ZydisPredefinedToken* const)&TOK_DATA_SIZE_128_INTEL;
|
||||||
|
static const ZydisShortString STR_SIZE_256_ATT = ZYDIS_MAKE_SHORTSTRING("y");
|
||||||
|
static const ZydisShortString STR_SIZE_256_INTEL = ZYDIS_MAKE_SHORTSTRING("ymmword ptr ");
|
||||||
|
static const struct ZydisPredefinedTokenSIZE_256_INTEL_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[18];
|
||||||
|
} TOK_DATA_SIZE_256_INTEL = { 18, 16, { ZYDIS_TOKEN_TYPECAST, 12, 'y', 'm', 'm', 'w', 'o', 'r', 'd', ' ', 'p', 't', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_SIZE_256_INTEL = (const ZydisPredefinedToken* const)&TOK_DATA_SIZE_256_INTEL;
|
||||||
|
static const ZydisShortString STR_SIZE_512_ATT = ZYDIS_MAKE_SHORTSTRING("z");
|
||||||
|
static const ZydisShortString STR_SIZE_512_INTEL = ZYDIS_MAKE_SHORTSTRING("zmmword ptr ");
|
||||||
|
static const struct ZydisPredefinedTokenSIZE_512_INTEL_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[18];
|
||||||
|
} TOK_DATA_SIZE_512_INTEL = { 18, 16, { ZYDIS_TOKEN_TYPECAST, 12, 'z', 'm', 'm', 'w', 'o', 'r', 'd', ' ', 'p', 't', 'r', '\0', ZYDIS_TOKEN_WHITESPACE, 0, ' ', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_SIZE_512_INTEL = (const ZydisPredefinedToken* const)&TOK_DATA_SIZE_512_INTEL;
|
||||||
|
static const ZydisShortString STR_SUB = ZYDIS_MAKE_SHORTSTRING("-");
|
||||||
|
static const struct ZydisPredefinedTokenSUB_
|
||||||
|
{
|
||||||
|
ZyanU8 size;
|
||||||
|
ZyanU8 next;
|
||||||
|
ZyanU8 data[4];
|
||||||
|
} TOK_DATA_SUB = { 4, 2, { ZYDIS_TOKEN_DELIMITER, 0, '-', '\0' } };
|
||||||
|
static const ZydisPredefinedToken* const TOK_SUB = (const ZydisPredefinedToken* const)&TOK_DATA_SUB;
|
||||||
|
static const ZydisShortString STR_WHITESPACE = ZYDIS_MAKE_SHORTSTRING(" ");
|
||||||
|
#pragma pack(pop)
|
7255
src/Generated/InstructionDefinitions.inc
Normal file
7255
src/Generated/InstructionDefinitions.inc
Normal file
File diff suppressed because it is too large
Load diff
23
src/Generated/InstructionEncodings.inc
Normal file
23
src/Generated/InstructionEncodings.inc
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
static const ZydisInstructionEncodingInfo INSTR_ENCODINGS[] =
|
||||||
|
{
|
||||||
|
{ 0, { { 0, 0, 0 } }, { { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_MODRM, { { 0, 0, 0 } }, { { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_DISP, { { 16, 32, 64 } }, { { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 8, 8, 8 }, ZYAN_FALSE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 16, 16, 16 }, ZYAN_FALSE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 16, 32, 64 }, ZYAN_FALSE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 8, 8, 8 }, ZYAN_TRUE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 16, 32, 32 }, ZYAN_TRUE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 8, 8, 8 }, ZYAN_TRUE, ZYAN_TRUE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 16, 32, 32 }, ZYAN_TRUE, ZYAN_TRUE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 32, 32, 32 }, ZYAN_TRUE, ZYAN_TRUE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_MODRM | ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 8, 8, 8 }, ZYAN_FALSE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_MODRM | ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 32, 32, 32 }, ZYAN_FALSE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_MODRM | ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 8, 8, 8 }, ZYAN_TRUE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_MODRM | ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 16, 32, 32 }, ZYAN_TRUE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_MODRM | ZYDIS_INSTR_ENC_FLAG_HAS_IMM0, { { 0, 0, 0 } }, { { { 16, 32, 32 }, ZYAN_TRUE, ZYAN_TRUE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_MODRM | ZYDIS_INSTR_ENC_FLAG_FORCE_REG_FORM, { { 0, 0, 0 } }, { { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE }, { { 0, 0, 0 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_IMM0 | ZYDIS_INSTR_ENC_FLAG_HAS_IMM1, { { 0, 0, 0 } }, { { { 16, 16, 16 }, ZYAN_FALSE, ZYAN_FALSE }, { { 8, 8, 8 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_IMM0 | ZYDIS_INSTR_ENC_FLAG_HAS_IMM1, { { 0, 0, 0 } }, { { { 16, 32, 32 }, ZYAN_TRUE, ZYAN_TRUE }, { { 16, 16, 16 }, ZYAN_FALSE, ZYAN_FALSE } } },
|
||||||
|
{ ZYDIS_INSTR_ENC_FLAG_HAS_MODRM | ZYDIS_INSTR_ENC_FLAG_HAS_IMM0 | ZYDIS_INSTR_ENC_FLAG_HAS_IMM1, { { 0, 0, 0 } }, { { { 8, 8, 8 }, ZYAN_FALSE, ZYAN_FALSE }, { { 8, 8, 8 }, ZYAN_FALSE, ZYAN_FALSE } } }
|
||||||
|
};
|
6850
src/Generated/OperandDefinitions.inc
Normal file
6850
src/Generated/OperandDefinitions.inc
Normal file
File diff suppressed because it is too large
Load diff
68
src/MetaInfo.c
Normal file
68
src/MetaInfo.c
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/MetaInfo.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Enum strings */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#include <Generated/EnumInstructionCategory.inc>
|
||||||
|
#include <Generated/EnumISASet.inc>
|
||||||
|
#include <Generated/EnumISAExt.inc>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
const char* ZydisCategoryGetString(ZydisInstructionCategory category)
|
||||||
|
{
|
||||||
|
if ((ZyanUSize)category >= ZYAN_ARRAY_LENGTH(STR_INSTRUCTIONCATEGORY))
|
||||||
|
{
|
||||||
|
return ZYAN_NULL;
|
||||||
|
}
|
||||||
|
return STR_INSTRUCTIONCATEGORY[category];
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* ZydisISASetGetString(ZydisISASet isa_set)
|
||||||
|
{
|
||||||
|
if ((ZyanUSize)isa_set >= ZYAN_ARRAY_LENGTH(STR_ISASET))
|
||||||
|
{
|
||||||
|
return ZYAN_NULL;
|
||||||
|
}
|
||||||
|
return STR_ISASET[isa_set];
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* ZydisISAExtGetString(ZydisISAExt isa_ext)
|
||||||
|
{
|
||||||
|
if ((ZyanUSize)isa_ext >= ZYAN_ARRAY_LENGTH(STR_ISAEXT))
|
||||||
|
{
|
||||||
|
return ZYAN_NULL;
|
||||||
|
}
|
||||||
|
return STR_ISAEXT[isa_ext];
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
52
src/Mnemonic.c
Normal file
52
src/Mnemonic.c
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/Mnemonic.h>
|
||||||
|
#include <Generated/EnumMnemonic.inc>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
const char* ZydisMnemonicGetString(ZydisMnemonic mnemonic)
|
||||||
|
{
|
||||||
|
if ((ZyanUSize)mnemonic >= ZYAN_ARRAY_LENGTH(STR_MNEMONIC))
|
||||||
|
{
|
||||||
|
return ZYAN_NULL;
|
||||||
|
}
|
||||||
|
return (const char*)STR_MNEMONIC[mnemonic].data;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ZydisShortString* ZydisMnemonicGetStringWrapped(ZydisMnemonic mnemonic)
|
||||||
|
{
|
||||||
|
if ((ZyanUSize)mnemonic >= ZYAN_ARRAY_LENGTH(STR_MNEMONIC))
|
||||||
|
{
|
||||||
|
return ZYAN_NULL;
|
||||||
|
}
|
||||||
|
return &STR_MNEMONIC[mnemonic];
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
303
src/Register.c
Normal file
303
src/Register.c
Normal file
|
@ -0,0 +1,303 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/Register.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Register strings */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
#include <Generated/EnumRegister.inc>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Register-class mapping */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the `ZydisRegisterMapItem` struct.
|
||||||
|
*/
|
||||||
|
typedef struct ZydisRegisterMapItem_
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The register class.
|
||||||
|
*/
|
||||||
|
ZydisRegisterClass class;
|
||||||
|
/**
|
||||||
|
* The lowest register of the current class.
|
||||||
|
*/
|
||||||
|
ZydisRegister lo;
|
||||||
|
/**
|
||||||
|
* The highest register of the current class.
|
||||||
|
*/
|
||||||
|
ZydisRegister hi;
|
||||||
|
/**
|
||||||
|
* The width of registers of the current class in 16- and 32-bit mode.
|
||||||
|
*/
|
||||||
|
ZydisRegisterWidth width;
|
||||||
|
/**
|
||||||
|
* The width of registers of the current class in 64-bit mode.
|
||||||
|
*/
|
||||||
|
ZydisRegisterWidth width64;
|
||||||
|
} ZydisRegisterMapItem;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides register to register-class and register-class + id to register mappings.
|
||||||
|
*/
|
||||||
|
static const ZydisRegisterMapItem REGISTER_MAP[] =
|
||||||
|
{
|
||||||
|
{ ZYDIS_REGCLASS_INVALID , ZYDIS_REGISTER_NONE , ZYDIS_REGISTER_NONE , 0 , 0 },
|
||||||
|
{ ZYDIS_REGCLASS_GPR8 , ZYDIS_REGISTER_AL , ZYDIS_REGISTER_R15B , 8 , 8 },
|
||||||
|
{ ZYDIS_REGCLASS_GPR16 , ZYDIS_REGISTER_AX , ZYDIS_REGISTER_R15W , 16 , 16 },
|
||||||
|
{ ZYDIS_REGCLASS_GPR32 , ZYDIS_REGISTER_EAX , ZYDIS_REGISTER_R15D , 32 , 32 },
|
||||||
|
{ ZYDIS_REGCLASS_GPR64 , ZYDIS_REGISTER_RAX , ZYDIS_REGISTER_R15 , 0 , 64 },
|
||||||
|
{ ZYDIS_REGCLASS_X87 , ZYDIS_REGISTER_ST0 , ZYDIS_REGISTER_ST7 , 80 , 80 },
|
||||||
|
{ ZYDIS_REGCLASS_MMX , ZYDIS_REGISTER_MM0 , ZYDIS_REGISTER_MM7 , 64 , 64 },
|
||||||
|
{ ZYDIS_REGCLASS_XMM , ZYDIS_REGISTER_XMM0 , ZYDIS_REGISTER_XMM31 , 128 , 128 },
|
||||||
|
{ ZYDIS_REGCLASS_YMM , ZYDIS_REGISTER_YMM0 , ZYDIS_REGISTER_YMM31 , 256 , 256 },
|
||||||
|
{ ZYDIS_REGCLASS_ZMM , ZYDIS_REGISTER_ZMM0 , ZYDIS_REGISTER_ZMM31 , 512 , 512 },
|
||||||
|
{ ZYDIS_REGCLASS_TMM , ZYDIS_REGISTER_TMM0 , ZYDIS_REGISTER_TMM7 , 8192 , 8192 },
|
||||||
|
{ ZYDIS_REGCLASS_FLAGS , ZYDIS_REGISTER_FLAGS , ZYDIS_REGISTER_RFLAGS , 0 , 0 },
|
||||||
|
{ ZYDIS_REGCLASS_IP , ZYDIS_REGISTER_IP , ZYDIS_REGISTER_RIP , 0 , 0 },
|
||||||
|
{ ZYDIS_REGCLASS_SEGMENT , ZYDIS_REGISTER_ES , ZYDIS_REGISTER_GS , 16 , 16 },
|
||||||
|
{ ZYDIS_REGCLASS_TEST , ZYDIS_REGISTER_TR0 , ZYDIS_REGISTER_TR7 , 32 , 32 },
|
||||||
|
{ ZYDIS_REGCLASS_CONTROL , ZYDIS_REGISTER_CR0 , ZYDIS_REGISTER_CR15 , 32 , 64 },
|
||||||
|
{ ZYDIS_REGCLASS_DEBUG , ZYDIS_REGISTER_DR0 , ZYDIS_REGISTER_DR15 , 32 , 64 },
|
||||||
|
{ ZYDIS_REGCLASS_MASK , ZYDIS_REGISTER_K0 , ZYDIS_REGISTER_K7 , 0 , 0 },
|
||||||
|
{ ZYDIS_REGCLASS_BOUND , ZYDIS_REGISTER_BND0 , ZYDIS_REGISTER_BND3 , 128 , 128 }
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Register */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZydisRegister ZydisRegisterEncode(ZydisRegisterClass register_class, ZyanU8 id)
|
||||||
|
{
|
||||||
|
switch (register_class)
|
||||||
|
{
|
||||||
|
case ZYDIS_REGCLASS_INVALID:
|
||||||
|
case ZYDIS_REGCLASS_FLAGS:
|
||||||
|
case ZYDIS_REGCLASS_IP:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
if (((ZyanUSize)register_class < ZYAN_ARRAY_LENGTH(REGISTER_MAP)) &&
|
||||||
|
(id <= (REGISTER_MAP[register_class].hi - REGISTER_MAP[register_class].lo)))
|
||||||
|
{
|
||||||
|
return REGISTER_MAP[register_class].lo + id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ZYDIS_REGISTER_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanI8 ZydisRegisterGetId(ZydisRegister reg)
|
||||||
|
{
|
||||||
|
for (ZyanUSize i = 0; i < ZYAN_ARRAY_LENGTH(REGISTER_MAP); ++i)
|
||||||
|
{
|
||||||
|
switch (REGISTER_MAP[i].class)
|
||||||
|
{
|
||||||
|
case ZYDIS_REGCLASS_INVALID:
|
||||||
|
case ZYDIS_REGCLASS_FLAGS:
|
||||||
|
case ZYDIS_REGCLASS_IP:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
if ((reg >= REGISTER_MAP[i].lo) && (reg <= REGISTER_MAP[i].hi))
|
||||||
|
{
|
||||||
|
return (ZyanU8)(reg - REGISTER_MAP[i].lo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZydisRegisterClass ZydisRegisterGetClass(ZydisRegister reg)
|
||||||
|
{
|
||||||
|
for (ZyanUSize i = 0; i < ZYAN_ARRAY_LENGTH(REGISTER_MAP); ++i)
|
||||||
|
{
|
||||||
|
if ((reg >= REGISTER_MAP[i].lo) && (reg <= REGISTER_MAP[i].hi))
|
||||||
|
{
|
||||||
|
return REGISTER_MAP[i].class;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ZYDIS_REGCLASS_INVALID;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZydisRegisterWidth ZydisRegisterGetWidth(ZydisMachineMode mode, ZydisRegister reg)
|
||||||
|
{
|
||||||
|
// Special cases
|
||||||
|
switch (reg)
|
||||||
|
{
|
||||||
|
case ZYDIS_REGISTER_X87CONTROL:
|
||||||
|
case ZYDIS_REGISTER_X87STATUS:
|
||||||
|
case ZYDIS_REGISTER_X87TAG:
|
||||||
|
return 16;
|
||||||
|
case ZYDIS_REGISTER_IP:
|
||||||
|
case ZYDIS_REGISTER_FLAGS:
|
||||||
|
return 16;
|
||||||
|
case ZYDIS_REGISTER_EIP:
|
||||||
|
case ZYDIS_REGISTER_EFLAGS:
|
||||||
|
return 32;
|
||||||
|
case ZYDIS_REGISTER_RIP:
|
||||||
|
case ZYDIS_REGISTER_RFLAGS:
|
||||||
|
return (mode == ZYDIS_MACHINE_MODE_LONG_64) ? 64 : 0;
|
||||||
|
case ZYDIS_REGISTER_BNDCFG:
|
||||||
|
case ZYDIS_REGISTER_BNDSTATUS:
|
||||||
|
return 64;
|
||||||
|
case ZYDIS_REGISTER_XCR0:
|
||||||
|
return 64;
|
||||||
|
case ZYDIS_REGISTER_PKRU:
|
||||||
|
case ZYDIS_REGISTER_MXCSR:
|
||||||
|
return 32;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Register classes
|
||||||
|
for (ZyanUSize i = 0; i < ZYAN_ARRAY_LENGTH(REGISTER_MAP); ++i)
|
||||||
|
{
|
||||||
|
if ((reg >= REGISTER_MAP[i].lo) && (reg <= REGISTER_MAP[i].hi))
|
||||||
|
{
|
||||||
|
return (mode == ZYDIS_MACHINE_MODE_LONG_64) ?
|
||||||
|
REGISTER_MAP[i].width64 : REGISTER_MAP[i].width;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZydisRegister ZydisRegisterGetLargestEnclosing(ZydisMachineMode mode, ZydisRegister reg)
|
||||||
|
{
|
||||||
|
static const ZyanU8 GPR8_MAPPING[20] =
|
||||||
|
{
|
||||||
|
/* AL */ 0,
|
||||||
|
/* CL */ 1,
|
||||||
|
/* DL */ 2,
|
||||||
|
/* BL */ 3,
|
||||||
|
/* AH */ 0,
|
||||||
|
/* CH */ 1,
|
||||||
|
/* DH */ 2,
|
||||||
|
/* BH */ 3,
|
||||||
|
/* SPL */ 4,
|
||||||
|
/* BPL */ 5,
|
||||||
|
/* SIL */ 6,
|
||||||
|
/* DIL */ 7,
|
||||||
|
/* R8B */ 8,
|
||||||
|
/* R9B */ 9,
|
||||||
|
/* R10B */ 10,
|
||||||
|
/* R11B */ 11,
|
||||||
|
/* R12B */ 12,
|
||||||
|
/* R13B */ 13,
|
||||||
|
/* R14B */ 14,
|
||||||
|
/* R15B */ 15,
|
||||||
|
};
|
||||||
|
|
||||||
|
for (ZyanUSize i = 0; i < ZYAN_ARRAY_LENGTH(REGISTER_MAP); ++i)
|
||||||
|
{
|
||||||
|
if ((reg >= REGISTER_MAP[i].lo) && (reg <= REGISTER_MAP[i].hi))
|
||||||
|
{
|
||||||
|
const ZydisRegisterClass reg_class = REGISTER_MAP[i].class;
|
||||||
|
if ((reg_class == ZYDIS_REGCLASS_GPR64) && (mode != ZYDIS_MACHINE_MODE_LONG_64))
|
||||||
|
{
|
||||||
|
return ZYDIS_REGISTER_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanU8 reg_id = (ZyanU8)(reg - REGISTER_MAP[reg_class].lo);
|
||||||
|
switch (reg_class)
|
||||||
|
{
|
||||||
|
case ZYDIS_REGCLASS_GPR8:
|
||||||
|
reg_id = GPR8_MAPPING[reg_id];
|
||||||
|
ZYAN_FALLTHROUGH;
|
||||||
|
case ZYDIS_REGCLASS_GPR16:
|
||||||
|
case ZYDIS_REGCLASS_GPR32:
|
||||||
|
case ZYDIS_REGCLASS_GPR64:
|
||||||
|
switch (mode)
|
||||||
|
{
|
||||||
|
case ZYDIS_MACHINE_MODE_LONG_64:
|
||||||
|
return REGISTER_MAP[ZYDIS_REGCLASS_GPR64].lo + reg_id;
|
||||||
|
case ZYDIS_MACHINE_MODE_LONG_COMPAT_32:
|
||||||
|
case ZYDIS_MACHINE_MODE_LEGACY_32:
|
||||||
|
return REGISTER_MAP[ZYDIS_REGCLASS_GPR32].lo + reg_id;
|
||||||
|
case ZYDIS_MACHINE_MODE_LONG_COMPAT_16:
|
||||||
|
case ZYDIS_MACHINE_MODE_LEGACY_16:
|
||||||
|
case ZYDIS_MACHINE_MODE_REAL_16:
|
||||||
|
return REGISTER_MAP[ZYDIS_REGCLASS_GPR16].lo + reg_id;
|
||||||
|
default:
|
||||||
|
return ZYDIS_REGISTER_NONE;
|
||||||
|
}
|
||||||
|
case ZYDIS_REGCLASS_XMM:
|
||||||
|
case ZYDIS_REGCLASS_YMM:
|
||||||
|
case ZYDIS_REGCLASS_ZMM:
|
||||||
|
#if defined(ZYDIS_DISABLE_AVX512) && defined(ZYDIS_DISABLE_KNC)
|
||||||
|
return REGISTER_MAP[ZYDIS_REGCLASS_YMM].lo + reg_id;
|
||||||
|
#else
|
||||||
|
return REGISTER_MAP[ZYDIS_REGCLASS_ZMM].lo + reg_id;
|
||||||
|
#endif
|
||||||
|
default:
|
||||||
|
return ZYDIS_REGISTER_NONE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYDIS_REGISTER_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* ZydisRegisterGetString(ZydisRegister reg)
|
||||||
|
{
|
||||||
|
if ((ZyanUSize)reg >= ZYAN_ARRAY_LENGTH(STR_REGISTER))
|
||||||
|
{
|
||||||
|
return ZYAN_NULL;
|
||||||
|
}
|
||||||
|
return STR_REGISTER[reg].data;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ZydisShortString* ZydisRegisterGetStringWrapped(ZydisRegister reg)
|
||||||
|
{
|
||||||
|
if ((ZyanUSize)reg >= ZYAN_ARRAY_LENGTH(STR_REGISTER))
|
||||||
|
{
|
||||||
|
return ZYAN_NULL;
|
||||||
|
}
|
||||||
|
return &STR_REGISTER[reg];
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Register class */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZydisRegisterWidth ZydisRegisterClassGetWidth(ZydisMachineMode mode,
|
||||||
|
ZydisRegisterClass register_class)
|
||||||
|
{
|
||||||
|
if ((ZyanUSize)register_class < ZYAN_ARRAY_LENGTH(REGISTER_MAP))
|
||||||
|
{
|
||||||
|
return (mode == ZYDIS_MACHINE_MODE_LONG_64) ?
|
||||||
|
REGISTER_MAP[register_class].width64 : REGISTER_MAP[register_class].width;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
187
src/SharedData.c
Normal file
187
src/SharedData.c
Normal file
|
@ -0,0 +1,187 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/Internal/SharedData.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Data tables */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Instruction definitions */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#ifdef ZYDIS_MINIMAL_MODE
|
||||||
|
# define ZYDIS_NOTMIN(x)
|
||||||
|
#else
|
||||||
|
# define ZYDIS_NOTMIN(x) , x
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <Generated/InstructionDefinitions.inc>
|
||||||
|
|
||||||
|
#undef ZYDIS_NOTMIN
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operand definitions */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#define ZYDIS_OPERAND_DEFINITION(type, encoding, access) \
|
||||||
|
{ type, encoding, access }
|
||||||
|
|
||||||
|
#include <Generated/OperandDefinitions.inc>
|
||||||
|
|
||||||
|
#undef ZYDIS_OPERAND_DEFINITION
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Accessed CPU flags */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#include <Generated/AccessedFlags.inc>
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Instruction definition */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
void ZydisGetInstructionDefinition(ZydisInstructionEncoding encoding, ZyanU16 id,
|
||||||
|
const ZydisInstructionDefinition** definition)
|
||||||
|
{
|
||||||
|
switch (encoding)
|
||||||
|
{
|
||||||
|
case ZYDIS_INSTRUCTION_ENCODING_LEGACY:
|
||||||
|
*definition = (ZydisInstructionDefinition*)&ISTR_DEFINITIONS_LEGACY[id];
|
||||||
|
break;
|
||||||
|
case ZYDIS_INSTRUCTION_ENCODING_3DNOW:
|
||||||
|
*definition = (ZydisInstructionDefinition*)&ISTR_DEFINITIONS_3DNOW[id];
|
||||||
|
break;
|
||||||
|
case ZYDIS_INSTRUCTION_ENCODING_XOP:
|
||||||
|
*definition = (ZydisInstructionDefinition*)&ISTR_DEFINITIONS_XOP[id];
|
||||||
|
break;
|
||||||
|
case ZYDIS_INSTRUCTION_ENCODING_VEX:
|
||||||
|
*definition = (ZydisInstructionDefinition*)&ISTR_DEFINITIONS_VEX[id];
|
||||||
|
break;
|
||||||
|
#ifndef ZYDIS_DISABLE_AVX512
|
||||||
|
case ZYDIS_INSTRUCTION_ENCODING_EVEX:
|
||||||
|
*definition = (ZydisInstructionDefinition*)&ISTR_DEFINITIONS_EVEX[id];
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
#ifndef ZYDIS_DISABLE_KNC
|
||||||
|
case ZYDIS_INSTRUCTION_ENCODING_MVEX:
|
||||||
|
*definition = (ZydisInstructionDefinition*)&ISTR_DEFINITIONS_MVEX[id];
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
default:
|
||||||
|
ZYAN_UNREACHABLE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Operand definition */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
ZyanU8 ZydisGetOperandDefinitions(const ZydisInstructionDefinition* definition,
|
||||||
|
const ZydisOperandDefinition** operand)
|
||||||
|
{
|
||||||
|
if (definition->operand_count == 0)
|
||||||
|
{
|
||||||
|
*operand = ZYAN_NULL;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
ZYAN_ASSERT(definition->operand_reference != 0xFFFF);
|
||||||
|
*operand = &OPERAND_DEFINITIONS[definition->operand_reference];
|
||||||
|
return definition->operand_count;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Element info */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
void ZydisGetElementInfo(ZydisInternalElementType element, ZydisElementType* type,
|
||||||
|
ZydisElementSize* size)
|
||||||
|
{
|
||||||
|
static const struct
|
||||||
|
{
|
||||||
|
ZydisElementType type;
|
||||||
|
ZydisElementSize size;
|
||||||
|
} lookup[ZYDIS_IELEMENT_TYPE_MAX_VALUE + 1] =
|
||||||
|
{
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_INVALID , 0 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_INVALID , 0 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_STRUCT , 0 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_INT , 0 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_UINT , 0 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_INT , 1 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_INT , 8 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_INT , 16 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_INT , 32 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_INT , 64 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_UINT , 8 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_UINT , 16 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_UINT , 32 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_UINT , 64 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_UINT , 128 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_UINT , 256 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_FLOAT16 , 16 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_FLOAT32 , 32 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_FLOAT64 , 64 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_FLOAT80 , 80 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_LONGBCD , 80 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_CC , 3 },
|
||||||
|
{ ZYDIS_ELEMENT_TYPE_CC , 5 }
|
||||||
|
};
|
||||||
|
|
||||||
|
ZYAN_ASSERT(element < ZYAN_ARRAY_LENGTH(lookup));
|
||||||
|
|
||||||
|
*type = lookup[element].type;
|
||||||
|
*size = lookup[element].size;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Accessed CPU flags */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#ifndef ZYDIS_MINIMAL_MODE
|
||||||
|
ZyanBool ZydisGetAccessedFlags(const ZydisInstructionDefinition* definition,
|
||||||
|
const ZydisAccessedFlags** flags)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(definition->flags_reference < ZYAN_ARRAY_LENGTH(ACCESSED_FLAGS));
|
||||||
|
*flags = &ACCESSED_FLAGS[definition->flags_reference];
|
||||||
|
return (definition->flags_reference != 0);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
362
src/String.c
Normal file
362
src/String.c
Normal file
|
@ -0,0 +1,362 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd, Joel Hoener
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/Internal/String.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Constants */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Defines */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#define ZYDIS_MAXCHARS_DEC_32 10
|
||||||
|
#define ZYDIS_MAXCHARS_DEC_64 20
|
||||||
|
#define ZYDIS_MAXCHARS_HEX_32 8
|
||||||
|
#define ZYDIS_MAXCHARS_HEX_64 16
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Lookup Tables */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
static const char* const DECIMAL_LOOKUP =
|
||||||
|
"00010203040506070809"
|
||||||
|
"10111213141516171819"
|
||||||
|
"20212223242526272829"
|
||||||
|
"30313233343536373839"
|
||||||
|
"40414243444546474849"
|
||||||
|
"50515253545556575859"
|
||||||
|
"60616263646566676869"
|
||||||
|
"70717273747576777879"
|
||||||
|
"80818283848586878889"
|
||||||
|
"90919293949596979899";
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Internal Functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Decimal */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#if defined(ZYAN_X86) || defined(ZYAN_ARM) || defined(ZYAN_EMSCRIPTEN)
|
||||||
|
ZyanStatus ZydisStringAppendDecU32(ZyanString* string, ZyanU32 value, ZyanU8 padding_length)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(string);
|
||||||
|
ZYAN_ASSERT(!string->vector.allocator);
|
||||||
|
|
||||||
|
char buffer[ZYDIS_MAXCHARS_DEC_32];
|
||||||
|
char *buffer_end = &buffer[ZYDIS_MAXCHARS_DEC_32];
|
||||||
|
char *buffer_write_pointer = buffer_end;
|
||||||
|
while (value >= 100)
|
||||||
|
{
|
||||||
|
const ZyanU32 value_old = value;
|
||||||
|
buffer_write_pointer -= 2;
|
||||||
|
value /= 100;
|
||||||
|
ZYAN_MEMCPY(buffer_write_pointer, &DECIMAL_LOOKUP[(value_old - (value * 100)) * 2], 2);
|
||||||
|
}
|
||||||
|
buffer_write_pointer -= 2;
|
||||||
|
ZYAN_MEMCPY(buffer_write_pointer, &DECIMAL_LOOKUP[value * 2], 2);
|
||||||
|
|
||||||
|
const ZyanUSize offset_odd = (ZyanUSize)(value < 10);
|
||||||
|
const ZyanUSize length_number = buffer_end - buffer_write_pointer - offset_odd;
|
||||||
|
const ZyanUSize length_total = ZYAN_MAX(length_number, padding_length);
|
||||||
|
const ZyanUSize length_target = string->vector.size;
|
||||||
|
|
||||||
|
if (string->vector.size + length_total > string->vector.capacity)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanUSize offset_write = 0;
|
||||||
|
if (padding_length > length_number)
|
||||||
|
{
|
||||||
|
offset_write = padding_length - length_number;
|
||||||
|
ZYAN_MEMSET((char*)string->vector.data + length_target - 1, '0', offset_write);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_MEMCPY((char*)string->vector.data + length_target + offset_write - 1,
|
||||||
|
buffer_write_pointer + offset_odd, length_number);
|
||||||
|
string->vector.size = length_target + length_total;
|
||||||
|
ZYDIS_STRING_NULLTERMINATE(string);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
ZyanStatus ZydisStringAppendDecU64(ZyanString* string, ZyanU64 value, ZyanU8 padding_length)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(string);
|
||||||
|
ZYAN_ASSERT(!string->vector.allocator);
|
||||||
|
|
||||||
|
char buffer[ZYDIS_MAXCHARS_DEC_64];
|
||||||
|
char *buffer_end = &buffer[ZYDIS_MAXCHARS_DEC_64];
|
||||||
|
char *buffer_write_pointer = buffer_end;
|
||||||
|
while (value >= 100)
|
||||||
|
{
|
||||||
|
const ZyanU64 value_old = value;
|
||||||
|
buffer_write_pointer -= 2;
|
||||||
|
value /= 100;
|
||||||
|
ZYAN_MEMCPY(buffer_write_pointer, &DECIMAL_LOOKUP[(value_old - (value * 100)) * 2], 2);
|
||||||
|
}
|
||||||
|
buffer_write_pointer -= 2;
|
||||||
|
ZYAN_MEMCPY(buffer_write_pointer, &DECIMAL_LOOKUP[value * 2], 2);
|
||||||
|
|
||||||
|
const ZyanUSize offset_odd = (ZyanUSize)(value < 10);
|
||||||
|
const ZyanUSize length_number = buffer_end - buffer_write_pointer - offset_odd;
|
||||||
|
const ZyanUSize length_total = ZYAN_MAX(length_number, padding_length);
|
||||||
|
const ZyanUSize length_target = string->vector.size;
|
||||||
|
|
||||||
|
if (string->vector.size + length_total > string->vector.capacity)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanUSize offset_write = 0;
|
||||||
|
if (padding_length > length_number)
|
||||||
|
{
|
||||||
|
offset_write = padding_length - length_number;
|
||||||
|
ZYAN_MEMSET((char*)string->vector.data + length_target - 1, '0', offset_write);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_MEMCPY((char*)string->vector.data + length_target + offset_write - 1,
|
||||||
|
buffer_write_pointer + offset_odd, length_number);
|
||||||
|
string->vector.size = length_target + length_total;
|
||||||
|
ZYDIS_STRING_NULLTERMINATE(string);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Hexadecimal */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#if defined(ZYAN_X86) || defined(ZYAN_ARM) || defined(ZYAN_EMSCRIPTEN)
|
||||||
|
ZyanStatus ZydisStringAppendHexU32(ZyanString* string, ZyanU32 value, ZyanU8 padding_length,
|
||||||
|
ZyanBool uppercase)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(string);
|
||||||
|
ZYAN_ASSERT(!string->vector.allocator);
|
||||||
|
|
||||||
|
const ZyanUSize len = string->vector.size;
|
||||||
|
const ZyanUSize remaining = string->vector.capacity - string->vector.size;
|
||||||
|
|
||||||
|
if (remaining < (ZyanUSize)padding_length)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!value)
|
||||||
|
{
|
||||||
|
const ZyanU8 n = (padding_length ? padding_length : 1);
|
||||||
|
|
||||||
|
if (remaining < (ZyanUSize)n)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_MEMSET((char*)string->vector.data + len - 1, '0', n);
|
||||||
|
string->vector.size = len + n;
|
||||||
|
ZYDIS_STRING_NULLTERMINATE(string);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanU8 n = 0;
|
||||||
|
char* buffer = ZYAN_NULL;
|
||||||
|
for (ZyanI8 i = ZYDIS_MAXCHARS_HEX_32 - 1; i >= 0; --i)
|
||||||
|
{
|
||||||
|
const ZyanU8 v = (value >> i * 4) & 0x0F;
|
||||||
|
if (!n)
|
||||||
|
{
|
||||||
|
if (!v)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (remaining <= (ZyanU8)i)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
buffer = (char*)string->vector.data + len - 1;
|
||||||
|
if (padding_length > i)
|
||||||
|
{
|
||||||
|
n = padding_length - i - 1;
|
||||||
|
ZYAN_MEMSET(buffer, '0', n);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
if (uppercase)
|
||||||
|
{
|
||||||
|
buffer[n++] = "0123456789ABCDEF"[v];
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
buffer[n++] = "0123456789abcdef"[v];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
string->vector.size = len + n;
|
||||||
|
ZYDIS_STRING_NULLTERMINATE(string);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
ZyanStatus ZydisStringAppendHexU64(ZyanString* string, ZyanU64 value, ZyanU8 padding_length,
|
||||||
|
ZyanBool uppercase)
|
||||||
|
{
|
||||||
|
ZYAN_ASSERT(string);
|
||||||
|
ZYAN_ASSERT(!string->vector.allocator);
|
||||||
|
|
||||||
|
const ZyanUSize len = string->vector.size;
|
||||||
|
const ZyanUSize remaining = string->vector.capacity - string->vector.size;
|
||||||
|
|
||||||
|
if (remaining < (ZyanUSize)padding_length)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!value)
|
||||||
|
{
|
||||||
|
const ZyanU8 n = (padding_length ? padding_length : 1);
|
||||||
|
|
||||||
|
if (remaining < (ZyanUSize)n)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_MEMSET((char*)string->vector.data + len - 1, '0', n);
|
||||||
|
string->vector.size = len + n;
|
||||||
|
ZYDIS_STRING_NULLTERMINATE(string);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanU8 n = 0;
|
||||||
|
char* buffer = ZYAN_NULL;
|
||||||
|
for (ZyanI8 i = ((value & 0xFFFFFFFF00000000) ?
|
||||||
|
ZYDIS_MAXCHARS_HEX_64 : ZYDIS_MAXCHARS_HEX_32) - 1; i >= 0; --i)
|
||||||
|
{
|
||||||
|
const ZyanU8 v = (value >> i * 4) & 0x0F;
|
||||||
|
if (!n)
|
||||||
|
{
|
||||||
|
if (!v)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (remaining <= (ZyanU8)i)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
|
||||||
|
}
|
||||||
|
buffer = (char*)string->vector.data + len - 1;
|
||||||
|
if (padding_length > i)
|
||||||
|
{
|
||||||
|
n = padding_length - i - 1;
|
||||||
|
ZYAN_MEMSET(buffer, '0', n);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ZYAN_ASSERT(buffer);
|
||||||
|
if (uppercase)
|
||||||
|
{
|
||||||
|
buffer[n++] = "0123456789ABCDEF"[v];
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
buffer[n++] = "0123456789abcdef"[v];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
string->vector.size = len + n;
|
||||||
|
ZYDIS_STRING_NULLTERMINATE(string);
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Public Functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Formatting */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisStringAppendDecU(ZyanString* string, ZyanU64 value, ZyanU8 padding_length,
|
||||||
|
const ZyanStringView* prefix, const ZyanStringView* suffix)
|
||||||
|
{
|
||||||
|
if (prefix)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppend(string, prefix));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if defined(ZYAN_X64) || defined(ZYAN_AARCH64)
|
||||||
|
ZYAN_CHECK(ZydisStringAppendDecU64(string, value, padding_length));
|
||||||
|
#else
|
||||||
|
if (value & 0xFFFFFFFF00000000)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppendDecU64(string, value, padding_length));
|
||||||
|
}
|
||||||
|
ZYAN_CHECK(ZydisStringAppendDecU32(string, (ZyanU32)value, padding_length));
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (suffix)
|
||||||
|
{
|
||||||
|
return ZydisStringAppend(string, suffix);
|
||||||
|
}
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisStringAppendHexU(ZyanString* string, ZyanU64 value, ZyanU8 padding_length,
|
||||||
|
ZyanBool uppercase, const ZyanStringView* prefix, const ZyanStringView* suffix)
|
||||||
|
{
|
||||||
|
if (prefix)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppend(string, prefix));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if defined(ZYAN_X64) || defined(ZYAN_AARCH64)
|
||||||
|
ZYAN_CHECK(ZydisStringAppendHexU64(string, value, padding_length, uppercase));
|
||||||
|
#else
|
||||||
|
if (value & 0xFFFFFFFF00000000)
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppendHexU64(string, value, padding_length, uppercase));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ZYAN_CHECK(ZydisStringAppendHexU32(string, (ZyanU32)value, padding_length, uppercase));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (suffix)
|
||||||
|
{
|
||||||
|
return ZydisStringAppend(string, suffix);
|
||||||
|
}
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
368
src/Utils.c
Normal file
368
src/Utils.c
Normal file
|
@ -0,0 +1,368 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zycore/LibC.h>
|
||||||
|
#include <Zydis/Utils.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Address calculation */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
// Signed integer overflow is expected behavior in this function, for wrapping around the
|
||||||
|
// instruction pointer on jumps right at the end of the address space.
|
||||||
|
ZYAN_NO_SANITIZE("signed-integer-overflow")
|
||||||
|
ZyanStatus ZydisCalcAbsoluteAddress(const ZydisDecodedInstruction* instruction,
|
||||||
|
const ZydisDecodedOperand* operand, ZyanU64 runtime_address, ZyanU64* result_address)
|
||||||
|
{
|
||||||
|
if (!instruction || !operand || !result_address)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (operand->type)
|
||||||
|
{
|
||||||
|
case ZYDIS_OPERAND_TYPE_MEMORY:
|
||||||
|
if (!operand->mem.disp.has_displacement)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
if (operand->mem.base == ZYDIS_REGISTER_EIP)
|
||||||
|
{
|
||||||
|
*result_address = ((ZyanU32)runtime_address + instruction->length +
|
||||||
|
(ZyanU32)operand->mem.disp.value);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
if (operand->mem.base == ZYDIS_REGISTER_RIP)
|
||||||
|
{
|
||||||
|
*result_address = (ZyanU64)(runtime_address + instruction->length +
|
||||||
|
operand->mem.disp.value);
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
if ((operand->mem.base == ZYDIS_REGISTER_NONE) &&
|
||||||
|
(operand->mem.index == ZYDIS_REGISTER_NONE))
|
||||||
|
{
|
||||||
|
switch (instruction->address_width)
|
||||||
|
{
|
||||||
|
case 16:
|
||||||
|
*result_address = (ZyanU64)operand->mem.disp.value & 0x000000000000FFFF;
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
case 32:
|
||||||
|
*result_address = (ZyanU64)operand->mem.disp.value & 0x00000000FFFFFFFF;
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
case 64:
|
||||||
|
*result_address = (ZyanU64)operand->mem.disp.value;
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPERAND_TYPE_IMMEDIATE:
|
||||||
|
if (operand->imm.is_signed && operand->imm.is_relative)
|
||||||
|
{
|
||||||
|
*result_address = (ZyanU64)((ZyanI64)runtime_address + instruction->length +
|
||||||
|
operand->imm.value.s);
|
||||||
|
switch (instruction->machine_mode)
|
||||||
|
{
|
||||||
|
case ZYDIS_MACHINE_MODE_LONG_COMPAT_16:
|
||||||
|
case ZYDIS_MACHINE_MODE_LEGACY_16:
|
||||||
|
case ZYDIS_MACHINE_MODE_REAL_16:
|
||||||
|
case ZYDIS_MACHINE_MODE_LONG_COMPAT_32:
|
||||||
|
case ZYDIS_MACHINE_MODE_LEGACY_32:
|
||||||
|
if (operand->size == 16)
|
||||||
|
{
|
||||||
|
*result_address &= 0xFFFF;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case ZYDIS_MACHINE_MODE_LONG_64:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisCalcAbsoluteAddressEx(const ZydisDecodedInstruction* instruction,
|
||||||
|
const ZydisDecodedOperand* operand, ZyanU64 runtime_address,
|
||||||
|
const ZydisRegisterContext* register_context, ZyanU64* result_address)
|
||||||
|
{
|
||||||
|
// TODO: Test this with AGEN/MIB operands
|
||||||
|
// TODO: Add support for Gather/Scatter instructions
|
||||||
|
|
||||||
|
if (!instruction || !operand || !register_context || !result_address)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((operand->type != ZYDIS_OPERAND_TYPE_MEMORY) ||
|
||||||
|
((operand->mem.base == ZYDIS_REGISTER_NONE) &&
|
||||||
|
(operand->mem.index == ZYDIS_REGISTER_NONE)) ||
|
||||||
|
(operand->mem.base == ZYDIS_REGISTER_EIP) ||
|
||||||
|
(operand->mem.base == ZYDIS_REGISTER_RIP))
|
||||||
|
{
|
||||||
|
return ZydisCalcAbsoluteAddress(instruction, operand, runtime_address, result_address);
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanU64 value = operand->mem.disp.value;
|
||||||
|
if (operand->mem.base)
|
||||||
|
{
|
||||||
|
value += register_context->values[operand->mem.base];
|
||||||
|
}
|
||||||
|
if (operand->mem.index)
|
||||||
|
{
|
||||||
|
value += register_context->values[operand->mem.index] * operand->mem.scale;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (instruction->address_width)
|
||||||
|
{
|
||||||
|
case 16:
|
||||||
|
*result_address = value & 0x000000000000FFFF;
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
case 32:
|
||||||
|
*result_address = value & 0x00000000FFFFFFFF;
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
case 64:
|
||||||
|
*result_address = value;
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Accessed CPU flags */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisGetAccessedFlagsByAction(const ZydisDecodedInstruction* instruction,
|
||||||
|
ZydisCPUFlagAction action, ZydisCPUFlags* flags)
|
||||||
|
{
|
||||||
|
if (!instruction || !flags)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
*flags = 0;
|
||||||
|
for (ZyanUSize i = 0; i < ZYAN_ARRAY_LENGTH(instruction->accessed_flags); ++i)
|
||||||
|
{
|
||||||
|
if (instruction->accessed_flags[i].action == action)
|
||||||
|
{
|
||||||
|
*flags |= (1 << i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisGetAccessedFlagsRead(const ZydisDecodedInstruction* instruction,
|
||||||
|
ZydisCPUFlags* flags)
|
||||||
|
{
|
||||||
|
if (!instruction || !flags)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
*flags = instruction->cpu_flags_read;
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisGetAccessedFlagsWritten(const ZydisDecodedInstruction* instruction,
|
||||||
|
ZydisCPUFlags* flags)
|
||||||
|
{
|
||||||
|
if (!instruction || !flags)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
*flags = instruction->cpu_flags_written;
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
/* Instruction segments */
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ZyanStatus ZydisGetInstructionSegments(const ZydisDecodedInstruction* instruction,
|
||||||
|
ZydisInstructionSegments* segments)
|
||||||
|
{
|
||||||
|
if (!instruction || !segments)
|
||||||
|
{
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZYAN_MEMSET(segments, 0, sizeof(*segments));
|
||||||
|
|
||||||
|
// Legacy prefixes and `REX`
|
||||||
|
if (instruction->raw.prefix_count)
|
||||||
|
{
|
||||||
|
const ZyanU8 rex_offset = (instruction->attributes & ZYDIS_ATTRIB_HAS_REX) ? 1 : 0;
|
||||||
|
if (!rex_offset || (instruction->raw.prefix_count > 1))
|
||||||
|
{
|
||||||
|
segments->segments[segments->count ].type = ZYDIS_INSTR_SEGMENT_PREFIXES;
|
||||||
|
segments->segments[segments->count ].offset = 0;
|
||||||
|
segments->segments[segments->count++].size =
|
||||||
|
instruction->raw.prefix_count - rex_offset;
|
||||||
|
}
|
||||||
|
if (rex_offset)
|
||||||
|
{
|
||||||
|
segments->segments[segments->count ].type = ZYDIS_INSTR_SEGMENT_REX;
|
||||||
|
segments->segments[segments->count ].offset =
|
||||||
|
instruction->raw.prefix_count - rex_offset;
|
||||||
|
segments->segments[segments->count++].size = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Encoding prefixes
|
||||||
|
ZydisInstructionSegment segment_type = ZYDIS_INSTR_SEGMENT_NONE;
|
||||||
|
ZyanU8 segment_offset = 0;
|
||||||
|
ZyanU8 segment_size = 0;
|
||||||
|
switch (instruction->encoding)
|
||||||
|
{
|
||||||
|
case ZYDIS_INSTRUCTION_ENCODING_XOP:
|
||||||
|
segment_type = ZYDIS_INSTR_SEGMENT_XOP;
|
||||||
|
segment_offset = instruction->raw.xop.offset;
|
||||||
|
segment_size = 3;
|
||||||
|
break;
|
||||||
|
case ZYDIS_INSTRUCTION_ENCODING_VEX:
|
||||||
|
segment_type = ZYDIS_INSTR_SEGMENT_VEX;
|
||||||
|
segment_offset = instruction->raw.vex.offset;
|
||||||
|
segment_size = instruction->raw.vex.size;
|
||||||
|
break;
|
||||||
|
case ZYDIS_INSTRUCTION_ENCODING_EVEX:
|
||||||
|
segment_type = ZYDIS_INSTR_SEGMENT_EVEX;
|
||||||
|
segment_offset = instruction->raw.evex.offset;
|
||||||
|
segment_size = 4;
|
||||||
|
break;
|
||||||
|
case ZYDIS_INSTRUCTION_ENCODING_MVEX:
|
||||||
|
segment_type = ZYDIS_INSTR_SEGMENT_MVEX;
|
||||||
|
segment_offset = instruction->raw.mvex.offset;
|
||||||
|
segment_size = 4;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (segment_type)
|
||||||
|
{
|
||||||
|
segments->segments[segments->count ].type = segment_type;
|
||||||
|
segments->segments[segments->count ].offset = segment_offset;
|
||||||
|
segments->segments[segments->count++].size = segment_size;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Opcode
|
||||||
|
segment_size = 1;
|
||||||
|
if ((instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_LEGACY) ||
|
||||||
|
(instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_3DNOW))
|
||||||
|
{
|
||||||
|
switch (instruction->opcode_map)
|
||||||
|
{
|
||||||
|
case ZYDIS_OPCODE_MAP_DEFAULT:
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPCODE_MAP_0F:
|
||||||
|
ZYAN_FALLTHROUGH;
|
||||||
|
case ZYDIS_OPCODE_MAP_0F0F:
|
||||||
|
segment_size = 2;
|
||||||
|
break;
|
||||||
|
case ZYDIS_OPCODE_MAP_0F38:
|
||||||
|
ZYAN_FALLTHROUGH;
|
||||||
|
case ZYDIS_OPCODE_MAP_0F3A:
|
||||||
|
segment_size = 3;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
ZYAN_UNREACHABLE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
segments->segments[segments->count ].type = ZYDIS_INSTR_SEGMENT_OPCODE;
|
||||||
|
if (segments->count)
|
||||||
|
{
|
||||||
|
segments->segments[segments->count].offset =
|
||||||
|
segments->segments[segments->count - 1].offset +
|
||||||
|
segments->segments[segments->count - 1].size;
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
segments->segments[segments->count].offset = 0;
|
||||||
|
}
|
||||||
|
segments->segments[segments->count++].size = segment_size;
|
||||||
|
|
||||||
|
// ModRM
|
||||||
|
if (instruction->attributes & ZYDIS_ATTRIB_HAS_MODRM)
|
||||||
|
{
|
||||||
|
segments->segments[segments->count ].type = ZYDIS_INSTR_SEGMENT_MODRM;
|
||||||
|
segments->segments[segments->count ].offset = instruction->raw.modrm.offset;
|
||||||
|
segments->segments[segments->count++].size = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// SIB
|
||||||
|
if (instruction->attributes & ZYDIS_ATTRIB_HAS_SIB)
|
||||||
|
{
|
||||||
|
segments->segments[segments->count ].type = ZYDIS_INSTR_SEGMENT_SIB;
|
||||||
|
segments->segments[segments->count ].offset = instruction->raw.sib.offset;
|
||||||
|
segments->segments[segments->count++].size = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Displacement
|
||||||
|
if (instruction->raw.disp.size)
|
||||||
|
{
|
||||||
|
segments->segments[segments->count ].type = ZYDIS_INSTR_SEGMENT_DISPLACEMENT;
|
||||||
|
segments->segments[segments->count ].offset = instruction->raw.disp.offset;
|
||||||
|
segments->segments[segments->count++].size = instruction->raw.disp.size / 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Immediates
|
||||||
|
for (ZyanU8 i = 0; i < 2; ++i)
|
||||||
|
{
|
||||||
|
if (instruction->raw.imm[i].size)
|
||||||
|
{
|
||||||
|
segments->segments[segments->count ].type = ZYDIS_INSTR_SEGMENT_IMMEDIATE;
|
||||||
|
segments->segments[segments->count ].offset = instruction->raw.imm[i].offset;
|
||||||
|
segments->segments[segments->count++].size = instruction->raw.imm[i].size / 8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (instruction->encoding == ZYDIS_INSTRUCTION_ENCODING_3DNOW)
|
||||||
|
{
|
||||||
|
segments->segments[segments->count].type = ZYDIS_INSTR_SEGMENT_OPCODE;
|
||||||
|
segments->segments[segments->count].offset = instruction->length -1;
|
||||||
|
segments->segments[segments->count++].size = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ZYAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
73
src/Zydis.c
Normal file
73
src/Zydis.c
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
/***************************************************************************************************
|
||||||
|
|
||||||
|
Zyan Disassembler Library (Zydis)
|
||||||
|
|
||||||
|
Original Author : Florian Bernd
|
||||||
|
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
|
||||||
|
***************************************************************************************************/
|
||||||
|
|
||||||
|
#include <Zydis/Zydis.h>
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
||||||
|
/* Exported functions */
|
||||||
|
/* ============================================================================================== */
|
||||||
|
|
||||||
|
ZyanU64 ZydisGetVersion(void)
|
||||||
|
{
|
||||||
|
return ZYDIS_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
ZyanStatus ZydisIsFeatureEnabled(ZydisFeature feature)
|
||||||
|
{
|
||||||
|
switch (feature)
|
||||||
|
{
|
||||||
|
case ZYDIS_FEATURE_DECODER:
|
||||||
|
#ifndef ZYDIS_DISABLE_DECODER
|
||||||
|
return ZYAN_STATUS_TRUE;
|
||||||
|
#else
|
||||||
|
return ZYAN_STATUS_FALSE;
|
||||||
|
#endif
|
||||||
|
case ZYDIS_FEATURE_FORMATTER:
|
||||||
|
#ifndef ZYDIS_DISABLE_FORMATTER
|
||||||
|
return ZYAN_STATUS_TRUE;
|
||||||
|
#else
|
||||||
|
return ZYAN_STATUS_FALSE;
|
||||||
|
#endif
|
||||||
|
case ZYDIS_FEATURE_AVX512:
|
||||||
|
#ifndef ZYDIS_DISABLE_AVX512
|
||||||
|
return ZYAN_STATUS_TRUE;
|
||||||
|
#else
|
||||||
|
return ZYAN_STATUS_FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
case ZYDIS_FEATURE_KNC:
|
||||||
|
#ifndef ZYDIS_DISABLE_KNC
|
||||||
|
return ZYAN_STATUS_TRUE;
|
||||||
|
#else
|
||||||
|
return ZYAN_STATUS_FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
default:
|
||||||
|
return ZYAN_STATUS_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================================================== */
|
1
tests/cases/3dnow_000.in
Normal file
1
tests/cases/3dnow_000.in
Normal file
|
@ -0,0 +1 @@
|
||||||
|
-64 0f0f3797
|
37
tests/cases/3dnow_000.out
Normal file
37
tests/cases/3dnow_000.out
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
== [ BASIC ] ============================================================================================
|
||||||
|
MNEMONIC: pfsqrt [ENC: 3DNOW, MAP: 0F0F, OPC: 0x97]
|
||||||
|
LENGTH: 4
|
||||||
|
SSZ: 64
|
||||||
|
EOSZ: 32
|
||||||
|
EASZ: 64
|
||||||
|
CATEGORY: AMD3DNOW
|
||||||
|
ISA-SET: AMD3DNOW
|
||||||
|
ISA-EXT: AMD3DNOW
|
||||||
|
EXCEPTIONS: NONE
|
||||||
|
ATTRIBUTES: HAS_MODRM
|
||||||
|
|
||||||
|
== [ OPERANDS ] ============================================================================================
|
||||||
|
## TYPE VISIBILITY ACTION ENCODING SIZE NELEM ELEMSZ ELEMTYPE VALUE
|
||||||
|
-- --------- ---------- ------ ------------ ---- ----- ------ -------- ---------------------------
|
||||||
|
0 REGISTER EXPLICIT RW MODRM_REG 64 1 64 INT mm6
|
||||||
|
1 MEMORY EXPLICIT R MODRM_RM 64 1 64 INT TYPE = MEM
|
||||||
|
SEG = ds
|
||||||
|
BASE = rdi
|
||||||
|
INDEX = none
|
||||||
|
SCALE = 0
|
||||||
|
DISP = 0x0000000000000000
|
||||||
|
-- --------- ---------- ------ ------------ ---- ----- ------ -------- ---------------------------
|
||||||
|
|
||||||
|
== [ ATT ] ============================================================================================
|
||||||
|
ABSOLUTE: pfsqrt (%rdi), %mm6
|
||||||
|
RELATIVE: pfsqrt (%rdi), %mm6
|
||||||
|
|
||||||
|
== [ INTEL ] ============================================================================================
|
||||||
|
ABSOLUTE: pfsqrt mm6, qword ptr ds:[rdi]
|
||||||
|
RELATIVE: pfsqrt mm6, qword ptr ds:[rdi]
|
||||||
|
|
||||||
|
== [ SEGMENTS ] ============================================================================================
|
||||||
|
0F 0F 37 97
|
||||||
|
: : :..OPCODE
|
||||||
|
: :..MODRM
|
||||||
|
:..OPCODE
|
1
tests/cases/3dnow_001.in
Normal file
1
tests/cases/3dnow_001.in
Normal file
|
@ -0,0 +1 @@
|
||||||
|
-64 0f0f93b3ee99f190
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue