Function at 0x140003450
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, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov r12, rcx
mov dword [rbp + 0x2c], 0
xor ebx, ebx
lea r9, [rbp + 0x2c]
mov ecx, 0x40
xor edx, edx
xor r8d, r8d
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x1400038d0
xor edi, edi
mov r14, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r15, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rbx, [rbp + 0x2c]
nop word cs:[rax + rax]
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call r14
mov edx, dword [rbp + 0x2c]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call r15
mov rdi, rax
mov r8d, dword [rbp + 0x2c]
mov ecx, 0x40
mov rdx, rax
mov r9, rbx
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400034c0
test eax, eax
js 0x140003858
test rdi, rdi
je 0x140003858
cmp qword [rdi], 0
je 0x14000385d
mov ebx, 1
xor eax, eax
xor r14d, r14d
mov qword [rbp + 0x20], r12
jmp 0x140003539
mov eax, ebx
inc ebx
cmp qword [rdi], rax
jbe 0x140003589
lea rax, [rax + rax*4]
xor r13d, r13d
mov rsi, r14
cmp qword [rdi + rax*8 + 0x20], r12
sete r15b
jne 0x140003553
mov r14, qword [rdi + rax*8 + 0x10]
mov r12, qword [rdi + rax*8 + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
mov r13b, r15b
shl r13d, 2
cmp r12, rax
cmove rsi, r14
mov r14, rsi
mov eax, 6
cmovne r13d, eax
cmp r13d, 6
mov r12, qword [rbp + 0x20]
je 0x140003530
test r13d, r13d
je 0x140003530
xor ebx, ebx
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14, r14
je 0x1400038d0
mov qword [rbp - 0x40], 0
add r14, 8
je 0x140003872
mov qword [rbp], 0
mov qword [rbp - 8], gethostname
mov qword [rbp + 8], r14
lea rax, [rbp - 0x40]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 8
mov dword [rbp - 0x20], 0
lea rdi, [rbp - 0x20]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rbp - 8]
mov rcx, r12
mov edx, 0x80862007
mov r9d, Ordinal_41
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140003872
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140003872
mov qword [rbp - 0x38], 0
add rax, 8
je 0x140003882
mov qword [rbp], 0
mov qword [rbp - 8], gethostname
mov qword [rbp + 8], rax
lea rax, [rbp - 0x38]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 8
mov dword [rbp - 0x20], 0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rbp - 8]
mov rcx, r12
mov edx, 0x80862007
mov r9d, Ordinal_41
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140003882
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140003882
mov qword [rbp - 0x28], 0
add rax, 0x28
je 0x140003892
mov qword [rbp], 0
mov qword [rbp - 8], gethostname
mov qword [rbp + 8], rax
lea rax, [rbp - 0x28]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 8
mov dword [rbp - 0x20], 0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rbp - 8]
mov rcx, r12
mov edx, 0x80862007
mov r9d, Ordinal_41
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140003892
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x140003892
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
add rax, 0x58
je 0x1400038e6
mov qword [rbp], 0
mov qword [rbp - 8], gethostname
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x18], reloc.WS2_32.dll_recv
mov dword [rbp - 0x2c], 0
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rbp - 8]
mov rcx, r12
mov edx, 0x80862007
mov r9d, Ordinal_41
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400038e6
movzx eax, word [rbp - 0x20]
test ax, ax
je 0x1400038e6
movzx edi, ax
mov ebx, edi
and ebx, 0xfffffffe
add rbx, 2
mov rcx, rbx
call fcn.140165f54
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, rbx
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rbp - 0x18]
mov rcx, r12
mov r8, rsi
mov r9, rdi
call fcn.140002000
test al, al
je 0x140003903
mov word [rbp - 0x20], 0
mov rdx, qword [rbp - 0x28]
add rdx, 0x58
lea r8, [rbp - 0x20]
mov r9d, reloc.WS2_32.dll_recv
mov rcx, r12
call fcn.1400046d0
mov bl, 1
test al, al
jne 0x140003928
mov qword [rbp + 0x20], rsi
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.140060410
mov rcx, rax
call fcn.140060800
jmp 0x140003922
test rdi, rdi
je 0x1400038ce
xor ebx, ebx
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400038d0
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 0x1400038a0
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 0x1400038a0
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
call fcn.140060410
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
add rsp, 0xb8
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_find_driver_name
call fcn.140060410
mov rcx, rax
call fcn.140060800
jmp 0x1400038ce
mov qword [rbp + 0x20], rsi
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.140060410
mov rcx, rax
call fcn.140060800
xor ebx, ebx
mov rsi, qword [rbp + 0x20]
mov rcx, rsi
call fcn.1401658ec
jmp 0x1400038d0