Function at 0x1400076a0
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 [0x140105080]
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 0x140007748
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 0x140007700
test eax, eax
js 0x140007bd3
test rbx, rbx
je 0x140007be9
mov rsi, r15
mov edi, r15d
cmp qword [rbx], r15
jbe 0x1400077be
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 0x1400077ae
movq rax, xmm6
cmp rax, r14
je 0x1400077b9
inc edi
mov eax, edi
cmp rax, qword [rbx]
jb 0x140007770
jmp 0x1400077be
movq rsi, xmm7
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rsi, rsi
je 0x140007be9
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], Ordinal_50
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_50
lea r8, [rbp - 0x19]
mov edx, 0x80002048
mov rcx, qword [0x14010da68]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140007bca
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x1400077f0
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x140007bca
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], Ordinal_50
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_50
lea r8, [rbp - 0x19]
mov edx, 0x80002048
mov rcx, qword [0x14010da68]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140007bc1
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x140007890
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x140007bc1
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], Ordinal_50
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_50
lea r8, [rbp - 0x19]
mov edx, 0x80002048
mov rcx, qword [0x14010da68]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140007bb8
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 8
jb 0x140007930
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x140007bb8
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], Ordinal_50
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_50
lea r8, [rbp - 0x19]
mov edx, 0x80002048
mov rcx, qword [0x14010da68]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140007b93
movzx eax, byte [rbp + 3]
mov byte [rdi], al
inc rbx
cmp rbx, 0x10
jb 0x1400079d0
movzx eax, word [rbp - 0x31]
test ax, ax
je 0x140007b93
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.1400c990c
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.140007000
test al, al
jne 0x140007ab0
lea rdx, str.____Failed_to_read_driver_name
jmp 0x140007b68
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], Ordinal_50
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_50
lea r8, [rbp - 0x19]
mov edx, 0x8000204c
mov rcx, qword [0x14010da68]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140007b61
inc rbx
mov rax, rbx
sub rax, rsi
cmp rax, 0x10
jb 0x140007ac0
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.14000b640
mov rbx, rax
mov rdx, r14
mov rcx, rax
call fcn.14000b640
lea rdx, [0x14000b820]
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 0x140007b86
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.14000b640
lea rdx, [0x14000b820]
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.1400c9560
movzx eax, bl
jmp 0x140007beb
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.14000b640
lea rdx, [0x14000b820]
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 0x140007be9
lea rdx, str.____Failed_to_find_driver_section
jmp 0x140007b9a
lea rdx, str.____Failed_to_find_driver_object
jmp 0x140007b9a
lea rdx, str.____Failed_to_find_device_object
jmp 0x140007b9a
test rbx, rbx
je 0x140007be9
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.1400c9540
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