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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x140074060]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov dword [rsp + 0xe8], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0xe8]
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140006061
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0xe8]
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 + 0xe8]
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
jmp 0x140005ffc
cmp dword [rsp + 0x30], 0
jl 0x140006070
cmp qword [rsp + 0x28], 0
jne 0x140006092
cmp qword [rsp + 0x28], 0
je 0x14000608b
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x1400064f8
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0
jmp 0x1400060b9
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 0x140006122
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
lea rcx, [rsp + 0xc0]
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 + 0xc8], rax
je 0x1400060ff
jmp 0x1400060af
mov rax, qword [rsp + 0x150]
cmp qword [rsp + 0xd0], rax
jne 0x140006120
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x38], rax
jmp 0x140006122
jmp 0x1400060af
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [rsp + 0x38], 0
jne 0x140006144
xor al, al
jmp 0x1400064f8
mov qword [rsp + 0x110], 0
mov rax, qword [rsp + 0x38]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0x110]
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.140005244
movzx eax, al
test eax, eax
je 0x140006189
cmp qword [rsp + 0x110], 0
jne 0x1400061bd
lea rdx, str.____Failed_to_find_device_object
lea rcx, [0x140075750]
call fcn.140011924
mov qword [rsp + 0x48], rax
lea rax, [0x140011e28]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x50]
xor al, al
jmp 0x1400064f8
mov qword [rsp + 0x118], 0
mov rax, qword [rsp + 0x110]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0x118]
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.140005244
movzx eax, al
test eax, eax
je 0x140006205
cmp qword [rsp + 0x118], 0
jne 0x140006239
lea rdx, str.____Failed_to_find_driver_object
lea rcx, [0x140075750]
call fcn.140011924
mov qword [rsp + 0x58], rax
lea rax, [0x140011e28]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x60]
xor al, al
jmp 0x1400064f8
mov qword [rsp + 0x108], 0
mov rax, qword [rsp + 0x118]
add rax, 0x28
mov r9d, 8
lea r8, [rsp + 0x108]
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.140005244
movzx eax, al
test eax, eax
je 0x140006281
cmp qword [rsp + 0x108], 0
jne 0x1400062b5
lea rdx, str.____Failed_to_find_driver_section
lea rcx, [0x140075750]
call fcn.140011924
mov qword [rsp + 0x68], rax
lea rax, [0x140011e28]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x70]
xor al, al
jmp 0x1400064f8
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x108]
add rax, 0x58
mov r9d, 0x10
lea r8, [rsp + 0xf0]
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.140005244
movzx eax, al
test eax, eax
je 0x140006306
movzx eax, word [rsp + 0xf0]
test eax, eax
jne 0x140006340
lea rdx, str.____Failed_to_find_driver_name
lea rcx, [0x140075750]
call fcn.140011924
mov qword [rsp + 0x78], rax
lea rax, [0x140011e28]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x80]
xor al, al
jmp 0x1400064f8
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
movzx eax, word [rsp + 0xf0]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.140012748
nop
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x88], rax
movzx eax, word [rsp + 0xf0]
mov r9d, eax
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x150]
call fcn.140005244
movzx eax, al
test eax, eax
jne 0x14000640d
lea rdx, str.____Failed_to_read_driver_name
lea rcx, [0x140075750]
call fcn.140011924
mov qword [rsp + 0x90], rax
lea rax, [0x140011e28]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0x98]
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x100]
call fcn.140008894
mov al, byte [rsp + 0x20]
jmp 0x1400064f8
xor eax, eax
mov word [rsp + 0xf0], ax
mov rax, qword [rsp + 0x108]
add rax, 0x58
mov r9d, 0x10
lea r8, [rsp + 0xf0]
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.14000527c
movzx eax, al
test eax, eax
jne 0x140006499
lea rdx, str.____Failed_to_write_driver_name_length
lea rcx, [0x140075750]
call fcn.140011924
mov qword [rsp + 0xa0], rax
lea rax, [0x140011e28]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa0]
call qword [rsp + 0xa8]
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x100]
call fcn.140008894
mov al, byte [rsp + 0x21]
jmp 0x1400064f8
lea rdx, str.___MmUnloadedDrivers_Cleaned:
lea rcx, [0x140075750]
call fcn.140011924
lea rdx, [rsp + 0x100]
mov rcx, rax
call fcn.140012ba4
mov qword [rsp + 0xb0], rax
lea rax, [0x140011e28]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0xb8]
mov byte [rsp + 0x22], 1
lea rcx, [rsp + 0x100]
call fcn.140008894
mov al, byte [rsp + 0x22]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140029d90
add rsp, 0x138
pop rdi
pop rsi
ret