Function at 0x1400bfff0
Capabilities:
Allocate or change rwx memory
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x140122940]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x1400c0099
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x78]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
jmp 0x1400c003e
cmp dword [rsp + 0x30], 0
jl 0x1400c00a8
cmp qword [rsp + 0x28], 0
jne 0x1400c00cb
cmp qword [rsp + 0x28], 0
je 0x1400c00c4
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor al, al
jmp 0x1400c03b1
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0
jmp 0x1400c00f2
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
cmp rax, qword [rcx]
jae 0x1400c014f
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov rdi, rcx
lea rsi, [rdx + rax + 0x10]
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
cmp qword [rsp + 0x58], rax
je 0x1400c0132
jmp 0x1400c00e8
mov rax, qword [rsp + 0xe0]
cmp qword [rsp + 0x60], rax
jne 0x1400c014d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
jmp 0x1400c014f
jmp 0x1400c00e8
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
cmp qword [rsp + 0x38], 0
jne 0x1400c0172
xor al, al
jmp 0x1400c03b1
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x38]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0xa0]
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call fcn.1400c2e70
movzx eax, al
test eax, eax
je 0x1400c01b7
cmp qword [rsp + 0xa0], 0
jne 0x1400c01be
xor al, al
jmp 0x1400c03b1
mov qword [rsp + 0xa8], 0
mov rax, qword [rsp + 0xa0]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0xa8]
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call fcn.1400c2e70
movzx eax, al
test eax, eax
je 0x1400c0206
cmp qword [rsp + 0xa8], 0
jne 0x1400c020d
xor al, al
jmp 0x1400c03b1
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0xa8]
add rax, 0x28
mov r9d, 8
lea r8, [rsp + 0x98]
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call fcn.1400c2e70
movzx eax, al
test eax, eax
je 0x1400c0255
cmp qword [rsp + 0x98], 0
jne 0x1400c025c
xor al, al
jmp 0x1400c03b1
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x98]
add rax, 0x58
mov r9d, 0x10
lea r8, [rsp + 0x80]
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call fcn.1400c2e70
movzx eax, al
test eax, eax
je 0x1400c02ad
movzx eax, word [rsp + 0x80]
test eax, eax
jne 0x1400c02b4
xor al, al
jmp 0x1400c03b1
mov edx, 8
lea rcx, [rsp + 0x90]
call fcn.140022300
movzx eax, word [rsp + 0x80]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1400bea50
nop
movzx eax, word [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x90]
call fcn.140008fd0
mov rcx, qword [rsp + 0x48]
mov r9, rcx
mov r8, rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xe0]
call fcn.1400c2e70
movzx eax, al
test eax, eax
jne 0x1400c0346
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x90]
call fcn.1400bf5c0
movzx eax, byte [rsp + 0x20]
jmp 0x1400c03b1
xor eax, eax
mov word [rsp + 0x80], ax
mov rax, qword [rsp + 0x98]
add rax, 0x58
mov r9d, 0x10
lea r8, [rsp + 0x80]
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call fcn.1400c3460
movzx eax, al
test eax, eax
jne 0x1400c039a
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x90]
call fcn.1400bf5c0
movzx eax, byte [rsp + 0x21]
jmp 0x1400c03b1
mov byte [rsp + 0x22], 1
lea rcx, [rsp + 0x90]
call fcn.1400bf5c0
movzx eax, byte [rsp + 0x22]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400ca200
add rsp, 0xc8
pop rdi
pop rsi
ret