Function at 0x140004d00
Capabilities:
Allocate or change rwx memory
Encode data using xor
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1400ae0c0]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor ebx, ebx
lea r9, [rbp - 0x50]
mov r14, rcx
mov dword [rbp - 0x50], ebx
xor r8d, r8d
xor edx, edx
mov edi, ebx
lea ecx, [rbx + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140004d96
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x50]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp - 0x50]
lea r9, [rbp - 0x50]
mov rdx, rax
mov ecx, 0x40
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140004d50
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x180], r15
test eax, eax
js 0x14000547e
test rdi, rdi
je 0x140005494
mov r15, rbx
mov esi, ebx
cmp qword [rdi], rbx
jbe 0x140004e29
mov rax, rbx
nop dword [rax]
nop dword [rax + rax]
lea rax, [rax + rax*4]
movups xmm0, xmmword [rdi + rax*8 + 0x10]
movups xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rdi + rax*8 + 0x20]
movups xmmword [rbp - 0x60], xmm0
movsd xmm0, qword [rdi + rax*8 + 0x30]
movsd qword [rbp - 0x10], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm1, xmmword [rbp - 0x70]
mov ecx, eax
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x140004e16
cmp qword [rbp - 0x60], r14
je 0x140004e24
inc esi
mov eax, esi
cmp rax, qword [rdi]
jb 0x140004dd0
jmp 0x140005483
movq r15, xmm1
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r15, r15
je 0x140005494
lea r8, [r15 + 8]
mov qword [rbp + 0x30], rbx
mov r9d, 8
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.140003730
test al, al
je 0x1400053de
mov r8, qword [rbp + 0x30]
test r8, r8
je 0x1400053de
add r8, 8
mov qword [rbp + 0x38], rbx
mov r9d, 8
lea rdx, [rbp + 0x38]
mov rcx, r14
call fcn.140003730
test al, al
je 0x14000533e
mov r8, qword [rbp + 0x38]
test r8, r8
je 0x14000533e
add r8, 0x28
mov qword [rbp + 0x28], rbx
mov r9d, 8
lea rdx, [rbp + 0x28]
mov rcx, r14
call fcn.140003730
test al, al
je 0x140005296
mov r8, qword [rbp + 0x28]
test r8, r8
je 0x140005296
xorps xmm0, xmm0
lea rdx, [rbp - 0x48]
add r8, 0x58
mov r9d, reloc.WS2_32.dll_recv
mov rcx, r14
movups xmmword [rbp - 0x48], xmm0
call fcn.140003730
test al, al
je 0x140005200
movzx eax, word [rbp - 0x48]
test ax, ax
je 0x140005200
mov ecx, eax
mov eax, 2
shr rcx, 1
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140083a54
movzx r8d, word [rbp - 0x48]
xor edx, edx
add r8, 2
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
movzx r9d, word [rbp - 0x48]
mov rdx, rdi
mov r8, qword [rbp - 0x40]
mov rcx, r14
call fcn.140003730
test al, al
jne 0x14000500a
mov dword [rbp - 0x30], 0xa4d0a30
mov ecx, 0xa6b
mov dword [rbp - 0x2c], 0xa4e0a30
mov dword [rbp - 0x28], 0xa110a29
mov dword [rbp - 0x24], 0xa1e0a18
mov dword [rbp - 0x20], 0xa100a16
mov dword [rbp - 0x1c], 0xa020a55
mov dword [rbp - 0x18], 0xa580a18
mov dword [rbp - 0x14], 0xa1f0a0b
mov dword [rbp - 0x10], 0xa180a1a
mov dword [rbp - 0xc], 0xa1a0a5d
mov dword [rbp - 8], 0xae90a0d
mov dword [rbp - 4], 0xae70af7
mov dword [rbp], 0xaa40af1
mov dword [rbp + 4], 0xae70aeb
mov dword [rbp + 8], 0xaed0aea
mov word [rbp + 0xc], bx
mov byte [rbp + 0xe], 1
nop dword [rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x30], ax
inc rbx
cmp rbx, 0x1e
jb 0x140004fd0
mov byte [rbp + 0xe], 0
lea rdx, [rbp - 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000b2d0
lea rdx, [0x14000b4b0]
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 0x140005494
mov rax, qword [rbp + 0x28]
mov word [rbp - 0x48], bx
add rax, 0x58
je 0x14000513f
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x30]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], rcx
mov qword [rsp + 0x30], rax
mov r9d, Ordinal_45
mov dword [rsp + 0x28], ebx
mov edx, 0x80862007
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x30], gethostname
mov qword [rbp - reloc.WS2_32.dll_recv], 0x10
mov dword [rbp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000513f
mov dword [rbp - 0x30], 0xa470a30
mov ecx, 0xa6b
mov dword [rbp - 0x2c], 0xa4e0a30
mov dword [rbp - 0x28], 0xa1d0a22
mov dword [rbp - 0x24], 0xa1c0a24
mov dword [rbp - 0x20], 0xa1b0a1f
mov dword [rbp - 0x1c], 0xa120a14
mov dword [rbp - 0x18], 0xa1c0a12
mov dword [rbp - 0x14], 0xa080a3d
mov dword [rbp - 0x10], 0xa0a0a12
mov dword [rbp - 0xc], 0xa0c0a18
mov dword [rbp - 8], 0xaa00a0c
mov dword [rbp - 4], 0xaee0ac2
mov dword [rbp], 0xae50ae6
mov dword [rbp + 4], 0xae30aeb
mov dword [rbp + 8], 0xab20ae3
mov dword [rbp + 0xc], 0xaa9
mov byte [rbp + 0x10], 1
nop
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x30], ax
inc rbx
cmp rbx, 0x1f
jb 0x1400050f0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp - 0x30]
mov byte [rbp + 0x10], 0
call fcn.14000b2d0
mov rcx, rax
mov rdx, rdi
call fcn.14000b2d0
lea rdx, [0x14000b4b0]
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 rcx, rdi
call fcn.1400836b0
mov al, 1
jmp 0x140005496
mov dword [rsp + 0x40], 0xa4d0a30
mov ecx, 0xa6b
mov dword [rsp + 0x44], 0xa4e0a30
mov dword [rsp + 0x48], 0xa110a29
mov dword [rsp + 0x4c], 0xa1e0a18
mov dword [rsp + 0x50], 0xa100a16
mov dword [rsp + 0x54], 0xa020a55
mov dword [rsp + 0x58], 0xa580a18
mov dword [rsp + 0x5c], 0xa080a0e
mov dword [rsp + 0x60], 0xa080a12
mov dword [rsp + 0x64], 0xa5e0a18
mov dword [rsp + 0x68], 0xaf20a1b
mov dword [rsp + 0x6c], 0xaf40ae8
mov dword [rsp + 0x70], 0xaf60ae6
mov dword [rsp + 0x74], 0xae80aa5
mov dword [rsp + 0x78], 0xae50ae6
mov dword [rsp + 0x7c], 0xaaa0aec
mov dword [rbp - 0x80], 0xae90ae7
mov dword [rbp - 0x7c], 0xae90ae3
mov dword [rbp - 0x78], 0xaf80afb
mov word [rbp - 0x74], bx
mov byte [rbp - 0x72], 1
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x26
jb 0x1400051e1
mov byte [rbp - 0x72], 0
lea rdx, [rsp + 0x40]
jmp 0x140004fe9
mov dword [rbp - 0x30], 0xa4d0a30
mov ecx, 0xa6b
mov dword [rbp - 0x2c], 0xa4e0a30
mov dword [rbp - 0x28], 0xa110a29
mov dword [rbp - 0x24], 0xa1e0a18
mov dword [rbp - 0x20], 0xa100a16
mov dword [rbp - 0x1c], 0xa020a55
mov dword [rbp - 0x18], 0xa580a18
mov dword [rbp - 0x14], 0xa130a1f
mov dword [rbp - 0x10], 0xa180a15
mov dword [rbp - 0xc], 0xa1a0a5d
mov dword [rbp - 8], 0xae90a0d
mov dword [rbp - 4], 0xae70af7
mov dword [rbp], 0xaa40af1
mov dword [rbp + 4], 0xae70aeb
mov dword [rbp + 8], 0xaed0aea
mov word [rbp + 0xc], bx
mov byte [rbp + 0xe], 1
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x30], ax
inc rbx
cmp rbx, 0x1e
jb 0x140005280
jmp 0x140004fe1
mov dword [rbp - 0x30], 0xa4d0a30
mov ecx, 0xa6b
mov dword [rbp - 0x2c], 0xa4e0a30
mov dword [rbp - 0x28], 0xa110a29
mov dword [rbp - 0x24], 0xa1e0a18
mov dword [rbp - 0x20], 0xa100a16
mov dword [rbp - 0x1c], 0xa020a55
mov dword [rbp - 0x18], 0xa580a18
mov dword [rbp - 0x14], 0xa130a1f
mov dword [rbp - 0x10], 0xa180a15
mov dword [rbp - 0xc], 0xa1a0a5d
mov dword [rbp - 8], 0xae90a0d
mov dword [rbp - 4], 0xae70af7
mov dword [rbp], 0xadb0af1
mov dword [rbp + 4], 0xae30af6
mov dword [rbp + 8], 0xafc0ae4
mov dword [rbp + 0xc], 0xae50ae0
mov dword [rbp + 0x10], 0xae5
mov byte [rbp + 0x14], 1
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x30], ax
inc rbx
cmp rbx, 0x21
jb 0x140005320
mov byte [rbp + 0x14], 0
lea rdx, [rbp - 0x30]
jmp 0x140004fe9
mov dword [rbp - 0x30], 0xa4d0a30
mov ecx, 0xa6b
mov dword [rbp - 0x2c], 0xa4e0a30
mov dword [rbp - 0x28], 0xa110a29
mov dword [rbp - 0x24], 0xa1e0a18
mov dword [rbp - 0x20], 0xa100a16
mov dword [rbp - 0x1c], 0xa020a55
mov dword [rbp - 0x18], 0xa580a18
mov dword [rbp - 0x14], 0xa130a1f
mov dword [rbp - 0x10], 0xa180a15
mov dword [rbp - 0xc], 0xa1a0a5d
mov dword [rbp - 8], 0xae90a0d
mov dword [rbp - 4], 0xae70af7
mov dword [rbp], 0xadb0af1
mov dword [rbp + 4], 0xae40aea
mov dword [rbp + 8], 0xaed0aed
mov dword [rbp + 0xc], 0xafe0aea
mov word [rbp + 0x10], bx
mov byte [rbp + 0x12], 1
nop dword [rax + rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x30], ax
inc rbx
cmp rbx, 0x20
jb 0x1400053c0
mov byte [rbp + 0x12], 0
lea rdx, [rbp - 0x30]
jmp 0x140004fe9
mov dword [rbp - 0x30], 0xa4d0a30
mov ecx, 0xa6b
mov dword [rbp - 0x2c], 0xa4e0a30
mov dword [rbp - 0x28], 0xa110a29
mov dword [rbp - 0x24], 0xa1e0a18
mov dword [rbp - 0x20], 0xa100a16
mov dword [rbp - 0x1c], 0xa020a55
mov dword [rbp - 0x18], 0xa580a18
mov dword [rbp - 0x14], 0xa130a1f
mov dword [rbp - 0x10], 0xa180a15
mov dword [rbp - 0xc], 0xa1a0a5d
mov dword [rbp - 8], 0xaf60a1a
mov dword [rbp - 4], 0xae10ae8
mov dword [rbp], 0xadb0ae6
mov dword [rbp + 4], 0xae40aea
mov dword [rbp + 8], 0xaed0aed
mov dword [rbp + 0xc], 0xafe0aea
mov word [rbp + 0x10], bx
mov byte [rbp + 0x12], 1
nop dword [rax + rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x30], ax
inc rbx
cmp rbx, 0x20
jb 0x140005460
mov byte [rbp + 0x12], 0
lea rdx, [rbp - 0x30]
jmp 0x140004fe9
test rdi, rdi
je 0x140005494
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov r15, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x178]
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140083690
mov rbx, qword [rsp + 0x188]
add rsp, 0x150
pop r14
pop rdi
pop rbp
ret