Function at 0x14000391c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov r13, rcx
lea r9, [rbp - 4]
mov dword [r9], 0
xor ebx, ebx
mov ecx, 0x40
xor edx, edx
xor r8d, r8d
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140003c1f
xor edi, edi
mov r15, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rsi, [rbp - 4]
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call r15
mov edx, dword [rbp - 4]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call rbx
mov rdi, rax
mov r8d, dword [rbp - 4]
mov ecx, 0x40
mov rdx, rax
mov r9, rsi
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x140003977
test eax, eax
js 0x140003bb8
test rdi, rdi
je 0x140003bb8
cmp qword [rdi], 0
je 0x140003bbd
mov rax, rdi
add rax, 0x10
mov qword [rbp - 0x10], rax
mov ebx, 1
xor eax, eax
xor esi, esi
mov r14, rsi
lea rax, [rax + rax*4]
mov rcx, qword [rbp - 0x10]
mov rsi, qword [rcx + rax*8]
mov r12, qword [rcx + rax*8 + 8]
mov r15, qword [rcx + rax*8 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
cmp r12, rcx
cmovne rsi, r14
xor eax, eax
cmp r15, r13
sete al
cmovne rsi, r14
shl eax, 2
cmp r12, rcx
mov ecx, 6
cmovne eax, ecx
cmp eax, 6
je 0x140003a30
test eax, eax
jne 0x140003a39
mov eax, ebx
inc ebx
cmp qword [rdi], rax
ja 0x1400039e5
xor ebx, ebx
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rsi, rsi
je 0x140003c1f
lea rdx, [rbp - 0x40]
mov qword [rdx], 0
add rsi, 8
mov r9d, 8
mov rcx, r13
mov r8, rsi
call fcn.140004984
test al, al
je 0x140003bd2
mov r8, qword [rbp - 0x40]
test r8, r8
je 0x140003bd2
lea rdx, [rbp - 0x38]
mov qword [rdx], 0
add r8, 8
mov r9d, 8
mov rcx, r13
call fcn.140004984
test al, al
je 0x140003be2
mov r8, qword [rbp - 0x38]
test r8, r8
je 0x140003be2
lea rdx, [rbp - 0x18]
mov qword [rdx], 0
add r8, 0x28
mov r9d, 8
mov rcx, r13
call fcn.140004984
test al, al
je 0x140003bf2
mov r8, qword [rbp - 0x18]
test r8, r8
je 0x140003bf2
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
movaps xmmword [rdx], xmm0
add r8, 0x58
mov r9d, 0x10
mov rcx, r13
call fcn.140004984
test al, al
je 0x140003c02
movzx edi, word [rbp - 0x30]
test rdi, rdi
je 0x140003c02
mov esi, edi
and esi, 0xfffffffe
add rsi, 2
mov rcx, rsi
call fcn.140015784
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14001b800
movzx r9d, di
mov r8, qword [rbp - 0x28]
mov rcx, r13
mov qword [rbp - 0x10], rbx
mov rdx, rbx
call fcn.140004984
test al, al
je 0x140003c32
lea r8, [rbp - 0x30]
mov word [r8], 0
mov rdx, qword [rbp - 0x18]
add rdx, 0x58
mov r9d, 0x10
mov rcx, r13
call fcn.140004984
test al, al
je 0x140003c4f
lea rcx, [0x140063d60]
lea rdx, str.___MmUnloadedDrivers_Cleaned:
call fcn.1400020c8
mov rsi, rax
mov rcx, rax
mov rdx, qword [rbp - 0x10]
call fcn.1400020c8
mov bl, 1
mov rcx, rsi
call fcn.1400019b7
jmp 0x140003c6c
test rdi, rdi
je 0x140003c1d
xor ebx, ebx
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140003c1f
lea rcx, [0x140063d60]
lea rdx, str.____Failed_to_find_device_object
jmp 0x140003c10
lea rcx, [0x140063d60]
lea rdx, str.____Failed_to_find_driver_object
jmp 0x140003c10
lea rcx, [0x140063d60]
lea rdx, str.____Failed_to_find_driver_section
jmp 0x140003c10
lea rcx, [0x140063d60]
lea rdx, str.____Failed_to_find_driver_name
call fcn.1400020c8
mov rcx, rax
call fcn.1400019b7
xor ebx, ebx
mov eax, ebx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x140063d60]
lea rdx, str.____Failed_to_read_driver_name
call fcn.1400020c8
mov rcx, rax
call fcn.1400019b7
jmp 0x140003c6a
lea rcx, [0x140063d60]
lea rdx, str.____Failed_to_write_driver_name_length
call fcn.1400020c8
mov rcx, rax
call fcn.1400019b7
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
call fcn.140015750
jmp 0x140003c1f