Function at 0x140001690
Capabilities:
Acquire debug privileges
Enumerate processes
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r15, rdx
xor r12d, r12d
cmp ecx, 3
je 0x14000173a
lea rdx, str.Usage:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140003150
mov rcx, rax
mov rdx, qword [r15]
call fcn.140003150
mov rcx, rax
lea rdx, str.__process_name___process_id_
call fcn.140003150
mov rcx, rax
lea rdx, [0x140003330]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea eax, [r12 + 1]
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140003d30
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rsi, qword [rdx + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rsi + rbx*2], r12w
jne 0x140001760
movabs r14, 0x7ffffffffffffffe
cmp rbx, r14
ja 0x140001ed2
cmp rbx, 7
ja 0x1400017af
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], 7
add rbx, rbx
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x58], r12w
jmp 0x140001860
mov rax, rbx
or rax, 7
cmp rax, r14
jbe 0x1400017cb
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x1400017fd
mov r14, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r14, rcx
lea rcx, [r14 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140001ed8
add rcx, rcx
cmp rcx, 0x1000
jb 0x140001829
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001ed8
mov rcx, rax
call fcn.140003d50
test rax, rax
je 0x140001ebf
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000183b
test rcx, rcx
je 0x140001838
call fcn.140003d50
mov rdi, rax
jmp 0x14000183b
mov rdi, r12
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], r14
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r12w
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov r14d, eax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rdi, rdi
je 0x1400018d7
lea rdx, str.OpenProcessToken
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140009978], rax
lea rdx, str.LookupPrivilegeValueW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140009980], rax
lea rdx, str.AdjustTokenPrivileges
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140009950], rax
test rbx, rbx
je 0x14000194f
lea rdx, str.OpenProcess
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140009960], rax
lea rdx, str.ReadProcessMemory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140009970], rax
lea rdx, str.GetLastError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140009958], rax
lea rdx, str.VirtualQueryEx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140009948], rax
lea rdx, str.GetSystemInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140009968], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x50]
mov edx, 0x28
call qword [0x140009978]
mov esi, 1
test eax, eax
je 0x140001e62
lea r8, [rsp + 0x7c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [0x140009980]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140001e5c
mov dword [rsp + 0x78], esi
mov dword [rbp - 0x7c], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9d, [rsi + 0xf]
lea r8, [rsp + 0x78]
xor edx, edx
call qword [0x140009950]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140001e5c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x140001adf
mov r14d, r12d
xor edx, edx
lea ecx, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001a9a
mov dword [rbp - 0x40], 0x238
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001a91
nop
lea rax, [rbp - 0x14]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x140001a20
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x68]
mov r8, r10
cmp rcx, r10
cmovb r8, rcx
lea rdx, [rbp - 0x14]
test r8, r8
je 0x140001a73
lea rax, [rbp - 0x14]
sub r9, rax
nop word [rax + rax]
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x140001a7a
add rdx, 2
sub r8, rsi
jne 0x140001a60
cmp r10, rcx
jb 0x140001a7a
jbe 0x140001a8d
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001a10
jmp 0x140001a91
mov r14d, dword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x140001adf
lea rdx, str.Process
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140003150
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
mov rcx, rax
call fcn.140003950
lea rdx, str._not_found.
mov rcx, rax
jmp 0x140001e70
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
lea r9, [rbp + 0x22a]
test eax, eax
jns 0x140001b40
neg r8d
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140001b00
add r9, 0xfffffffffffffffe
mov word [r9], 0x2d
jmp 0x140001b70
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140001b40
lea r8, [rbp + 0x22a]
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.140003800
nop
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r8
cmp rax, 7
jb 0x140001c32
lea rax, [r8 + 7]
mov qword [rsp + 0x40], rax
lea rdi, [rsp + 0x30]
cmp rcx, 7
cmova rdi, qword [rsp + 0x30]
lea rax, [0x1400057d6]
lea r15, str.output_
cmp rax, rdi
jbe 0x140001be8
lea rax, [rdi + r8*2]
cmp r15, rax
ja 0x140001be8
cmp rdi, r15
ja 0x140001bdd
mov rbx, r12
jmp 0x140001bed
mov rbx, rdi
sub rbx, r15
sar rbx, 1
jmp 0x140001bed
mov ebx, 7
lea rcx, [rdi + 0xe]
lea r8, [r8*2 + 2]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
mov r8d, 0xe
sub r8, rbx
lea rdx, [r15 + 0xe]
add rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x30]
jmp 0x140001c4a
mov qword [rsp + 0x28], 7
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140003b20
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x140001cc0
lea rax, [rcx + 4]
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x78]
cmp rdx, 7
cmova rax, qword [rsp + 0x78]
movabs rdx, 0x6e00690062002e
mov qword [rax + rcx*2], rdx
mov word [rax + rcx*2 + 8], r12w
lea rax, [rsp + 0x78]
jmp 0x140001cd8
mov qword [rsp + 0x20], 4
mov edx, 4
lea rcx, [rsp + 0x78]
call fcn.1400035e0
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x140001d4a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003d8c
movdqa xmm0, xmmword [0x140005900]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r12w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140001da2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d9d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003d8c
movdqa xmm0, xmmword [0x140005900]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r12w
lea rdx, [rbp - 0x68]
mov ecx, r14d
call fcn.140001290
test al, al
je 0x140001e06
lea rdx, str.Memory_dump_created_successfully_at
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003150
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
mov rcx, rax
call fcn.140003950
mov rcx, rax
lea rdx, [0x140003330]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov esi, r12d
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x140001e49
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003d8c
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r12w
jmp 0x140001e86
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Failed_to_enable_debug_privilege.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140003150
lea rdx, [0x140003330]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140001ecb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ec6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ec6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003d8c
mov eax, esi
jmp 0x14000170f
call fcn.1400011b0
int3
call fcn.140001110
int3