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/d6/d0e/classtheo_1_1decomp_1_1deco...

294 lines
17 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::decomp_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="../../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="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html">decomp_t</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d4/dab/classtheo_1_1decomp_1_1decomp__t-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">theo::decomp::decomp_t Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>the main decomposition class which is responsible for breaking down lib file into coff files, and extracted used symbols from the coff files.
<a href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="../../">decomp.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:a35cfac16bd918d576b29e04388690d68"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a35cfac16bd918d576b29e04388690d68">decomp_t</a> (std::vector&lt; std::uint8_t &gt; &amp;<a class="el" href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#aa728bde8ec1c5c28ec09f86adf427ae2">lib</a>, <a class="el" href="../../db/d77/classtheo_1_1recomp_1_1symbol__table__t.html">recomp::symbol_table_t</a> *<a class="el" href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a8630f2ee0f4fb9516f5b20014e4c6120">syms</a>)</td></tr>
<tr class="memdesc:a35cfac16bd918d576b29e04388690d68"><td class="mdescLeft">&#160;</td><td class="mdescRight">the explicit constructor for <a class="el" href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html" title="the main decomposition class which is responsible for breaking down lib file into coff files,...">decomp_t</a> <a href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a35cfac16bd918d576b29e04388690d68">More...</a><br /></td></tr>
<tr class="separator:a35cfac16bd918d576b29e04388690d68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79c965ec0a996a936faae7f54b0e055e"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html">routine_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a79c965ec0a996a936faae7f54b0e055e">rtns</a> ()</td></tr>
<tr class="memdesc:a79c965ec0a996a936faae7f54b0e055e"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets all of the routine objects. <a href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a79c965ec0a996a936faae7f54b0e055e">More...</a><br /></td></tr>
<tr class="separator:a79c965ec0a996a936faae7f54b0e055e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa728bde8ec1c5c28ec09f86adf427ae2"><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="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#aa728bde8ec1c5c28ec09f86adf427ae2">lib</a> ()</td></tr>
<tr class="memdesc:aa728bde8ec1c5c28ec09f86adf427ae2"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets a vector of bytes consisting of the lib file. <a href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#aa728bde8ec1c5c28ec09f86adf427ae2">More...</a><br /></td></tr>
<tr class="separator:aa728bde8ec1c5c28ec09f86adf427ae2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81ae70b313a9ef24ea5d8f404699baef"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::vector&lt; std::uint8_t &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a81ae70b313a9ef24ea5d8f404699baef">objs</a> ()</td></tr>
<tr class="memdesc:a81ae70b313a9ef24ea5d8f404699baef"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets all the obj files as a vector of a vector of bytes. <a href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a81ae70b313a9ef24ea5d8f404699baef">More...</a><br /></td></tr>
<tr class="separator:a81ae70b313a9ef24ea5d8f404699baef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8630f2ee0f4fb9516f5b20014e4c6120"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/d77/classtheo_1_1recomp_1_1symbol__table__t.html">recomp::symbol_table_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a8630f2ee0f4fb9516f5b20014e4c6120">syms</a> ()</td></tr>
<tr class="memdesc:a8630f2ee0f4fb9516f5b20014e4c6120"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the symbol table. <a href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a8630f2ee0f4fb9516f5b20014e4c6120">More...</a><br /></td></tr>
<tr class="separator:a8630f2ee0f4fb9516f5b20014e4c6120"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a860dddc3a5d12231b685dbaa12a0db06"><td class="memItemLeft" align="right" valign="top">std::map&lt; coff::section_header_t *, std::size_t &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a860dddc3a5d12231b685dbaa12a0db06">scn_hash_tbl</a> ()</td></tr>
<tr class="memdesc:a860dddc3a5d12231b685dbaa12a0db06"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the section hash table section header --&gt; hash of the section header ptr. <a href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#a860dddc3a5d12231b685dbaa12a0db06">More...</a><br /></td></tr>
<tr class="separator:a860dddc3a5d12231b685dbaa12a0db06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae23353a4293aa30969b6d3fa37359469"><td class="memItemLeft" align="right" valign="top">std::optional&lt; <a class="el" href="../../db/d77/classtheo_1_1recomp_1_1symbol__table__t.html">recomp::symbol_table_t</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#ae23353a4293aa30969b6d3fa37359469">decompose</a> (std::string &amp;entry_sym)</td></tr>
<tr class="memdesc:ae23353a4293aa30969b6d3fa37359469"><td class="mdescLeft">&#160;</td><td class="mdescRight">decomposes (extracts) the symbols used. this function determines all used symbols given the entry point. <a href="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html#ae23353a4293aa30969b6d3fa37359469">More...</a><br /></td></tr>
<tr class="separator:ae23353a4293aa30969b6d3fa37359469"><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 main decomposition class which is responsible for breaking down lib file into coff files, and extracted used symbols from the coff files. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a35cfac16bd918d576b29e04388690d68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35cfac16bd918d576b29e04388690d68">&#9670;&nbsp;</a></span>decomp_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::decomp_t::decomp_t </td>
<td>(</td>
<td class="paramtype">std::vector&lt; std::uint8_t &gt; &amp;&#160;</td>
<td class="paramname"><em>lib</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../db/d77/classtheo_1_1recomp_1_1symbol__table__t.html">recomp::symbol_table_t</a> *&#160;</td>
<td class="paramname"><em>syms</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="../../d6/d0e/classtheo_1_1decomp_1_1decomp__t.html" title="the main decomposition class which is responsible for breaking down lib file into coff files,...">decomp_t</a> </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">lib</td><td>vector of bytes containing the lib file.</td></tr>
<tr><td class="paramname">syms</td><td>symbol table that gets populated and managed by this class.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae23353a4293aa30969b6d3fa37359469"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae23353a4293aa30969b6d3fa37359469">&#9670;&nbsp;</a></span>decompose()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::optional&lt; <a class="el" href="../../db/d77/classtheo_1_1recomp_1_1symbol__table__t.html">recomp::symbol_table_t</a> * &gt; theo::decomp::decomp_t::decompose </td>
<td>(</td>
<td class="paramtype">std::string &amp;&#160;</td>
<td class="paramname"><em>entry_sym</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>decomposes (extracts) the symbols used. this function determines all used symbols given the entry point. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">entry_sym</td><td>the entry point symbol name.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>returns an optional pointer to the symbol table. no value in the optional object on failure.</dd></dl>
</div>
</div>
<a id="aa728bde8ec1c5c28ec09f86adf427ae2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa728bde8ec1c5c28ec09f86adf427ae2">&#9670;&nbsp;</a></span>lib()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt; std::uint8_t &gt; theo::decomp::decomp_t::lib </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>gets a vector of bytes consisting of the lib file. </p>
<dl class="section return"><dt>Returns</dt><dd>a vector of bytes consisting of the lib file.</dd></dl>
</div>
</div>
<a id="a81ae70b313a9ef24ea5d8f404699baef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81ae70b313a9ef24ea5d8f404699baef">&#9670;&nbsp;</a></span>objs()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt; std::vector&lt; std::uint8_t &gt; &gt; theo::decomp::decomp_t::objs </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>gets all the obj files as a vector of a vector of bytes. </p>
<dl class="section return"><dt>Returns</dt><dd>all the obj files as a vector of a vector of bytes.</dd></dl>
</div>
</div>
<a id="a79c965ec0a996a936faae7f54b0e055e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79c965ec0a996a936faae7f54b0e055e">&#9670;&nbsp;</a></span>rtns()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt; <a class="el" href="../../df/db4/classtheo_1_1decomp_1_1routine__t.html">routine_t</a> &gt; theo::decomp::decomp_t::rtns </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>gets all of the routine objects. </p>
<dl class="section return"><dt>Returns</dt><dd>vector of routine objects.</dd></dl>
</div>
</div>
<a id="a860dddc3a5d12231b685dbaa12a0db06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a860dddc3a5d12231b685dbaa12a0db06">&#9670;&nbsp;</a></span>scn_hash_tbl()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::map&lt; coff::section_header_t *, std::size_t &gt; &amp; theo::decomp::decomp_t::scn_hash_tbl </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>gets the section hash table section header --&gt; hash of the section header ptr. </p>
<dl class="section return"><dt>Returns</dt><dd>the section hash table section header --&gt; hash of the section header ptr.</dd></dl>
</div>
</div>
<a id="a8630f2ee0f4fb9516f5b20014e4c6120"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8630f2ee0f4fb9516f5b20014e4c6120">&#9670;&nbsp;</a></span>syms()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="../../db/d77/classtheo_1_1recomp_1_1symbol__table__t.html">recomp::symbol_table_t</a> * theo::decomp::decomp_t::syms </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>gets the symbol table. </p>
<dl class="section return"><dt>Returns</dt><dd>the symbol table.</dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/decomp/<a class="el" href="../../">decomp.hpp</a></li>
<li>src/decomp/<a class="el" href="../../">decomp.cpp</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>