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.
Theodosius/doxygen/html/classtheo_1_1decomp_1_1rout...

240 lines
12 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
&#160;<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&amp;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&amp;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="namespacetheo.html">theo</a></li><li class="navelem"><a class="el" href="namespacetheo_1_1decomp.html">decomp</a></li><li class="navelem"><a class="el" href="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> &#124;
<a href="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="classtheo_1_1decomp_1_1routine__t.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="routine_8hpp_source.html">routine.hpp</a>&gt;</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">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="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="classtheo_1_1decomp_1_1routine__t.html#a5bb350cf3511fd82d7f0c21f50834bb0">scn</a>, std::vector&lt; std::uint8_t &gt; &amp;fn, <a class="el" href="namespacetheo_1_1decomp.html#af96177687d0ad683c5897d8fa01135f9">sym_type_t</a> dcmp_type)</td></tr>
<tr class="memdesc:ab9f0693c5ec50954d953b28bebe4426b"><td class="mdescLeft">&#160;</td><td class="mdescRight">the explicit constructor for <a class="el" href="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="classtheo_1_1decomp_1_1routine__t.html#ab9f0693c5ec50954d953b28bebe4426b">More...</a><br /></td></tr>
<tr class="separator:ab9f0693c5ec50954d953b28bebe4426b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61f63c3d5c101172da9fb7657f7c16f6"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="classtheo_1_1decomp_1_1symbol__t.html">decomp::symbol_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1decomp_1_1routine__t.html#a61f63c3d5c101172da9fb7657f7c16f6">decompose</a> ()</td></tr>
<tr class="memdesc:a61f63c3d5c101172da9fb7657f7c16f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">decompose the function into symbol(s). <a href="classtheo_1_1decomp_1_1routine__t.html#a61f63c3d5c101172da9fb7657f7c16f6">More...</a><br /></td></tr>
<tr class="separator:a61f63c3d5c101172da9fb7657f7c16f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bb350cf3511fd82d7f0c21f50834bb0"><td class="memItemLeft" align="right" valign="top">coff::section_header_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1decomp_1_1routine__t.html#a5bb350cf3511fd82d7f0c21f50834bb0">scn</a> ()</td></tr>
<tr class="memdesc:a5bb350cf3511fd82d7f0c21f50834bb0"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the section header of the section in which the symbol is located in. <a href="classtheo_1_1decomp_1_1routine__t.html#a5bb350cf3511fd82d7f0c21f50834bb0">More...</a><br /></td></tr>
<tr class="separator:a5bb350cf3511fd82d7f0c21f50834bb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae75762b8cb7080c432edb36c3fdcafbc"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::uint8_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1decomp_1_1routine__t.html#ae75762b8cb7080c432edb36c3fdcafbc">data</a> ()</td></tr>
<tr class="memdesc:ae75762b8cb7080c432edb36c3fdcafbc"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the function bytes. <a href="classtheo_1_1decomp_1_1routine__t.html#ae75762b8cb7080c432edb36c3fdcafbc">More...</a><br /></td></tr>
<tr class="separator:ae75762b8cb7080c432edb36c3fdcafbc"><td class="memSeparator" colspan="2">&#160;</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>
<p class="definition">Definition at line <a class="el" href="routine_8hpp_source.html#l00053">53</a> of file <a class="el" href="routine_8hpp_source.html">routine.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ab9f0693c5ec50954d953b28bebe4426b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9f0693c5ec50954d953b28bebe4426b">&#9670;&nbsp;</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 *&#160;</td>
<td class="paramname"><em>sym</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">coff::image_t *&#160;</td>
<td class="paramname"><em>img</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">coff::section_header_t *&#160;</td>
<td class="paramname"><em>scn</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; std::uint8_t &gt; &amp;&#160;</td>
<td class="paramname"><em>fn</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacetheo_1_1decomp.html#af96177687d0ad683c5897d8fa01135f9">sym_type_t</a>&#160;</td>
<td class="paramname"><em>dcmp_type</em>&#160;</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="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="ae75762b8cb7080c432edb36c3fdcafbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae75762b8cb7080c432edb36c3fdcafbc">&#9670;&nbsp;</a></span>data()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;std::uint8_t&gt; 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="a61f63c3d5c101172da9fb7657f7c16f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61f63c3d5c101172da9fb7657f7c16f6">&#9670;&nbsp;</a></span>decompose()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;<a class="el" href="classtheo_1_1decomp_1_1symbol__t.html">decomp::symbol_t</a>&gt; 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="a5bb350cf3511fd82d7f0c21f50834bb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bb350cf3511fd82d7f0c21f50834bb0">&#9670;&nbsp;</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 file:<ul>
<li>include/decomp/<a class="el" href="routine_8hpp_source.html">routine.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<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>