Function at 0x140006760
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, 0xb0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rcx
xor r15d, r15d
mov dword [rbp - 0x29], r15d
mov ebx, r15d
lea r9, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140006806
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x29]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp - 0x29]
mov r8d, dword [rbp - 0x29]
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400067c0
test eax, eax
js 0x140006c93
test rbx, rbx
je 0x140006ca9
mov rsi, r15
mov edi, r15d
cmp qword [rbx], r15
jbe 0x140006881
mov rax, r15
nop word [rax + rax]
lea rax, [rax + rax*4]
movups xmm6, xmmword [rbx + rax*8 + 0x10]
movups xmmword [rbp - 9], xmm6
movups xmm0, xmmword [rbx + rax*8 + 0x20]
movups xmmword [rbp + 7], xmm0
movsd xmm1, qword [rbx + rax*8 + 0x30]
movsd qword [rbp + 0x17], xmm1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
psrldq xmm6, 8
movq rax, xmm6
cmp rax, rcx
jne 0x14000686e
cmp qword [rbp + 7], r14
je 0x14000687d
inc edi
mov eax, edi
cmp rax, qword [rbx]
jae 0x140006c98
jmp 0x140006830
mov rsi, qword [rbp - 9]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rsi, rsi
je 0x140006ca9
mov qword [rbp - 0x11], r15
mov rbx, r15
lea rax, [rbp - 0x11]
sub rsi, rax
add rsi, 8
nop dword [rax]
mov qword [rbp - 9], r15
mov qword [rbp + 7], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x13], xmm0
mov dword [rbp + 0x23], r15d
lea rdi, [rbp - 0x11]
add rdi, rbx
lea rax, [rsi + rdi]
mov qword [rbp - 1], rax
mov dword [rbp + 0xf], 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 9]
mov edx, 0x80002048
mov rcx, qword [0x140023bf0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006c8a
movzx eax, byte [rbp + 0x13]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x1400068b0
mov rsi, qword [rbp - 0x11]
test rsi, rsi
je 0x140006c8a
mov qword [rbp - 0x11], r15
add rsi, 8
mov rbx, r15
lea rax, [rbp - 0x11]
sub rsi, rax
nop word [rax + rax]
mov qword [rbp - 9], r15
mov qword [rbp + 7], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x13], xmm0
mov dword [rbp + 0x23], r15d
lea rdi, [rbp - 0x11]
add rdi, rbx
lea rax, [rsi + rdi]
mov qword [rbp - 1], rax
mov dword [rbp + 0xf], 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 9]
mov edx, 0x80002048
mov rcx, qword [0x140023bf0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006c81
movzx eax, byte [rbp + 0x13]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x140006950
mov rsi, qword [rbp - 0x11]
test rsi, rsi
je 0x140006c81
mov qword [rbp - 0x11], r15
add rsi, 0x28
mov rbx, r15
lea rax, [rbp - 0x11]
sub rsi, rax
nop word [rax + rax]
mov qword [rbp - 9], r15
mov qword [rbp + 7], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x13], xmm0
mov dword [rbp + 0x23], r15d
lea rdi, [rbp - 0x11]
add rdi, rbx
lea rax, [rsi + rdi]
mov qword [rbp - 1], rax
mov dword [rbp + 0xf], 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 9]
mov edx, 0x80002048
mov rcx, qword [0x140023bf0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006c78
movzx eax, byte [rbp + 0x13]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x1400069f0
mov rsi, qword [rbp - 0x11]
test rsi, rsi
je 0x140006c78
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
add rsi, 0x58
mov rbx, r15
lea rax, [rbp - 0x21]
mov r14, rsi
sub r14, rax
nop dword [rax]
mov qword [rbp - 9], r15
mov qword [rbp + 7], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x13], xmm0
mov dword [rbp + 0x23], r15d
lea rdi, [rbp - 0x21]
add rdi, rbx
lea rax, [r14 + rdi]
mov qword [rbp - 1], rax
mov dword [rbp + 0xf], 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 9]
mov edx, 0x80002048
mov rcx, qword [0x140023bf0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006c53
movzx eax, byte [rbp + 0x13]
mov byte [rdi], al
inc rbx
cmp rbx, 0x10
jb 0x140006a90
movzx eax, word [rbp - 0x21]
test ax, ax
je 0x140006c53
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.140013d9c
mov r14, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x11], r14
mov r9d, edi
mov r8, r14
mov rdx, qword [rbp - 0x19]
call fcn.140005d30
test al, al
jne 0x140006b70
lea rdx, str.____Failed_to_read_driver_name
jmp 0x140006c28
mov word [rbp - 0x21], r15w
mov rbx, rsi
lea rdi, [rbp - 0x21]
sub rdi, rsi
nop
mov qword [rbp - 9], r15
mov qword [rbp + 7], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp - 1], rbx
mov dword [rbp + 0xf], 1
movzx eax, byte [rdi + rbx]
mov dword [rbp + 0x13], eax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x30
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp - 9]
mov edx, 0x8000204c
mov rcx, qword [0x140023bf0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140006c21
inc rbx
mov rax, rbx
sub rax, rsi
cmp rax, 0x10
jb 0x140006b80
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.14000a3a0
mov rbx, rax
mov rdx, r14
mov rcx, rax
call fcn.14000a3a0
lea rdx, [0x14000a580]
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 0x140006c46
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.14000a3a0
lea rdx, [0x14000a580]
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.140013870
movzx eax, bl
jmp 0x140006cab
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.14000a3a0
lea rdx, [0x14000a580]
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 0x140006ca9
lea rdx, str.____Failed_to_find_driver_section
jmp 0x140006c5a
lea rdx, str.____Failed_to_find_driver_object
jmp 0x140006c5a
lea rdx, str.____Failed_to_find_device_object
jmp 0x140006c5a
test rbx, rbx
je 0x140006ca9
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140013850
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret