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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
cmp qword [0x14018d910], 0
mov r15, r9
mov r14, r8
mov rax, rdx
mov r13, rcx
je 0x140020ae5
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400ed1c0
mov esi, eax
test eax, eax
js 0x140020ae5
mov rbx, qword [rsp + 0x20]
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, dword [rbx]
lea r8, [rdx + rdx*4]
mov edx, 4
lea r8, [r8*8 + 0x10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [rbx]
xor ebp, ebp
mov rdi, rax
mov r8d, ebp
mov qword [rax], rcx
cmp dword [rbx], ebp
jbe 0x140020abc
nop
mov r9d, r8d
mov edx, r8d
inc r8d
shl r9, 5
add r9, rbx
lea rax, [rdx + rdx*4]
lea rcx, [rdi + rax*8]
mov rax, qword [r9 + 0x10]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], r13
mov rax, qword [r9 + 8]
mov qword [rcx + 0x20], rax
mov eax, dword [r9 + 0x18]
mov dword [rcx + 0x28], eax
mov word [rcx + 0x2c], bp
movzx eax, word [r9 + 0x1c]
mov word [rcx + 0x2e], ax
mov eax, dword [r9 + 0x20]
mov dword [rcx + 0x30], eax
cmp r8d, dword [rbx]
jb 0x140020a70
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
mov qword [r14], rdi
mov byte [r15], bpl
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp dword [sym.4yUlCM3HuVsHzW5CaCX.exe_WindowsVersion], 0x33
jb 0x140020b0f
lea rcx, [rsp + 0x20]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhEnumHandlesEx
test eax, eax
js 0x140020cee
mov rax, qword [rsp + 0x20]
mov qword [r14], rax
mov al, 1
jmp 0x140020ce9
mov ebx, dword [0x14018ae10]
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x10
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140020ba1
nop word [rax + rax]
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x10000000
ja 0x140020bc8
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, 4
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x10
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x140020b50
test esi, esi
jns 0x140020bcf
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov esi, 0xc000009a
jmp 0x140020bb7
mov qword [rsp + 0x70], r12
cmp ebx, 0x100000
ja 0x140020be2
mov dword [0x14018ae10], ebx
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, 4
mov r8d, 0xfb0
xor ebp, ebp
mov r14d, 0x64
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, ebp
mov r15, rdi
mov r12, rax
cmp dword [rdi], ebx
jbe 0x140020cb7
nop dword [rax]
nop word [rax + rax]
mov ecx, ebx
lea rdx, [rcx + rcx*2]
movzx eax, word [rdi + rdx*8 + 8]
lea rsi, [rdi + rdx*8]
cmp rax, r13
jne 0x140020cad
cmp ebp, r14d
jne 0x140020c60
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
add r14d, r14d
mov r8, r12
mov edx, 4
lea r9, [r14 + r14*4]
lea r9, [r9*8 + 0x10]
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov r12, rax
mov rax, qword [rsi + 0x10]
lea rcx, [rbp*4]
add rcx, rbp
inc ebp
mov qword [r12 + rcx*8 + 0x10], rax
movzx eax, word [rsi + 8]
mov qword [r12 + rcx*8 + 0x18], rax
movzx eax, word [rsi + 0xe]
mov qword [r12 + rcx*8 + 0x20], rax
mov eax, dword [rsi + 0x18]
mov dword [r12 + rcx*8 + 0x28], eax
movzx eax, word [rsi + 0xa]
mov word [r12 + rcx*8 + 0x2c], ax
movzx eax, byte [rsi + 0xc]
mov word [r12 + rcx*8 + 0x2e], ax
movzx eax, byte [rsi + 0xd]
mov dword [r12 + rcx*8 + 0x30], eax
inc ebx
cmp ebx, dword [rdi]
jb 0x140020c20
mov eax, ebp
mov r8, r15
mov qword [r12], rax
xor edx, edx
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov qword [rax], r12
xor al, al
mov r12, qword [rsp + 0x70]
mov byte [r15], al
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret