From a9034bbb61ef8421106be6bc07e06bc897fc2699 Mon Sep 17 00:00:00 2001 From: KionX <5648030+KionX@users.noreply.github.com> Date: Sat, 4 Jan 2020 16:23:37 +0500 Subject: [PATCH 1/3] Add files via upload --- hooks/hook_ConsoleLog.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hooks/hook_ConsoleLog.cpp diff --git a/hooks/hook_ConsoleLog.cpp b/hooks/hook_ConsoleLog.cpp new file mode 100644 index 00000000..0ee379f8 --- /dev/null +++ b/hooks/hook_ConsoleLog.cpp @@ -0,0 +1,16 @@ +//HOOK ConsoleLog ROffset = 0x0001CE0A +#include "../preprocessor/define.h" +#include "../preprocessor/macro.h" + +__asm__ +( + ".equ _funcPtr,"QU(ConsoleLog)"-0x0041CE0A \n" +); + +__asm__ volatile +( //0041CE0A + "JMP _funcPtr \n" + "NOP \n" + "NOP \n" + ".align 128, 0x0 \n" +); \ No newline at end of file From a81fb198573acfdc96bcc2c2b1efe4ff80ba688a Mon Sep 17 00:00:00 2001 From: KionX <5648030+KionX@users.noreply.github.com> Date: Sat, 4 Jan 2020 16:23:53 +0500 Subject: [PATCH 2/3] Add files via upload --- sections/ConsoleLog.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sections/ConsoleLog.cpp diff --git a/sections/ConsoleLog.cpp b/sections/ConsoleLog.cpp new file mode 100644 index 00000000..85f4840e --- /dev/null +++ b/sections/ConsoleLog.cpp @@ -0,0 +1,11 @@ +void ConsoleLog() +{ + __asm__ + ( + "MOV DWORD PTR SS:[EBP-4],2 \n" + "PUSH [ESP+0xF4] \n" + "CALL 0x00937CB0 \n" + "ADD ESP,4 \n" + "JMP 0x0041CE11 \n" + ); +} \ No newline at end of file From bee821b450eaab3b7a41598919ebb74c6e3dd87a Mon Sep 17 00:00:00 2001 From: KionX <5648030+KionX@users.noreply.github.com> Date: Sat, 4 Jan 2020 16:28:50 +0500 Subject: [PATCH 3/3] Add files via upload --- sections/ConsoleLog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sections/ConsoleLog.cpp b/sections/ConsoleLog.cpp index 85f4840e..87fc2c52 100644 --- a/sections/ConsoleLog.cpp +++ b/sections/ConsoleLog.cpp @@ -1,5 +1,5 @@ void ConsoleLog() -{ +{//Writes called console commands to the log. __asm__ ( "MOV DWORD PTR SS:[EBP-4],2 \n"