Function at 0x140006480
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, 0x118
mov rax, qword [0x1400b3668]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov dword [rsp + 0xd0], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0xd0]
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x14000653b
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0xd0]
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 + 0xd0]
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
jmp 0x1400064d7
cmp dword [rsp + 0x30], 0
jl 0x14000654a
cmp qword [rsp + 0x28], 0
jne 0x14000656c
cmp qword [rsp + 0x28], 0
je 0x140006565
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x1400069bc
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x140006593
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
cmp rax, qword [rcx]
jae 0x1400065fc
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
lea rcx, [rsp + 0xa8]
mov rdx, qword [rsp + 0x48]
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 + 0xb0], rax
je 0x1400065d9
jmp 0x140006589
mov rax, qword [rsp + 0x130]
cmp qword [rsp + 0xb8], rax
jne 0x1400065fa
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x40], rax
jmp 0x1400065fc
jmp 0x140006589
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [rsp + 0x40], 0
jne 0x14000661e
xor al, al
jmp 0x1400069bc
mov qword [rsp + 0xf0], 0
mov rax, qword [rsp + 0x40]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0xf0]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.140005580
movzx eax, al
test eax, eax
je 0x140006663
cmp qword [rsp + 0xf0], 0
jne 0x140006693
lea rdx, str.____Failed_to_find_device_object
lea rcx, [0x1400b5020]
call fcn.140007530
mov qword [rsp + 0x58], rax
lea rdx, [0x14000c0b0]
mov rcx, qword [rsp + 0x58]
call fcn.14000efd0
xor al, al
jmp 0x1400069bc
mov qword [rsp + 0xf8], 0
mov rax, qword [rsp + 0xf0]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0xf8]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.140005580
movzx eax, al
test eax, eax
je 0x1400066db
cmp qword [rsp + 0xf8], 0
jne 0x14000670b
lea rdx, str.____Failed_to_find_driver_object
lea rcx, [0x1400b5020]
call fcn.140007530
mov qword [rsp + 0x60], rax
lea rdx, [0x14000c0b0]
mov rcx, qword [rsp + 0x60]
call fcn.14000efd0
xor al, al
jmp 0x1400069bc
mov qword [rsp + 0xe8], 0
mov rax, qword [rsp + 0xf8]
add rax, 0x28
mov r9d, 8
lea r8, [rsp + 0xe8]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.140005580
movzx eax, al
test eax, eax
je 0x140006753
cmp qword [rsp + 0xe8], 0
jne 0x140006783
lea rdx, str.____Failed_to_find_driver_section
lea rcx, [0x1400b5020]
call fcn.140007530
mov qword [rsp + 0x68], rax
lea rdx, [0x14000c0b0]
mov rcx, qword [rsp + 0x68]
call fcn.14000efd0
xor al, al
jmp 0x1400069bc
lea rax, [rsp + 0xd8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xe8]
add rax, 0x58
mov r9d, 0x10
lea r8, [rsp + 0xd8]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.140005580
movzx eax, al
test eax, eax
je 0x1400067d4
movzx eax, word [rsp + 0xd8]
test eax, eax
jne 0x140006804
lea rdx, str.____Failed_to_find_driver_name
lea rcx, [0x1400b5020]
call fcn.140007530
mov qword [rsp + 0x70], rax
lea rdx, [0x14000c0b0]
mov rcx, qword [rsp + 0x70]
call fcn.14000efd0
xor al, al
jmp 0x1400069bc
movzx eax, word [rsp + 0xd8]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov qword [rsp + 0x78], rax
mov eax, 2
mov rcx, qword [rsp + 0x78]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140027940
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0xd8]
add rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140029190
movzx eax, word [rsp + 0xd8]
mov r9d, eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x130]
call fcn.140005580
movzx eax, al
test eax, eax
jne 0x1400068d0
lea rdx, [0x14004e6d8]
lea rcx, [0x1400b5020]
call fcn.140007530
mov qword [rsp + 0x88], rax
lea rdx, [0x14000c0b0]
mov rcx, qword [rsp + 0x88]
call fcn.14000efd0
xor al, al
jmp 0x1400069bc
xor eax, eax
mov word [rsp + 0xd8], ax
mov rax, qword [rsp + 0xe8]
add rax, 0x58
mov r9d, 0x10
lea r8, [rsp + 0xd8]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.1400055c0
movzx eax, al
test eax, eax
jne 0x14000693e
lea rdx, str.____Failed_to_write_driver_name_length
lea rcx, [0x1400b5020]
call fcn.140007530
mov qword [rsp + 0x90], rax
lea rdx, [0x14000c0b0]
mov rcx, qword [rsp + 0x90]
call fcn.14000efd0
xor al, al
jmp 0x1400069bc
lea rdx, str.___MmUnloadedDrivers_Cleaned:
lea rcx, [0x1400b5020]
call fcn.140007530
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.140007530
mov qword [rsp + 0x98], rax
lea rdx, [0x14000c0b0]
mov rcx, qword [rsp + 0x98]
call fcn.14000efd0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.140027938
cmp qword [rsp + 0x50], 0
jne 0x1400069a4
mov qword [rsp + 0xa0], 0
jmp 0x1400069ba
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xa0], rax
mov al, 1
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140027d50
add rsp, 0x118
pop rdi
pop rsi
ret