Function at 0x1800208e0
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x3d8]
sub rsp, 0x4c0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov esi, dword [rdx]
test esi, esi
jne 0x180020933
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov word [rbp - 0x70], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.1800b6c70
mov word [rbp + 0x1a0], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a2]
call fcn.1800b6c70
mov dword [rsp + 0x54], 0x104
mov dword [rsp + 0x58], 0x104
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], ebx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
mov r8d, 0x10
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800166f0
nop
lea rcx, [rsp + 0x70]
call fcn.180020560
nop
cmp qword [rbp - 0x78], 8
jb 0x1800209c9
mov rcx, qword [rsp + 0x70]
call fcn.1800b5700
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
mov r8d, esi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x180020bae
lea rcx, [rsp + 0x70]
call fcn.18001e6f0
mov rsi, rax
cmp qword [rax + 0x18], 0x10
jb 0x180020a0d
mov rsi, qword [rax]
call fcn.18001f1d0
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
cmp qword [rbp - 0x78], 0x10
jb 0x180020a32
mov rcx, qword [rsp + 0x70]
call fcn.1800b5700
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], rbx
mov byte [rsp + 0x70], 0
test rsi, rsi
je 0x180020bae
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, r14
call rsi
test eax, eax
je 0x180020bae
lea rcx, [rsp + 0x70]
call fcn.18001e850
mov rsi, rax
cmp qword [rax + 0x18], 0x10
jb 0x180020a7a
mov rsi, qword [rax]
call fcn.18001f1d0
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
cmp qword [rbp - 0x78], 0x10
jb 0x180020a9f
mov rcx, qword [rsp + 0x70]
call fcn.1800b5700
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], rbx
mov byte [rsp + 0x70], 0
test rsi, rsi
je 0x180020bae
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x48]
call rsi
test eax, eax
jne 0x180020ae9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180020bae
mov ecx, dword [rsp + 0x40]
call fcn.1800b70a4
mov r14, rax
test rax, rax
je 0x180020bae
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8, r14
mov edx, 1
mov rcx, qword [rsp + 0x48]
call rsi
test eax, eax
je 0x180020ba6
lea rcx, [rsp + 0x70]
call fcn.18001e9d0
mov rsi, rax
cmp qword [rax + 0x18], 0x10
jb 0x180020b3b
mov rsi, qword [rax]
call fcn.18001f1d0
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
cmp qword [rbp - 0x78], 0x10
jb 0x180020b60
mov rcx, qword [rsp + 0x70]
call fcn.1800b5700
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], rbx
mov byte [rsp + 0x70], 0
test rsi, rsi
je 0x180020ba6
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x70]
mov rdx, qword [r14]
xor ecx, ecx
call rsi
mov rcx, r14
call fcn.1800b7064
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rbp - 0x70], 0
je 0x180020bda
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180020bd0
mov r8, rbx
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.1800166f0
mov dword [rsp + 0x50], 1
mov rax, rdi
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1800b6c40
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret