Function at 0x140004a40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x40], xmm6
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov dword [rbp + 0x34], 0
xor ebx, ebx
lea r9, [rbp + 0x34]
mov ecx, 0x40
xor edx, edx
xor r8d, r8d
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140004f69
xor edi, edi
mov r14, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rbx, [rbp + 0x34]
nop word cs:[rax + rax]
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call r14
mov edx, dword [rbp + 0x34]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call rsi
mov rdi, rax
mov r8d, dword [rbp + 0x34]
mov ecx, 0x40
mov rdx, rax
mov r9, rbx
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x140004ab0
test eax, eax
js 0x140004edd
test rdi, rdi
je 0x140004edd
cmp qword [rdi], 0
je 0x140004ee6
mov r14, rdi
add r14, 0x10
mov ebx, 1
xor eax, eax
xor esi, esi
jmp 0x140004b2a
mov eax, ebx
add ebx, 1
cmp qword [rdi], rax
jbe 0x140004b72
mov r15, rsi
lea rax, [rax + rax*4]
mov rsi, qword [r14 + rax*8]
mov r12, qword [r14 + rax*8 + 8]
mov r13, qword [r14 + rax*8 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
cmp r12, rcx
cmovne rsi, r15
xor eax, eax
cmp r13, qword [rbp + 0x28]
sete al
cmovne rsi, r15
shl eax, 2
cmp r12, rcx
mov ecx, 6
cmovne eax, ecx
cmp eax, 6
je 0x140004b20
test eax, eax
je 0x140004b20
xor ebx, ebx
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rsi, rsi
je 0x140004f69
mov qword [rbp - 0x40], 0
add rsi, 8
je 0x140004efb
movaps xmm6, xmmword [0x14001a790]
movaps xmmword [rbp - 0x10], xmm6
mov qword [rbp], rsi
lea rax, [rbp - 0x40]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 8
mov dword [rbp - 0x20], 0
lea rbx, [rbp - 0x20]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x10]
mov rcx, qword [rbp + 0x28]
mov edx, 0x80862007
mov r9d, 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140004efb
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140004efb
mov qword [rbp - 0x38], 0
add rax, 8
je 0x140004f0b
movaps xmmword [rbp - 0x10], xmm6
mov qword [rbp], rax
lea rax, [rbp - 0x38]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 8
mov dword [rbp - 0x20], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x10]
mov rcx, qword [rbp + 0x28]
mov edx, 0x80862007
mov r9d, 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140004f0b
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140004f0b
mov qword [rbp - 0x30], 0
add rax, 0x28
je 0x140004f1b
movaps xmmword [rbp - 0x10], xmm6
mov qword [rbp], rax
lea rax, [rbp - 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 8
mov dword [rbp - 0x20], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x10]
mov rcx, qword [rbp + 0x28]
mov edx, 0x80862007
mov r9d, 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140004f1b
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x140004f1b
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
add rax, 0x58
je 0x140004f2b
movaps xmmword [rbp - 0x10], xmm6
mov qword [rbp], rax
mov qword [rbp + 8], rbx
mov qword [rbp + 0x10], 0x10
mov dword [rbp + 0x24], 0
lea r14, [rbp + 0x24]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x10]
mov rcx, qword [rbp + 0x28]
mov edx, 0x80862007
mov r9d, 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140004f2b
movzx esi, word [rbp - 0x20]
test rsi, rsi
je 0x140004f2b
mov edi, esi
and edi, 0xfffffffe
add rdi, 2
mov rcx, rdi
call fcn.140010994
mov r15, rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbp - 0x18]
test rax, rax
mov qword [rbp - 0x28], r15
je 0x140004f83
movzx ecx, si
movaps xmmword [rbp - 0x10], xmm6
mov qword [rbp], rax
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x24], 0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x10]
mov rcx, qword [rbp + 0x28]
mov edx, 0x80862007
mov r9d, 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140004f83
mov word [rbp - 0x20], 0
mov rax, qword [rbp - 0x30]
add rax, 0x58
je 0x140004fc1
movaps xmmword [rbp - 0x10], xmm6
mov qword [rbp], rbx
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0x10
mov dword [rbp + 0x24], 0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x10]
mov rcx, qword [rbp + 0x28]
mov edx, 0x80862007
mov r9d, 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140004fc1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___MmUnloadedDrivers_Cleaned:
call fcn.1400022d0
mov rsi, rax
mov rcx, rax
mov rdx, qword [rbp - 0x28]
call fcn.1400022d0
mov rax, qword [rsi]
movsxd rax, dword [rax + 4]
mov rcx, rsi
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_wchar_t___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
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__::put_wchar_t____ptr64]
mov bl, 1
mov rcx, rsi
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__::flush_void____ptr64]
jmp 0x140004fff
test rdi, rdi
je 0x140004f67
xor ebx, ebx
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140004f69
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Failed_to_find_device_object
jmp 0x140004f39
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Failed_to_find_driver_object
jmp 0x140004f39
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Failed_to_find_driver_section
jmp 0x140004f39
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Failed_to_find_driver_name
call fcn.1400022d0
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_wchar_t___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
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__::put_wchar_t____ptr64]
mov rcx, rsi
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__::flush_void____ptr64]
xor ebx, ebx
mov eax, ebx
movaps xmm6, xmmword [rbp + 0x40]
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Failed_to_read_driver_name
call fcn.1400022d0
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_wchar_t___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
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__::put_wchar_t____ptr64]
mov rcx, rsi
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__::flush_void____ptr64]
jmp 0x140004ffd
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Failed_to_write_driver_name_length
call fcn.1400022d0
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_wchar_t___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
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__::put_wchar_t____ptr64]
mov rcx, rsi
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__::flush_void____ptr64]
xor ebx, ebx
mov rcx, qword [rbp - 0x28]
call fcn.140010960
jmp 0x140004f69