Function at 0x140013040
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 - 0x270]
sub rsp, 0x370
mov rax, qword [0x140287748]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x14028a730], edi
jne 0x140013446
mov dword [0x14028a608], 0x11c
lea rcx, [0x1401c5250]
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 0x1400130b5
lea rcx, [0x14028a608]
call rax
mov eax, dword [0x14028a60c]
xor ebx, ebx
test eax, eax
je 0x1400131ed
shl eax, 8
or eax, dword [0x14028a610]
sub eax, 0x501
je 0x1400131e7
sub eax, 0x100
je 0x1400131db
sub eax, edi
je 0x1400131cf
sub eax, edi
je 0x1400131c3
cmp eax, 0x3fd
je 0x140013106
mov dword [0x14028a600], ebx
jmp 0x1400131ed
mov eax, dword [0x14028a614]
cmp eax, 0x4a61
jb 0x140013122
mov dword [0x14028a600], 0xd
jmp 0x1400131ed
cmp eax, 0x47bb
jb 0x140013138
mov dword [0x14028a600], 0xc
jmp 0x1400131ed
cmp eax, 0x47ba
jb 0x14001314e
mov dword [0x14028a600], 0xb
jmp 0x1400131ed
cmp eax, 0x4563
jb 0x140013164
mov dword [0x14028a600], 0xa
jmp 0x1400131ed
cmp eax, 0x42ee
jb 0x140013177
mov dword [0x14028a600], 9
jmp 0x1400131ed
cmp eax, 0x3fab
jb 0x14001318a
mov dword [0x14028a600], 8
jmp 0x1400131ed
cmp eax, 0x3ad7
jb 0x14001319d
mov dword [0x14028a600], 7
jmp 0x1400131ed
cmp eax, 0x3839
jb 0x1400131b0
mov dword [0x14028a600], 6
jmp 0x1400131ed
cmp eax, 0x295a
jb 0x1400131ed
mov dword [0x14028a600], 5
jmp 0x1400131ed
mov dword [0x14028a600], 4
jmp 0x1400131ed
mov dword [0x14028a600], 3
jmp 0x1400131ed
mov dword [0x14028a600], 2
jmp 0x1400131ed
mov dword [0x14028a600], edi
call fcn.140012b10
mov dword [0x14028a604], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 7
mov edx, Ordinal_26
lea rcx, [rsp + 0x28]
call fcn.1400028e0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], reloc.WS2_32.dll_recv
mov qword [rsp + 0x40], reloc.WS2_32.dll_socket
movups xmm0, xmmword [str.SeDebugPrivilege]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1401c54f8]
movups xmmword [rax + 0x10], xmm1
mov word [rax + 0x20], bx
lea rcx, [rsp + 0x28]
call fcn.140013470
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001329c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013297
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013297
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140113d64
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 7
mov edx, Ordinal_26
lea rcx, [rsp + 0x28]
call fcn.1400028e0
mov rcx, rax
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 [0x1401c5520]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1401c5530]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x1401c5538]
mov word [rcx + 0x28], ax
mov word [rcx + 0x2a], bx
lea rcx, [rsp + 0x28]
call fcn.140013470
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001335b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013356
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013356
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140113d64
call fcn.140013590
mov word [rsp + 0x20], bx
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], bx
jne 0x140013390
mov byte [rsp + 0x20], dil
jmp 0x1400133b1
mov dword [rsp + 0x24], ebx
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], ebx
setne byte [rsp + 0x21]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140031a60
nop
lea r8, [rbp + 0xe0]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.1400311a0
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x60]
call fcn.14003e850
nop
lea rcx, [rbp + 0xe0]
call fcn.1400243a0
lea rcx, [rsp + 0x60]
call fcn.1400243a0
call fcn.140026750
mov ecx, dword [0x14028a60c]
test ecx, ecx
je 0x140013446
cmp ecx, 9
ja 0x14001343e
cmp ecx, 6
ja 0x140013434
jb 0x140013446
mov ecx, dword [0x14028a610]
cmp ecx, 3
jae 0x140013434
cmp ecx, 1
jb 0x140013446
mov rcx, rax
call fcn.140028a70
jmp 0x140013446
mov rcx, rax
call fcn.1400287f0
jmp 0x140013446
mov rcx, rax
call fcn.140028560
mov al, 1
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1401140d0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret