Unload the specified PE from memory.
| 136 | |
| 137 | // Unload the specified PE from memory. |
| 138 | cobf_error cobf::unload_pe() |
| 139 | { |
| 140 | // Check if already unloaded. |
| 141 | if (this->pe_rawf.empty()) return cobf_error::COBF_PE_UNLOADED; |
| 142 | |
| 143 | // Clear everything. |
| 144 | this->pe_rawf.clear(); |
| 145 | this->pe_mods.clear(); |
| 146 | return cobf_error::COBF_NO_ERROR; |
| 147 | }; |
| 148 | |
| 149 | // Get the attributes for the a data table. |
| 150 | BOOL cobf::get_data_table(size_t data_entry, PVOID* p_table_ptr, size_t& table_size) |