Function at 0x140002ec0
Capabilities:
Allocate or change rwx memory
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x118
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov dword [rsp + 0xd0], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0xd0]
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140002f7d
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0xd0]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0xd0]
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
jmp 0x140002f18
cmp dword [rsp + 0x30], 0
jl 0x140002f8c
cmp qword [rsp + 0x28], 0
jne 0x140002fae
cmp qword [rsp + 0x28], 0
je 0x140002fa7
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x1400033c6
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x140002fd5
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
cmp rax, qword [rcx]
jae 0x14000303e
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
lea rcx, [rsp + 0xa8]
mov rdx, qword [rsp + 0x48]
mov rdi, rcx
lea rsi, [rdx + rax + 0x10]
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
cmp qword [rsp + 0xb0], rax
je 0x14000301b
jmp 0x140002fcb
mov rax, qword [rsp + 0x130]
cmp qword [rsp + 0xb8], rax
jne 0x14000303c
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x40], rax
jmp 0x14000303e
jmp 0x140002fcb
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [rsp + 0x40], 0
jne 0x140003060
xor al, al
jmp 0x1400033c6
mov qword [rsp + 0xf0], 0
mov rax, qword [rsp + 0x40]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0xf0]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.140002620
movzx eax, al
test eax, eax
je 0x1400030a5
cmp qword [rsp + 0xf0], 0
jne 0x1400030d6
lea rdx, str.____Failed_to_find_device_object
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400086c0
mov qword [rsp + 0x58], rax
lea rdx, [0x140008b00]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x1400033c6
mov qword [rsp + 0xf8], 0
mov rax, qword [rsp + 0xf0]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0xf8]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.140002620
movzx eax, al
test eax, eax
je 0x14000311e
cmp qword [rsp + 0xf8], 0
jne 0x14000314f
lea rdx, str.____Failed_to_find_driver_object
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400086c0
mov qword [rsp + 0x60], rax
lea rdx, [0x140008b00]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x1400033c6
mov qword [rsp + 0xe8], 0
mov rax, qword [rsp + 0xf8]
add rax, 0x28
mov r9d, 8
lea r8, [rsp + 0xe8]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.140002620
movzx eax, al
test eax, eax
je 0x140003197
cmp qword [rsp + 0xe8], 0
jne 0x1400031c8
lea rdx, str.____Failed_to_find_driver_section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400086c0
mov qword [rsp + 0x68], rax
lea rdx, [0x140008b00]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x1400033c6
lea rax, [rsp + 0xd8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xe8]
add rax, 0x58
mov r9d, 0x10
lea r8, [rsp + 0xd8]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.140002620
movzx eax, al
test eax, eax
je 0x140003219
movzx eax, word [rsp + 0xd8]
test eax, eax
jne 0x14000324a
lea rdx, str.____Failed_to_find_driver_name
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400086c0
mov qword [rsp + 0x70], rax
lea rdx, [0x140008b00]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x1400033c6
movzx eax, word [rsp + 0xd8]
mov qword [rsp + 0x78], rax
mov eax, 2
mov rcx, qword [rsp + 0x78]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140018b10
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0xd8]
shl rax, 1
mov qword [rsp + 0x88], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov rcx, qword [rsp + 0x88]
rep stosb byte [rdi], al
movzx eax, word [rsp + 0xd8]
shl rax, 1
mov r9, rax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x130]
call fcn.140002620
xor eax, eax
mov word [rsp + 0xd8], ax
mov rax, qword [rsp + 0xe8]
add rax, 0x58
mov r9d, 0x10
lea r8, [rsp + 0xd8]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.140002660
movzx eax, al
test eax, eax
jne 0x140003347
lea rdx, str.____Failed_to_write_driver_name_length
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400086c0
mov qword [rsp + 0x90], rax
lea rdx, [0x140008b00]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x1400033c6
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.140009150
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.140009150
mov qword [rsp + 0x98], rax
lea rdx, [0x140009590]
mov rcx, qword [rsp + 0x98]
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 rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.140018234
cmp qword [rsp + 0x50], 0
jne 0x1400033ae
mov qword [rsp + 0xa0], 0
jmp 0x1400033c4
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xa0], rax
mov al, 1
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140018210
add rsp, 0x118
pop rdi
pop rsi
ret