Function at 0x14013ad00
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x78]
mov eax, 0x178
call fcn.140187030
sub rsp, rax
mov rax, qword [0x140363e80]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0xe0]
mov rdi, r8
mov rsi, qword [rbp + 0xd0]
mov r15, r9
mov r12, qword [rbp + 0xf8]
mov rbx, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0xf0]
shr rdi, 3
mov qword [rbp - 0x40], rax
xor eax, eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x30], rax
lea eax, [rdi - 0x14]
mov qword [rbp - 0x50], rcx
mov rcx, qword [rbp + 0xe8]
mov qword [rsp + 0x48], r9
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x48], rcx
mov qword [rsp + 0x60], r12
mov qword [rbp - 0x60], 2
test eax, 0xfffffff3
jne 0x14013b5ad
cmp edi, 0x18
je 0x14013b5ad
mov qword [rsp + 0x168], r14
test r9, r9
jne 0x14013ade9
cmp edi, 0x14
jne 0x14013adc6
call fcn.1400ccfc0
mov r15, rax
mov qword [rsp + 0x48], rax
jmp 0x14013adf3
cmp edi, 0x1c
jne 0x14013adda
call fcn.1400ccfd0
mov r15, rax
mov qword [rsp + 0x48], rax
jmp 0x14013adf3
call fcn.1400ccfe0
mov r15, rax
mov qword [rsp + 0x48], rax
jmp 0x14013adf3
mov rcx, r9
call fcn.1400d45b0
mov edi, eax
mov eax, 0x200
movsxd r14, edi
cmp rbx, rax
cmovae rax, rbx
add rax, 0x3f
and rax, 0xffffffffffffffc0
mov qword [rbp - 0x70], rax
test rsi, rsi
je 0x14013ae79
mov r8, qword [rbp + 0xd8]
cmp r8, r14
jae 0x14013ae69
lea r9, [0x14020a690]
mov dword [rsp + 0x20], 0x55
mov edx, 0x7d
mov ecx, 0xa
mov r8d, WSAGetLastError
call fcn.1400a4ed0
xor eax, eax
mov r14, qword [rsp + 0x168]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1401862b0
add rsp, 0x178
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmova r8, r14
lea rcx, [rbp + 0x30]
mov rdx, rsi
call fcn.1401bb480
mov qword [rsp + 0x170], r13
call fcn.1400a5850
mov qword [rbp - 0x80], rax
test rax, rax
je 0x14013b5a3
call fcn.1400a34b0
mov qword [rsp + 0x30], rax
mov r13, rax
test rax, rax
je 0x14013b4b0
mov rcx, rax
call fcn.1400a35b0
mov rcx, r13
call fcn.1400a32f0
mov rcx, r13
mov rsi, rax
call fcn.1400a32f0
mov rcx, r13
mov qword [rsp + 0x78], rax
call fcn.1400a32f0
mov rcx, r13
mov qword [rbp - 0x68], rax
call fcn.1400a32f0
mov rcx, r13
mov qword [rsp + 0x50], rax
call fcn.1400a32f0
mov rcx, r13
mov qword [rsp + 0x58], rax
call fcn.1400a32f0
mov rcx, r13
mov qword [rbp - 0x58], rax
call fcn.1400a32f0
mov rcx, r13
mov qword [rsp + 0x68], rax
call fcn.1400a32f0
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14013b4b0
mov rbx, qword [rbp - 0x70]
call fcn.1400a2cd0
mov rcx, qword [rsp + 0x70]
lea r8d, [rbx - 1]
mov rdx, rax
call fcn.1400a6410
test eax, eax
je 0x14013b4b0
mov r8d, dword [rsp + 0x3c]
xor ebx, ebx
cmp qword [rbp - 0x78], rbx
mov rcx, r12
sete bl
xor edx, edx
call fcn.14015a0d0
inc dword [rsp + 0x3c]
test eax, eax
je 0x14013b4b0
cmp qword [rbp - 0x78], 0
jne 0x14013af80
mov edx, edi
lea rcx, [rbp + 0x30]
call fcn.1400af4e0
test eax, eax
jle 0x14013b4b0
jmp 0x14013af88
mov qword [rbp - 0x78], 0
mov r8, r14
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.1401bb480
mov r8, r14
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x10]
call fcn.1401bb480
lea rcx, [r14 - 1]
test rcx, rcx
js 0x14013afbe
add byte [rbp + rcx - 0x10], 1
jne 0x14013afbe
sub rcx, 1
jns 0x14013afb1
mov qword [rsp + 0x28], 0
lea r8, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, r14
lea rcx, [rbp + 0x30]
call fcn.14012e7c0
test eax, eax
je 0x14013b4b0
mov qword [rsp + 0x28], 0
lea r8, [rbp + 0x10]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.14012e7c0
test eax, eax
je 0x14013b4b0
xor ecx, ecx
test edi, edi
jle 0x14013b0ee
cmp edi, 8
jb 0x14013b0ee
cmp edi, 0x40
jb 0x14013b0b5
mov edx, edi
and edx, 0x8000003f
jge 0x14013b03d
dec edx
or edx, 0xffffffc0
inc edx
mov eax, edi
sub eax, edx
movsxd rdx, eax
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rbp + rcx - 0x30]
movdqu xmm1, xmmword [rbp + rcx + 0x10]
xorps xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x30], xmm1
movdqu xmm0, xmmword [rbp + rcx - 0x20]
movdqu xmm1, xmmword [rbp + rcx + 0x20]
xorps xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x20], xmm1
movdqu xmm0, xmmword [rbp + rcx - 0x10]
movdqu xmm1, xmmword [rbp + rcx + 0x30]
xorps xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x10], xmm1
movdqu xmm0, xmmword [rbp + rcx]
movdqu xmm1, xmmword [rbp + rcx + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rbp + rcx], xmm1
add rcx, 0x40
cmp rcx, rdx
jl 0x14013b050
mov eax, edi
and al, 0x3f
cmp al, 8
jb 0x14013b0ee
mov edx, edi
and edx, 0x80000007
jge 0x14013b0c6
dec edx
or edx, 0xfffffff8
inc edx
mov eax, edi
sub eax, edx
movsxd rdx, eax
nop dword [rax]
movq xmm0, qword [rbp + rcx - 0x30]
movq xmm1, qword [rbp + rcx + 0x10]
xorps xmm1, xmm0
movq qword [rbp + rcx - 0x30], xmm1
add rcx, 8
cmp rcx, rdx
jl 0x14013b0d0
cmp rcx, r14
jge 0x14013b111
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x10]
xor byte [rbp + rcx - 0x30], al
inc rcx
cmp rcx, r14
jl 0x14013b100
or byte [rbp - 0x30], 0x80
lea rcx, [rbp - 0x30]
mov r8, qword [rsp + 0x50]
mov edx, edi
or byte [rbp + r14 - 0x31], 1
call fcn.1400a1f30
test rax, rax
je 0x14013b4b0
mov rcx, qword [rsp + 0x50]
mov r9d, ebx
mov r8, r13
mov qword [rsp + 0x20], r12
mov edx, 0x40
call fcn.14015a660
test eax, eax
jg 0x14013b15d
je 0x14013af40
jmp 0x14013b4b0
xor r8d, r8d
mov edx, 2
mov rcx, r12
call fcn.14015a0d0
test eax, eax
je 0x14013b4b0
xor r8d, r8d
mov edx, 3
mov rcx, r12
call fcn.14015a0d0
test eax, eax
je 0x14013b4b0
mov rcx, qword [rbp - 0x70]
lea r15, [r14 - 1]
mov rbx, qword [rbp - 0x68]
dec rcx
movabs rax, 0xcccccccccccccccd
xor r13d, r13d
mul rcx
mov r12, rdx
shr r12, 7
test r13d, r13d
je 0x14013b1cf
mov rcx, qword [rsp + 0x60]
mov r8d, r13d
xor edx, edx
call fcn.14015a0d0
test eax, eax
je 0x14013b5a3
xor edx, edx
mov rcx, rbx
call fcn.1400a2be0
xor ebx, ebx
test r12d, r12d
js 0x14013b283
mov rax, r15
test r15, r15
js 0x14013b1fd
nop dword [rax]
add byte [rbp + rax - 0x10], 1
jne 0x14013b1fd
sub rax, 1
jns 0x14013b1f0
mov rax, qword [rsp + 0x48]
lea r8, [rbp - 0x30]
mov qword [rsp + 0x28], 0
lea rcx, [rbp - 0x10]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, r14
call fcn.14012e7c0
test eax, eax
je 0x14013b5a3
mov r8, rsi
lea rcx, [rbp - 0x30]
mov edx, edi
call fcn.1400a1f30
test rax, rax
je 0x14013b5a3
lea r8d, [rdi*8]
mov rdx, rsi
imul r8d, ebx
mov rcx, rsi
call fcn.1400a6410
test eax, eax
je 0x14013b5a3
mov rdx, qword [rbp - 0x68]
mov r8, rsi
mov rcx, rdx
call fcn.1400bc090
test eax, eax
je 0x14013b5a3
inc ebx
cmp ebx, r12d
jle 0x14013b1e4
mov rdx, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x68]
dec edx
mov rcx, rbx
call fcn.1400a27c0
test eax, eax
je 0x14013b5a3
mov rcx, qword [rsp + 0x58]
mov rdx, rbx
call fcn.1400a24f0
test rax, rax
je 0x14013b5a3
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x70]
mov rcx, rdx
call fcn.1400bc090
test eax, eax
je 0x14013b5a3
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1400a65a0
test eax, eax
je 0x14013b5a3
mov rax, qword [rsp + 0x30]
mov r9, rsi
mov r8, qword [rsp + 0x58]
xor ecx, ecx
mov rdx, qword [rbp - 0x58]
mov qword [rsp + 0x20], rax
call fcn.1400a36e0
test eax, eax
je 0x14013b5a3
call fcn.1400a2cd0
mov rdx, qword [rbp - 0x58]
mov r8, rax
mov rcx, rsi
call fcn.1400bc130
test eax, eax
je 0x14013b5a3
mov rdx, qword [rsp + 0x58]
mov r8, rsi
mov rcx, qword [rsp + 0x68]
call fcn.1400bc130
test eax, eax
je 0x14013b5a3
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.1400a22e0
test eax, eax
js 0x14013b37e
mov rax, qword [rsp + 0x60]
mov r9d, 1
mov r8, qword [rsp + 0x30]
mov edx, 0x40
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.14015a660
test eax, eax
jg 0x14013b3a2
jne 0x14013b5a3
inc r13d
cmp r13d, 0x1000
jl 0x14013b1b3
mov r15, qword [rsp + 0x48]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x30]
jmp 0x14013af40
mov rbx, qword [rsp + 0x60]
mov edx, 2
mov rcx, rbx
mov r8d, 1
call fcn.14015a0d0
test eax, eax
je 0x14013b5a3
call fcn.1400a2cd0
mov r15, qword [rsp + 0x68]
mov r8, rax
mov r12, qword [rsp + 0x70]
mov rdx, r15
mov rcx, r12
call fcn.1400bc130
test eax, eax
je 0x14013b5a3
mov r14, qword [rsp + 0x30]
mov r8, r12
mov r9, qword [rsp + 0x50]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r14
call fcn.1400a36e0
test eax, eax
je 0x14013b4ad
mov edx, 2
mov rcx, r12
call fcn.1400a2be0
test eax, eax
je 0x14013b4ad
mov rcx, qword [rbp - 0x80]
mov r8, r14
mov rdx, r15
call fcn.1400a58f0
test eax, eax
je 0x14013b4ad
mov rax, qword [rbp - 0x80]
mov r9, r15
mov rcx, qword [rsp + 0x78]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], r14
call fcn.140117bd0
test eax, eax
je 0x14013b4ad
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
call fcn.1400a2760
test eax, eax
je 0x14013b4da
call fcn.1400a2cd0
mov r8, rax
mov rdx, r12
mov rcx, r12
call fcn.1400bc090
test eax, eax
je 0x14013b4ad
mov rax, qword [rbp - 0x80]
mov r9, r15
mov rcx, qword [rsp + 0x78]
mov r8, rsi
inc dword [rbp - 0x60]
mov rdx, r12
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call fcn.140117bd0
test eax, eax
jne 0x14013b460
mov r13, r14
mov rcx, r13
call fcn.1400a31b0
mov rcx, r13
call fcn.1400a3230
mov rcx, qword [rbp - 0x80]
call fcn.1400a57f0
mov eax, dword [rsp + 0x40]
mov r13, qword [rsp + 0x170]
jmp 0x14013ae45
mov edx, 3
mov r8d, 1
mov rcx, rbx
call fcn.14015a0d0
test eax, eax
je 0x14013b4ad
mov dword [rsp + 0x40], 1
nop dword [rax]
mov rbx, qword [rbp - 0x50]
mov rcx, qword [rbx + 8]
call fcn.1400a2650
mov rcx, qword [rbx + 0x10]
call fcn.1400a2650
mov rcx, qword [rbx + 0x18]
call fcn.1400a2650
mov rcx, r15
call fcn.1400a2580
mov rcx, qword [rsp + 0x50]
mov qword [rbx + 8], rax
call fcn.1400a2580
mov rcx, qword [rsp + 0x78]
mov qword [rbx + 0x10], rax
call fcn.1400a2580
cmp qword [rbx + 8], 0
mov qword [rbx + 0x18], rax
je 0x14013b596
cmp qword [rbx + 0x10], 0
je 0x14013b596
test rax, rax
je 0x14013b596
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x14013b566
mov dword [rax], r13d
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x14013b575
mov rax, qword [rbp - 0x60]
mov dword [rdx], eax
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x14013b4ad
movsxd r8, edi
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.1401bb480
jmp 0x14013b4ad
mov dword [rsp + 0x40], 0
jmp 0x14013b4ad
mov r13, qword [rsp + 0x30]
jmp 0x14013b4b0
xor eax, eax
jmp 0x14013ae4d