Function at 0x14004d254
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rsi, rcx
xor r12d, r12d
mov dword [rbp + 0x48], r12d
mov ebx, r12d
lea r9, [rbp + 0x48]
xor r8d, r8d
xor edx, edx
lea edi, [rdx + 0x40]
mov ecx, edi
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, 0xc0000004
jmp 0x14004d2cc
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x48]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp + 0x48]
mov r8d, dword [rbp + 0x48]
mov rdx, rax
mov ecx, edi
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, r14d
je 0x14004d291
test eax, eax
js 0x14004d543
test rbx, rbx
je 0x14004d559
mov r15, r12
mov edi, r12d
mov r14d, 1
cmp qword [rbx], r12
jbe 0x14004d342
mov rax, r12
lea rax, [rax + rax*4]
movups xmm0, xmmword [rbx + rax*8 + 0x10]
movups xmmword [rbp - 0x58], xmm0
movups xmm0, xmmword [rbx + rax*8 + 0x20]
movups xmmword [rbp - 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movups xmm1, xmmword [rbp - 0x58]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x14004d331
cmp qword [rbp - 0x38], rsi
je 0x14004d33d
add edi, r14d
mov eax, edi
cmp rax, qword [rbx]
jb 0x14004d2f6
jmp 0x14004d342
movq r15, xmm1
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r15, r15
je 0x14004d559
mov qword [rbp + 0x58], r12
lea r8, [r15 + 8]
mov ebx, 8
mov r9d, ebx
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.14004f038
test al, al
je 0x14004d53a
mov r8, qword [rbp + 0x58]
test r8, r8
je 0x14004d53a
mov qword [rbp - 0x60], r12
add r8, rbx
mov r9d, ebx
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.14004f038
test al, al
je 0x14004d531
mov r8, qword [rbp - 0x60]
test r8, r8
je 0x14004d531
mov qword [rbp + 0x50], r12
add r8, 0x28
mov r9d, ebx
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.14004f038
test al, al
je 0x14004d528
mov r8, qword [rbp + 0x50]
test r8, r8
je 0x14004d528
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
add r8, 0x58
lea r15d, [rbx + 8]
mov r9d, r15d
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.14004f038
test al, al
je 0x14004d503
movzx eax, word [rbp - 0x48]
test ax, ax
je 0x14004d503
mov ecx, eax
shr rcx, 1
add rcx, r14
lea eax, [rbx - 6]
mul rcx
mov rbx, rax
lea rax, [r15 - 0x11]
cmovb rbx, rax
mov rcx, rbx
call fcn.1400b4b80
mov rdi, rax
test rax, rax
je 0x14004d44f
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x14004d452
mov rdi, r12
mov qword [rbp - 0x58], rdi
movzx r9d, word [rbp - 0x48]
mov r8, qword [rbp - 0x40]
mov rdx, rdi
mov rcx, rsi
call fcn.14004f038
test al, al
jne 0x14004d477
lea rdx, str.____Failed_to_read_driver_name
jmp 0x14004d49e
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x50]
add rdx, 0x58
mov r9, r15
lea r8, [rbp - 0x48]
mov rcx, rsi
call fcn.14004f038
test al, al
jne 0x14004d4bf
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.14004aa9c
lea rdx, [0x14003e374]
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]
mov r14b, r12b
jmp 0x14004d4f1
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.14004aa9c
mov rbx, rax
mov rdx, rdi
mov rcx, rax
call fcn.14004aa9c
lea rdx, [0x14003e374]
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]
nop
test rdi, rdi
je 0x14004d4fe
mov rcx, rdi
call fcn.1400b4548
mov al, r14b
jmp 0x14004d55b
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.14004aa9c
lea rdx, [0x14003e374]
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 0x14004d559
lea rdx, str.____Failed_to_find_driver_section
jmp 0x14004d50a
lea rdx, str.____Failed_to_find_driver_object
jmp 0x14004d50a
lea rdx, str.____Failed_to_find_device_object
jmp 0x14004d50a
test rbx, rbx
je 0x14004d559
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret