-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
218 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "code_caves.hpp" | ||
|
||
namespace CodeCave | ||
{ | ||
uintptr_t DMenu_Addr = 0; | ||
uintptr_t DebugDraw_UpdateLoopAddr = 0; | ||
uintptr_t DebugDraw_UpdateLoopReturnAddr = 0; | ||
uintptr_t DMenu_Update = 0; | ||
|
||
void __attribute__((naked)) DebugDraw_UpdateLoop() | ||
{ | ||
__asm | ||
{ | ||
mov rcx, [DMenu_Addr]; | ||
mov rcx, [rcx]; | ||
call[DMenu_Update]; | ||
jmp[DebugDraw_UpdateLoopReturnAddr]; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include "helper.hpp" | ||
|
||
namespace CodeCave | ||
{ | ||
extern uintptr_t DMenu_Addr; | ||
extern uintptr_t DebugDraw_UpdateLoopAddr; | ||
extern uintptr_t DebugDraw_UpdateLoopReturnAddr; | ||
extern uintptr_t DMenu_Update; | ||
void __attribute__((naked)) DebugDraw_UpdateLoop(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
|
||
namespace Patterns | ||
{ | ||
const wchar_t* DMenu_Ptr = L"48 8b 0d ?? ?? ?? ?? 44 8b c0 44 8b bf d0 00 00 00 41 f7 d0"; | ||
const wchar_t* DebugDraw_UpdateLoop = L"48 8b 05 ?? ?? ?? ?? 0f b6 88 ?? ?? ?? ?? 38 4f 72 74 ?? 88 4f 72"; | ||
const wchar_t* DMenu_Update = L"48 89 5c 24 ?? 48 89 74 24 ?? 48 89 7c 24 ?? 55 41 54 41 55 41 56 41 57 48 8d ac 24 ?? ?? ?? ?? 48 81 ec ?? ?? ?? ?? 48 8b 05 ?? ?? ?? ?? 48 33 c4 48 89 85 ?? ?? ?? ?? 80 3d ?? ?? ?? ?? ??"; | ||
const wchar_t* skiplogos_clarg = L"0f b6 05 ?? ?? ?? ?? 84 c0 0f 84 ?? ?? ?? ?? 48 8b 05 ?? ?? ?? ?? 40 38 b8 ?? ?? ?? ?? 0f 84 ?? ?? ?? ??"; | ||
const wchar_t* GamePrintf = L"48 89 4c 24 ?? 48 89 54 24 ?? 4c 89 44 24 ?? 4c 89 4c 24 ?? 53 56 57 48 83 ec ?? 48 8b f9"; | ||
} |