parent
3c2a65f4a8
commit
845f93375d
@ -0,0 +1,388 @@
|
|||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
##
|
||||||
|
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.rsuser
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
|
*.userprefs
|
||||||
|
|
||||||
|
# Mono auto generated files
|
||||||
|
mono_crash.*
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
[Ww][Ii][Nn]32/
|
||||||
|
[Aa][Rr][Mm]/
|
||||||
|
[Aa][Rr][Mm]64/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
[Ll]og/
|
||||||
|
[Ll]ogs/
|
||||||
|
|
||||||
|
# Visual Studio 2015/2017 cache/options directory
|
||||||
|
.vs/
|
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
|
#wwwroot/
|
||||||
|
|
||||||
|
# Visual Studio 2017 auto generated files
|
||||||
|
Generated\ Files/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
# NUnit
|
||||||
|
*.VisualState.xml
|
||||||
|
TestResult.xml
|
||||||
|
nunit-*.xml
|
||||||
|
|
||||||
|
# Build Results of an ATL Project
|
||||||
|
[Dd]ebugPS/
|
||||||
|
[Rr]eleasePS/
|
||||||
|
dlldata.c
|
||||||
|
|
||||||
|
# Benchmark Results
|
||||||
|
BenchmarkDotNet.Artifacts/
|
||||||
|
|
||||||
|
# .NET Core
|
||||||
|
project.lock.json
|
||||||
|
project.fragment.lock.json
|
||||||
|
artifacts/
|
||||||
|
|
||||||
|
# ASP.NET Scaffolding
|
||||||
|
ScaffoldingReadMe.txt
|
||||||
|
|
||||||
|
# StyleCop
|
||||||
|
StyleCopReport.xml
|
||||||
|
|
||||||
|
# Files built by Visual Studio
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*_h.h
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.iobj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.ipdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*_wpftmp.csproj
|
||||||
|
*.log
|
||||||
|
*.tlog
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.svclog
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Chutzpah Test files
|
||||||
|
_Chutzpah*
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opendb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
*.VC.db
|
||||||
|
*.VC.VC.opendb
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
*.sap
|
||||||
|
|
||||||
|
# Visual Studio Trace Files
|
||||||
|
*.e2e
|
||||||
|
|
||||||
|
# TFS 2012 Local Workspace
|
||||||
|
$tf/
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
*.DotSettings.user
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# AxoCover is a Code Coverage Tool
|
||||||
|
.axoCover/*
|
||||||
|
!.axoCover/settings.json
|
||||||
|
|
||||||
|
# Coverlet is a free, cross platform Code Coverage Tool
|
||||||
|
coverage*.json
|
||||||
|
coverage*.xml
|
||||||
|
coverage*.info
|
||||||
|
|
||||||
|
# Visual Studio code coverage results
|
||||||
|
*.coverage
|
||||||
|
*.coveragexml
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
_NCrunch_*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
nCrunchTemp_*
|
||||||
|
|
||||||
|
# MightyMoose
|
||||||
|
*.mm.*
|
||||||
|
AutoTest.Net/
|
||||||
|
|
||||||
|
# Web workbench (sass)
|
||||||
|
.sass-cache/
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.azurePubxml
|
||||||
|
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||||
|
# but database connection strings (with potential passwords) will be unencrypted
|
||||||
|
*.pubxml
|
||||||
|
*.publishproj
|
||||||
|
|
||||||
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||||
|
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||||
|
# in these scripts will be unencrypted
|
||||||
|
PublishScripts/
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
*.nupkg
|
||||||
|
# NuGet Symbol Packages
|
||||||
|
*.snupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/[Pp]ackages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/[Pp]ackages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/[Pp]ackages/repositories.config
|
||||||
|
# NuGet v3's project.json files produces more ignorable files
|
||||||
|
*.nuget.props
|
||||||
|
*.nuget.targets
|
||||||
|
|
||||||
|
# Nuget personal access tokens and Credentials
|
||||||
|
nuget.config
|
||||||
|
|
||||||
|
# Microsoft Azure Build Output
|
||||||
|
csx/
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Microsoft Azure Emulator
|
||||||
|
ecf/
|
||||||
|
rcf/
|
||||||
|
|
||||||
|
# Windows Store app package directories and files
|
||||||
|
AppPackages/
|
||||||
|
BundleArtifacts/
|
||||||
|
Package.StoreAssociation.xml
|
||||||
|
_pkginfo.txt
|
||||||
|
*.appx
|
||||||
|
*.appxbundle
|
||||||
|
*.appxupload
|
||||||
|
|
||||||
|
# Visual Studio cache files
|
||||||
|
# files ending in .cache can be ignored
|
||||||
|
*.[Cc]ache
|
||||||
|
# but keep track of directories ending in .cache
|
||||||
|
!?*.[Cc]ache/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
ClientBin/
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.dbproj.schemaview
|
||||||
|
*.jfm
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
orleans.codegen.cs
|
||||||
|
|
||||||
|
# Including strong name files can present a security risk
|
||||||
|
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||||
|
#*.snk
|
||||||
|
|
||||||
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||||
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||||
|
#bower_components/
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file
|
||||||
|
# to a newer Visual Studio version. Backup files are not needed,
|
||||||
|
# because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
ServiceFabricBackup/
|
||||||
|
*.rptproj.bak
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
*.mdf
|
||||||
|
*.ldf
|
||||||
|
*.ndf
|
||||||
|
|
||||||
|
# Business Intelligence projects
|
||||||
|
*.rdl.data
|
||||||
|
*.bim.layout
|
||||||
|
*.bim_*.settings
|
||||||
|
*.rptproj.rsuser
|
||||||
|
*- [Bb]ackup.rdl
|
||||||
|
*- [Bb]ackup ([0-9]).rdl
|
||||||
|
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||||
|
|
||||||
|
# Microsoft Fakes
|
||||||
|
FakesAssemblies/
|
||||||
|
|
||||||
|
# GhostDoc plugin setting file
|
||||||
|
*.GhostDoc.xml
|
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Visual Studio 6 build log
|
||||||
|
*.plg
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file
|
||||||
|
*.opt
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||||
|
*.vbw
|
||||||
|
|
||||||
|
# Visual Studio LightSwitch build output
|
||||||
|
**/*.HTMLClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/ModelManifest.xml
|
||||||
|
**/*.Server/GeneratedArtifacts
|
||||||
|
**/*.Server/ModelManifest.xml
|
||||||
|
_Pvt_Extensions
|
||||||
|
|
||||||
|
# Paket dependency manager
|
||||||
|
.paket/paket.exe
|
||||||
|
paket-files/
|
||||||
|
|
||||||
|
# FAKE - F# Make
|
||||||
|
.fake/
|
||||||
|
|
||||||
|
# CodeRush personal settings
|
||||||
|
.cr/personal
|
||||||
|
|
||||||
|
# Python Tools for Visual Studio (PTVS)
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Cake - Uncomment if you are using it
|
||||||
|
# tools/**
|
||||||
|
# !tools/packages.config
|
||||||
|
|
||||||
|
# Tabs Studio
|
||||||
|
*.tss
|
||||||
|
|
||||||
|
# Telerik's JustMock configuration file
|
||||||
|
*.jmconfig
|
||||||
|
|
||||||
|
# BizTalk build output
|
||||||
|
*.btp.cs
|
||||||
|
*.btm.cs
|
||||||
|
*.odx.cs
|
||||||
|
*.xsd.cs
|
||||||
|
|
||||||
|
# OpenCover UI analysis results
|
||||||
|
OpenCover/
|
||||||
|
|
||||||
|
# Azure Stream Analytics local run output
|
||||||
|
ASALocalRun/
|
||||||
|
|
||||||
|
# MSBuild Binary and Structured Log
|
||||||
|
*.binlog
|
||||||
|
|
||||||
|
# NVidia Nsight GPU debugger configuration file
|
||||||
|
*.nvuser
|
||||||
|
|
||||||
|
# MFractors (Xamarin productivity tool) working folder
|
||||||
|
.mfractor/
|
||||||
|
|
||||||
|
# Local History for Visual Studio
|
||||||
|
.localhistory/
|
||||||
|
|
||||||
|
# BeatPulse healthcheck temp database
|
||||||
|
healthchecksdb
|
||||||
|
|
||||||
|
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||||
|
MigrationBackup/
|
||||||
|
|
||||||
|
# Ionide (cross platform F# VS Code tools) working folder
|
||||||
|
.ionide/
|
||||||
|
|
||||||
|
# Fody - auto-generated XML schema
|
||||||
|
FodyWeavers.xsd
|
||||||
|
|
||||||
|
# VS Code files for those working on multiple tools
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
*.code-workspace
|
||||||
|
|
||||||
|
# Local History for Visual Studio Code
|
||||||
|
.history/
|
||||||
|
|
||||||
|
# Windows Installer files from build outputs
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msix
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
# JetBrains Rider
|
||||||
|
.idea/
|
||||||
|
*.sln.iml
|
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "dependancies/vmprofiler"]
|
||||||
|
path = dependancies/vmprofiler
|
||||||
|
url = https://githacks.org/vmp2/vmprofiler
|
@ -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 */
|
@ -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 */
|
@ -0,0 +1,580 @@
|
|||||||
|
/**
|
||||||
|
* License: Apache 2.0 with LLVM Exception or GPL v3
|
||||||
|
*
|
||||||
|
* Author: Jesse Laning
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ARGPARSE_H
|
||||||
|
#define ARGPARSE_H
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cctype>
|
||||||
|
#include <cstring>
|
||||||
|
#include <iomanip>
|
||||||
|
#include <iostream>
|
||||||
|
#include <locale>
|
||||||
|
#include <map>
|
||||||
|
#include <numeric>
|
||||||
|
#include <sstream>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include <string>
|
||||||
|
#include <unordered_map>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
namespace argparse {
|
||||||
|
namespace detail {
|
||||||
|
static inline bool _not_space(int ch) { return !std::isspace(ch); }
|
||||||
|
static inline void _ltrim(std::string& s, bool (*f)(int) = _not_space) {
|
||||||
|
s.erase(s.begin(), std::find_if(s.begin(), s.end(), f));
|
||||||
|
}
|
||||||
|
static inline void _rtrim(std::string& s, bool (*f)(int) = _not_space) {
|
||||||
|
s.erase(std::find_if(s.rbegin(), s.rend(), f).base(), s.end());
|
||||||
|
}
|
||||||
|
static inline void _trim(std::string& s, bool (*f)(int) = _not_space) {
|
||||||
|
_ltrim(s, f);
|
||||||
|
_rtrim(s, f);
|
||||||
|
}
|
||||||
|
static inline std::string _ltrim_copy(std::string s,
|
||||||
|
bool (*f)(int) = _not_space) {
|
||||||
|
_ltrim(s, f);
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
static inline std::string _rtrim_copy(std::string s,
|
||||||
|
bool (*f)(int) = _not_space) {
|
||||||
|
_rtrim(s, f);
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
static inline std::string _trim_copy(std::string s,
|
||||||
|
bool (*f)(int) = _not_space) {
|
||||||
|
_trim(s, f);
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
template <typename InputIt>
|
||||||
|
static inline std::string _join(InputIt begin, InputIt end,
|
||||||
|
const std::string& separator = " ") {
|
||||||
|
std::ostringstream ss;
|
||||||
|
if (begin != end) {
|
||||||
|
ss << *begin++;
|
||||||
|
}
|
||||||
|
while (begin != end) {
|
||||||
|
ss << separator;
|
||||||
|
ss << *begin++;
|
||||||
|
}
|
||||||
|
return ss.str();
|
||||||
|
}
|
||||||
|
static inline bool _is_number(const std::string& arg) {
|
||||||
|
std::istringstream iss(arg);
|
||||||
|
float f;
|
||||||
|
iss >> std::noskipws >> f;
|
||||||
|
return iss.eof() && !iss.fail();
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int _find_equal(const std::string& s) {
|
||||||
|
for (size_t i = 0; i < s.length(); ++i) {
|
||||||
|
// if find graph symbol before equal, end search
|
||||||
|
// i.e. don't accept --asd)f=0 arguments
|
||||||
|
// but allow --asd_f and --asd-f arguments
|
||||||
|
if (std::ispunct(static_cast<int>(s[i]))) {
|
||||||
|
if (s[i] == '=') {
|
||||||
|
return static_cast<int>(i);
|
||||||
|
}
|
||||||
|
else if (s[i] == '_' || s[i] == '-') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline size_t _find_name_end(const std::string& s) {
|
||||||
|
size_t i;
|
||||||
|
for (i = 0; i < s.length(); ++i) {
|
||||||
|
if (std::ispunct(static_cast<int>(s[i]))) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace is_vector_impl {
|
||||||
|
template <typename T>
|
||||||
|
struct is_vector : std::false_type {};
|
||||||
|
template <typename... Args>
|
||||||
|
struct is_vector<std::vector<Args...>> : std::true_type {};
|
||||||
|
} // namespace is_vector_impl
|
||||||
|
|
||||||
|
// type trait to utilize the implementation type traits as well as decay the
|
||||||
|
// type
|
||||||
|
template <typename T>
|
||||||
|
struct is_vector {
|
||||||
|
static constexpr bool const value =
|
||||||
|
is_vector_impl::is_vector<typename std::decay<T>::type>::value;
|
||||||
|
};
|
||||||
|
} // namespace detail
|
||||||
|
|
||||||
|
class argument_parser_t {
|
||||||
|
private:
|
||||||
|
public:
|
||||||
|
class Argument;
|
||||||
|
|
||||||
|
class Result {
|
||||||
|
public:
|
||||||
|
Result() {}
|
||||||
|
Result(std::string err) noexcept : _error(true), _what(err) {}
|
||||||
|
|
||||||
|
operator bool() const { return _error; }
|
||||||
|
|
||||||
|
friend std::ostream& operator<<(std::ostream& os, const Result& dt);
|
||||||
|
|
||||||
|
const std::string& what() const { return _what; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool _error{ false };
|
||||||
|
std::string _what{};
|
||||||
|
};
|
||||||
|
|
||||||
|
class Argument {
|
||||||
|
public:
|
||||||
|
enum Position : int { LAST = -1, DONT_CARE = -2 };
|
||||||
|
enum Count : int { ANY = -1 };
|
||||||
|
|
||||||
|
Argument& name(const std::string& name) {
|
||||||
|
_names.push_back(name);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
Argument& names(std::vector<std::string> names) {
|
||||||
|
_names.insert(_names.end(), names.begin(), names.end());
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
Argument& description(const std::string& description) {
|
||||||
|
_desc = description;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
Argument& required(bool req) {
|
||||||
|
_required = req;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
Argument& position(int position) {
|
||||||
|
if (position != Position::LAST) {
|
||||||
|
// position + 1 because technically argument zero is the name of the
|
||||||
|
// executable
|
||||||
|
_position = position + 1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
_position = position;
|
||||||
|
}
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
Argument& count(int count) {
|
||||||
|
_count = count;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool found() const { return _found; }
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
typename std::enable_if<detail::is_vector<T>::value, T>::type get() {
|
||||||
|
T t = T();
|
||||||
|
typename T::value_type vt;
|
||||||
|
for (auto& s : _values) {
|
||||||
|
std::istringstream in(s);
|
||||||
|
in >> vt;
|
||||||
|
t.push_back(vt);
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
typename std::enable_if<!detail::is_vector<T>::value, T>::type get() {
|
||||||
|
std::istringstream in(get<std::string>());
|
||||||
|
T t = T();
|
||||||
|
in >> t >> std::ws;
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
Argument(const std::string& name, const std::string& desc,
|
||||||
|
bool required = false)
|
||||||
|
: _desc(desc), _required(required) {
|
||||||
|
_names.push_back(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
Argument() {}
|
||||||
|
|
||||||
|
friend class argument_parser_t;
|
||||||
|
int _position{ Position::DONT_CARE };
|
||||||
|
int _count{ Count::ANY };
|
||||||
|
std::vector<std::string> _names{};
|
||||||
|
std::string _desc{};
|
||||||
|
bool _found{ false };
|
||||||
|
bool _required{ false };
|
||||||
|
int _index{ -1 };
|
||||||
|
|
||||||
|
std::vector<std::string> _values{};
|
||||||
|
};
|
||||||
|
|
||||||
|
argument_parser_t(std::string bin, std::string desc)
|
||||||
|
: _bin(bin), _desc(desc) {}
|
||||||
|
|
||||||
|
Argument& add_argument() {
|
||||||
|
_arguments.push_back({});
|
||||||
|
_arguments.back()._index = static_cast<int>(_arguments.size()) - 1;
|
||||||
|
return _arguments.back();
|
||||||
|
}
|
||||||
|
|
||||||
|
Argument& add_argument(const std::string& name, const std::string& long_name,
|
||||||
|
const std::string& desc, const bool required = false) {
|
||||||
|
_arguments.push_back(Argument(name, desc, required));
|
||||||
|
_arguments.back()._names.push_back(long_name);
|
||||||
|
_arguments.back()._index = static_cast<int>(_arguments.size()) - 1;
|
||||||
|
return _arguments.back();
|
||||||
|
}
|
||||||
|
|
||||||
|
Argument& add_argument(const std::string& name, const std::string& desc,
|
||||||
|
const bool required = false) {
|
||||||
|
_arguments.push_back(Argument(name, desc, required));
|
||||||
|
_arguments.back()._index = static_cast<int>(_arguments.size()) - 1;
|
||||||
|
return _arguments.back();
|
||||||
|
}
|
||||||
|
|
||||||
|
void print_help(size_t count = 0, size_t page = 0) {
|
||||||
|
if (page * count > _arguments.size()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (page == 0) {
|
||||||
|
std::cout << "Usage: " << _bin;
|
||||||
|
if (_positional_arguments.empty()) {
|
||||||
|
std::cout << " [options...]" << std::endl;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
int current = 1;
|
||||||
|
for (auto& v : _positional_arguments) {
|
||||||
|
if (v.first != Argument::Position::LAST) {
|
||||||
|
for (; current < v.first; current++) {
|
||||||
|
std::cout << " [" << current << "]";
|
||||||
|
}
|
||||||
|
std::cout
|
||||||
|
<< " ["
|
||||||
|
<< detail::_ltrim_copy(
|
||||||
|
_arguments[static_cast<size_t>(v.second)]._names[0],
|
||||||
|
[](int c) -> bool { return c != static_cast<int>('-'); })
|
||||||
|
<< "]";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
auto it = _positional_arguments.find(Argument::Position::LAST);
|
||||||
|
if (it == _positional_arguments.end()) {
|
||||||
|
std::cout << " [options...]";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
std::cout
|
||||||
|
<< " [options...] ["
|
||||||
|
<< detail::_ltrim_copy(
|
||||||
|
_arguments[static_cast<size_t>(it->second)]._names[0],
|
||||||
|
[](int c) -> bool { return c != static_cast<int>('-'); })
|
||||||
|
<< "]";
|
||||||
|
}
|
||||||
|
std::cout << std::endl;
|
||||||
|
}
|
||||||
|
std::cout << "Options:" << std::endl;
|
||||||
|
}
|
||||||
|
if (count == 0) {
|
||||||
|
page = 0;
|
||||||
|
count = _arguments.size();
|
||||||
|
}
|
||||||
|
for (size_t i = page * count;
|
||||||
|
i < std::min<size_t>(page * count + count, _arguments.size()); i++) {
|
||||||
|
Argument& a = _arguments[i];
|
||||||
|
std::string name = a._names[0];
|
||||||
|
for (size_t n = 1; n < a._names.size(); ++n) {
|
||||||
|
name.append(", " + a._names[n]);
|
||||||
|
}
|
||||||
|
std::cout << " " << std::setw(23) << std::left << name << std::setw(23)
|
||||||
|
<< a._desc;
|
||||||
|
if (a._required) {
|
||||||
|
std::cout << " (Required)";
|
||||||
|
}
|
||||||
|
std::cout << std::endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Result parse(int argc, const char* argv[]) {
|
||||||
|
Result err;
|
||||||
|
if (argc > 1) {
|
||||||
|
// build name map
|
||||||
|
for (auto& a : _arguments) {
|
||||||
|
for (auto& n : a._names) {
|
||||||
|
std::string name = detail::_ltrim_copy(
|
||||||
|
n, [](int c) -> bool { return c != static_cast<int>('-'); });
|
||||||
|
if (_name_map.find(name) != _name_map.end()) {
|
||||||
|
return Result("Duplicate of argument name: " + n);
|
||||||
|
}
|
||||||
|
_name_map[name] = a._index;
|
||||||
|
}
|
||||||
|
if (a._position >= 0 || a._position == Argument::Position::LAST) {
|
||||||
|
_positional_arguments[a._position] = a._index;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
|
// parse
|
||||||
|
std::string current_arg;
|
||||||
|
size_t arg_len;
|
||||||
|
for (int argv_index = 1; argv_index < argc; ++argv_index) {
|
||||||
|
current_arg = std::string(argv[argv_index]);
|
||||||
|
arg_len = current_arg.length();
|
||||||
|
if (arg_len == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (_help_enabled && (current_arg == "-h" || current_arg == "--help")) {
|
||||||
|
_arguments[static_cast<size_t>(_name_map["help"])]._found = true;
|
||||||
|
}
|
||||||
|
else if (argv_index == argc - 1 &&
|
||||||
|
_positional_arguments.find(Argument::Position::LAST) !=
|
||||||
|
_positional_arguments.end()) {
|
||||||
|
err = _end_argument();
|
||||||
|
Result b = err;
|
||||||
|
err = _add_value(current_arg, Argument::Position::LAST);
|
||||||
|
if (b) {
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
if (err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (arg_len >= 2 &&
|
||||||
|
!detail::_is_number(current_arg)) { // ignores the case if
|
||||||
|
// the arg is just a -
|
||||||
|
// look for -a (short) or --arg (long) args
|
||||||
|
if (current_arg[0] == '-') {
|
||||||
|
err = _end_argument();
|
||||||
|
if (err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
// look for --arg (long) args
|
||||||
|
if (current_arg[1] == '-') {
|
||||||
|
err = _begin_argument(current_arg.substr(2), true, argv_index);
|
||||||
|
if (err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else { // short args
|
||||||
|
err = _begin_argument(current_arg.substr(1), false, argv_index);
|
||||||
|
if (err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else { // argument value
|
||||||
|
err = _add_value(current_arg, argv_index);
|
||||||
|
if (err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else { // argument value
|
||||||
|
err = _add_value(current_arg, argv_index);
|
||||||
|
if (err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (_help_enabled && exists("help")) {
|
||||||
|
return Result();
|
||||||
|
}
|
||||||
|
err = _end_argument();
|
||||||
|
if (err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
for (auto& p : _positional_arguments) {
|
||||||
|
Argument& a = _arguments[static_cast<size_t>(p.second)];
|
||||||
|
if (a._values.size() > 0 && a._values[0][0] == '-') {
|
||||||
|
std::string name = detail::_ltrim_copy(a._values[0], [](int c) -> bool {
|
||||||
|
return c != static_cast<int>('-');
|
||||||
|
});
|
||||||
|
if (_name_map.find(name) != _name_map.end()) {
|
||||||
|
if (a._position == Argument::Position::LAST) {
|
||||||
|
return Result(
|
||||||
|
"Poisitional argument expected at the end, but argument " +
|
||||||
|
a._values[0] + " found instead");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return Result("Poisitional argument expected in position " +
|
||||||
|
std::to_string(a._position) + ", but argument " +
|
||||||
|
a._values[0] + " found instead");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (auto& a : _arguments) {
|
||||||
|
if (a._required && !a._found) {
|
||||||
|
return Result("Required argument not found: " + a._names[0]);
|
||||||
|
}
|
||||||
|
if (a._position >= 0 && argc >= a._position && !a._found) {
|
||||||
|
return Result("Argument " + a._names[0] + " expected in position " +
|
||||||
|
std::to_string(a._position));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Result();
|
||||||
|
}
|
||||||
|
|
||||||
|
void enable_help() {
|
||||||
|
add_argument("-h", "--help", "Shows this page", false);
|
||||||
|
_help_enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool exists(const std::string& name) const {
|
||||||
|
std::string n = detail::_ltrim_copy(
|
||||||
|
name, [](int c) -> bool { return c != static_cast<int>('-'); });
|
||||||
|
auto it = _name_map.find(n);
|
||||||
|
if (it != _name_map.end()) {
|
||||||
|
return _arguments[static_cast<size_t>(it->second)]._found;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
T get(const std::string& name) {
|
||||||
|
auto t = _name_map.find(name);
|
||||||
|
if (t != _name_map.end()) {
|
||||||
|
return _arguments[static_cast<size_t>(t->second)].get<T>();
|
||||||
|
}
|
||||||
|
return T();
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
Result _begin_argument(const std::string& arg, bool longarg, int position) {
|
||||||
|
auto it = _positional_arguments.find(position);
|
||||||
|
if (it != _positional_arguments.end()) {
|
||||||
|
Result err = _end_argument();
|
||||||
|
Argument& a = _arguments[static_cast<size_t>(it->second)];
|
||||||
|
a._values.push_back((longarg ? "--" : "-") + arg);
|
||||||
|
a._found = true;
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
if (_current != -1) {
|
||||||
|
return Result("Current argument left open");
|
||||||
|
}
|
||||||
|
size_t name_end = detail::_find_name_end(arg);
|
||||||
|
std::string arg_name = arg.substr(0, name_end);
|
||||||
|
if (longarg) {
|
||||||
|
int equal_pos = detail::_find_equal(arg);
|
||||||
|
auto nmf = _name_map.find(arg_name);
|
||||||
|
if (nmf == _name_map.end()) {
|
||||||
|
return Result("Unrecognized command line option '" + arg_name + "'");
|
||||||
|
}
|
||||||
|
_current = nmf->second;
|
||||||
|
_arguments[static_cast<size_t>(nmf->second)]._found = true;
|
||||||
|
if (equal_pos == 0 ||
|
||||||
|
(equal_pos < 0 &&
|
||||||
|
arg_name.length() < arg.length())) { // malformed argument
|
||||||
|
return Result("Malformed argument: " + arg);
|
||||||
|
}
|
||||||
|
else if (equal_pos > 0) {
|
||||||
|
std::string arg_value = arg.substr(name_end + 1);
|
||||||
|
_add_value(arg_value, position);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Result r;
|
||||||
|
if (arg_name.length() == 1) {
|
||||||
|
return _begin_argument(arg, true, position);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
for (char& c : arg_name) {
|
||||||
|
r = _begin_argument(std::string(1, c), true, position);
|
||||||
|
if (r) {
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
r = _end_argument();
|
||||||
|
if (r) {
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Result();
|
||||||
|
}
|
||||||
|
|
||||||
|
Result _add_value(const std::string& value, int location) {
|
||||||
|
if (_current >= 0) {
|
||||||
|
Result err;
|
||||||
|
Argument& a = _arguments[static_cast<size_t>(_current)];
|
||||||
|
if (a._count >= 0 && static_cast<int>(a._values.size()) >= a._count) {
|
||||||
|
err = _end_argument();
|
||||||
|
if (err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
goto unnamed;
|
||||||
|
}
|
||||||
|
a._values.push_back(value);
|
||||||
|
if (a._count >= 0 && static_cast<int>(a._values.size()) >= a._count) {
|
||||||
|
err = _end_argument();
|
||||||
|
if (err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Result();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
unnamed:
|
||||||
|
auto it = _positional_arguments.find(location);
|
||||||
|
if (it != _positional_arguments.end()) {
|
||||||
|
Argument& a = _arguments[static_cast<size_t>(it->second)];
|
||||||
|
a._values.push_back(value);
|
||||||
|
a._found = true;
|
||||||
|
}
|
||||||
|
// TODO
|
||||||
|
return Result();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Result _end_argument() {
|
||||||
|
if (_current >= 0) {
|
||||||
|
Argument& a = _arguments[static_cast<size_t>(_current)];
|
||||||
|
_current = -1;
|
||||||
|
if (static_cast<int>(a._values.size()) < a._count) {
|
||||||
|
return Result("Too few arguments given for " + a._names[0]);
|
||||||
|
}
|
||||||
|
if (a._count >= 0) {
|
||||||
|
if (static_cast<int>(a._values.size()) > a._count) {
|
||||||
|
return Result("Too many arguments given for " + a._names[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Result();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool _help_enabled{ false };
|
||||||
|
int _current{ -1 };
|
||||||
|
std::string _bin{};
|
||||||
|
std::string _desc{};
|
||||||
|
std::vector<Argument> _arguments{};
|
||||||
|
std::map<int, int> _positional_arguments{};
|
||||||
|
std::map<std::string, int> _name_map{};
|
||||||
|
};
|
||||||
|
|
||||||
|
std::ostream& operator<<(std::ostream& os, const argument_parser_t::Result& r) {
|
||||||
|
os << r.what();
|
||||||
|
return os;
|
||||||
|
}
|
||||||
|
template <>
|
||||||
|
inline std::string argument_parser_t::Argument::get<std::string>() {
|
||||||
|
return detail::_join(_values.begin(), _values.end());
|
||||||
|
}
|
||||||
|
template <>
|
||||||
|
inline std::vector<std::string>
|
||||||
|
argument_parser_t::Argument::get<std::vector<std::string>>() {
|
||||||
|
return _values;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace argparse
|
||||||
|
#endif
|
After Width: | Height: | Size: 227 KiB |
@ -0,0 +1,3 @@
|
|||||||
|
// Icon Resource Definition
|
||||||
|
#define MAIN_ICON 102
|
||||||
|
MAIN_ICON ICON "icon.ico"
|
@ -0,0 +1,153 @@
|
|||||||
|
#include <iostream>
|
||||||
|
#include <Windows.h>
|
||||||
|
#include <fstream>
|
||||||
|
#include <filesystem>
|
||||||
|
#include <vmp2.hpp>
|
||||||
|
#include <vmctx.h>
|
||||||
|
#include <vm.h>
|
||||||
|
#include <cli-parser.hpp>
|
||||||
|
|
||||||
|
int __cdecl main(int argc, const char* argv[])
|
||||||
|
{
|
||||||
|
argparse::argument_parser_t parser(
|
||||||
|
"vmprofiler-cli", "virtual instruction pseudo code generator");
|
||||||
|
|
||||||
|
parser.add_argument()
|
||||||
|
.names({ "--bin", "--vmpbin" })
|
||||||
|
.description("unpacked binary protected with VMProtect 2")
|
||||||
|
.required(true);
|
||||||
|
|
||||||
|
parser.add_argument()
|
||||||
|
.names({ "--vmentry", "--entry" })
|
||||||
|
.description("rva to push prior to a vm_entry")
|
||||||
|
.required(true);
|
||||||
|
|
||||||
|
parser.add_argument()
|
||||||
|
.names({ "--imagebase", "--base" })
|
||||||
|
.description("image base from OptionalHeader::ImageBase")
|
||||||
|
.required(true);
|
||||||
|
|
||||||
|
parser.add_argument()
|
||||||
|
.names({ "--vmtrace", "--trace" })
|
||||||
|
.description("a vmp2 file generated by a vmtracer");
|
||||||
|
|
||||||
|
parser.enable_help();
|
||||||
|
auto err = parser.parse(argc, argv);
|
||||||
|
|
||||||
|
if (err)
|
||||||
|
{
|
||||||
|
std::cout << err << std::endl;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (parser.exists("help"))
|
||||||
|
{
|
||||||
|
parser.print_help();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
const auto module_base =
|
||||||
|
reinterpret_cast<std::uintptr_t>(
|
||||||
|
LoadLibraryExA(parser.get<std::string>("bin").c_str(),
|
||||||
|
NULL, DONT_RESOLVE_DLL_REFERENCES));
|
||||||
|
|
||||||
|
const auto vm_entry_ptr =
|
||||||
|
module_base + std::strtoull(
|
||||||
|
parser.get<std::string>("vmentry").c_str(), nullptr, 16);
|
||||||
|
|
||||||
|
const auto image_base = std::strtoull(
|
||||||
|
parser.get<std::string>("imagebase").c_str(), nullptr, 16);
|
||||||
|
|
||||||
|
zydis_routine_t vm_entry;
|
||||||
|
std::printf("> vm entry start = 0x%p\n", vm_entry_ptr);
|
||||||
|
|
||||||
|
if (!vm::util::flatten(vm_entry, vm_entry_ptr))
|
||||||
|
{
|
||||||
|
std::printf("> failed to flatten vm entry...\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
vm::util::deobfuscate(vm_entry);
|
||||||
|
std::printf("> flattened vm entry...\n");
|
||||||
|
std::printf("> deobfuscated vm entry...\n");
|
||||||
|
vm::util::print(vm_entry);
|
||||||
|
|
||||||
|
const auto vm_handler_table = vm::handler::table::get(vm_entry);
|
||||||
|
|
||||||
|
if (!vm_handler_table)
|
||||||
|
{
|
||||||
|
std::printf("> failed to locate vm handler table...\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::printf("> located vm handler table... at = 0x%p, rva = 0x%p\n", vm_handler_table,
|
||||||
|
(reinterpret_cast<std::uintptr_t>(vm_handler_table) - module_base) + image_base);
|
||||||
|
|
||||||
|
std::vector<vm::handler_t> vm_handlers;
|
||||||
|
if (!vm::handler::get_all(module_base, image_base, vm_entry, vm_handler_table, vm_handlers))
|
||||||
|
{
|
||||||
|
std::printf("> failed to get all vm handler meta data...\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (auto idx = 0u; idx < vm_handlers.size(); ++idx)
|
||||||
|
{
|
||||||
|
auto vm_handler = vm_handlers[idx];
|
||||||
|
std::printf("==========[vm handler %s, idx = %d, imm size = %d]========\n",
|
||||||
|
vm_handler.profile ? vm_handler.profile->name : "UNKNOWN", idx,
|
||||||
|
vm_handler.imm_size);
|
||||||
|
|
||||||
|
std::printf("================[vm handler instructions]==============\n");
|
||||||
|
vm::util::print(vm_handler.instrs);
|
||||||
|
|
||||||
|
if (vm_handler.imm_size)
|
||||||
|
{
|
||||||
|
std::printf("=================[vm handler transforms]===============\n");
|
||||||
|
for (const auto& [transform_type, transform] : vm_handler.transforms)
|
||||||
|
vm::util::print(transform);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::printf("=======================================================\n\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (parser.exists("vmtrace"))
|
||||||
|
{
|
||||||
|
std::ifstream vmp2_file(
|
||||||
|
parser.get<std::string>("vmtrace").c_str(), std::ios::binary);
|
||||||
|
|
||||||
|
const auto file_size =
|
||||||
|
std::filesystem::file_size(
|
||||||
|
parser.get<std::string>("vmtrace").c_str());
|
||||||
|
|
||||||
|
const auto file_header =
|
||||||
|
reinterpret_cast<vmp2::file_header*>(malloc(file_size));
|
||||||
|
|
||||||
|
vmp2_file.read((char*)file_header, file_size);
|
||||||
|
|
||||||
|
const auto entry_list =
|
||||||
|
reinterpret_cast<vmp2::entry_t*>(
|
||||||
|
reinterpret_cast<std::uintptr_t>(
|
||||||
|
file_header) + file_header->entry_offset);
|
||||||
|
|
||||||
|
std::printf("> module base = 0x%p\n", file_header->module_base);
|
||||||
|
std::getchar();
|
||||||
|
|
||||||
|
vm::vmctx_t vmctx(
|
||||||
|
file_header,
|
||||||
|
entry_list,
|
||||||
|
vm_handlers,
|
||||||
|
module_base,
|
||||||
|
image_base
|
||||||
|
);
|
||||||
|
|
||||||
|
for (auto [virt_instr, log_entry] = vmctx.step(); log_entry && !virt_instr.empty();
|
||||||
|
std::tie(virt_instr, log_entry) = vmctx.step())
|
||||||
|
{
|
||||||
|
std::printf("> %s (VSP[0] = 0x%p) (VSP[1] = 0x%p)\n",
|
||||||
|
virt_instr.c_str(), log_entry->vsp.qword[0], log_entry->vsp.qword[1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::printf("> finished...\n");
|
||||||
|
std::getchar();
|
||||||
|
}
|
@ -0,0 +1,129 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<VCProjectVersion>16.0</VCProjectVersion>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectGuid>{92e23fae-8aba-48e7-8771-9fd837ab8db7}</ProjectGuid>
|
||||||
|
<RootNamespace>vmprofiler</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||||
|
<ProjectName>vmprofiler-cli</ProjectName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="Shared">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<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)'=='Release|x64'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<IncludePath>$(ProjectDir)..\dependancies\vmprofiler\include\;$(ProjectDir);$(IncludePath)</IncludePath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
<LanguageStandard>stdcpplatest</LanguageStandard>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<AdditionalDependencies>$(ProjectDir)..\libs\*;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="main.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Image Include="icon.ico" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="icon.rc" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\transform.hpp" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\vm.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\vmctx.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\vmp2.hpp" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\vmprofiler.hpp" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\vmutils.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\ZycoreExportConfig.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Allocator.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\API\Memory.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\API\Process.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\API\Synchronization.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\API\Terminal.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\API\Thread.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\ArgParse.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Bitset.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Comparison.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Defines.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Format.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\LibC.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\List.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Object.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Status.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\String.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Types.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Vector.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Zycore.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\ZydisExportConfig.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Decoder.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\DecoderTypes.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Formatter.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\FormatterBuffer.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Generated\EnumInstructionCategory.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Generated\EnumISAExt.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Generated\EnumISASet.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Generated\EnumMnemonic.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Generated\EnumRegister.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\DecoderData.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\FormatterATT.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\FormatterBase.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\FormatterIntel.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\SharedData.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\String.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\MetaInfo.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Mnemonic.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Register.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\SharedTypes.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\ShortString.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Status.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Utils.h" />
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Zydis.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\dependancies\vmprofiler\dependancies\zydis\msvc\zydis\Zydis.vcxproj">
|
||||||
|
<Project>{88a23124-5640-35a0-b890-311d7a67a7d2}</Project>
|
||||||
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\dependancies\vmprofiler\src\vmprofiler.vcxproj">
|
||||||
|
<Project>{d0b6092a-9944-4f24-9486-4b7dae372619}</Project>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
@ -0,0 +1,198 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{faf4cf50-0bc3-4674-80ff-fec015d82127}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis">
|
||||||
|
<UniqueIdentifier>{4e807ab2-7dfc-48a3-a092-039f09dd57f4}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis\Generated">
|
||||||
|
<UniqueIdentifier>{a10f8ff1-7349-4a48-9061-facf5a836ee4}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zydis\Internal">
|
||||||
|
<UniqueIdentifier>{82afe7a2-4ff1-4e12-806d-297e714bad9c}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore">
|
||||||
|
<UniqueIdentifier>{a8d11bd2-d945-406f-aeb4-c28feb79a31d}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files\Zycore\API">
|
||||||
|
<UniqueIdentifier>{94c3a376-8f65-450f-9b11-740f95bef4d6}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="main.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Image Include="icon.ico">
|
||||||
|
<Filter>Resource Files</Filter>
|
||||||
|
</Image>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="icon.rc">
|
||||||
|
<Filter>Resource Files</Filter>
|
||||||
|
</ResourceCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\transform.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\vm.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\vmctx.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\vmp2.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\vmprofiler.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\vmutils.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\ZycoreExportConfig.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\ZydisExportConfig.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Decoder.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\DecoderTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Formatter.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\FormatterBuffer.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\MetaInfo.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Mnemonic.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Register.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\SharedTypes.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\ShortString.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Status.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Utils.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Zydis.h">
|
||||||
|
<Filter>Header Files\Zydis</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Generated\EnumInstructionCategory.h">
|
||||||
|
<Filter>Header Files\Zydis\Generated</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Generated\EnumISAExt.h">
|
||||||
|
<Filter>Header Files\Zydis\Generated</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Generated\EnumISASet.h">
|
||||||
|
<Filter>Header Files\Zydis\Generated</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Generated\EnumMnemonic.h">
|
||||||
|
<Filter>Header Files\Zydis\Generated</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Generated\EnumRegister.h">
|
||||||
|
<Filter>Header Files\Zydis\Generated</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\DecoderData.h">
|
||||||
|
<Filter>Header Files\Zydis\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\FormatterATT.h">
|
||||||
|
<Filter>Header Files\Zydis\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\FormatterBase.h">
|
||||||
|
<Filter>Header Files\Zydis\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\FormatterIntel.h">
|
||||||
|
<Filter>Header Files\Zydis\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\SharedData.h">
|
||||||
|
<Filter>Header Files\Zydis\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zydis\Internal\String.h">
|
||||||
|
<Filter>Header Files\Zydis\Internal</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Allocator.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\ArgParse.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Bitset.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Comparison.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Defines.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Format.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\LibC.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\List.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Object.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Status.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\String.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Types.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Vector.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\Zycore.h">
|
||||||
|
<Filter>Header Files\Zycore</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\API\Memory.h">
|
||||||
|
<Filter>Header Files\Zycore\API</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\API\Process.h">
|
||||||
|
<Filter>Header Files\Zycore\API</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\API\Synchronization.h">
|
||||||
|
<Filter>Header Files\Zycore\API</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\API\Terminal.h">
|
||||||
|
<Filter>Header Files\Zycore\API</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="dependancies\vmprofiler\include\Zycore\API\Thread.h">
|
||||||
|
<Filter>Header Files\Zycore\API</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
Loading…
Reference in new issue