Function at 0x18019da99
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x18019dd19
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x830
mov rax, qword [0x18029e198]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x18019dcf9
mov r11, qword [rdx]
mov r10d, dword [rdx + 0x18]
mov edx, 8
mov eax, r10d
mov qword [rsp + 0x850], rdi
shl rax, 0xa
lea rcx, [r11 - 0x400]
add rcx, rax
lea rax, [rsp + 0x20]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x18019daf1
mov r9d, dword [rbx + 0x1c]
mov r8d, 1
cmp r9d, r8d
jbe 0x18019dc37
nop word [rax + rax]
inc r8d
lea rdi, [rsp + 0x20]
mov edx, r8d
xor eax, eax
imul edx, r10d
dec edx
shl rdx, 0xa
add rdx, r11
lea rcx, [rdx + 0x3f8]
cmp rdi, rcx
ja 0x18019dbac
lea rcx, [rsp + 0x418]
cmp rcx, rdx
jb 0x18019dbac
mov rcx, qword [rdx + rax*8]
xor qword [rsp + rax*8 + 0x20], rcx
inc rax
cmp rax, 0x80
jl 0x18019db93
jmp 0x18019dc2e
lea rcx, [rsp + 0x20]
sub rcx, rdx
lea rdi, [rsp + 0x30]
sub rdi, rdx
lea rax, [rdx + 0x20]
mov edx, reloc.WS2_32.dll_recv
nop word [rax + rax]
movdqu xmm0, xmmword [rcx + rax - 0x20]
movdqu xmm1, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx + rax - 0x60], xmm1
movdqu xmm0, xmmword [rdi + rax - 0x60]
movdqu xmm1, xmmword [rax - 0x50]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rdi + rax - 0x60], xmm1
movdqu xmm1, xmmword [rax + rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax + rcx - 0x40], xmm1
movdqu xmm0, xmmword [rax + rdi - 0x40]
movdqu xmm1, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax + rdi - 0x40], xmm1
sub rdx, 1
jne 0x18019dbd0
cmp r8d, r9d
jb 0x18019db60
lea rcx, [rsp + 0x420]
mov edi, 0x20
lea rdx, [rsp + 0x20]
nop dword [rax]
mov rax, qword [rdx]
lea rdx, [rdx + 0x20]
mov qword [rcx], rax
lea rcx, [rcx + 0x20]
mov rax, qword [rdx - 0x18]
mov qword [rcx - 0x18], rax
mov rax, qword [rdx - 0x10]
mov qword [rcx - 0x10], rax
mov rax, qword [rdx - 8]
mov qword [rcx - 8], rax
sub rdi, 1
jne 0x18019dc50
mov edx, dword [rsi + 8]
lea r8, [rsp + 0x420]
mov rcx, qword [rsi]
mov r9d, 0x400
call fcn.1801a2550
mov r9d, dword [reloc.WS2_32.dll_accept]
test r9d, r9d
je 0x18019dcbe
xor eax, eax
lea rdi, [rsp + 0x20]
mov ecx, 0x400
rep stosb byte [rdi], al
lea rdi, [rsp + 0x420]
mov ecx, 0x400
rep stosb byte [rdi], al
mov edx, dword [rbx + 0x10]
mov r8, qword [rbx]
shl rdx, 0xa
test r9d, r9d
je 0x18019dcdc
test r8, r8
je 0x18019dcdc
mov rdi, r8
xor eax, eax
mov rcx, rdx
rep stosb byte [rdi], al
mov rax, qword [rsi + 0x68]
mov rcx, r8
mov rdi, qword [rsp + 0x850]
test rax, rax
je 0x18019dcf4
call rax
jmp 0x18019dcf9
call fcn.18010fae0
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1801e67e0
mov rbx, qword [rsp + 0x858]
add rsp, 0x830
pop rsi
ret