Function at 0x14016e090
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r14
mov eax, 0x48
call fcn.1400babe0
sub rsp, rax
mov rax, qword [rcx + 0x178]
mov rbx, rcx
mov r10, qword [rcx + 0x168]
mov r14, r9
mov qword [rsp + 0x20], rax
mov rsi, r8
mov rax, qword [rcx + 0x180]
mov rdi, rdx
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x88], rax
add rcx, r9
movabs rax, 0xfffffffe0
mov qword [rsp + 0x70], r10
cmp rcx, rax
ja 0x14016e37d
cmp rcx, r9
jb 0x14016e37d
mov qword [rsp + 0x38], r13
xor r13d, r13d
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x170]
mov qword [rbx + 0x38], rcx
cmp dword [rbx + 0x174], r13d
je 0x14016e15b
test r9, r9
jne 0x14016e13b
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call qword [rbx + 0x160]
xor eax, eax
mov dword [rbx + 0x174], r13d
jmp 0x14016e369
movups xmm0, xmmword [rbx + 0x40]
mov r15d, reloc.WS2_32.dll_recv
movups xmmword [rbx + 0x188], xmm0
mov qword [rbx + 0x40], r13
mov qword [rbx + 0x48], r13
mov dword [rbx + 0x174], r13d
mov qword [rsp + 0x78], rbp
mov ebp, r15d
mov qword [rsp + 0x40], r12
mov r12d, dword [rbx + 0xc]
bswap r12d
and ebp, 0xf
je 0x14016e1c9
test r14, r14
je 0x14016e1a4
movzx edx, byte [rdi]
dec r14
mov eax, r15d
inc rdi
inc r15d
mov byte [rax + rbx + 0x188], dl
movzx ecx, byte [rbp + rbx + 0x10]
xor cl, dl
mov byte [rsi], cl
inc rsi
inc ebp
and ebp, 0xf
jne 0x14016e174
jmp 0x14016e1ac
test ebp, ebp
jne 0x14016e356
lea r8, [rbx + 0x188]
mov r9d, r15d
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r10
mov r10, qword [rsp + 0x70]
mov r15d, r13d
lea rax, [rbx + 0x60]
cmp r14, 0x10
jb 0x14016e1ef
test r15d, r15d
je 0x14016e1ef
mov r9d, r15d
lea r8, [rbx + 0x188]
mov rdx, rax
lea rcx, [rbx + 0x40]
call r10
mov r15d, r13d
cmp r14, 0xc00
jb 0x14016e28a
movabs rax, 0xaaaaaaaaaaaaaaab
mul r14
shr rdx, 0xb
imul rax, rdx, 0xfffffffffffff400
mov qword [rsp + 0x28], rdx
add r14, rax
nop dword [rax]
mov r9d, 0xc00
lea rdx, [rbx + 0x60]
mov r8, rdi
lea rcx, [rbx + 0x40]
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
mov r13d, 0xc0
nop dword [rax + rax]
mov r8, qword [rsp + 0x88]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + 0x20]
inc r12d
mov eax, r12d
bswap eax
mov dword [rbx + 0xc], eax
mov rax, qword [rbx + 0x10]
xor rax, qword [rdi]
mov qword [rsi], rax
mov rax, qword [rdi + 8]
add rdi, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rsi + 8], rax
add rsi, 0x10
sub r13, 1
jne 0x14016e240
sub qword [rsp + 0x28], 1
jne 0x14016e220
mov r9, r14
and r9, 0xfffffffffffffff0
je 0x14016e304
mov r8, rdi
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
cmp r14, 0x10
jb 0x14016e304
mov r13, r14
lea rcx, [rbx + 0x10]
shr r13, 4
imul rax, r13, 0xfffffffffffffff0
add r14, rax
nop word [rax + rax]
mov r8, qword [rsp + 0x88]
mov rdx, rcx
mov rcx, rbx
call qword [rsp + 0x20]
inc r12d
lea rcx, [rbx + 0x10]
mov eax, r12d
bswap eax
mov dword [rbx + 0xc], eax
mov rax, qword [rcx]
xor rax, qword [rdi]
mov qword [rsi], rax
mov rax, qword [rdi + 8]
add rdi, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rsi + 8], rax
add rsi, 0x10
sub r13, 1
jne 0x14016e2c0
test r14, r14
je 0x14016e356
mov r8, qword [rsp + 0x88]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + 0x20]
inc r12d
bswap r12d
mov dword [rbx + 0xc], r12d
nop word [rax + rax]
movzx ecx, byte [rbp + rdi]
mov eax, r15d
inc r15d
mov byte [rax + rbx + 0x188], cl
movzx eax, byte [rbp + rbx + 0x10]
xor al, cl
mov byte [rbp + rsi], al
lea ebp, [rbp + 1]
sub r14, 1
jne 0x14016e330
mov r12, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov dword [rbx + 0x170], r15d
mov r13, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret