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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x14030d6e8]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x14030faa0], edi
jne 0x1400133bd
mov dword [0x14030f978], 0x11c
lea rcx, [0x1402ecb38]
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 0x140013035
lea rcx, [0x14030f978]
call rax
mov eax, dword [0x14030f97c]
xor ebx, ebx
test eax, eax
je 0x14001316d
shl eax, 8
or eax, dword [0x14030f980]
sub eax, 0x501
je 0x140013167
sub eax, 0x100
je 0x14001315b
sub eax, edi
je 0x14001314f
sub eax, edi
je 0x140013143
cmp eax, 0x3fd
je 0x140013086
mov dword [0x14030f970], ebx
jmp 0x14001316d
mov eax, dword [0x14030f984]
cmp eax, 0x4a61
jb 0x1400130a2
mov dword [0x14030f970], 0xd
jmp 0x14001316d
cmp eax, 0x47bb
jb 0x1400130b8
mov dword [0x14030f970], 0xc
jmp 0x14001316d
cmp eax, 0x47ba
jb 0x1400130ce
mov dword [0x14030f970], 0xb
jmp 0x14001316d
cmp eax, 0x4563
jb 0x1400130e4
mov dword [0x14030f970], 0xa
jmp 0x14001316d
cmp eax, 0x42ee
jb 0x1400130f7
mov dword [0x14030f970], 9
jmp 0x14001316d
cmp eax, 0x3fab
jb 0x14001310a
mov dword [0x14030f970], 8
jmp 0x14001316d
cmp eax, 0x3ad7
jb 0x14001311d
mov dword [0x14030f970], 7
jmp 0x14001316d
cmp eax, 0x3839
jb 0x140013130
mov dword [0x14030f970], 6
jmp 0x14001316d
cmp eax, 0x295a
jb 0x14001316d
mov dword [0x14030f970], 5
jmp 0x14001316d
mov dword [0x14030f970], 4
jmp 0x14001316d
mov dword [0x14030f970], 3
jmp 0x14001316d
mov dword [0x14030f970], 2
jmp 0x14001316d
mov dword [0x14030f970], edi
call fcn.140012a90
mov dword [0x14030f974], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov edx, Ordinal_27
lea rcx, [rsp + 0x48]
call fcn.1400028c0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], reloc.WS2_32.dll_recv
mov qword [rsp + 0x60], reloc.WS2_32.dll_socket
movups xmm0, xmmword [str.SeDebugPrivilege]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402ecdd8]
movups xmmword [rax + 0x10], xmm1
mov word [rax + 0x20], bx
lea rcx, [rsp + 0x48]
call fcn.1400133f0
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14001321c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013217
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013217
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 7
mov edx, Ordinal_27
lea rcx, [rsp + 0x28]
call fcn.1400028c0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], reloc.WS2_32.dll_setsockopt
mov qword [rsp + 0x40], reloc.WS2_32.dll_socket
movups xmm0, xmmword [str.SeLoadDriverPrivilege]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402ece00]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402ece10]
movsd qword [rax + 0x20], xmm0
movzx ecx, word [0x1402ece18]
mov word [rax + 0x28], cx
mov word [rax + 0x2a], bx
lea rcx, [rsp + 0x28]
call fcn.1400133f0
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400132d8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400132d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400132d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
call fcn.140013510
mov word [rsp + 0x20], bx
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsp + 0x78], bx
jne 0x14001330b
mov byte [rsp + 0x20], dil
jmp 0x14001332c
mov dword [rsp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x70], ebx
setne byte [rsp + 0x21]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.140031830
nop
lea r8, [rbp + 0x130]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x20]
call fcn.140030f70
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x50]
call fcn.14003e570
nop
lea rcx, [rbp + 0x130]
call fcn.1400243c0
lea rcx, [rbp - 0x50]
call fcn.1400243c0
call fcn.1400267d0
mov ecx, dword [0x14030f97c]
test ecx, ecx
je 0x1400133bd
cmp ecx, 9
ja 0x1400133b5
cmp ecx, 6
ja 0x1400133ab
jb 0x1400133bd
mov ecx, dword [0x14030f980]
cmp ecx, 3
jae 0x1400133ab
cmp ecx, 1
jb 0x1400133bd
mov rcx, rax
call fcn.140028af0
jmp 0x1400133bd
mov rcx, rax
call fcn.140028870
jmp 0x1400133bd
mov rcx, rax
call fcn.1400285e0
mov al, 1
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140110ce0
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret