Process


Functions

int32 ASM_CreateAsmFile (Settings *projectSettings)
 Creates a file containing only the asm instructions.
int32 ASM_ProcessInstruction (Register *registers, RegisterContext *context, uint8 *sz_Instruction, Mapping *ps_CurFunction, uint32 i_Addr, uint32 *i_Result, RE_ResultType *i_ResultType, uint8 b_CheckForMessages, Function_Params *parameters)
 Analyse an asm instruction and put the result in i_Result. If the result is not valid then i_ResultType is RESULT_TYPE_INVALID.
int32 ASM_GetValueOfParam (Register *registers, uint8 *sz_Param, uint32 *i_Param, RE_ResultType *i_Param_IsValid)
 Gets the value of the parameter and checks if it is valid or not.
RE_Registers ASM_GetRegisterIndex (Register *registers, uint8 *sz_Register)
 Return the index of the register or REG_MAX if the param is not a register.
int32 RE_GetPLTJumps (Settings *projectSettings, PLT_Jump *projectPLT)
 Analyses the PLT section and build a map of it.
int32 RE_GetDynSymsRealAddr (LIST_Mapping *projectMapping, PLT_Jump *projectPLT)
 Put the real call address into dynamic symbols by reading the plt section.
int32 RE_GetMappingReferences (Settings *projectSettings, LIST_Mapping *projectMapping)
 Gets alls references of objects that are in the mapping.
int32 RE_AnalyseResult (uint8 *sz_Instruction, uint32 i_Result, RE_ResultType i_ResultType, uint32 i_CurAddr, uint32 i_AddrStart, uint32 i_AddrEnd, uint32 i_PLTIndex, uint32 i_TextSection, Settings *projectSettings, LIST_Mapping *projectMapping, uint8 *pba_ReferenceExists, uint8 *pba_JmpReferenceExists, FILE *f_ExeFile, Function_Params *func_Params, Mapping *curFunction)
 Gets the reference for the result if one exists.
int32 RE_GetMessage (LIST_Mapping *messagesMapping, uint32 i_Message, Mapping *resultMapping)
 Gets the message structure if i_Message exists.

Function Documentation

int32 ASM_CreateAsmFile Settings projectSettings  ) 
 

Creates a file containing only the asm instructions.

RE_Registers ASM_GetRegisterIndex Register registers,
uint8 sz_Register
 

Return the index of the register or REG_MAX if the param is not a register.

int32 ASM_GetValueOfParam Register registers,
uint8 sz_Param,
uint32 i_Param,
RE_ResultType i_Param_IsValid
 

Gets the value of the parameter and checks if it is valid or not.

int32 ASM_ProcessInstruction Register registers,
RegisterContext context,
uint8 sz_Instruction,
Mapping ps_CurFunction,
uint32  i_Addr,
uint32 i_Result,
RE_ResultType i_ResultType,
uint8  b_CheckForMessages,
Function_Params parameters
 

Analyse an asm instruction and put the result in i_Result. If the result is not valid then i_ResultType is RESULT_TYPE_INVALID.

int32 RE_AnalyseResult uint8 sz_Instruction,
uint32  i_Result,
RE_ResultType  i_ResultType,
uint32  i_CurAddr,
uint32  i_AddrStart,
uint32  i_AddrEnd,
uint32  i_PLTIndex,
uint32  i_TextSection,
Settings projectSettings,
LIST_Mapping projectMapping,
uint8 pba_ReferenceExists,
uint8 pba_JmpReferenceExists,
FILE *  f_ExeFile,
Function_Params func_Params,
Mapping curFunction
 

Gets the reference for the result if one exists.

int32 RE_GetDynSymsRealAddr LIST_Mapping projectMapping,
PLT_Jump projectPLT
 

Put the real call address into dynamic symbols by reading the plt section.

int32 RE_GetMappingReferences Settings projectSettings,
LIST_Mapping projectMapping
 

Gets alls references of objects that are in the mapping.

int32 RE_GetMessage LIST_Mapping messagesMapping,
uint32  i_Message,
Mapping resultMapping
 

Gets the message structure if i_Message exists.

int32 RE_GetPLTJumps Settings projectSettings,
PLT_Jump projectPLT
 

Analyses the PLT section and build a map of it.


Generated on Tue Nov 29 20:13:27 2005 for REVENG by  doxygen 1.4.5