From 91a49b5d03db9384b99264020fcc1bacd5d3e9d3 Mon Sep 17 00:00:00 2001
From: nasm <108567399+NasmMachineAssembly@users.noreply.github.com>
Date: Sat, 2 Jul 2022 03:20:50 -0400
Subject: [PATCH] Release
---
apex-sdk.vcxproj | 192 +
apex-sdk.vcxproj.filters | 116 +
apex-sdk.vcxproj.user | 6 +
cheat/core.cpp | 100 +
cheat/game/sdk.hpp | 1212 ++
cheat/internal/actor/actors.hpp | 688 +
cheat/internal/core.hpp | 46 +
cheat/internal/updater/updater.hpp | 59 +
cheat/internal/utility.hpp | 1248 ++
dllmain.cpp | 28 +
impl/hooking/REMOVED.txt | 1 +
impl/libraries/ImGui/LICENSE.txt | 21 +
impl/libraries/ImGui/imconfig.h | 61 +
impl/libraries/ImGui/imgui.cpp | 11665 ++++++++++++
impl/libraries/ImGui/imgui.h | 1703 ++
impl/libraries/ImGui/imgui_draw.cpp | 2865 +++
impl/libraries/ImGui/imgui_impl_dx11.cpp | 844 +
impl/libraries/ImGui/imgui_impl_dx11.h | 21 +
impl/libraries/ImGui/imgui_internal.h | 995 +
impl/libraries/ImGui/imgui_xorstr.h | 238 +
impl/libraries/ImGui/stb_rect_pack.h | 588 +
impl/libraries/ImGui/stb_textedit.h | 1328 ++
impl/libraries/ImGui/stb_truetype.h | 4075 ++++
impl/libraries/lazyimporter/lazyimporter.hpp | 624 +
impl/libraries/shellcode.asm | 30 +
impl/libraries/xor/xor.hpp | 269 +
impl/render/font.h | 16746 +++++++++++++++++
impl/render/present.h | 197 +
28 files changed, 45966 insertions(+)
create mode 100644 apex-sdk.vcxproj
create mode 100644 apex-sdk.vcxproj.filters
create mode 100644 apex-sdk.vcxproj.user
create mode 100644 cheat/core.cpp
create mode 100644 cheat/game/sdk.hpp
create mode 100644 cheat/internal/actor/actors.hpp
create mode 100644 cheat/internal/core.hpp
create mode 100644 cheat/internal/updater/updater.hpp
create mode 100644 cheat/internal/utility.hpp
create mode 100644 dllmain.cpp
create mode 100644 impl/hooking/REMOVED.txt
create mode 100644 impl/libraries/ImGui/LICENSE.txt
create mode 100644 impl/libraries/ImGui/imconfig.h
create mode 100644 impl/libraries/ImGui/imgui.cpp
create mode 100644 impl/libraries/ImGui/imgui.h
create mode 100644 impl/libraries/ImGui/imgui_draw.cpp
create mode 100644 impl/libraries/ImGui/imgui_impl_dx11.cpp
create mode 100644 impl/libraries/ImGui/imgui_impl_dx11.h
create mode 100644 impl/libraries/ImGui/imgui_internal.h
create mode 100644 impl/libraries/ImGui/imgui_xorstr.h
create mode 100644 impl/libraries/ImGui/stb_rect_pack.h
create mode 100644 impl/libraries/ImGui/stb_textedit.h
create mode 100644 impl/libraries/ImGui/stb_truetype.h
create mode 100644 impl/libraries/lazyimporter/lazyimporter.hpp
create mode 100644 impl/libraries/shellcode.asm
create mode 100644 impl/libraries/xor/xor.hpp
create mode 100644 impl/render/font.h
create mode 100644 impl/render/present.h
diff --git a/apex-sdk.vcxproj b/apex-sdk.vcxproj
new file mode 100644
index 0000000..aa1ad39
--- /dev/null
+++ b/apex-sdk.vcxproj
@@ -0,0 +1,192 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 16.0
+ Win32Proj
+ {f60437e1-fc15-4949-90c3-655d3b9893ef}
+ apexsdk
+ 10.0
+
+
+
+ Application
+ true
+ v143
+ Unicode
+
+
+ Application
+ false
+ v143
+ true
+ Unicode
+
+
+ Application
+ true
+ v143
+ Unicode
+
+
+ DynamicLibrary
+ false
+ v143
+ false
+ MultiByte
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+ false
+
+
+ true
+
+
+ false
+ ..\build
+ ..\logs
+ apex
+ C:\Users\x\source\repos\apex-sdk\apex-sdk;C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include;$(IncludePath)
+ C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64;$(LibraryPath)
+
+
+
+ Level3
+ true
+ WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+
+
+ Console
+ true
+
+
+
+
+ Level3
+ true
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+
+
+ Console
+ true
+ true
+ true
+
+
+
+
+ Level3
+ true
+ _DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+
+
+ Console
+ true
+
+
+
+
+ Level3
+ true
+ true
+ true
+ NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+ stdcpp20
+ 4996;26812
+
+
+ Console
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/apex-sdk.vcxproj.filters b/apex-sdk.vcxproj.filters
new file mode 100644
index 0000000..7f30e34
--- /dev/null
+++ b/apex-sdk.vcxproj.filters
@@ -0,0 +1,116 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd
+
+
+ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
+ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
+
+
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+
+
+ Source Files
+
+
+
\ No newline at end of file
diff --git a/apex-sdk.vcxproj.user b/apex-sdk.vcxproj.user
new file mode 100644
index 0000000..429333d
--- /dev/null
+++ b/apex-sdk.vcxproj.user
@@ -0,0 +1,6 @@
+
+
+
+ true
+
+
\ No newline at end of file
diff --git a/cheat/core.cpp b/cheat/core.cpp
new file mode 100644
index 0000000..e8b24e2
--- /dev/null
+++ b/cheat/core.cpp
@@ -0,0 +1,100 @@
+#pragma once
+#include
+#include
+#include
+
+
+memory_hook::memhook_context *present_hook;
+memory_hook::memhook_context *clientmode_hook;
+
+
+
+auto c_swapchain() -> bool
+{
+ utility *utility {};
+
+ auto level = D3D_FEATURE_LEVEL_11_0;
+
+ apex_output( x("c_swapchain: called") );
+
+ DXGI_SWAP_CHAIN_DESC Description;
+ IDXGISwapChain *swap_chain = nullptr;
+ ID3D11Device *device = nullptr;
+ ID3D11DeviceContext *context = nullptr;
+
+ itemCfg::heals = false; //ectedTypes[0];
+ itemCfg::guns = false; //ectedTypes[1];
+ itemCfg::attachment = false; //ectedTypes[2];
+ itemCfg::ammo = false; //ectedTypes[3];
+ itemCfg::scopes = false; //ectedTypes[4];
+ itemCfg::throwables = false; //ectedTypes[5];
+ itemCfg::armor = false; //ectedTypes[6];
+ itemCfg::evoarmor = false; //ectedTypes[7];
+ itemCfg::knockdownshield = false; //ectedTypes[8];
+ itemCfg::backpacks = false; //ectedTypes[9];
+ itemCfg::helmets = false; //ectedTypes[10];
+
+ HWND Window = utility->call( FindWindowA, ( "Respawn001" ), ( "Apex Legends" ) );
+
+ if ( !Window )
+ {
+ apex_output( x("c_swapchain: can't find window") );
+ return false;
+ }
+
+ NtGetAsyncKeyState = ( keyword ) lazy_import( GetProcAddress )( lazy_import( GetModuleHandleA )( xorstr( "win32u.dll" ) ), xorstr( "NtUserGetAsyncKeyState" ) ); //getasynckeystate hijacked on nt
+ ZeroMemory( &Description, sizeof Description );
+
+ Description.BufferCount = 1;
+ Description.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
+ Description.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
+ Description.OutputWindow = Window;
+ Description.SampleDesc.Count = 1;
+ Description.Windowed = TRUE;
+ Description.BufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED;
+ Description.BufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED;
+ Description.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
+
+ apex_output( x( "c_swapchain: description toggled" ) );
+
+ lazy_import( D3D11CreateDeviceAndSwapChain )( nullptr, D3D_DRIVER_TYPE_HARDWARE, nullptr, 0, &level, 1, D3D11_SDK_VERSION, &Description, &swap_chain, &device, nullptr, &context );
+
+ //checksum = ( uint64_t ) scanner::find( x( "48 89 5C 24 ?? 55 48 8B EC 48 81 EC ?? ?? ?? ?? 48 8B 05 ?? ?? ?? ?? 48 8B D9" ) );
+
+ //GetChecksum = ( _GetChecksum ) ( checksum );
+
+ //DWORD64 cm = ( uint64_t ) scanner::find(x( "48 8B C4 55 56 41 57 48 8D 68 A1 48 81 EC ? ? ? ? 48 89 58 18" ) );
+ //_CreateMove tmpCreateMove = ( _CreateMove ) ( cm );
+
+ //clientmode_hook = memory_hook::create_context( tmpCreateMove );
+ //OLD_CreateMove = clientmode_hook->hook( CreateMoveHk );
+ //clientmode_hook->enable_hook();
+
+ uint64_t *swap_chain_vtable = *( uint64_t ** ) swap_chain;
+
+ present_hook = memory_hook::create_context( swap_chain_vtable[8] );
+
+ c_original = present_hook->hook( pkHook );
+
+ present_hook->enable_hook();
+
+ oriWndProc = ( WNDPROC ) utility->call( SetWindowLongPtr, Window, GWLP_WNDPROC, ( LONG_PTR ) WndProc );
+ return true;
+}
+
+auto unloadCheat() -> bool
+{
+ utility *utility {};
+
+ if ( unload )
+ {
+ cfg::chams = false;
+ HWND Window = utility->call( FindWindowA, ( "Respawn001" ), ( "Apex Legends" ) );
+ utility->call( SetWindowLongPtr, Window, GWLP_WNDPROC, ( LONG_PTR ) oriWndProc );
+ //memory_hook::destroy_context( present_hook );
+ present_hook->destroy_hook();
+
+ return true;
+ }
+ return false;
+}
\ No newline at end of file
diff --git a/cheat/game/sdk.hpp b/cheat/game/sdk.hpp
new file mode 100644
index 0000000..50756ce
--- /dev/null
+++ b/cheat/game/sdk.hpp
@@ -0,0 +1,1212 @@
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include