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.
347 lines
18 KiB
347 lines
18 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::recomp::recomp_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="namespacetheo.html">theo</a></li><li class="navelem"><a class="el" href="namespacetheo_1_1recomp.html">recomp</a></li><li class="navelem"><a class="el" href="classtheo_1_1recomp_1_1recomp__t.html">recomp_t</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="classtheo_1_1recomp_1_1recomp__t-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">theo::recomp::recomp_t Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>the main class responsible for recomposition
|
|
<a href="classtheo_1_1recomp_1_1recomp__t.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="recomp_8hpp_source.html">recomp.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:ac5f04297153c2e445330e5cc103e8589"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1recomp_1_1recomp__t.html#ac5f04297153c2e445330e5cc103e8589">recomp_t</a> (<a class="el" href="classtheo_1_1decomp_1_1decomp__t.html">decomp::decomp_t</a> *dcmp, <a class="el" href="namespacetheo_1_1recomp.html#a96995cb0c5291dce945760c3d8f55241">allocator_t</a> alloc, <a class="el" href="namespacetheo_1_1recomp.html#a604e81450773453df676c3b573651adc">copier_t</a> copy, <a class="el" href="namespacetheo_1_1recomp.html#a7364f8c94855a2a871a9d6e1057989f3">resolver_t</a> <a class="el" href="classtheo_1_1recomp_1_1recomp__t.html#a299fbede378f04991df2e39293307094">resolve</a>)</td></tr>
|
|
<tr class="memdesc:ac5f04297153c2e445330e5cc103e8589"><td class="mdescLeft"> </td><td class="mdescRight">the explicit constructor for the <a class="el" href="classtheo_1_1recomp_1_1recomp__t.html" title="the main class responsible for recomposition">recomp_t</a> class. <a href="classtheo_1_1recomp_1_1recomp__t.html#ac5f04297153c2e445330e5cc103e8589">More...</a><br /></td></tr>
|
|
<tr class="separator:ac5f04297153c2e445330e5cc103e8589"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a78502665e218d3addca9b1e5e3875f39"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1recomp_1_1recomp__t.html#a78502665e218d3addca9b1e5e3875f39">allocate</a> ()</td></tr>
|
|
<tr class="memdesc:a78502665e218d3addca9b1e5e3875f39"><td class="mdescLeft"> </td><td class="mdescRight">when called, this function allocates space for every symbol. <a href="classtheo_1_1recomp_1_1recomp__t.html#a78502665e218d3addca9b1e5e3875f39">More...</a><br /></td></tr>
|
|
<tr class="separator:a78502665e218d3addca9b1e5e3875f39"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a299fbede378f04991df2e39293307094"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1recomp_1_1recomp__t.html#a299fbede378f04991df2e39293307094">resolve</a> ()</td></tr>
|
|
<tr class="memdesc:a299fbede378f04991df2e39293307094"><td class="mdescLeft"> </td><td class="mdescRight">when called, this function resolves all relocations in every symbol. <a href="classtheo_1_1recomp_1_1recomp__t.html#a299fbede378f04991df2e39293307094">More...</a><br /></td></tr>
|
|
<tr class="separator:a299fbede378f04991df2e39293307094"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a080d88f122d12faf2e328c9bdd10be6e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1recomp_1_1recomp__t.html#a080d88f122d12faf2e328c9bdd10be6e">copy_syms</a> ()</td></tr>
|
|
<tr class="memdesc:a080d88f122d12faf2e328c9bdd10be6e"><td class="mdescLeft"> </td><td class="mdescRight">when called, this function copies symbols into allocations. <a href="classtheo_1_1recomp_1_1recomp__t.html#a080d88f122d12faf2e328c9bdd10be6e">More...</a><br /></td></tr>
|
|
<tr class="separator:a080d88f122d12faf2e328c9bdd10be6e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0da9a904b0057c14190218592aff0f07"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1recomp_1_1recomp__t.html#a0da9a904b0057c14190218592aff0f07">allocator</a> (<a class="el" href="namespacetheo_1_1recomp.html#a96995cb0c5291dce945760c3d8f55241">allocator_t</a> alloc)</td></tr>
|
|
<tr class="memdesc:a0da9a904b0057c14190218592aff0f07"><td class="mdescLeft"> </td><td class="mdescRight">setter for the allocater lambda function. <a href="classtheo_1_1recomp_1_1recomp__t.html#a0da9a904b0057c14190218592aff0f07">More...</a><br /></td></tr>
|
|
<tr class="separator:a0da9a904b0057c14190218592aff0f07"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa6fecf752d4c5bc211e164d8496724b1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1recomp_1_1recomp__t.html#aa6fecf752d4c5bc211e164d8496724b1">copier</a> (<a class="el" href="namespacetheo_1_1recomp.html#a604e81450773453df676c3b573651adc">copier_t</a> copy)</td></tr>
|
|
<tr class="memdesc:aa6fecf752d4c5bc211e164d8496724b1"><td class="mdescLeft"> </td><td class="mdescRight">setter for the copier lambda function. <a href="classtheo_1_1recomp_1_1recomp__t.html#aa6fecf752d4c5bc211e164d8496724b1">More...</a><br /></td></tr>
|
|
<tr class="separator:aa6fecf752d4c5bc211e164d8496724b1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1be6d0cdb57565c31b138248c8b2d470"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1recomp_1_1recomp__t.html#a1be6d0cdb57565c31b138248c8b2d470">resolver</a> (<a class="el" href="namespacetheo_1_1recomp.html#a7364f8c94855a2a871a9d6e1057989f3">resolver_t</a> <a class="el" href="classtheo_1_1recomp_1_1recomp__t.html#a299fbede378f04991df2e39293307094">resolve</a>)</td></tr>
|
|
<tr class="memdesc:a1be6d0cdb57565c31b138248c8b2d470"><td class="mdescLeft"> </td><td class="mdescRight">setter for the resolve lambda function. <a href="classtheo_1_1recomp_1_1recomp__t.html#a1be6d0cdb57565c31b138248c8b2d470">More...</a><br /></td></tr>
|
|
<tr class="separator:a1be6d0cdb57565c31b138248c8b2d470"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae0c56f0f8af33b390e4123509523602c"><td class="memItemLeft" align="right" valign="top">std::uintptr_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classtheo_1_1recomp_1_1recomp__t.html#ae0c56f0f8af33b390e4123509523602c">resolve</a> (const std::string &&sym)</td></tr>
|
|
<tr class="memdesc:ae0c56f0f8af33b390e4123509523602c"><td class="mdescLeft"> </td><td class="mdescRight">resolves the address of a function given its name. <a href="classtheo_1_1recomp_1_1recomp__t.html#ae0c56f0f8af33b390e4123509523602c">More...</a><br /></td></tr>
|
|
<tr class="separator:ae0c56f0f8af33b390e4123509523602c"><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 main class responsible for recomposition </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="recomp_8hpp_source.html#l00064">64</a> of file <a class="el" href="recomp_8hpp_source.html">recomp.hpp</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="ac5f04297153c2e445330e5cc103e8589"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac5f04297153c2e445330e5cc103e8589">◆ </a></span>recomp_t()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">theo::recomp::recomp_t::recomp_t </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classtheo_1_1decomp_1_1decomp__t.html">decomp::decomp_t</a> * </td>
|
|
<td class="paramname"><em>dcmp</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="namespacetheo_1_1recomp.html#a96995cb0c5291dce945760c3d8f55241">allocator_t</a> </td>
|
|
<td class="paramname"><em>alloc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="namespacetheo_1_1recomp.html#a604e81450773453df676c3b573651adc">copier_t</a> </td>
|
|
<td class="paramname"><em>copy</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="namespacetheo_1_1recomp.html#a7364f8c94855a2a871a9d6e1057989f3">resolver_t</a> </td>
|
|
<td class="paramname"><em>resolve</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 the <a class="el" href="classtheo_1_1recomp_1_1recomp__t.html" title="the main class responsible for recomposition">recomp_t</a> class. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">dcmp</td><td>pointer to a decomp_t class.</td></tr>
|
|
<tr><td class="paramname">alloc</td><td>lambda function which is used to allocate memory for symbols.</td></tr>
|
|
<tr><td class="paramname">copy</td><td>lambda function used to copy bytes into allocations.</td></tr>
|
|
<tr><td class="paramname">resolve</td><td>lambda function used to resolve external symbols.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a78502665e218d3addca9b1e5e3875f39"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a78502665e218d3addca9b1e5e3875f39">◆ </a></span>allocate()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void theo::recomp::recomp_t::allocate </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>when called, this function allocates space for every symbol. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0da9a904b0057c14190218592aff0f07"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0da9a904b0057c14190218592aff0f07">◆ </a></span>allocator()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void theo::recomp::recomp_t::allocator </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="namespacetheo_1_1recomp.html#a96995cb0c5291dce945760c3d8f55241">allocator_t</a> </td>
|
|
<td class="paramname"><em>alloc</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>setter for the allocater lambda function. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">alloc</td><td>lambda function which allocates memory for symbols.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa6fecf752d4c5bc211e164d8496724b1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa6fecf752d4c5bc211e164d8496724b1">◆ </a></span>copier()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void theo::recomp::recomp_t::copier </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="namespacetheo_1_1recomp.html#a604e81450773453df676c3b573651adc">copier_t</a> </td>
|
|
<td class="paramname"><em>copy</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>setter for the copier lambda function. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">copy</td><td>copier lambda function used to copy bytes into allocations made by the allocator.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a080d88f122d12faf2e328c9bdd10be6e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a080d88f122d12faf2e328c9bdd10be6e">◆ </a></span>copy_syms()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void theo::recomp::recomp_t::copy_syms </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>when called, this function copies symbols into allocations. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a299fbede378f04991df2e39293307094"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a299fbede378f04991df2e39293307094">◆ </a></span>resolve() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void theo::recomp::recomp_t::resolve </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>when called, this function resolves all relocations in every symbol. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae0c56f0f8af33b390e4123509523602c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae0c56f0f8af33b390e4123509523602c">◆ </a></span>resolve() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::uintptr_t theo::recomp::recomp_t::resolve </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string && </td>
|
|
<td class="paramname"><em>sym</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>resolves the address of a function given its name. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">sym</td><td>the name of the symbol to resolve the location of.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>the address of the symbol.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1be6d0cdb57565c31b138248c8b2d470"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1be6d0cdb57565c31b138248c8b2d470">◆ </a></span>resolver()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void theo::recomp::recomp_t::resolver </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="namespacetheo_1_1recomp.html#a7364f8c94855a2a871a9d6e1057989f3">resolver_t</a> </td>
|
|
<td class="paramname"><em>resolve</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>setter for the resolve lambda function. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">resolve</td><td>lambda function to resolve external symbols.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li>include/recomp/<a class="el" href="recomp_8hpp_source.html">recomp.hpp</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>
|