Function at 0x1401a02f0
Capabilities:
Acquire debug privileges
Check os version

Disassembly:
push rbp
lea rbp, [rsp - 0x110]
sub rsp, 0x210
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x98
call fcn.140249b10
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x70], 2
jne 0x1401a0616
mov eax, dword [rsp + 0x64]
mov qword [rsp + 0x220], rbx
mov qword [rsp + 0x230], rdi
cmp eax, 5
jne 0x1401a0437
cmp dword [rsp + 0x68], 1
ja 0x1401a0606
lea rdi, vtable.CSABString.0
mov dword [rsp + 0x50], reloc.OLEAUT32.dll_SafeArrayGetDim
lea ecx, [rax + 0xc]
mov qword [rsp + 0x40], rdi
call fcn.140247068
mov qword [rsp + 0x48], rax
mov rbx, rax
test rax, rax
je 0x1401a0396
movups xmm0, xmmword [str.SeDebugPrivilege]
movups xmmword [rax], xmm0
movzx ecx, byte [0x140287e80]
mov byte [rax + 0x10], cl
mov rcx, qword [0x14034e4d8]
lea rdx, [rsp + 0x40]
mov r8d, 2
mov dword [rsp + 0x54], 1
call fcn.1401a0620
test rbx, rbx
je 0x1401a03c2
mov rcx, rbx
call fcn.140247060
mov ecx, SafeArrayUnaccessData
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x50], reloc.WSOCK32.dll_send
call fcn.140247068
mov qword [rsp + 0x48], rax
mov rbx, rax
test rax, rax
je 0x1401a03f9
movups xmm0, xmmword [str.SeShutdownPrivilege]
movups xmmword [rax], xmm0
mov ecx, dword [0x1402c3a28]
mov dword [rax + 0x10], ecx
mov rcx, qword [0x14034e4d8]
lea rdx, [rsp + 0x40]
mov r8d, 2
mov dword [rsp + 0x54], 1
call fcn.1401a0620
test rbx, rbx
je 0x1401a0425
mov rcx, rbx
call fcn.140247060
mov rcx, qword [0x14034e4d8]
xor edx, edx
call fcn.1401914a0
mov eax, dword [rsp + 0x64]
cmp eax, 6
jne 0x1401a0606
cmp dword [rsp + 0x68], 0
jne 0x1401a0606
mov rcx, qword [0x14034e4d8]
xor edx, edx
call fcn.1401914a0
mov rbx, qword [0x14034e4d8]
lea rcx, [rbp]
xor edx, edx
mov r8d, 0x110
call fcn.140249b10
mov rax, qword [rbx]
xor edi, edi
cmp rax, 0xffffffffffffffff
jne 0x1401a04aa
mov rcx, qword [rbx + 0x28]
lea r8d, [rax + 4]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x40000000
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx], rax
mov qword [rsp + 0x38], rdi
lea rcx, [rbp + 0x128]
mov qword [rsp + 0x30], rcx
lea r8, [rbp]
mov dword [rsp + 0x28], edi
mov rcx, rax
mov r9d, 0x110
mov qword [rsp + 0x20], rdi
mov edx, 0x9c4020a4
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1401a04e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [0x14034e4d8]
lea rcx, [rbp]
xor edx, edx
mov r8d, 0x110
call fcn.140249b10
mov rax, qword [rbx]
cmp rax, 0xffffffffffffffff
jne 0x1401a0535
mov rcx, qword [rbx + 0x28]
lea r8d, [rax + 4]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x40000000
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx], rax
mov qword [rsp + 0x38], rdi
lea rcx, [rbp + 0x128]
mov qword [rsp + 0x30], rcx
lea r8, [rbp]
mov dword [rsp + 0x28], edi
mov rcx, rax
mov r9d, 0x110
mov qword [rsp + 0x20], rdi
mov edx, 0x9c4020ac
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1401a0571
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [0x14034e4d8]
lea rcx, [rbp]
xor edx, edx
mov r8d, 0x110
call fcn.140249b10
mov rax, qword [rbx]
mov dword [rbp + 0x108], 0xffffffff
cmp rax, 0xffffffffffffffff
jne 0x1401a05ca
mov rcx, qword [rbx + 0x28]
lea r8d, [rax + 4]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x40000000
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx], rax
mov qword [rsp + 0x38], rdi
lea rcx, [rbp + 0x128]
mov qword [rsp + 0x30], rcx
lea r8, [rbp]
mov dword [rsp + 0x28], edi
mov rcx, rax
mov r9d, 0x110
mov qword [rsp + 0x20], rdi
mov edx, 0x9c4020b4
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1401a0606
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x220]
mov rdi, qword [rsp + 0x230]
add rsp, 0x210
pop rbp
ret