Function at 0x140001340
Capabilities:
Acquire debug privileges
Create process on windows
Create thread
Enumerate processes
Inject thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x6b0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x490]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0xb0], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0xd4], xmm0
movups xmmword [rsp + 0xe4], xmm0
movups xmmword [rsp + 0xf4], xmm0
movups xmmword [rsp + 0x104], xmm0
mov qword [rsp + 0x114], rax
mov dword [rsp + 0x11c], eax
lea rsi, str.RustClient.exe
mov qword [rsp + 0xc8], rsi
lea rax, [0x140005628]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xe0], 5
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140001445
lea rdx, [0x140005630]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400029c0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140002d50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3a98
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0xa8]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400014ea
lea r8, [rsp + 0x230]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400014ea
mov dword [rsp + 0x238], 1
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x23c], rax
mov dword [rsp + 0x244], 2
xor r15d, r15d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 0x10]
lea r8, [rsp + 0x238]
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
jmp 0x1400014ed
xor r15d, r15d
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x120]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x120]
call fcn.140002510
mov rax, qword [rsp + 0x120]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x120]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
movzx ebx, al
mov rcx, qword [rsp + 0x120]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x120], rax
mov rcx, qword [rsp + 0x120]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rsp + rdx + 0x11c], r8d
lea rcx, [rsp + 0x130]
call fcn.140002430
lea rcx, [rsp + 0x138]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
test bl, bl
je 0x1400017a3
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400017ce
mov dword [rsp + 0x250], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x254]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x250]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400017c5
mov r14, 0xffffffffffffffff
nop
lea rdx, [rsp + 0x27c]
mov rax, r14
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rsi + rax*2 + 2]
jne 0x140001620
add rax, 2
cmp rax, 0xf
je 0x14000163b
movzx ecx, word [rdx + rax*2]
cmp cx, word [rsi + rax*2]
je 0x140001600
lea rdx, [rsp + 0x250]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1400017c5
jmp 0x1400015f0
mov ebx, dword [rsp + 0x258]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400017f6
mov r8d, 0x104
lea rdx, str.EasyAntiCheat.dll
lea rcx, [rsp + 0x490]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
mov dword [rsp + 0x230], r15d
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x14000175e
lea rax, [rsp + 0x490]
nop dword [rax]
lea r14, [r14 + 1]
cmp word [rax + r14*2], 0
jne 0x1400016c0
lea r9, [r14*2 + 2]
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x490]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001749
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rsi
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
je 0x140001749
mov edx, 0xfa0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140001740
lea rdx, [rsp + 0x230]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [rsp + 0x230], 0
je 0x140001818
xor eax, eax
jmp 0x140001775
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.140003080
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
lea rdx, str.DLL_not_found.
lea rcx, [rsp + 0x48]
call fcn.1400011d0
lea rdx, [0x140006938]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Process_is_not_running.
lea rcx, [rsp + 0x90]
call fcn.1400011d0
lea rdx, [0x140006938]
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_open_process.
lea rcx, [rsp + 0x60]
call fcn.1400011d0
lea rdx, [0x140006938]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_inject_DLL.
lea rcx, [rsp + 0x78]
call fcn.1400011d0
lea rdx, [0x140006938]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3