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_1deco...

295 lines
16 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="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_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="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="classtheo_1_1decomp_1_1decomp__t.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="decomp_8hpp_source.html">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="classtheo_1_1decomp_1_1decomp__t.html#a35cfac16bd918d576b29e04388690d68">decomp_t</a> (std::vector&lt; std::uint8_t &gt; &amp;<a class="el" href="classtheo_1_1decomp_1_1decomp__t.html#a165d6c4840368e83eccb0f7a390d89aa">lib</a>, <a class="el" href="classtheo_1_1recomp_1_1symbol__table__t.html">recomp::symbol_table_t</a> *<a class="el" href="classtheo_1_1decomp_1_1decomp__t.html#a4acd873857bf96e996573c78254a1875">syms</a>)</td></tr>
<tr class="memdesc:a35cfac16bd918d576b29e04388690d68"><td class="mdescLeft">&#160;</td><td class="mdescRight">the explicit constructor for <a class="el" href="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="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:a072d489230e01f634557c5cd6a734d6a"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="classtheo_1_1decomp_1_1routine__t.html">routine_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1decomp_1_1decomp__t.html#a072d489230e01f634557c5cd6a734d6a">rtns</a> ()</td></tr>
<tr class="memdesc:a072d489230e01f634557c5cd6a734d6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets all of the routine objects. <a href="classtheo_1_1decomp_1_1decomp__t.html#a072d489230e01f634557c5cd6a734d6a">More...</a><br /></td></tr>
<tr class="separator:a072d489230e01f634557c5cd6a734d6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a165d6c4840368e83eccb0f7a390d89aa"><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_1decomp__t.html#a165d6c4840368e83eccb0f7a390d89aa">lib</a> ()</td></tr>
<tr class="memdesc:a165d6c4840368e83eccb0f7a390d89aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets a vector of bytes consisting of the lib file. <a href="classtheo_1_1decomp_1_1decomp__t.html#a165d6c4840368e83eccb0f7a390d89aa">More...</a><br /></td></tr>
<tr class="separator:a165d6c4840368e83eccb0f7a390d89aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa3f22948f6e5e3b6a32b82a76226c3f"><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="classtheo_1_1decomp_1_1decomp__t.html#afa3f22948f6e5e3b6a32b82a76226c3f">objs</a> ()</td></tr>
<tr class="memdesc:afa3f22948f6e5e3b6a32b82a76226c3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets all the obj files as a vector of a vector of bytes. <a href="classtheo_1_1decomp_1_1decomp__t.html#afa3f22948f6e5e3b6a32b82a76226c3f">More...</a><br /></td></tr>
<tr class="separator:afa3f22948f6e5e3b6a32b82a76226c3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4acd873857bf96e996573c78254a1875"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtheo_1_1recomp_1_1symbol__table__t.html">recomp::symbol_table_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1decomp_1_1decomp__t.html#a4acd873857bf96e996573c78254a1875">syms</a> ()</td></tr>
<tr class="memdesc:a4acd873857bf96e996573c78254a1875"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the symbol table. <a href="classtheo_1_1decomp_1_1decomp__t.html#a4acd873857bf96e996573c78254a1875">More...</a><br /></td></tr>
<tr class="separator:a4acd873857bf96e996573c78254a1875"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47e3a85ee0121f3c3795b242aea75902"><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="classtheo_1_1decomp_1_1decomp__t.html#a47e3a85ee0121f3c3795b242aea75902">scn_hash_tbl</a> ()</td></tr>
<tr class="memdesc:a47e3a85ee0121f3c3795b242aea75902"><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the section hash table section header --&gt; hash of the section header ptr. <a href="classtheo_1_1decomp_1_1decomp__t.html#a47e3a85ee0121f3c3795b242aea75902">More...</a><br /></td></tr>
<tr class="separator:a47e3a85ee0121f3c3795b242aea75902"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a712b162fb8f9e5529b90dfb7fc1b9199"><td class="memItemLeft" align="right" valign="top">std::optional&lt; <a class="el" href="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="classtheo_1_1decomp_1_1decomp__t.html#a712b162fb8f9e5529b90dfb7fc1b9199">decompose</a> (std::string &amp;entry_sym)</td></tr>
<tr class="memdesc:a712b162fb8f9e5529b90dfb7fc1b9199"><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="classtheo_1_1decomp_1_1decomp__t.html#a712b162fb8f9e5529b90dfb7fc1b9199">More...</a><br /></td></tr>
<tr class="separator:a712b162fb8f9e5529b90dfb7fc1b9199"><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>
<p class="definition">Definition at line <a class="el" href="decomp_8hpp_source.html#l00061">61</a> of file <a class="el" href="decomp_8hpp_source.html">decomp.hpp</a>.</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="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="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="a712b162fb8f9e5529b90dfb7fc1b9199"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a712b162fb8f9e5529b90dfb7fc1b9199">&#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="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="a165d6c4840368e83eccb0f7a390d89aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a165d6c4840368e83eccb0f7a390d89aa">&#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="afa3f22948f6e5e3b6a32b82a76226c3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa3f22948f6e5e3b6a32b82a76226c3f">&#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="a072d489230e01f634557c5cd6a734d6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a072d489230e01f634557c5cd6a734d6a">&#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="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="a47e3a85ee0121f3c3795b242aea75902"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47e3a85ee0121f3c3795b242aea75902">&#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="a4acd873857bf96e996573c78254a1875"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4acd873857bf96e996573c78254a1875">&#9670;&nbsp;</a></span>syms()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="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 file:<ul>
<li>include/decomp/<a class="el" href="decomp_8hpp_source.html">decomp.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>