Function at 0x14005d510
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 [0x140132100]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x14017fb40], ebx
jne 0x14005d8f7
mov dword [0x14017fd48], 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 0x14005d580
lea rcx, [0x14017fd48]
call rax
mov eax, dword [0x14017fd4c]
test eax, eax
je 0x14005d712
shl eax, 8
or eax, dword [0x14017fd50]
sub eax, 0x501
je 0x14005d70c
sub eax, 0x100
je 0x14005d700
sub eax, ebx
je 0x14005d6f4
sub eax, ebx
je 0x14005d6e8
cmp eax, 0x3fd
je 0x14005d5d3
mov dword [0x14017fd40], 0
jmp 0x14005d712
mov eax, dword [0x14017fd54]
cmp eax, 0x5867
jb 0x14005d5ef
mov dword [0x14017fd40], 0x11
jmp 0x14005d712
cmp eax, 0x585d
jb 0x14005d605
mov dword [0x14017fd40], 0x10
jmp 0x14005d712
cmp eax, 0x55f0
jb 0x14005d61b
mov dword [0x14017fd40], 0xf
jmp 0x14005d712
cmp eax, 0x4a64
jb 0x14005d631
mov dword [0x14017fd40], 0xe
jmp 0x14005d712
cmp eax, 0x4a61
jb 0x14005d647
mov dword [0x14017fd40], 0xd
jmp 0x14005d712
cmp eax, 0x47bb
jb 0x14005d65d
mov dword [0x14017fd40], 0xc
jmp 0x14005d712
cmp eax, 0x47ba
jb 0x14005d673
mov dword [0x14017fd40], 0xb
jmp 0x14005d712
cmp eax, 0x4563
jb 0x14005d689
mov dword [0x14017fd40], 0xa
jmp 0x14005d712
cmp eax, 0x42ee
jb 0x14005d69c
mov dword [0x14017fd40], 9
jmp 0x14005d712
cmp eax, 0x3fab
jb 0x14005d6af
mov dword [0x14017fd40], 8
jmp 0x14005d712
cmp eax, 0x3ad7
jb 0x14005d6c2
mov dword [0x14017fd40], 7
jmp 0x14005d712
cmp eax, 0x3839
jb 0x14005d6d5
mov dword [0x14017fd40], 6
jmp 0x14005d712
cmp eax, 0x295a
jb 0x14005d712
mov dword [0x14017fd40], 5
jmp 0x14005d712
mov dword [0x14017fd40], 4
jmp 0x14005d712
mov dword [0x14017fd40], 3
jmp 0x14005d712
mov dword [0x14017fd40], 2
jmp 0x14005d712
mov dword [0x14017fd40], ebx
call fcn.14005d0e0
mov dword [0x14017fd44], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x28]
call fcn.1400015f0
lea rcx, [rsp + 0x28]
call fcn.14005d930
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x14005d791
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d78c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d91f
call fcn.1400b5bec
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x28]
call fcn.1400015f0
lea rcx, [rsp + 0x28]
call fcn.14005d930
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x14005d805
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d800
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d919
call fcn.1400b5bec
call fcn.14005da50
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 0x14005d83c
mov byte [rsp + 0x20], bl
jmp 0x14005d862
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.14006d420
nop
lea r8, [rbp + 0xe0]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.14006cb20
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x60]
call fcn.140073a00
nop
lea rcx, [rbp + 0xe0]
call fcn.14004a120
lea rcx, [rsp + 0x60]
call fcn.14004a120
call fcn.14004c460
mov ecx, dword [0x14017fd4c]
test ecx, ecx
je 0x14005d8f7
cmp ecx, 9
ja 0x14005d8ef
cmp ecx, 6
ja 0x14005d8e5
jb 0x14005d8f7
mov ecx, dword [0x14017fd50]
cmp ecx, 3
jae 0x14005d8e5
cmp ecx, 1
jb 0x14005d8f7
mov rcx, rax
call fcn.14004ea60
jmp 0x14005d8f7
mov rcx, rax
call fcn.14004e830
jmp 0x14005d8f7
mov rcx, rax
call fcn.14004e5e0
mov al, 1
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400b5950
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
pop rbp
ret
call fcn.1400bcca0
int3
call fcn.1400bcca0
int3