Function at 0x140056cd0
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, 0x100
mov rax, qword [0x1400a0040]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor ebx, ebx
lea r9, [rbp - 0x59]
mov r14, rcx
mov dword [rbp - 0x59], 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 0x140056d66
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x59]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp - 0x59]
lea r9, [rbp - 0x59]
mov rdx, rax
mov ecx, 0x40
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140056d20
mov qword [rsp + 0x128], rsi
mov qword [rsp + 0x130], r15
test eax, eax
js 0x140057451
test rdi, rdi
je 0x140057467
mov r15, rbx
mov esi, ebx
cmp qword [rdi], rbx
jbe 0x140056df9
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 - 0x79], xmm0
movups xmm0, xmmword [rdi + rax*8 + 0x20]
movups xmmword [rbp - 0x69], xmm0
movsd xmm0, qword [rdi + rax*8 + 0x30]
movsd qword [rbp - 0x19], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm1, xmmword [rbp - 0x79]
mov ecx, eax
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x140056de6
cmp qword [rbp - 0x69], r14
je 0x140056df4
inc esi
mov eax, esi
cmp rax, qword [rdi]
jb 0x140056da0
jmp 0x140057456
movq r15, xmm1
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r15, r15
je 0x140057467
lea r8, [r15 + 8]
mov qword [rbp + 0x27], rbx
mov r9d, 8
lea rdx, [rbp + 0x27]
mov rcx, r14
call fcn.1400557a0
test al, al
je 0x1400573b1
mov r8, qword [rbp + 0x27]
test r8, r8
je 0x1400573b1
add r8, 8
mov qword [rbp + 0x2f], rbx
mov r9d, 8
lea rdx, [rbp + 0x2f]
mov rcx, r14
call fcn.1400557a0
test al, al
je 0x140057311
mov r8, qword [rbp + 0x2f]
test r8, r8
je 0x140057311
add r8, 0x28
mov qword [rbp + 0x1f], rbx
mov r9d, 8
lea rdx, [rbp + 0x1f]
mov rcx, r14
call fcn.1400557a0
test al, al
je 0x140057269
mov r8, qword [rbp + 0x1f]
test r8, r8
je 0x140057269
xorps xmm0, xmm0
lea rdx, [rbp - 0x51]
add r8, 0x58
mov r9d, reloc.WS2_32.dll_recv
mov rcx, r14
movups xmmword [rbp - 0x51], xmm0
call fcn.1400557a0
test al, al
je 0x1400571d1
movzx eax, word [rbp - 0x51]
test ax, ax
je 0x1400571d1
mov ecx, eax
mov eax, 2
shr rcx, 1
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140080634
movzx r8d, word [rbp - 0x51]
xor edx, edx
add r8, 2
mov rcx, rax
mov rdi, rax
call fcn.140080ef1
movzx r9d, word [rbp - 0x51]
mov rdx, rdi
mov r8, qword [rbp - 0x49]
mov rcx, r14
call fcn.1400557a0
test al, al
jne 0x140056fdd
mov dword [rbp - 0x39], 0xd725d758
mov ecx, 0x28fd
mov dword [rbp - 0x35], 0xd726d758
mov dword [rbp - 0x31], 0xd769d741
mov dword [rbp - 0x2d], 0xd766d760
mov dword [rbp - 0x29], 0xd768d76e
mov dword [rbp - 0x25], 0xd77ad72d
mov dword [rbp - 0x21], 0xd730d760
mov dword [rbp - 0x1d], 0xd777d763
mov dword [rbp - 0x19], 0xd770d772
mov dword [rbp - 0x15], 0xd772d735
mov dword [rbp - 0x11], 0xd771d765
mov dword [rbp - 0xd], 0xd77fd76f
mov dword [rbp - 9], 0xd73cd769
mov dword [rbp - 5], 0xd77fd773
mov dword [rbp - 1], 0xd745d772
mov word [rbp + 3], bx
mov byte [rbp + 5], 1
nop dword [rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x39], ax
inc rbx
cmp rbx, 0x1e
jb 0x140056fa0
mov byte [rbp + 5], 0
lea rdx, [rbp - 0x39]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14005d060
lea rdx, [0x14005d240]
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 0x140057467
mov rax, qword [rbp + 0x1f]
mov word [rbp - 0x51], bx
add rax, 0x58
je 0x140057114
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x51]
mov qword [rbp - 0x21], rax
lea r8, [rbp - 0x39]
lea rax, [rbp + 0x17]
mov qword [rbp - 0x29], rcx
mov qword [rsp + 0x30], rax
mov r9d, 0x28
mov dword [rsp + 0x28], ebx
mov edx, 0x80862007
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x39], 0x33
mov qword [rbp - 0x19], reloc.WS2_32.dll_recv
mov dword [rbp + 0x17], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140057114
mov dword [rbp - 0x39], 0xd72fd758
mov ecx, 0x28fd
mov dword [rbp - 0x35], 0xd726d758
mov dword [rbp - 0x31], 0xd765d74a
mov dword [rbp - 0x2d], 0xd764d75c
mov dword [rbp - 0x29], 0xd763d767
mov dword [rbp - 0x25], 0xd76ad76c
mov dword [rbp - 0x21], 0xd774d76a
mov dword [rbp - 0x1d], 0xd760d755
mov dword [rbp - 0x19], 0xd762d77a
mov dword [rbp - 0x15], 0xd764d770
mov dword [rbp - 0x11], 0xd738d764
mov dword [rbp - 0xd], 0xd776d75a
mov dword [rbp - 9], 0xd77dd77e
mov dword [rbp - 5], 0xd77bd773
mov dword [rbp - 1], 0xd71ad77b
mov dword [rbp + 3], 0xd701
mov byte [rbp + 7], 1
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x39], ax
inc rbx
cmp rbx, 0x1f
jb 0x1400570c2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp - 0x39]
mov byte [rbp + 7], 0
call fcn.14005d060
mov rcx, rax
mov rdx, rdi
call fcn.14005d060
lea rdx, [0x14005d240]
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.140080070
mov al, 1
jmp 0x140057469
mov dword [rbp - 0x39], 0xd725d758
mov ecx, 0x28fd
mov dword [rbp - 0x35], 0xd726d758
mov dword [rbp - 0x31], 0xd769d741
mov dword [rbp - 0x2d], 0xd766d760
mov dword [rbp - 0x29], 0xd768d76e
mov dword [rbp - 0x25], 0xd77ad72d
mov dword [rbp - 0x21], 0xd730d760
mov dword [rbp - 0x1d], 0xd760d766
mov dword [rbp - 0x19], 0xd760d77a
mov dword [rbp - 0x15], 0xd736d770
mov dword [rbp - 0x11], 0xd76ad773
mov dword [rbp - 0xd], 0xd76cd770
mov dword [rbp - 9], 0xd76ed77e
mov dword [rbp - 5], 0xd770d73d
mov dword [rbp - 1], 0xd74dd77e
mov dword [rbp + 3], 0xd702d744
mov dword [rbp + 7], 0xd741d74f
mov dword [rbp + 0xb], 0xd741d74b
mov dword [rbp + 0xf], 0xd740d753
mov word [rbp + 0x13], bx
mov byte [rbp + 0x15], 1
nop word [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x39], ax
inc rbx
cmp rbx, 0x26
jb 0x1400571b0
mov byte [rbp + 0x15], 0
lea rdx, [rbp - 0x39]
jmp 0x140056fbc
mov dword [rbp - 0x39], 0xd725d758
mov ecx, 0x28fd
mov dword [rbp - 0x35], 0xd726d758
mov dword [rbp - 0x31], 0xd769d741
mov dword [rbp - 0x2d], 0xd766d760
mov dword [rbp - 0x29], 0xd768d76e
mov dword [rbp - 0x25], 0xd77ad72d
mov dword [rbp - 0x21], 0xd730d760
mov dword [rbp - 0x1d], 0xd77bd777
mov dword [rbp - 0x19], 0xd770d77d
mov dword [rbp - 0x15], 0xd772d735
mov dword [rbp - 0x11], 0xd771d765
mov dword [rbp - 0xd], 0xd77fd76f
mov dword [rbp - 9], 0xd73cd769
mov dword [rbp - 5], 0xd77fd773
mov dword [rbp - 1], 0xd745d772
mov word [rbp + 3], bx
mov byte [rbp + 5], 1
nop word [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x39], ax
inc rbx
cmp rbx, 0x1e
jb 0x140057250
jmp 0x140056fb4
mov dword [rbp - 0x39], 0xd725d758
mov ecx, 0x28fd
mov dword [rbp - 0x35], 0xd726d758
mov dword [rbp - 0x31], 0xd769d741
mov dword [rbp - 0x2d], 0xd766d760
mov dword [rbp - 0x29], 0xd768d76e
mov dword [rbp - 0x25], 0xd77ad72d
mov dword [rbp - 0x21], 0xd730d760
mov dword [rbp - 0x1d], 0xd77bd777
mov dword [rbp - 0x19], 0xd770d77d
mov dword [rbp - 0x15], 0xd772d735
mov dword [rbp - 0x11], 0xd771d765
mov dword [rbp - 0xd], 0xd77fd76f
mov dword [rbp - 9], 0xd743d769
mov dword [rbp - 5], 0xd77bd76e
mov dword [rbp - 1], 0xd754d77c
mov dword [rbp + 3], 0xd74dd748
mov dword [rbp + 7], 0xd74d
mov byte [rbp + 0xb], 1
nop dword [rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x39], ax
inc rbx
cmp rbx, 0x21
jb 0x1400572f0
mov byte [rbp + 0xb], 0
lea rdx, [rbp - 0x39]
jmp 0x140056fbc
mov dword [rbp - 0x39], 0xd725d758
mov ecx, 0x28fd
mov dword [rbp - 0x35], 0xd726d758
mov dword [rbp - 0x31], 0xd769d741
mov dword [rbp - 0x2d], 0xd766d760
mov dword [rbp - 0x29], 0xd768d76e
mov dword [rbp - 0x25], 0xd77ad72d
mov dword [rbp - 0x21], 0xd730d760
mov dword [rbp - 0x1d], 0xd77bd777
mov dword [rbp - 0x19], 0xd770d77d
mov dword [rbp - 0x15], 0xd772d735
mov dword [rbp - 0x11], 0xd771d765
mov dword [rbp - 0xd], 0xd77fd76f
mov dword [rbp - 9], 0xd743d769
mov dword [rbp - 5], 0xd77cd772
mov dword [rbp - 1], 0xd745d775
mov dword [rbp + 3], 0xd756d742
mov word [rbp + 7], bx
mov byte [rbp + 9], 1
nop
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x39], ax
inc rbx
cmp rbx, 0x20
jb 0x140057390
mov byte [rbp + 9], 0
lea rdx, [rbp - 0x39]
jmp 0x140056fbc
mov dword [rbp - 0x39], 0xd725d758
mov ecx, 0x28fd
mov dword [rbp - 0x35], 0xd726d758
mov dword [rbp - 0x31], 0xd769d741
mov dword [rbp - 0x2d], 0xd766d760
mov dword [rbp - 0x29], 0xd768d76e
mov dword [rbp - 0x25], 0xd77ad72d
mov dword [rbp - 0x21], 0xd730d760
mov dword [rbp - 0x1d], 0xd77bd777
mov dword [rbp - 0x19], 0xd770d77d
mov dword [rbp - 0x15], 0xd772d735
mov dword [rbp - 0x11], 0xd76ed772
mov dword [rbp - 0xd], 0xd779d770
mov dword [rbp - 9], 0xd743d77e
mov dword [rbp - 5], 0xd77cd772
mov dword [rbp - 1], 0xd745d775
mov dword [rbp + 3], 0xd756d742
mov word [rbp + 7], bx
mov byte [rbp + 9], 1
nop
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x39], ax
inc rbx
cmp rbx, 0x20
jb 0x140057430
mov byte [rbp + 9], 0
lea rdx, [rbp - 0x39]
jmp 0x140056fbc
test rdi, rdi
je 0x140057467
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov r15, qword [rsp + 0x130]
mov rsi, qword [rsp + 0x128]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14007fe60
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop r14
pop rdi
pop rbp
ret