Function at 0x1401d5880
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x1401d5ca7
push r14
mov eax, 0xd0
call fcn.14026ff20
sub rsp, rax
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x1403e5188]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp dword [0x1403f4ff8], 0
movaps xmm6, xmm2
mov qword [rsp + 0xf0], rbx
mov r14d, edx
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0x28], rcx
je 0x1401d593c
lea rcx, [rsp + 0x60]
call fcn.1401b5a50
mov edx, 0x13
lea r8, [0x1403d1180]
mov r9d, 0xdf
lea ecx, [rdx - 0xe]
call fcn.1401b61d0
lea rdx, [rsp + 0x60]
lea rcx, [0x1403f5000]
call fcn.1401b5a20
xor ebx, ebx
lea r8, [0x1403d1198]
test eax, eax
mov r13d, ebx
mov r9d, 0xe1
sete r13b
lea edx, [rbx + 0x13]
lea ecx, [rbx + 6]
call fcn.1401b61d0
test r13d, r13d
jne 0x1401d595b
jmp 0x1401d5941
xor ebx, ebx
mov r13d, ebx
mov edx, 0x12
lea r8, [0x1403d11b0]
mov r9d, 0xe6
lea ecx, [rdx - 9]
call fcn.1401b61d0
movsxd rsi, dword [0x1403f4bb4]
mov rax, qword [0x1403f4fe8]
movups xmm0, xmmword [0x1403f4bb8]
mov qword [rsp + 0x20], rax
mov eax, dword [0x1403f4bc8]
lea ecx, [r14 + rsi]
mov dword [rsp + 0x80], eax
mov dword [0x1403f4bb4], ecx
movups xmmword [rsp + 0x70], xmm0
cmp ecx, 0x3ff
jl 0x1401d59c6
mov eax, 0x80200803
mov dword [0x1403f4bb0], 0x3ff
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3ff
sub ecx, eax
mov dword [0x1403f4bb4], ecx
jmp 0x1401d59de
mov eax, dword [0x1403f4bb0]
cmp eax, 0x3ff
jge 0x1401d59de
cmp ecx, eax
cmovg eax, ecx
mov dword [0x1403f4bb0], eax
mov eax, 0x66666667
mov ecx, r14d
imul r14d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
mov eax, ebx
test ecx, ecx
setg al
add eax, edx
add dword [0x1403f4fec], eax
test r13d, r13d
jne 0x1401d5a28
lea edx, [r13 + 0x12]
mov r9d, 0x106
lea ecx, [rdx - 8]
lea r8, [0x1403d11c8]
call fcn.1401b61d0
lea rcx, [rsp + 0x30]
call fcn.1401f9fc0
test r14d, r14d
jle 0x1401d5bb5
mov qword [rsp + 0xc8], rbp
lea ecx, [r14 - 1]
mov qword [rsp + 0xb8], rdi
mov eax, 0xcccccccd
mul ecx
mov qword [rsp + 0xb0], r12
mov rdi, rsi
shr edx, 4
mov qword [rsp + 0xa0], r15
mov r15d, 0x14
lea r12d, [rdx + 1]
nop word [rax + rax]
cmp r14d, 0x14
mov ebp, r14d
cmovg ebp, r15d
call fcn.1401f0260
mov rdx, rax
lea rcx, [rsp + 0x30]
xor r8d, r8d
call fcn.1401f9890
mov r8, r15
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1401f9ad0
movsxd rdx, esi
lea rcx, [0x1403f4bd0]
lea r15d, [rsi - 0x3ff]
add rdx, rcx
add r15d, ebp
test r15d, r15d
jle 0x1401d5ae9
mov eax, ebp
lea rcx, [rsp + 0x30]
sub eax, r15d
movsxd r8, eax
call fcn.1401f9ad0
lea rdx, [0x1403f4bd0]
jmp 0x1401d5aec
mov r15d, ebp
movsxd r8, r15d
lea rcx, [rsp + 0x30]
call fcn.1401f9ad0
mov r15, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov rdx, r15
movsxd r8, ebp
call fcn.1401f9ad0
mov r8d, 8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1401f9ad0
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1401f97c0
inc dword [rsp + 0x24]
mov rdx, rbx
movsxd r8, ebp
add r15, r8
mov qword [rsp + 0x28], r15
test ebp, ebp
jle 0x1401d5b81
nop dword [rax + rax]
movzx eax, byte [rsp + rdx + 0x70]
lea rcx, [0x1403f4bd0]
xor byte [rdi + rcx], al
lea rcx, [rdi + 1]
cmp rcx, 0x3ff
lea eax, [rsi + 1]
mov rdi, rbx
mov esi, ebx
cmovl rdi, rcx
cmovl esi, eax
inc rdx
cmp rdx, r8
jl 0x1401d5b50
sub r14d, 0x14
mov r15d, 0x14
sub r12, 1
jne 0x1401d5a80
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xc8]
lea rcx, [rsp + 0x30]
call fcn.1401f9af0
mov rsi, qword [rsp + 0xc0]
test r13d, r13d
jne 0x1401d5bf0
lea edx, [r13 + 0x12]
mov r9d, 0x137
lea ecx, [rdx - 9]
lea r8, [0x1403d11e0]
call fcn.1401b61d0
nop word [rax + rax]
movdqu xmm1, xmmword [0x1403f4bb8]
mov ecx, 4
lea rdx, [0x1403f4bc8]
movdqu xmm0, xmmword [rsp + 0x70]
pxor xmm1, xmm0
movdqu xmmword [0x1403f4bb8], xmm1
nop word [rax + rax]
movzx eax, byte [rsp + rbx + 0x80]
xor byte [rbx + rdx], al
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x1401d5c20
movsd xmm0, qword [0x14030e6c0]
movsd xmm1, qword [0x1403f4ff0]
comisd xmm0, xmm1
mov rbx, qword [rsp + 0xf0]
jbe 0x1401d5c5f
addsd xmm1, xmm6
movsd qword [0x1403f4ff0], xmm1
test r13d, r13d
mov r13, qword [rsp + 0xa8]
jne 0x1401d5c86
mov edx, 0x12
lea r8, [0x1403d11f8]
mov r9d, 0x144
lea ecx, [rdx - 8]
call fcn.1401b61d0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14026fc70
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xd0
pop r14
ret