-
Notifications
You must be signed in to change notification settings - Fork 12
/
FunctionSigs.h
28 lines (22 loc) · 1.16 KB
/
FunctionSigs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// FunctionSigs.h: interface for the FunctionSigs class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FUNCTIONSIGS_H__C6DB9FEB_257B_46A5_A944_3629C2B0D33C__INCLUDED_)
#define AFX_FUNCTIONSIGS_H__C6DB9FEB_257B_46A5_A944_3629C2B0D33C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class FunctionSigs
{
public:
FunctionSigs();
virtual ~FunctionSigs();
private:
public:
ea_t FindBinaryWithDontCare(uchar* ubinstr, unsigned __int32 nSLength, ea_t eaStartAddress, ea_t eaEndAddr);//Finds the given binary string in the given binary. If 0xff then this is don't care
ea_t CreateFunctionAndComment(ea_t eaAddr, unsigned char* pFuncName, unsigned char* pComment, unsigned int iTries);// Creates a function at the address and auto comments it
void Comment(ea_t eaAddr, unsigned char* pDataName, unsigned char* pComment, unsigned int iTries);//Comments the address given
public:
void FindFuncSigsAndComment(ea_t eaStartAddr, ea_t eaEndAddr);//Looks for specific binary patterns and then makes a subroutine and comments it
};
#endif // !defined(AFX_FUNCTIONSIGS_H__C6DB9FEB_257B_46A5_A944_3629C2B0D33C__INCLUDED_)