Function at 0x140013b30
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 [0x14011f1b8]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x1401273c0], ebx
jne 0x140013ec5
mov dword [0x140127298], 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 0x140013ba0
lea rcx, [0x140127298]
call rax
mov eax, dword [0x14012729c]
test eax, eax
je 0x140013cda
shl eax, 8
or eax, dword [0x1401272a0]
sub eax, 0x501
je 0x140013cd4
sub eax, 0x100
je 0x140013cc8
sub eax, ebx
je 0x140013cbc
sub eax, ebx
je 0x140013cb0
cmp eax, 0x3fd
je 0x140013bf3
mov dword [0x140127290], 0
jmp 0x140013cda
mov eax, dword [0x1401272a4]
cmp eax, 0x4a61
jb 0x140013c0f
mov dword [0x140127290], 0xd
jmp 0x140013cda
cmp eax, 0x47bb
jb 0x140013c25
mov dword [0x140127290], 0xc
jmp 0x140013cda
cmp eax, 0x47ba
jb 0x140013c3b
mov dword [0x140127290], 0xb
jmp 0x140013cda
cmp eax, 0x4563
jb 0x140013c51
mov dword [0x140127290], 0xa
jmp 0x140013cda
cmp eax, 0x42ee
jb 0x140013c64
mov dword [0x140127290], 9
jmp 0x140013cda
cmp eax, 0x3fab
jb 0x140013c77
mov dword [0x140127290], 8
jmp 0x140013cda
cmp eax, 0x3ad7
jb 0x140013c8a
mov dword [0x140127290], 7
jmp 0x140013cda
cmp eax, 0x3839
jb 0x140013c9d
mov dword [0x140127290], 6
jmp 0x140013cda
cmp eax, 0x295a
jb 0x140013cda
mov dword [0x140127290], 5
jmp 0x140013cda
mov dword [0x140127290], 4
jmp 0x140013cda
mov dword [0x140127290], 3
jmp 0x140013cda
mov dword [0x140127290], 2
jmp 0x140013cda
mov dword [0x140127290], ebx
call fcn.140013700
mov dword [0x140127294], 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.1400053b0
lea rcx, [rsp + 0x28]
call fcn.140013ef0
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140013d5c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013d57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013d57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dc60c
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.1400053b0
lea rcx, [rsp + 0x28]
call fcn.140013ef0
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140013dd3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013dce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013dce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dc60c
call fcn.140014010
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 0x140013e0a
mov byte [rsp + 0x20], bl
jmp 0x140013e30
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.140031880
nop
lea r8, [rbp + 0xe0]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140030f80
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x60]
call fcn.14003e620
nop
lea rcx, [rbp + 0xe0]
call fcn.140024750
lea rcx, [rsp + 0x60]
call fcn.140024750
call fcn.1400269e0
mov ecx, dword [0x14012729c]
test ecx, ecx
je 0x140013ec5
cmp ecx, 9
ja 0x140013ebd
cmp ecx, 6
ja 0x140013eb3
jb 0x140013ec5
mov ecx, dword [0x1401272a0]
cmp ecx, 3
jae 0x140013eb3
cmp ecx, 1
jb 0x140013ec5
mov rcx, rax
call fcn.140028d60
jmp 0x140013ec5
mov rcx, rax
call fcn.140028ae0
jmp 0x140013ec5
mov rcx, rax
call fcn.140028850
mov al, 1
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400dc240
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
pop rbp
ret