Function at 0x14019ae90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edi, 1
mov rbx, rcx
mov dword [rcx], edi
cmp edx, 2
jbe 0x14019aec0
lea eax, [rdi - 2]
jmp 0x14019b121
mov dword [rcx + 4], edx
cmp r8d, edi
jbe 0x14019aed2
mov eax, 0xfffffffe
jmp 0x14019b121
mov dword [rcx + 8], r8d
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14019af54
movzx eax, byte [rcx]
mov byte [rbx + 0xc], al
movzx eax, byte [rcx + 1]
mov byte [rbx + 0xd], al
movzx eax, byte [rcx + 2]
mov byte [rbx + 0xe], al
movzx eax, byte [rcx + 3]
mov byte [rbx + 0xf], al
movzx eax, byte [rcx + 4]
mov byte [rbx + 0x10], al
movzx eax, byte [rcx + 5]
mov byte [rbx + 0x11], al
movzx eax, byte [rcx + 6]
mov byte [rbx + 0x12], al
movzx eax, byte [rcx + 7]
mov byte [rbx + 0x13], al
movzx eax, byte [rcx + 8]
mov byte [rbx + 0x14], al
movzx eax, byte [rcx + 9]
mov byte [rbx + 0x15], al
movzx eax, byte [rcx + 0xa]
mov byte [rbx + 0x16], al
movzx eax, byte [rcx + 0xb]
mov byte [rbx + 0x17], al
movzx eax, byte [rcx + 0xc]
mov byte [rbx + 0x18], al
movzx eax, byte [rcx + 0xd]
mov byte [rbx + 0x19], al
movzx eax, byte [rcx + 0xe]
mov byte [rbx + 0x1a], al
movzx eax, byte [rcx + 0xf]
mov byte [rbx + 0x1b], al
jmp 0x14019af64
mov qword [rbx + 0xc], 0
mov qword [rbx + 0x14], 0
mov ecx, dword [rsp + 0x80]
test ecx, ecx
je 0x14019af9f
sub ecx, edi
je 0x14019af90
cmp ecx, edi
je 0x14019af81
mov eax, 0xfffffffd
jmp 0x14019b121
mov dword [rbx + 0x1c], reloc.WS2_32.dll_ntohl
mov r10d, 0x20
jmp 0x14019afac
mov dword [rbx + 0x1c], listen
mov r10d, SafeArrayCopy
jmp 0x14019afac
mov dword [rbx + 0x1c], 0xa
mov r10d, setsockopt
test r9, r9
jne 0x14019afba
lea eax, [r9 - 4]
jmp 0x14019b121
xor r8d, r8d
nop dword [rax]
mov rax, r8
lea rcx, [rsp + 0x20]
and eax, 3
lea r9, [r9 + 1]
add rcx, rax
mov rdx, r8
movzx eax, byte [r9 - 1]
inc r8
shr rdx, 2
mov byte [rcx + rdx*4], al
sub r10, rdi
jne 0x14019afc0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14019b140
cmp dword [rbx + 8], edi
jne 0x14019b119
cmp dword [rbx + 0x1c], edi
jbe 0x14019b119
lea r10, [0x140000000]
nop
mov r9d, edi
inc edi
lea r8, [r9 + 2]
add r9, r9
shl r8, 4
add r8, rbx
movzx ecx, byte [r8 + 3]
movzx eax, byte [r8 + 2]
mov edx, dword [r10 + rcx*4 + 0x3bf880]
xor edx, dword [r10 + rax*4 + 0x3bf480]
movzx eax, byte [r8 + 1]
xor edx, dword [r10 + rax*4 + 0x3bf080]
movzx eax, byte [r8]
xor edx, dword [r10 + rax*4 + 0x3bec80]
mov dword [r8], edx
movzx ecx, byte [rbx + r9*8 + 0x27]
movzx eax, byte [rbx + r9*8 + 0x26]
mov edx, dword [r10 + rcx*4 + 0x3bf880]
xor edx, dword [r10 + rax*4 + 0x3bf480]
movzx eax, byte [rbx + r9*8 + 0x25]
xor edx, dword [r10 + rax*4 + 0x3bf080]
movzx eax, byte [rbx + r9*8 + 0x24]
xor edx, dword [r10 + rax*4 + 0x3bec80]
mov dword [rbx + r9*8 + 0x24], edx
movzx ecx, byte [rbx + r9*8 + 0x2b]
movzx eax, byte [rbx + r9*8 + 0x2a]
mov edx, dword [r10 + rcx*4 + 0x3bf880]
xor edx, dword [r10 + rax*4 + 0x3bf480]
movzx eax, byte [rbx + r9*8 + 0x29]
xor edx, dword [r10 + rax*4 + 0x3bf080]
movzx eax, byte [rbx + r9*8 + 0x28]
xor edx, dword [r10 + rax*4 + 0x3bec80]
mov dword [rbx + r9*8 + 0x28], edx
movzx eax, byte [rbx + r9*8 + 0x2e]
movzx ecx, byte [rbx + r9*8 + 0x2f]
mov edx, dword [r10 + rcx*4 + 0x3bf880]
xor edx, dword [r10 + rax*4 + 0x3bf480]
movzx eax, byte [rbx + r9*8 + 0x2d]
xor edx, dword [r10 + rax*4 + 0x3bf080]
movzx eax, byte [rbx + r9*8 + 0x2c]
xor edx, dword [r10 + rax*4 + 0x3bec80]
mov dword [rbx + r9*8 + 0x2c], edx
cmp edi, dword [rbx + 0x1c]
jb 0x14019b010
mov dword [rbx], 0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140172190
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret