Function at 0x140001140
Capabilities:
Acquire debug privileges
Enumerate processes
Enumerate threads
Suspend thread

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, 1
test eax, eax
jne 0x1400011ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcessToken_failed:__d_n
call fcn.140001020
lea rcx, str.StealthVGC_n
call fcn.140001020
mov eax, ebx
jmp 0x14000163e
lea r8, [rsp + 0x60]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1400011d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.LookupPrivilegeValue_failed:__d_n
jmp 0x140001224
mov rax, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
mov r9d, 0x10
mov qword [rsp + 0x28], 0
xor edx, edx
mov qword [rsp + 0x74], rax
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x7c], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140001249
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.AdjustTokenPrivileges_failed:__d_n
mov edx, eax
call fcn.140001020
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.StealthVGC_n
call fcn.140001020
mov eax, ebx
jmp 0x14000163e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.StealthVGC_n
call fcn.140001020
mov edx, ebx
lea rcx, [0x1400010e0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x14000128e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error:_Unable_to_set_console_control_handler:__d_n
call fcn.140001020
mov eax, ebx
jmp 0x14000163e
mov qword [rsp + 0x310], rsi
mov qword [rsp + 0x318], rdi
lea rdi, str.vgc.exe
mov qword [rsp + 0x320], r12
mov qword [rsp + 0x2f0], r13
mov qword [rsp + 0x2e8], r14
mov qword [rsp + 0x2e0], r15
nop word [rax + rax]
lea rcx, str._nSelect_an_option:_n1._2PC_Full_Emulate_n2._Exit_n
call fcn.140001020
lea rdx, [rsp + 0x68]
lea rcx, [0x140003850]
call fcn.140001080
cmp eax, 1
je 0x140001300
lea rcx, str.Invalid_input._Please_enter_a_number._n
call fcn.140001020
jmp 0x1400012d0
mov ecx, dword [rsp + 0x68]
sub ecx, 1
je 0x140001320
cmp ecx, 1
je 0x14000160c
lea rcx, str.Invalid_selection._Please_try_again._n
call fcn.140001020
jmp 0x1400012d0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000135b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_creating_snapshot:__d_n
call fcn.140001020
lea rcx, str.Process_vgc.exe_not_found._n
call fcn.140001020
jmp 0x1400012d0
lea rdx, [rbp - 0x70]
mov dword [rbp - 0x70], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400013a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_first_process:__d_n
call fcn.140001020
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Process_vgc.exe_not_found._n
call fcn.140001020
jmp 0x1400012d0
xor eax, eax
mov dword [rsp + 0x30], eax
nop word [rax + rax]
xor eax, eax
lea rdx, [rbp - 0x44]
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [rdi + rax*2 - 2]
jne 0x1400013fd
cmp rax, 8
jne 0x1400013c0
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x30], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x30]
test ebx, ebx
jne 0x140001410
lea rcx, str.Process_vgc.exe_not_found._n
call fcn.140001020
jmp 0x1400012d0
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400013b0
jmp 0x1400013db
xor r13d, r13d
mov dword [rsp + 0x70], 0xd110
xor r12d, r12d
mov dword [rsp + 0x74], 0x63c0
mov dword [rsp + 0x78], 0xc96f
mov dword [rsp + 0x7c], 0xdfb0
mov dword [rbp - 0x80], 0x64f0
nop dword [rax]
mov esi, dword [rsp + r12*4 + 0x70]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001474
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_creating_snapshot:__d_n
call fcn.140001020
jmp 0x1400015d9
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x1400014b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_first_thread:__d_n
call fcn.140001020
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400015d9
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400014e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_handle_to_ntdll.dll:__d_n
call fcn.140001020
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400015d9
lea rdx, str.NtQueryInformationThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
jne 0x14000151e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_address_of_NtQueryInformationThread:__d_n
call fcn.140001020
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400015d9
xor r14d, r14d
cmp dword [rsp + 0x4c], ebx
jne 0x1400015ae
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1400015aa
xor eax, eax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov r9d, 8
mov dword [rsp + 0x38], eax
mov edx, 9
lea rax, [rsp + 0x38]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call r15
test eax, eax
jne 0x1400015a1
movzx eax, word [rsp + 0x60]
cmp eax, esi
jne 0x1400015a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x14000159b
mov edx, esi
lea rcx, str.Failed_to_suspend_thread_with_start_address_pattern_0x_04X_n
call fcn.140001020
jmp 0x1400015a1
mov r14d, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001521
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
mov eax, 1
cmovne r13d, eax
inc r12
cmp r12, 5
jl 0x140001440
test r13d, r13d
lea rax, str.Successfully_Emulated__n
lea rcx, str.No_threads_were_suspended._n
cmovne rcx, rax
lea rdi, str.vgc.exe
call fcn.140001020
jmp 0x1400012d0
mov r15, qword [rsp + 0x2e0]
xor eax, eax
mov r14, qword [rsp + 0x2e8]
mov r13, qword [rsp + 0x2f0]
mov r12, qword [rsp + 0x320]
mov rdi, qword [rsp + 0x318]
mov rsi, qword [rsp + 0x310]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140001670
add rsp, 0x2f8
pop rbx
pop rbp
ret