Function at 0x140001d40
Capabilities:
Acquire debug privileges
Check if file exists
Create thread
Enumerate process modules
Enumerate processes
Get file attributes
Inject dll
Inject thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
cmp ecx, 4
je 0x140001d69
mov eax, 1
jmp 0x14000278d
mov rdi, qword [rdx + 8]
mov r15, qword [rdx + 0x10]
mov r14, qword [rdx + 0x18]
mov dword [rbp + 0x3c0], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
lea rdx, [rbp + 0x3c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor r12d, r12d
test eax, eax
je 0x140001de9
lea rcx, [rbp + 0x3ec]
mov r8, rdi
sub r8, rcx
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x140001dc5
add rcx, 2
test eax, eax
jne 0x140001db1
mov rcx, rbx
test edx, edx
je 0x140001ddb
lea rdx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140001da0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rbp + 0x3c8]
jmp 0x140001df5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, r12d
lea rax, str.cs2.exe
cmp rdi, rax
jne 0x14000235a
nop word [rax + rax]
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.client.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140001e77
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x140001e4b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
je 0x140001e10
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.engine2.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140001eee
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x140001ec2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
je 0x140001e10
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.schemasystem.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140001f69
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x140001f3d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
je 0x140001e10
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.inputsystem.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140001fe4
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x140001fb8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
je 0x140001e10
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.SDL3.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x14000205f
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x140002033
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
je 0x140001e10
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.tier0.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x1400020da
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x1400020ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
je 0x140001e10
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.scenesystem.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140002155
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x140002129
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
je 0x140001e10
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.particles.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x1400021d0
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x1400021a4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
je 0x140001e10
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.navsystem.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x14000224b
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x14000221f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
je 0x140001e10
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.materialsystem2.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x1400022c6
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x14000229a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
je 0x140001e10
mov edx, esi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001e10
xor edx, edx
mov r8d, 0x434
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x438
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000234c
lea rdx, str.localize.dll
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x14000233d
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x140002315
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x68], r12
jmp 0x140001dff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001e10
test esi, esi
je 0x14000278b
lea rdx, str.loadlibrary
mov rcx, r12
nop dword [rax]
movzx eax, word [r14 + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x1400024b9
movzx eax, word [r14 + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x1400024b9
add rcx, 2
cmp rcx, 0xc
jne 0x140002370
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000278b
mov rcx, 0xffffffffffffffff
nop dword [rax]
lea rcx, [rcx + 1]
cmp word [r15 + rcx*2], r12w
jne 0x1400023c0
lea rsi, [rcx*2 + 2]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, rsi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov rcx, rbx
test rax, rax
je 0x14000248b
mov qword [rsp + 0x20], r12
mov r9, rsi
mov r8, r15
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LoadLibraryW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002496
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
je 0x140002496
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000278b
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000278b
lea rdx, str.manualmap
mov rcx, r12
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r14 + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x14000278b
movzx eax, word [r14 + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x14000278b
add rcx, 2
cmp rcx, 0xa
jne 0x1400024d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rbp + 0x658], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x658]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000257e
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
lea r8, [rsp + 0x54]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140002571
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rbp + 0x658]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp + 0x658]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400025a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rbx - 2]
jmp 0x14000278d
mov dword [rbp + 0x650], r12d
lea rdx, [rbp + 0x650]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x1400025e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_confirm_target_process_architecture:_0x_X_n
call fcn.140001a60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x14000278d
mov dword [rbp + 0x640], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0x640]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rbp + 0x640]
cmp dword [rbp + 0x650], eax
je 0x140002624
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x14000278d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000263c
mov eax, 0xfffffffc
jmp 0x14000278d
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140003430
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x140002696
lea rcx, [rbp - 0x70]
call fcn.140003820
test rax, rax
jne 0x14000268c
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov ebx, 0xfffffffb
jmp 0x140002766
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, qword [rsp + 0x60]
add rcx, qword [rsp + 0x68]
cmp rcx, 0x1000
jge 0x1400026e9
lea rcx, [rbp - 0x70]
call fcn.140003820
test rax, rax
jne 0x1400026e2
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov ebx, 0xfffffffa
jmp 0x140002766
call fcn.140003bf4
mov rdi, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov r8, qword [rsp + 0x68]
add r8, qword [rsp + 0x60]
mov rdx, rdi
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x70]
call fcn.140003820
test rax, rax
jne 0x140002741
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rdx, rdi
mov rcx, rbx
call fcn.140001010
mov rcx, rdi
test al, al
jne 0x140002773
call fcn.140003ba8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xfffffff8
lea rcx, [rbp - 0x80]
call fcn.1400027a0
mov eax, ebx
jmp 0x14000278d
call fcn.140003ba8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x80]
call fcn.1400027a0
xor eax, eax
add rsp, 0x700
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret