You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
13 KiB
122 lines
13 KiB
3 years ago
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||
|
<title>VMProfiler: D:/vmprofiler-qt/dependencies/vmprofiler/include/vmctx.hpp Source File</title>
|
||
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="jquery.js"></script>
|
||
|
<script type="text/javascript" src="dynsections.js"></script>
|
||
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
||
|
<script type="text/javascript" src="search/search.js"></script>
|
||
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||
|
<div id="titlearea">
|
||
|
<table cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr style="height: 56px;">
|
||
|
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
|
||
|
<td id="projectalign" style="padding-left: 0.5em;">
|
||
|
<div id="projectname">VMProfiler
|
||
|
 <span id="projectnumber">v1.8</span>
|
||
|
</div>
|
||
|
<div id="projectbrief">vmprofiler is a c++ library which is used to statically analyze VMProtect 2 polymorphic virtual machines. This project is inherited in vmprofiler-qt, vmprofiler-cli, and vmemu.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<!-- end header part -->
|
||
|
<!-- Generated by Doxygen 1.9.1 -->
|
||
|
<script type="text/javascript">
|
||
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
|
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
||
|
/* @license-end */
|
||
|
</script>
|
||
|
<script type="text/javascript" src="menudata.js"></script>
|
||
|
<script type="text/javascript" src="menu.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
|
$(function() {
|
||
|
initMenu('',true,false,'search.php','Search');
|
||
|
$(document).ready(function() { init_search(); });
|
||
|
});
|
||
|
/* @license-end */</script>
|
||
|
<div id="main-nav"></div>
|
||
|
<!-- window showing the filter options -->
|
||
|
<div id="MSearchSelectWindow"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||
|
</div>
|
||
|
|
||
|
<!-- iframe showing the search results (closed by default) -->
|
||
|
<div id="MSearchResultsWindow">
|
||
|
<iframe src="javascript:void(0)" frameborder="0"
|
||
|
name="MSearchResults" id="MSearchResults">
|
||
|
</iframe>
|
||
|
</div>
|
||
|
|
||
|
<div id="nav-path" class="navpath">
|
||
|
<ul>
|
||
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
|
||
|
</div>
|
||
|
</div><!-- top -->
|
||
|
<div class="header">
|
||
|
<div class="headertitle">
|
||
|
<div class="title">vmctx.hpp</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
<a href="vmctx_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#pragma once</span></div>
|
||
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include <<a class="code" href="transform_8hpp.html">transform.hpp</a>></span></div>
|
||
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include <<a class="code" href="vmhandlers_8hpp.html">vmhandlers.hpp</a>></span></div>
|
||
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <<a class="code" href="vmp2_8hpp.html">vmp2.hpp</a>></span></div>
|
||
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  </div>
|
||
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="keyword">namespace </span><a class="code" href="namespacevm.html">vm</a></div>
|
||
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> {</div>
|
||
|
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classvm_1_1ctx__t.html"> 12</a></span>  <span class="keyword">class </span><a class="code" href="classvm_1_1ctx__t.html">ctx_t</a></div>
|
||
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  {</div>
|
||
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">public</span>:</div>
|
||
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keyword">explicit</span> <a class="code" href="classvm_1_1ctx__t.html#aac2f090b11989dacf989648f751f77ad">ctx_t</a>( std::uintptr_t <a class="code" href="classvm_1_1ctx__t.html#a41019acb80ba763e3154c4417b133b5a">module_base</a>, std::uintptr_t <a class="code" href="classvm_1_1ctx__t.html#a9cec1f42d21b006cba4ac370d5962869">image_base</a>, std::uintptr_t <a class="code" href="classvm_1_1ctx__t.html#a469ea113041b62e9a044db8e56fa78cb">image_size</a>,</div>
|
||
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  std::uintptr_t <a class="code" href="classvm_1_1ctx__t.html#a44b4eb5513ad87a12173e599591847c3">vm_entry_rva</a> );</div>
|
||
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
|
||
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordtype">bool</span> <a class="code" href="classvm_1_1ctx__t.html#a7f24e3ed32d1cca86c296dd8dae4b6d2">init</a>();</div>
|
||
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
||
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classvm_1_1ctx__t.html#a9cec1f42d21b006cba4ac370d5962869"> 34</a></span>  <span class="keyword">const</span> std::uintptr_t <a class="code" href="classvm_1_1ctx__t.html#a41019acb80ba763e3154c4417b133b5a">module_base</a>, <a class="code" href="classvm_1_1ctx__t.html#a9cec1f42d21b006cba4ac370d5962869">image_base</a>, <a class="code" href="classvm_1_1ctx__t.html#a44b4eb5513ad87a12173e599591847c3">vm_entry_rva</a>, <a class="code" href="classvm_1_1ctx__t.html#a469ea113041b62e9a044db8e56fa78cb">image_size</a>;</div>
|
||
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
|
||
|
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classvm_1_1ctx__t.html#a1451637395107d39f69b097a07ef9a0f"> 39</a></span>  <a class="code" href="namespacevmp2.html#ab2b6fa03f63a776a5c68007f89b140b5">vmp2::exec_type_t</a> <a class="code" href="classvm_1_1ctx__t.html#a1451637395107d39f69b097a07ef9a0f">exec_type</a>;</div>
|
||
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classvm_1_1ctx__t.html#aed0dfa1748035f48bda0f59f76643d8d"> 40</a></span>  <a class="code" href="vmutils_8hpp.html#a5fdde6e9d3e6c6eca28ecadf2e837d3c">zydis_routine_t</a> <a class="code" href="classvm_1_1ctx__t.html#a40f0524813578bcddf9ded1e74443793">vm_entry</a>, <a class="code" href="classvm_1_1ctx__t.html#aed0dfa1748035f48bda0f59f76643d8d">calc_jmp</a>;</div>
|
||
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
|
||
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classvm_1_1ctx__t.html#a0fa31b5bd78861dbd2c5cf04af81aa4d"> 45</a></span>  std::vector< vm::handler::handler_t > <a class="code" href="classvm_1_1ctx__t.html#a0fa31b5bd78861dbd2c5cf04af81aa4d">vm_handlers</a>;</div>
|
||
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  };</div>
|
||
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> } <span class="comment">// namespace vm</span></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html"><div class="ttname"><a href="classvm_1_1ctx__t.html">vm::ctx_t</a></div><div class="ttdoc">vm::ctx_t class is used to auto generate vm_entry, calc_jmp, and other per-vm entry information....</div><div class="ttdef"><b>Definition:</b> vmctx.hpp:13</div></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html_a0fa31b5bd78861dbd2c5cf04af81aa4d"><div class="ttname"><a href="classvm_1_1ctx__t.html#a0fa31b5bd78861dbd2c5cf04af81aa4d">vm::ctx_t::vm_handlers</a></div><div class="ttdeci">std::vector< vm::handler::handler_t > vm_handlers</div><div class="ttdoc">all the vm handlers for the given vm entry...</div><div class="ttdef"><b>Definition:</b> vmctx.hpp:45</div></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html_a1451637395107d39f69b097a07ef9a0f"><div class="ttname"><a href="classvm_1_1ctx__t.html#a1451637395107d39f69b097a07ef9a0f">vm::ctx_t::exec_type</a></div><div class="ttdeci">vmp2::exec_type_t exec_type</div><div class="ttdoc">the order in which VIP advances...</div><div class="ttdef"><b>Definition:</b> vmctx.hpp:39</div></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html_a40f0524813578bcddf9ded1e74443793"><div class="ttname"><a href="classvm_1_1ctx__t.html#a40f0524813578bcddf9ded1e74443793">vm::ctx_t::vm_entry</a></div><div class="ttdeci">zydis_routine_t vm_entry</div><div class="ttdef"><b>Definition:</b> vmctx.hpp:40</div></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html_a41019acb80ba763e3154c4417b133b5a"><div class="ttname"><a href="classvm_1_1ctx__t.html#a41019acb80ba763e3154c4417b133b5a">vm::ctx_t::module_base</a></div><div class="ttdeci">const std::uintptr_t module_base</div><div class="ttdef"><b>Definition:</b> vmctx.hpp:34</div></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html_a44b4eb5513ad87a12173e599591847c3"><div class="ttname"><a href="classvm_1_1ctx__t.html#a44b4eb5513ad87a12173e599591847c3">vm::ctx_t::vm_entry_rva</a></div><div class="ttdeci">const std::uintptr_t vm_entry_rva</div><div class="ttdef"><b>Definition:</b> vmctx.hpp:34</div></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html_a469ea113041b62e9a044db8e56fa78cb"><div class="ttname"><a href="classvm_1_1ctx__t.html#a469ea113041b62e9a044db8e56fa78cb">vm::ctx_t::image_size</a></div><div class="ttdeci">const std::uintptr_t image_size</div><div class="ttdef"><b>Definition:</b> vmctx.hpp:34</div></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html_a7f24e3ed32d1cca86c296dd8dae4b6d2"><div class="ttname"><a href="classvm_1_1ctx__t.html#a7f24e3ed32d1cca86c296dd8dae4b6d2">vm::ctx_t::init</a></div><div class="ttdeci">bool init()</div><div class="ttdoc">init all per-vm entry data such as vm_entry, calc_jmp, and vm handlers...</div><div class="ttdef"><b>Definition:</b> vmctx.cpp:11</div></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html_a9cec1f42d21b006cba4ac370d5962869"><div class="ttname"><a href="classvm_1_1ctx__t.html#a9cec1f42d21b006cba4ac370d5962869">vm::ctx_t::image_base</a></div><div class="ttdeci">const std::uintptr_t image_base</div><div class="ttdef"><b>Definition:</b> vmctx.hpp:34</div></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html_aac2f090b11989dacf989648f751f77ad"><div class="ttname"><a href="classvm_1_1ctx__t.html#aac2f090b11989dacf989648f751f77ad">vm::ctx_t::ctx_t</a></div><div class="ttdeci">ctx_t(std::uintptr_t module_base, std::uintptr_t image_base, std::uintptr_t image_size, std::uintptr_t vm_entry_rva)</div><div class="ttdoc">default constructor for vm::ctx_t... all information for a given vm entry must be provided....</div><div class="ttdef"><b>Definition:</b> vmctx.cpp:5</div></div>
|
||
|
<div class="ttc" id="aclassvm_1_1ctx__t_html_aed0dfa1748035f48bda0f59f76643d8d"><div class="ttname"><a href="classvm_1_1ctx__t.html#aed0dfa1748035f48bda0f59f76643d8d">vm::ctx_t::calc_jmp</a></div><div class="ttdeci">zydis_routine_t calc_jmp</div><div class="ttdef"><b>Definition:</b> vmctx.hpp:40</div></div>
|
||
|
<div class="ttc" id="anamespacevm_html"><div class="ttname"><a href="namespacevm.html">vm</a></div><div class="ttdef"><b>Definition:</b> calc_jmp.hpp:6</div></div>
|
||
|
<div class="ttc" id="anamespacevmp2_html_ab2b6fa03f63a776a5c68007f89b140b5"><div class="ttname"><a href="namespacevmp2.html#ab2b6fa03f63a776a5c68007f89b140b5">vmp2::exec_type_t</a></div><div class="ttdeci">exec_type_t</div><div class="ttdef"><b>Definition:</b> vmp2.hpp:9</div></div>
|
||
|
<div class="ttc" id="atransform_8hpp_html"><div class="ttname"><a href="transform_8hpp.html">transform.hpp</a></div></div>
|
||
|
<div class="ttc" id="avmhandlers_8hpp_html"><div class="ttname"><a href="vmhandlers_8hpp.html">vmhandlers.hpp</a></div></div>
|
||
|
<div class="ttc" id="avmp2_8hpp_html"><div class="ttname"><a href="vmp2_8hpp.html">vmp2.hpp</a></div></div>
|
||
|
<div class="ttc" id="avmutils_8hpp_html_a5fdde6e9d3e6c6eca28ecadf2e837d3c"><div class="ttname"><a href="vmutils_8hpp.html#a5fdde6e9d3e6c6eca28ecadf2e837d3c">zydis_routine_t</a></div><div class="ttdeci">std::vector< zydis_instr_t > zydis_routine_t</div><div class="ttdef"><b>Definition:</b> vmutils.hpp:29</div></div>
|
||
|
</div><!-- fragment --></div><!-- contents -->
|
||
|
<!-- start footer part -->
|
||
|
<hr class="footer"/><address class="footer"><small>
|
||
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
|
||
|
</small></address>
|
||
|
</body>
|
||
|
</html>
|