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.
239 lines
13 KiB
239 lines
13 KiB
<!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>Theodosius: theo::decomp::routine_t Class Reference</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="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Theodosius
|
|
 <span id="projectnumber">v3.0</span>
|
|
</div>
|
|
<div id="projectbrief">Jit linker, mapper, obfuscator, and mutator</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="../../da/de6/namespacetheo.html">theo</a></li><li class="navelem"><a class="el" href="../../d9/dbd/namespacetheo_1_1decomp.html">decomp</a></li><li class="navelem"><a class="el" href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html">routine_t</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="../../d1/da1/classtheo_1_1decomp_1_1routine__t-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">theo::decomp::routine_t Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>the routine class which is responsible for creating symbols for routines. if the routine is located inside a section with the name ".split" it will break functions into instruction symbols.
|
|
<a href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="../../">routine.hpp</a>></code></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:ab9f0693c5ec50954d953b28bebe4426b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html#ab9f0693c5ec50954d953b28bebe4426b">routine_t</a> (coff::symbol_t *sym, coff::image_t *img, coff::section_header_t *<a class="el" href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html#ad3a75cb97abbcd9b282772401b256f36">scn</a>, std::vector< std::uint8_t > &fn, <a class="el" href="../../d9/dbd/namespacetheo_1_1decomp.html#af96177687d0ad683c5897d8fa01135f9">sym_type_t</a> dcmp_type)</td></tr>
|
|
<tr class="memdesc:ab9f0693c5ec50954d953b28bebe4426b"><td class="mdescLeft"> </td><td class="mdescRight">the explicit constructor for <a class="el" href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html" title="the routine class which is responsible for creating symbols for routines. if the routine is located i...">routine_t</a>. <a href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html#ab9f0693c5ec50954d953b28bebe4426b">More...</a><br /></td></tr>
|
|
<tr class="separator:ab9f0693c5ec50954d953b28bebe4426b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1f790bd144badc71d6c4942cac8fc4e8"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html">decomp::symbol_t</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html#a1f790bd144badc71d6c4942cac8fc4e8">decompose</a> ()</td></tr>
|
|
<tr class="memdesc:a1f790bd144badc71d6c4942cac8fc4e8"><td class="mdescLeft"> </td><td class="mdescRight">decompose the function into symbol(s). <a href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html#a1f790bd144badc71d6c4942cac8fc4e8">More...</a><br /></td></tr>
|
|
<tr class="separator:a1f790bd144badc71d6c4942cac8fc4e8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad3a75cb97abbcd9b282772401b256f36"><td class="memItemLeft" align="right" valign="top">coff::section_header_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html#ad3a75cb97abbcd9b282772401b256f36">scn</a> ()</td></tr>
|
|
<tr class="memdesc:ad3a75cb97abbcd9b282772401b256f36"><td class="mdescLeft"> </td><td class="mdescRight">gets the section header of the section in which the symbol is located in. <a href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html#ad3a75cb97abbcd9b282772401b256f36">More...</a><br /></td></tr>
|
|
<tr class="separator:ad3a75cb97abbcd9b282772401b256f36"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a605a2be669a10a5a45325a5dca04401a"><td class="memItemLeft" align="right" valign="top">std::vector< std::uint8_t > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html#a605a2be669a10a5a45325a5dca04401a">data</a> ()</td></tr>
|
|
<tr class="memdesc:a605a2be669a10a5a45325a5dca04401a"><td class="mdescLeft"> </td><td class="mdescRight">gets the function bytes. <a href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html#a605a2be669a10a5a45325a5dca04401a">More...</a><br /></td></tr>
|
|
<tr class="separator:a605a2be669a10a5a45325a5dca04401a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>the routine class which is responsible for creating symbols for routines. if the routine is located inside a section with the name ".split" it will break functions into instruction symbols. </p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="ab9f0693c5ec50954d953b28bebe4426b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab9f0693c5ec50954d953b28bebe4426b">◆ </a></span>routine_t()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">theo::decomp::routine_t::routine_t </td>
|
|
<td>(</td>
|
|
<td class="paramtype">coff::symbol_t * </td>
|
|
<td class="paramname"><em>sym</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">coff::image_t * </td>
|
|
<td class="paramname"><em>img</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">coff::section_header_t * </td>
|
|
<td class="paramname"><em>scn</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< std::uint8_t > & </td>
|
|
<td class="paramname"><em>fn</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="../../d9/dbd/namespacetheo_1_1decomp.html#af96177687d0ad683c5897d8fa01135f9">sym_type_t</a> </td>
|
|
<td class="paramname"><em>dcmp_type</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>the explicit constructor for <a class="el" href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html" title="the routine class which is responsible for creating symbols for routines. if the routine is located i...">routine_t</a>. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">sym</td><td>the coff symbol for the routine.</td></tr>
|
|
<tr><td class="paramname">img</td><td>the coff image which contains the symbol.</td></tr>
|
|
<tr><td class="paramname">scn</td><td>the section header of the section that contains the symbol.</td></tr>
|
|
<tr><td class="paramname">fn</td><td>the data (bytes) of the function.</td></tr>
|
|
<tr><td class="paramname">dcmp_type</td><td>the type of decomp to do. if this is sym_type_t::function then this class wont split the function up into individual instructions.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a605a2be669a10a5a45325a5dca04401a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a605a2be669a10a5a45325a5dca04401a">◆ </a></span>data()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector< std::uint8_t > theo::decomp::routine_t::data </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>gets the function bytes. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>the function bytes.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1f790bd144badc71d6c4942cac8fc4e8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1f790bd144badc71d6c4942cac8fc4e8">◆ </a></span>decompose()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector< <a class="el" href="../../d9/dd5/classtheo_1_1decomp_1_1symbol__t.html">decomp::symbol_t</a> > theo::decomp::routine_t::decompose </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>decompose the function into symbol(s). </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>symbol(s) of the function.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad3a75cb97abbcd9b282772401b256f36"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad3a75cb97abbcd9b282772401b256f36">◆ </a></span>scn()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">coff::section_header_t * theo::decomp::routine_t::scn </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>gets the section header of the section in which the symbol is located in. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>the section header of the section in which the symbol is located in.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following files:<ul>
|
|
<li>include/decomp/<a class="el" href="../../">routine.hpp</a></li>
|
|
<li>src/decomp/<a class="el" href="../../">routine.cpp</a></li>
|
|
</ul>
|
|
</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>
|