Function at 0x14016e670
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 rdi, r8
mov rax, qword [rcx + 0x180]
mov rsi, 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 0x14016e969
cmp rcx, r9
jb 0x14016e969
mov qword [rsp + 0x78], rbp
mov ebp, dword [rbx + 0x170]
mov qword [rsp + 0x38], r13
xor r13d, r13d
mov qword [rbx + 0x38], rcx
cmp dword [rbx + 0x174], r13d
je 0x14016e739
test r9, r9
jne 0x14016e71a
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call qword [rbx + 0x160]
xor eax, eax
mov dword [rbx + 0x174], r13d
jmp 0x14016e955
movups xmm0, xmmword [rbx + 0x40]
mov ebp, 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 + 0x40], r12
mov r12d, dword [rbx + 0xc]
mov qword [rsp + 0x30], r15
mov r15d, ebp
bswap r12d
and r15d, 0xf
je 0x14016e7a7
test r14, r14
je 0x14016e781
movzx ecx, byte [r15 + rbx + 0x10]
dec r14
xor cl, byte [rsi]
inc rsi
mov byte [rdi], cl
inc rdi
mov eax, ebp
inc ebp
inc r15d
mov byte [rax + rbx + 0x188], cl
and r15d, 0xf
jne 0x14016e753
jmp 0x14016e78a
test r15d, r15d
jne 0x14016e943
lea r8, [rbx + 0x188]
mov r9d, ebp
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r10
mov r10, qword [rsp + 0x70]
mov ebp, r13d
lea rax, [rbx + 0x60]
cmp r14, 0x10
jb 0x14016e7cc
test ebp, ebp
je 0x14016e7cc
mov r9d, ebp
lea r8, [rbx + 0x188]
mov rdx, rax
lea rcx, [rbx + 0x40]
call r10
mov ebp, r13d
cmp r14, 0xc00
jb 0x14016e879
movabs rax, 0xaaaaaaaaaaaaaaab
lea rcx, [rbx + 0x10]
mul r14
shr rdx, 0xb
imul rax, rdx, 0xfffffffffffff400
mov qword [rsp + 0x28], rdx
add r14, rax
nop dword [rax]
mov r13d, 0xc0
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 [rsi]
mov qword [rdi], rax
mov rax, qword [rsi + 8]
add rsi, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rdi + 8], rax
add rdi, 0x10
sub r13, 1
jne 0x14016e810
lea r8, [rdi - 0xc00]
mov r9d, 0xc00
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
sub qword [rsp + 0x28], 1
lea rcx, [rbx + 0x10]
jne 0x14016e800
mov rax, r14
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x28], rax
je 0x14016e8fe
cmp r14, 0x10
jb 0x14016e8e9
mov r13, r14
lea rcx, [rbx + 0x10]
shr r13, 4
imul rax, r13, 0xfffffffffffffff0
add r14, rax
nop
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 [rsi]
mov qword [rdi], rax
mov rax, qword [rsi + 8]
add rsi, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rdi + 8], rax
add rdi, 0x10
sub r13, 1
jne 0x14016e8a0
mov rax, qword [rsp + 0x28]
mov r8, rdi
lea rdx, [rbx + 0x60]
sub r8, rax
lea rcx, [rbx + 0x40]
mov r9, rax
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
test r14, r14
je 0x14016e943
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
movzx ecx, byte [r15 + rbx + 0x10]
xor cl, byte [r15 + rsi]
mov eax, ebp
inc ebp
mov byte [r15 + rdi], cl
lea r15d, [r15 + 1]
mov byte [rax + rbx + 0x188], cl
sub r14, 1
jne 0x14016e920
mov r12, qword [rsp + 0x40]
xor eax, eax
mov r15, qword [rsp + 0x30]
mov dword [rbx + 0x170], ebp
mov rbp, qword [rsp + 0x78]
mov r13, qword [rsp + 0x38]
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