diff --git a/analysis_function.h b/analysis_function.h index 424735b..6b31c2e 100644 --- a/analysis_function.h +++ b/analysis_function.h @@ -7,6 +7,7 @@ typedef unsigned char byte; +// Returns the real address of the passed function byte* AF_address(byte* f) { byte* real_address = NULL; #ifdef _MSC_VER // MSVC @@ -23,14 +24,14 @@ byte* AF_address(byte* f) { return real_address; } -// Print bytes from address to address+size +// Print bytes from address to address+size (Use AF_address to get function ptr) int32_t AF_print_bytes(byte* a, int32_t size) { for (int32_t i = 0; i < size; ++i) { printf("%02X ", *(a + i)); } } -// Get any function size +// Get any function size (Use AF_address to get function ptr) int32_t AF_size(byte* f) { byte* p = f; for (; *p != RET; ++p);