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.14006cfa4
movzx r8d, word [rbp + 0xf]
xor edx, edx
add r8, 2
mov rcx, rax
mov rdi, rax
call fcn.14006dbfa
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], 0xc24dc230
mov ecx, 0x3d95
mov dword [rbp - 0x55], 0xc24ec230
mov dword [rbp - 0x51], 0xc211c229
mov dword [rbp - 0x4d], 0xc21ec218
mov dword [rbp - 0x49], 0xc210c216
mov dword [rbp - 0x45], 0xc202c255
mov dword [rbp - 0x41], 0xc258c218
mov dword [rbp - 0x3d], 0xc21fc20b
mov dword [rbp - 0x39], 0xc218c21a
mov dword [rbp - 0x35], 0xc21ac25d
mov dword [rbp - 0x31], 0xc2e9c20d
mov dword [rbp - 0x2d], 0xc2e7c2f7
mov dword [rbp - 0x29], 0xc2a4c2f1
mov dword [rbp - 0x25], 0xc2e7c2eb
mov dword [rbp - 0x21], 0xc2edc2ea
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], 0xc24ec230
mov ecx, 0x3d95
test al, al
jne 0x14004ec31
mov dword [rbp - 0x59], 0xc24dc230
mov dword [rbp - 0x51], 0xc211c229
mov dword [rbp - 0x4d], 0xc21ec218
mov dword [rbp - 0x49], 0xc210c216
mov dword [rbp - 0x45], 0xc202c255
mov dword [rbp - 0x41], 0xc258c218
mov dword [rbp - 0x3d], 0xc208c20e
mov dword [rbp - 0x39], 0xc208c212
mov dword [rbp - 0x35], 0xc25ec218
mov dword [rbp - 0x31], 0xc2f2c21b
mov dword [rbp - 0x2d], 0xc2f4c2e8
mov dword [rbp - 0x29], 0xc2f6c2e6
mov dword [rbp - 0x25], 0xc2e8c2a5
mov dword [rbp - 0x21], 0xc2e5c2e6
mov dword [rbp - 0x1d], 0xc2aac2ec
mov dword [rbp - 0x19], 0xc2e9c2e7
mov dword [rbp - 0x15], 0xc2e9c2e3
mov dword [rbp - 0x11], 0xc2f8c2fb
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], 0xc247c230
mov dword [rbp - 0x51], 0xc21dc222
mov dword [rbp - 0x4d], 0xc21cc224
mov dword [rbp - 0x49], 0xc21bc21f
mov dword [rbp - 0x45], 0xc212c214
mov dword [rbp - 0x41], 0xc21cc212
mov dword [rbp - 0x3d], 0xc208c23d
mov dword [rbp - 0x39], 0xc20ac212
mov dword [rbp - 0x35], 0xc20cc218
mov dword [rbp - 0x31], 0xc2a0c20c
mov dword [rbp - 0x2d], 0xc2eec2c2
mov dword [rbp - 0x29], 0xc2e5c2e6
mov dword [rbp - 0x25], 0xc2e3c2eb
mov dword [rbp - 0x21], 0xc2b2c2e3
mov dword [rbp - 0x1d], 0xc2a9
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.14006ca00
mov al, 1
jmp 0x14004ef89
mov dword [rbp - 0x59], 0xc24dc230
mov ecx, 0x3d95
mov dword [rbp - 0x55], 0xc24ec230
mov dword [rbp - 0x51], 0xc211c229
mov dword [rbp - 0x4d], 0xc21ec218
mov dword [rbp - 0x49], 0xc210c216
mov dword [rbp - 0x45], 0xc202c255
mov dword [rbp - 0x41], 0xc258c218
mov dword [rbp - 0x3d], 0xc213c21f
mov dword [rbp - 0x39], 0xc218c215
mov dword [rbp - 0x35], 0xc21ac25d
mov dword [rbp - 0x31], 0xc2e9c20d
mov dword [rbp - 0x2d], 0xc2e7c2f7
mov dword [rbp - 0x29], 0xc2a4c2f1
mov dword [rbp - 0x25], 0xc2e7c2eb
mov dword [rbp - 0x21], 0xc2edc2ea
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], 0xc24dc230
mov ecx, 0x3d95
mov dword [rbp - 0x55], 0xc24ec230
mov dword [rbp - 0x51], 0xc211c229
mov dword [rbp - 0x4d], 0xc21ec218
mov dword [rbp - 0x49], 0xc210c216
mov dword [rbp - 0x45], 0xc202c255
mov dword [rbp - 0x41], 0xc258c218
mov dword [rbp - 0x3d], 0xc213c21f
mov dword [rbp - 0x39], 0xc218c215
mov dword [rbp - 0x35], 0xc21ac25d
mov dword [rbp - 0x31], 0xc2e9c20d
mov dword [rbp - 0x2d], 0xc2e7c2f7
mov dword [rbp - 0x29], 0xc2dbc2f1
mov dword [rbp - 0x25], 0xc2e3c2f6
mov dword [rbp - 0x21], 0xc2fcc2e4
mov dword [rbp - 0x1d], 0xc2e5c2e0
mov dword [rbp - 0x19], 0xc2e5
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], 0xc24dc230
mov ecx, 0x3d95
mov dword [rbp - 0x55], 0xc24ec230
mov dword [rbp - 0x51], 0xc211c229
mov dword [rbp - 0x4d], 0xc21ec218
mov dword [rbp - 0x49], 0xc210c216
mov dword [rbp - 0x45], 0xc202c255
mov dword [rbp - 0x41], 0xc258c218
mov dword [rbp - 0x3d], 0xc213c21f
mov dword [rbp - 0x39], 0xc218c215
mov dword [rbp - 0x35], 0xc21ac25d
mov dword [rbp - 0x31], 0xc2e9c20d
mov dword [rbp - 0x2d], 0xc2e7c2f7
mov dword [rbp - 0x29], 0xc2dbc2f1
mov dword [rbp - 0x25], 0xc2e4c2ea
mov dword [rbp - 0x21], 0xc2edc2ed
mov dword [rbp - 0x1d], 0xc2fec2ea
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], 0xc24dc230
mov ecx, 0x3d95
mov dword [rbp - 0x55], 0xc24ec230
mov dword [rbp - 0x51], 0xc211c229
mov dword [rbp - 0x4d], 0xc21ec218
mov dword [rbp - 0x49], 0xc210c216
mov dword [rbp - 0x45], 0xc202c255
mov dword [rbp - 0x41], 0xc258c218
mov dword [rbp - 0x3d], 0xc213c21f
mov dword [rbp - 0x39], 0xc218c215
mov dword [rbp - 0x35], 0xc21ac25d
mov dword [rbp - 0x31], 0xc2f6c21a
mov dword [rbp - 0x2d], 0xc2e1c2e8
mov dword [rbp - 0x29], 0xc2dbc2e6
mov dword [rbp - 0x25], 0xc2e4c2ea
mov dword [rbp - 0x21], 0xc2edc2ed
mov dword [rbp - 0x1d], 0xc2fec2ea
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.14006c910
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r14
pop rdi
pop rbp
ret