Function at 0x18002a050
Capabilities:
Acquire debug privileges
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x1800b70c0]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x1800ba5a0], ebx
jne 0x18002a3cc
mov dword [0x1800ba6e8], 0x11c
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002a0c0
lea rcx, [0x1800ba6e8]
call rax
mov eax, dword [0x1800ba6ec]
test eax, eax
je 0x18002a226
shl eax, 8
or eax, dword [0x1800ba6f0]
sub eax, 0x501
je 0x18002a220
sub eax, 0x100
je 0x18002a214
sub eax, ebx
je 0x18002a208
sub eax, ebx
je 0x18002a1fc
cmp eax, 0x3fd
je 0x18002a113
mov dword [0x1800ba6e0], 0
jmp 0x18002a226
mov eax, dword [0x1800ba6f4]
cmp eax, 0x585d
jb 0x18002a12f
mov dword [0x1800ba6e0], 0xf
jmp 0x18002a226
cmp eax, 0x55f0
jb 0x18002a145
mov dword [0x1800ba6e0], 0xe
jmp 0x18002a226
cmp eax, 0x4a61
jb 0x18002a15b
mov dword [0x1800ba6e0], 0xd
jmp 0x18002a226
cmp eax, 0x47bb
jb 0x18002a171
mov dword [0x1800ba6e0], 0xc
jmp 0x18002a226
cmp eax, 0x47ba
jb 0x18002a187
mov dword [0x1800ba6e0], 0xb
jmp 0x18002a226
cmp eax, 0x4563
jb 0x18002a19d
mov dword [0x1800ba6e0], 0xa
jmp 0x18002a226
cmp eax, 0x42ee
jb 0x18002a1b0
mov dword [0x1800ba6e0], 9
jmp 0x18002a226
cmp eax, 0x3fab
jb 0x18002a1c3
mov dword [0x1800ba6e0], 8
jmp 0x18002a226
cmp eax, 0x3ad7
jb 0x18002a1d6
mov dword [0x1800ba6e0], 7
jmp 0x18002a226
cmp eax, 0x3839
jb 0x18002a1e9
mov dword [0x1800ba6e0], 6
jmp 0x18002a226
cmp eax, 0x295a
jb 0x18002a226
mov dword [0x1800ba6e0], 5
jmp 0x18002a226
mov dword [0x1800ba6e0], 4
jmp 0x18002a226
mov dword [0x1800ba6e0], 3
jmp 0x18002a226
mov dword [0x1800ba6e0], 2
jmp 0x18002a226
mov dword [0x1800ba6e0], ebx
call fcn.180029be0
mov dword [0x1800ba6e4], eax
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x28]
call fcn.180011580
nop
lea rcx, [rsp + 0x28]
call fcn.18002a400
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x18002a290
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002a28b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002a3f4
call fcn.18004b4cc
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x28]
call fcn.180011580
nop
lea rcx, [rsp + 0x28]
call fcn.18002a400
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x18002a2ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002a2ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002a3ee
call fcn.18004b4cc
call fcn.18002a520
mov word [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsp + 0x28], 0
jne 0x18002a327
mov byte [rsp + 0x20], 1
jmp 0x18002a34d
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x24], 0
setne byte [rsp + 0x21]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.1800373c0
nop
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x60]
call fcn.180042a80
nop
lea rcx, [rbp + 0xe0]
call fcn.18002efe0
lea rcx, [rsp + 0x60]
call fcn.18002efe0
call fcn.18002fb90
mov ecx, dword [0x1800ba6ec]
test ecx, ecx
je 0x18002a3cc
cmp ecx, 9
ja 0x18002a3c4
cmp ecx, 6
ja 0x18002a3ba
jb 0x18002a3cc
mov ecx, dword [0x1800ba6f0]
cmp ecx, 3
jae 0x18002a3ba
cmp ecx, 1
jb 0x18002a3cc
mov rcx, rax
call fcn.180030be0
jmp 0x18002a3cc
mov rcx, rax
call fcn.180030960
jmp 0x18002a3cc
mov rcx, rax
call fcn.1800306d0
mov al, 1
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.18004bb30
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
pop rbp
ret
call fcn.18005212c
int3
call fcn.18005212c
int3