Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F554447
TreeImportExport.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
TreeImportExport.h
View Options
#pragma once
#include
<windows.h>
#include
"ProcessLister.h"
#include
"Thunks.h"
#include
<tinyxml.h>
class
TreeImportExport
{
public
:
bool
exportTreeList
(
const
WCHAR
*
targetXmlFile
,
std
::
map
<
DWORD_PTR
,
ImportModuleThunk
>
&
moduleList
,
const
Process
*
process
,
const
DWORD_PTR
addressOEP
,
const
DWORD_PTR
addressIAT
,
const
DWORD
sizeIAT
);
bool
importTreeList
(
const
WCHAR
*
targetXmlFile
,
std
::
map
<
DWORD_PTR
,
ImportModuleThunk
>
&
moduleList
,
DWORD_PTR
*
addressOEP
,
DWORD_PTR
*
addressIAT
,
DWORD
*
sizeIAT
);
private
:
char
xmlStringBuffer
[
100
];
void
addModuleListToRootElement
(
TiXmlElement
*
rootElement
,
std
::
map
<
DWORD_PTR
,
ImportModuleThunk
>
&
moduleList
);
TiXmlElement
*
getModuleXmlElement
(
const
ImportModuleThunk
*
importModuleThunk
);
TiXmlElement
*
getImportXmlElement
(
const
ImportThunk
*
importThunk
);
bool
saveXmlToFile
(
TiXmlDocument
doc
,
const
WCHAR
*
xmlFilePath
);
char
*
readXmlFile
(
const
WCHAR
*
xmlFilePath
);
void
setTargetInformation
(
TiXmlElement
*
rootElement
,
const
Process
*
process
,
const
DWORD_PTR
addressOEP
,
const
DWORD_PTR
addressIAT
,
const
DWORD
sizeIAT
);
void
ConvertBoolToString
(
const
bool
boolValue
);
void
ConvertWordToString
(
const
WORD
dwValue
);
void
ConvertDwordPtrToString
(
const
DWORD_PTR
dwValue
);
DWORD_PTR
ConvertStringToDwordPtr
(
const
char
*
strValue
);
WORD
ConvertStringToWord
(
const
char
*
strValue
);
bool
ConvertStringToBool
(
const
char
*
strValue
);
void
parseAllElementModules
(
TiXmlElement
*
targetElement
,
std
::
map
<
DWORD_PTR
,
ImportModuleThunk
>
&
moduleList
);
void
parseAllElementImports
(
TiXmlElement
*
moduleElement
,
ImportModuleThunk
*
importModuleThunk
);
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Feb 10, 1:08 PM (1 d, 16 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c4/e4/a8d91289ea2dba612b55e5fc2017
Attached To
rSCY Scylla
Event Timeline
Log In to Comment