Function at 0x14005a440
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 [0x1400da040]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x1400e17c0], ebx
jne 0x14005a827
mov dword [0x1400e19a8], 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 0x14005a4b0
lea rcx, [0x1400e19a8]
call rax
mov eax, dword [0x1400e19ac]
test eax, eax
je 0x14005a642
shl eax, 8
or eax, dword [0x1400e19b0]
sub eax, 0x501
je 0x14005a63c
sub eax, 0x100
je 0x14005a630
sub eax, ebx
je 0x14005a624
sub eax, ebx
je 0x14005a618
cmp eax, 0x3fd
je 0x14005a503
mov dword [0x1400e19a0], 0
jmp 0x14005a642
mov eax, dword [0x1400e19b4]
cmp eax, 0x5867
jb 0x14005a51f
mov dword [0x1400e19a0], 0x11
jmp 0x14005a642
cmp eax, 0x585d
jb 0x14005a535
mov dword [0x1400e19a0], 0x10
jmp 0x14005a642
cmp eax, 0x55f0
jb 0x14005a54b
mov dword [0x1400e19a0], 0xf
jmp 0x14005a642
cmp eax, 0x4a64
jb 0x14005a561
mov dword [0x1400e19a0], 0xe
jmp 0x14005a642
cmp eax, 0x4a61
jb 0x14005a577
mov dword [0x1400e19a0], 0xd
jmp 0x14005a642
cmp eax, 0x47bb
jb 0x14005a58d
mov dword [0x1400e19a0], 0xc
jmp 0x14005a642
cmp eax, 0x47ba
jb 0x14005a5a3
mov dword [0x1400e19a0], 0xb
jmp 0x14005a642
cmp eax, 0x4563
jb 0x14005a5b9
mov dword [0x1400e19a0], 0xa
jmp 0x14005a642
cmp eax, 0x42ee
jb 0x14005a5cc
mov dword [0x1400e19a0], 9
jmp 0x14005a642
cmp eax, 0x3fab
jb 0x14005a5df
mov dword [0x1400e19a0], 8
jmp 0x14005a642
cmp eax, 0x3ad7
jb 0x14005a5f2
mov dword [0x1400e19a0], 7
jmp 0x14005a642
cmp eax, 0x3839
jb 0x14005a605
mov dword [0x1400e19a0], 6
jmp 0x14005a642
cmp eax, 0x295a
jb 0x14005a642
mov dword [0x1400e19a0], 5
jmp 0x14005a642
mov dword [0x1400e19a0], 4
jmp 0x14005a642
mov dword [0x1400e19a0], 3
jmp 0x14005a642
mov dword [0x1400e19a0], 2
jmp 0x14005a642
mov dword [0x1400e19a0], ebx
call fcn.14005a010
mov dword [0x1400e19a4], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8d, 0x10
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x28]
call fcn.1400015e0
lea rcx, [rsp + 0x28]
call fcn.14005a860
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x14005a6c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a6bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a84f
call fcn.140073b5c
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8d, 0x15
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x28]
call fcn.1400015e0
lea rcx, [rsp + 0x28]
call fcn.14005a860
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x14005a735
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a730
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a849
call fcn.140073b5c
call fcn.14005a980
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 0x14005a76c
mov byte [rsp + 0x20], bl
jmp 0x14005a792
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.14006a350
nop
lea r8, [rbp + 0xe0]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140069a50
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x60]
call fcn.140070930
nop
lea rcx, [rbp + 0xe0]
call fcn.140047050
lea rcx, [rsp + 0x60]
call fcn.140047050
call fcn.140049390
mov ecx, dword [0x1400e19ac]
test ecx, ecx
je 0x14005a827
cmp ecx, 9
ja 0x14005a81f
cmp ecx, 6
ja 0x14005a815
jb 0x14005a827
mov ecx, dword [0x1400e19b0]
cmp ecx, 3
jae 0x14005a815
cmp ecx, 1
jb 0x14005a827
mov rcx, rax
call fcn.14004b990
jmp 0x14005a827
mov rcx, rax
call fcn.14004b760
jmp 0x14005a827
mov rcx, rax
call fcn.14004b510
mov al, 1
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400738c0
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
pop rbp
ret
call fcn.14007aa50
int3
call fcn.14007aa50
int3