Function at 0x14016aaa0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc8
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r14, qword [rbp + 0x7f]
mov rsi, r9
mov qword [rbp - 0x69], rdx
mov r15d, r8d
mov rax, rdx
mov rbx, rcx
cmp rcx, 4
jne 0x14016ac77
mov ebx, dword [0x1402c18e0]
mov edx, ecx
mov rcx, qword [0x1402c6140]
mov r8d, ebx
mov dword [rbp - 0x71], ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r9, [rbp - 0x71]
mov r8d, ebx
mov rdx, rax
mov ecx, 0x4d
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000004
jne 0x14016ab6a
mov rcx, qword [0x1402c6140]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rbp - 0x71]
mov edx, 4
mov rcx, qword [0x1402c6140]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rbp - 0x71]
lea r9, [rbp - 0x71]
mov rdx, rax
mov ecx, 0x4d
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test ebx, ebx
js 0x14016abad
mov eax, dword [rbp - 0x71]
cmp eax, 0x100000
ja 0x14016ab7e
mov dword [0x1402c18e0], eax
lfence
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14016a380
mov rcx, qword [0x1402c6140]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x14016ae11
mov ebx, dword [0x1402c1620]
mov edx, 4
mov rcx, qword [0x1402c6140]
mov r8d, ebx
mov dword [rbp - 1], ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r9, ds:[rbp - 1]
mov r8d, ebx
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000004
jne 0x14016ac37
mov rcx, qword [0x1402c6140]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rbp - 1]
mov edx, 4
mov rcx, qword [0x1402c6140]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rbp - 1]
lea r9, [rbp - 1]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test ebx, ebx
js 0x14016ac70
mov eax, dword ds:[rbp - 1]
cmp eax, 0x100000
ja 0x14016ac4d
mov dword [0x1402c1620], eax
lfence
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14016a0c0
mov rcx, qword [0x1402c6140]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x14016ae11
mov qword [rsp + 0xc0], r12
xor dil, dil
xor r12d, r12d
test rdx, rdx
jne 0x14016ad4f
cmp dword [0x1402c8fac], 3
lea rcx, [rbp - 0x69]
mov qword [rbp - 1], rbx
mov edx, 0x410
mov qword [rbp + 7], r12
jl 0x14016acb3
lea r8, [rbp - 1]
call fcn.140178dc0
jmp 0x14016ace7
xorps xmm0, xmm0
mov dword [rbp - 0x49], 0x30
lea r9, [rbp - 1]
mov qword [rbp - 0x41], r12
lea r8, [rbp - 0x49]
mov dword [rbp - 0x31], r12d
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x39], r12
call qword [sym.imp.ntdll.dll_NtOpenProcess]
nop dword [rax]
cmp eax, 0xc0000022
je 0x14016aceb
test eax, eax
jns 0x14016ad48
cmp dword [0x1402c8fac], 3
lea rcx, [rbp - 0x69]
mov qword [rbp - 1], rbx
mov edx, 0x1010
mov qword [rbp + 7], r12
jl 0x14016ad10
lea r8, [rbp - 1]
call fcn.140178dc0
jmp 0x14016ad39
xorps xmm0, xmm0
mov dword [rbp - 0x49], 0x30
lea r9, [rbp - 1]
mov qword [rbp - 0x41], r12
lea r8, [rbp - 0x49]
mov dword [rbp - 0x31], r12d
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x39], r12
call qword [sym.imp.ntdll.dll_NtOpenProcess]
nop dword [rax]
test eax, eax
js 0x14016ae09
mov rax, qword [rbp - 0x69]
mov dil, 1
lea rcx, [0x140169e80]
mov qword [rbp - 0x61], rsi
mov qword [rbp - 0x19], rcx
lea r8, [rbp - 0x19]
lea rcx, [rbp - 0x61]
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x11], rcx
lea rdx, [0x140164c60]
mov rcx, rax
mov qword [rbp - 0x51], 1
mov dword [rbp - 9], 2
call fcn.140164a60
mov rcx, qword [rbp - 0x69]
lea r8, [rbp - 1]
mov r9d, 8
mov qword [rsp + 0x20], r12
mov edx, 0x1a
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14016addc
cmp qword [rbp - 1], r12
je 0x14016addc
mov rcx, qword [rbp - 0x69]
lea r8, [rbp - 0x19]
lea rdx, [0x140165180]
mov qword [rbp - 0x61], rsi
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], 3
call fcn.140164f80
mov ebx, eax
nop dword [rax]
test r15b, 3
je 0x14016adf8
mov rcx, qword [rbp - 0x69]
mov r9, r14
mov r8, rsi
mov edx, r15d
call fcn.14016a720
test dil, dil
je 0x14016ae07
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov r12, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0xc8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret