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

Disassembly:
jmp 0x140353c80
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x3c0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x88
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3e8]
mov rax, qword [0x14054a080]
xor rax, rbp
mov qword [rbp + 0x390], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140168477
nop
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x28]
mov ecx, 0x40
call fcn.1401666f4
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x140353d47
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov eax, dword [rbp + 4]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x28], rax
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x28]
mov ecx, 0x40
call fcn.1401666f4
mov dword [rbp + 0x44], eax
jmp 0x140353cf3
cmp dword [rbp + 0x44], 0
jl 0x140353d54
cmp qword [rbp + 0x28], 0
jne 0x140353d75
cmp qword [rbp + 0x28], 0
je 0x140353d6e
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor al, al
jmp 0x1403541b6
mov qword [rbp + 0x68], 0
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x88], rax
mov dword [rbp + 0xa4], 0
jmp 0x140353da2
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
mov rcx, qword [rbp + 0x88]
cmp rax, qword [rcx]
jae 0x140353e0d
mov eax, dword [rbp + 0xa4]
imul rax, rax, 0x28
lea rcx, [rbp + 0xc8]
mov rdx, qword [rbp + 0x88]
mov rdi, rcx
lea rsi, [rdx + rax + 0x10]
mov ecx, Ordinal_41
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
cmp qword [rbp + 0xd0], rax
je 0x140353dee
jmp 0x140353d94
mov rax, qword [rbp + 0x3c0]
cmp qword [rbp + 0xd8], rax
jne 0x140353e0b
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x68], rax
jmp 0x140353e0d
jmp 0x140353d94
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
cmp qword [rbp + 0x68], 0
jne 0x140353e2e
xor al, al
jmp 0x1403541b6
mov qword [rbp + 0x108], 0
mov rax, qword [rbp + 0x68]
add rax, 8
mov r9d, 8
lea r8, [rbp + 0x108]
mov rdx, rax
mov rcx, qword [rbp + 0x3c0]
call fcn.140166627
movzx eax, al
test eax, eax
je 0x140353e6e
cmp qword [rbp + 0x108], 0
jne 0x140353ea4
lea rdx, str.____Failed_to_find_device_object
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140164c23
mov qword [rbp + 0x388], rax
lea rdx, [0x1401648cc]
mov rcx, qword [rbp + 0x388]
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
xor al, al
jmp 0x1403541b6
mov qword [rbp + 0x128], 0
mov rax, qword [rbp + 0x108]
add rax, 8
mov r9d, 8
lea r8, [rbp + 0x128]
mov rdx, rax
mov rcx, qword [rbp + 0x3c0]
call fcn.140166627
movzx eax, al
test eax, eax
je 0x140353ee7
cmp qword [rbp + 0x128], 0
jne 0x140353f1d
lea rdx, str.____Failed_to_find_driver_object
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140164c23
mov qword [rbp + 0x388], rax
lea rdx, [0x1401648cc]
mov rcx, qword [rbp + 0x388]
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
xor al, al
jmp 0x1403541b6
mov qword [rbp + 0x148], 0
mov rax, qword [rbp + 0x128]
add rax, 0x28
mov r9d, 8
lea r8, [rbp + 0x148]
mov rdx, rax
mov rcx, qword [rbp + 0x3c0]
call fcn.140166627
movzx eax, al
test eax, eax
je 0x140353f60
cmp qword [rbp + 0x148], 0
jne 0x140353f96
lea rdx, str.____Failed_to_find_driver_section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140164c23
mov qword [rbp + 0x388], rax
lea rdx, [0x1401648cc]
mov rcx, qword [rbp + 0x388]
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
xor al, al
jmp 0x1403541b6
lea rax, [rbp + 0x168]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x148]
add rax, 0x58
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp + 0x168]
mov rdx, rax
mov rcx, qword [rbp + 0x3c0]
call fcn.140166627
movzx eax, al
test eax, eax
je 0x140353fe2
movzx eax, word [rbp + 0x168]
test eax, eax
jne 0x140354018
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.140164c23
mov qword [rbp + 0x388], rax
lea rdx, [0x1401648cc]
mov rcx, qword [rbp + 0x388]
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
xor al, al
jmp 0x1403541b6
mov edx, 8
lea rcx, [rbp + 0x198]
call fcn.140165b69
movzx eax, word [rbp + 0x168]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov rdx, rax
lea rcx, [rbp + 0x198]
call fcn.140161bc2
nop
movzx eax, word [rbp + 0x168]
mov qword [rbp + 0x388], rax
lea rcx, [rbp + 0x198]
call fcn.140166ae1
mov rcx, qword [rbp + 0x388]
mov r9, rcx
mov r8, rax
mov rdx, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x3c0]
call fcn.140166627
movzx eax, al
test eax, eax
jne 0x1403540dc
lea rdx, str.____Failed_to_read_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.140164c23
mov qword [rbp + 0x388], rax
lea rdx, [0x1401648cc]
mov rcx, qword [rbp + 0x388]
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
mov byte [rbp + 0x334], 0
lea rcx, [rbp + 0x198]
call fcn.140167e91
movzx eax, byte [rbp + 0x334]
jmp 0x1403541b6
xor eax, eax
mov word [rbp + 0x168], ax
mov rax, qword [rbp + 0x148]
add rax, 0x58
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp + 0x168]
mov rdx, rax
mov rcx, qword [rbp + 0x3c0]
call fcn.140167ec8
movzx eax, al
test eax, eax
jne 0x14035415e
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.140164c23
mov qword [rbp + 0x388], rax
lea rdx, [0x1401648cc]
mov rcx, qword [rbp + 0x388]
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
mov byte [rbp + 0x354], 0
lea rcx, [rbp + 0x198]
call fcn.140167e91
movzx eax, byte [rbp + 0x354]
jmp 0x1403541b6
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.140164c23
lea rdx, [rbp + 0x198]
mov rcx, rax
call fcn.140165f38
mov qword [rbp + 0x388], rax
lea rdx, [0x1401648cc]
mov rcx, qword [rbp + 0x388]
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
mov byte [rbp + 0x374], 1
lea rcx, [rbp + 0x198]
call fcn.140167e91
movzx eax, byte [rbp + 0x374]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_getsockopt
call fcn.14016710d
mov rax, rdi
mov rcx, qword [rbp + 0x390]
xor rcx, rbp
call fcn.140164822
lea rsp, [rbp + 0x3a0]
pop rdi
pop rsi
pop rbp
ret