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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, rcx
xor r15d, r15d
mov dword [rbp - 0x39], r15d
mov ebx, r15d
lea r9, [rbp - 0x39]
xor r8d, r8d
xor edx, edx
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400068f8
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x39]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp - 0x39]
mov r8d, dword [rbp - 0x39]
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400068b0
test eax, eax
js 0x140006d83
test rbx, rbx
je 0x140006d99
mov rsi, r15
mov edi, r15d
cmp qword [rbx], r15
jbe 0x14000696e
mov rax, r15
nop word [rax + rax]
lea rax, [rax + rax*4]
movups xmm7, xmmword [rbx + rax*8 + 0x10]
movups xmm6, xmmword [rbx + rax*8 + 0x20]
movsd xmm0, qword [rbx + rax*8 + 0x30]
movsd qword [rbp + 7], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movdqa xmm0, xmm7
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x14000695e
movq rax, xmm6
cmp rax, r14
je 0x140006969
inc edi
mov eax, edi
cmp rax, qword [rbx]
jb 0x140006920
jmp 0x14000696e
movq rsi, xmm7
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rsi, rsi
je 0x140006d99
mov qword [rbp - 0x21], r15
mov rbx, r15
lea rax, [rbp - 0x21]
sub rsi, rax
add rsi, 8
nop word [rax + rax]
mov qword [rbp - 0x19], r15
mov qword [rbp - 9], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 3], xmm0
mov dword [rbp + 0x13], r15d
lea rdi, [rbp - 0x21]
add rdi, rbx
lea rax, [rsi + rdi]
mov qword [rbp - 0x11], rax
mov dword [rbp - 1], 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 0x19]
mov edx, 0x80002048
mov rcx, qword [0x140024c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006d7a
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x1400069a0
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x140006d7a
mov qword [rbp - 0x21], r15
add rsi, 8
mov rbx, r15
lea rax, [rbp - 0x21]
sub rsi, rax
nop word [rax + rax]
mov qword [rbp - 0x19], r15
mov qword [rbp - 9], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 3], xmm0
mov dword [rbp + 0x13], r15d
lea rdi, [rbp - 0x21]
add rdi, rbx
lea rax, [rsi + rdi]
mov qword [rbp - 0x11], rax
mov dword [rbp - 1], 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 0x19]
mov edx, 0x80002048
mov rcx, qword [0x140024c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006d71
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x140006a40
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x140006d71
mov qword [rbp - 0x21], r15
add rsi, 0x28
mov rbx, r15
lea rax, [rbp - 0x21]
sub rsi, rax
nop word [rax + rax]
mov qword [rbp - 0x19], r15
mov qword [rbp - 9], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 3], xmm0
mov dword [rbp + 0x13], r15d
lea rdi, [rbp - 0x21]
add rdi, rbx
lea rax, [rsi + rdi]
mov qword [rbp - 0x11], rax
mov dword [rbp - 1], 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 0x19]
mov edx, 0x80002048
mov rcx, qword [0x140024c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006d68
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x140006ae0
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x140006d68
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
add rsi, 0x58
mov rbx, r15
lea rax, [rbp - 0x31]
mov r14, rsi
sub r14, rax
nop dword [rax]
mov qword [rbp - 0x19], r15
mov qword [rbp - 9], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 3], xmm0
mov dword [rbp + 0x13], r15d
lea rdi, [rbp - 0x31]
add rdi, rbx
lea rax, [r14 + rdi]
mov qword [rbp - 0x11], rax
mov dword [rbp - 1], 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 0x19]
mov edx, 0x80002048
mov rcx, qword [0x140024c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006d43
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 0x10
jb 0x140006b80
movzx eax, word [rbp - 0x31]
test ax, ax
je 0x140006d43
mov edi, eax
mov ecx, eax
shr rcx, 1
inc rcx
mov eax, 2
mul rcx
mov rbx, rax
mov rax, 0xffffffffffffffff
cmovb rbx, rax
mov rcx, rbx
call fcn.1400143c4
mov r14, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x21], r14
mov r9d, edi
mov r8, r14
mov rdx, qword [rbp - 0x29]
call fcn.140005e40
test al, al
jne 0x140006c60
lea rdx, str._Vixen____Failed_to_read_driver_name
jmp 0x140006d18
mov word [rbp - 0x31], r15w
mov rbx, rsi
lea rdi, [rbp - 0x31]
sub rdi, rsi
nop
mov qword [rbp - 0x19], r15
mov qword [rbp - 9], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp - 0x11], rbx
mov dword [rbp - 1], 1
movzx eax, byte [rdi + rbx]
mov dword [rbp + 3], eax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 0x19]
mov edx, 0x8000204c
mov rcx, qword [0x140024c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006d11
inc rbx
mov rax, rbx
sub rax, rsi
cmp rax, 0x10
jb 0x140006c70
lea rdx, str._Vixen___MmUnloadedDrivers_Cleaned:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000a4b0
mov rbx, rax
mov rdx, r14
mov rcx, rax
call fcn.14000a4b0
lea rdx, [0x14000a690]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov bl, 1
jmp 0x140006d36
lea rdx, str._Vixen____Failed_to_write_driver_name_length
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000a4b0
lea rdx, [0x14000a690]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor bl, bl
mov rcx, r14
call fcn.140014020
movzx eax, bl
jmp 0x140006d9b
lea rdx, str._Vixen____Failed_to_find_driver_name
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000a4b0
lea rdx, [0x14000a690]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x140006d99
lea rdx, str._Vixen____Failed_to_find_driver_section
jmp 0x140006d4a
lea rdx, str._Vixen____Failed_to_find_driver_object
jmp 0x140006d4a
lea rdx, str._Vixen____Failed_to_find_device_object
jmp 0x140006d4a
test rbx, rbx
je 0x140006d99
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140014000
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret