Function at 0x140006930
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 [0x140023040]
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
lea ecx, [rdx + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400069d6
nop dword [rax + 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
lea r9d, [rcx + 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 0x140006990
test eax, eax
js 0x140006e63
test rbx, rbx
je 0x140006e79
mov rsi, r15
mov edi, r15d
cmp qword [rbx], r15
jbe 0x140006a51
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 0x140006a3e
movq rax, xmm6
cmp rax, r14
je 0x140006a4c
inc edi
mov eax, edi
cmp rax, qword [rbx]
jb 0x140006a00
jmp 0x140006e68
movq rsi, xmm7
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rsi, rsi
je 0x140006e79
mov qword [rbp - 0x21], r15
mov rbx, r15
lea rax, [rbp - 0x21]
sub rsi, rax
add rsi, 8
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 - 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 [0x140023c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006e5a
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x140006a80
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x140006e5a
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 [0x140023c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006e51
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x140006b20
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x140006e51
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 [0x140023c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006e48
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x140006bc0
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x140006e48
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 [0x140023c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006e23
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 0x10
jb 0x140006c60
movzx eax, word [rbp - 0x31]
test ax, ax
je 0x140006e23
mov edi, eax
mov ecx, eax
shr rcx, 1
inc rcx
mov eax, 2
mul rcx
mov rbx, rax
mov rax, 0xffffffffffffffff
cmovo rbx, rax
mov rcx, rbx
call fcn.140014494
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.140005f20
test al, al
jne 0x140006d40
lea rdx, str.____Failed_to_read_driver_name
jmp 0x140006df8
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 [0x140023c20]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006df1
inc rbx
mov rax, rbx
sub rax, rsi
cmp rax, 0x10
jb 0x140006d50
lea rdx, str.___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.14000a4f0
mov rbx, rax
mov rdx, r14
mov rcx, rax
call fcn.14000a4f0
lea rdx, [0x14000a6d0]
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 0x140006e16
lea rdx, str.____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.14000a4f0
lea rdx, [0x14000a6d0]
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.1400140f0
movzx eax, bl
jmp 0x140006e7b
lea rdx, str.____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.14000a4f0
lea rdx, [0x14000a6d0]
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 0x140006e79
lea rdx, str.____Failed_to_find_driver_section
jmp 0x140006e2a
lea rdx, str.____Failed_to_find_driver_object
jmp 0x140006e2a
lea rdx, str.____Failed_to_find_device_object
jmp 0x140006e2a
test rbx, rbx
je 0x140006e79
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400140d0
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