Function at 0x140001b80
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1a0
mov rcx, qword [0x140161318]
mov edx, 0xe
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001e80
lea rcx, str.Waiting_Game..._n
call fcn.140001030
call fcn.140001ae0
xor edi, edi
mov rbx, rax
test eax, eax
jne 0x140001c66
nop dword [rax]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov dword [rsp + 0x70], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x140001c50
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x140001c50
nop word [rax + rax]
lea rdx, str.TOTClient_Win64_Shipping.exe
lea rcx, [rsp + 0x9c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rbx
test eax, eax
je 0x140001d44
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x140001c20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov ebx, eax
test eax, eax
je 0x140001bd0
mov edx, ebx
lea rcx, str.Process_pid:__d_n
call fcn.140001030
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
mov qword [rsp + 0x58], rdi
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001cfb
lea r8, [rsp + 0x64]
mov dword [rsp + 0x60], 1
lea rdx, str.SeDebugPrivilege
mov dword [rsp + 0x6c], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140001cf0
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140001d53
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Process_not_found__n
call fcn.140001030
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [rbx - 2]
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x1a0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x78]
jmp 0x140001c5c
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x140001d7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_confirm_target_process_architecture:_0x_X_n
call fcn.140001030
jmp 0x140001daa
mov dword [rsp + 0x1c8], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x1c8]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rsp + 0x1c8]
cmp dword [rsp + 0x50], eax
je 0x140001de0
lea rcx, str.Invalid_Process__n
call fcn.140001030
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xfffffffd
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x1a0
pop rdi
ret
lea rcx, str.Injecting..._n
call fcn.140001030
mov rcx, rbx
call fcn.140001090
test al, al
jne 0x140001e3a
lea rcx, [0x1400050a0]
call fcn.1400020a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Injection_Failed__n
call fcn.140001030
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xfffffff8
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x1a0
pop rdi
ret
lea rcx, str.Injection_successfully__n
call fcn.140001030
lea rcx, [0x1400050a0]
call fcn.1400020a4
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x1b0]
xor eax, eax
add rsp, 0x1a0
pop rdi
ret