2006-12-31 14:59:07 +00:00
|
|
|
|
|
|
|
|
2007-01-09 10:53:19 +00:00
|
|
|
/* 64bits unsigned */
|
|
|
|
#define CPU_UNINT64 unsigned long long
|
2006-12-31 14:59:07 +00:00
|
|
|
|
2007-01-09 10:53:19 +00:00
|
|
|
/* 32bits */
|
|
|
|
#define CPU_UNINT unsigned int
|
|
|
|
#define CPU_INT int
|
2006-12-31 14:59:07 +00:00
|
|
|
|
2007-01-09 10:53:19 +00:00
|
|
|
/* 8bits unsigned */
|
|
|
|
#define CPU_BYTE unsigned char
|
2006-12-31 14:59:07 +00:00
|
|
|
|
2007-01-09 10:53:19 +00:00
|
|
|
/* Prototypes for misc stuff */
|
2007-01-13 12:23:25 +00:00
|
|
|
CPU_INT LoadPFileImage(char *infileName, char *outputfileName, CPU_UNINT BaseAddress, char *cpuid, CPU_UNINT type, CPU_INT mode);
|
|
|
|
CPU_INT PEFileStart( CPU_BYTE *memory, CPU_UNINT pos, CPU_UNINT base, CPU_UNINT size, FILE *outfp, CPU_INT mode);
|
2007-01-02 02:21:58 +00:00
|
|
|
|
2006-12-31 14:59:07 +00:00
|
|
|
CPU_UNINT ConvertBitToByte(CPU_BYTE *bit);
|
|
|
|
CPU_UNINT GetMaskByte(CPU_BYTE *bit);
|
|
|
|
|
2007-01-01 00:30:58 +00:00
|
|
|
CPU_UNINT ConvertBitToByte32(CPU_BYTE *bit);
|
|
|
|
CPU_UNINT GetMaskByte32(CPU_BYTE *bit);
|
|
|
|
|
2007-01-13 17:27:14 +00:00
|
|
|
CPU_UNINT GetData32Le(CPU_BYTE *cpu_buffer);
|
|
|
|
CPU_UNINT GetData32Be(CPU_BYTE *cpu_buffer);
|
|
|
|
|
2007-01-13 23:26:32 +00:00
|
|
|
CPU_INT AllocAny();
|
2007-01-14 10:57:18 +00:00
|
|
|
CPU_INT FreeAny();
|
2007-01-14 13:54:19 +00:00
|
|
|
CPU_INT AnyalsingProcess();
|
2007-01-14 18:01:56 +00:00
|
|
|
CPU_INT ConvertToIntelProcess(FILE *outfp, CPU_INT cpuid);
|
2007-01-14 13:54:19 +00:00
|
|
|
|