Function at 0x18001ee60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x6afc8], 2
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x6afd8], 0
je 0x18001f2b5
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x6afd8], 3
jb 0x18001ef48
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afc4]
shl eax, 5
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x6afcc]
add ecx, 2
mov ecx, ecx
mov rdx, qword [rsp + 0x50]
movzx ecx, byte [rdx + rcx + 0x1afb8]
xor eax, ecx
and eax, 0x7fff
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x6afc4], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afc4]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4 + 0x4afb8]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afcc]
and eax, 0x7fff
mov eax, eax
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x24]
mov dword [rcx + rax*4 + 0x2afb8], edx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afc4]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x50]
mov edx, dword [rdx + 0x6afcc]
mov dword [rcx + rax*4 + 0x4afb8], edx
cmp dword [rsp + 0x24], 0
je 0x18001efc7
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x24]
mov eax, dword [rax + 0x6afcc]
sub eax, ecx
cmp eax, 0x7efa
ja 0x18001efc7
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x6afd8]
cmp dword [rax + 0x6afe8], ecx
jbe 0x18001ef95
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x6afd8]
mov dword [rax + 0x6afe8], ecx
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
call fcn.18001e810
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afd8]
cmp dword [rsp + 0x20], eax
jbe 0x18001efc7
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afd8]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 3
jb 0x18001f1ba
mov eax, dword [rsp + 0x20]
sub eax, 3
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x50]
mov edx, dword [rdx + 0x6afd0]
mov ecx, dword [rcx + 0x6afcc]
sub ecx, edx
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x50]
call fcn.18001d7e0
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax + 0x6afd8]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x6afd8], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afe0]
cmp dword [rsp + 0x20], eax
ja 0x18001f137
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x6afd8], 3
jb 0x18001f137
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afcc]
inc eax
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x6afcc], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afc4]
shl eax, 5
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x6afcc]
add ecx, 2
mov ecx, ecx
mov rdx, qword [rsp + 0x50]
movzx ecx, byte [rdx + rcx + 0x1afb8]
xor eax, ecx
and eax, 0x7fff
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x6afc4], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afc4]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4 + 0x4afb8]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afcc]
and eax, 0x7fff
mov eax, eax
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x24]
mov dword [rcx + rax*4 + 0x2afb8], edx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afc4]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x50]
mov edx, dword [rdx + 0x6afcc]
mov dword [rcx + rax*4 + 0x4afb8], edx
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x18001f051
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afcc]
inc eax
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x6afcc], eax
jmp 0x18001f1b8
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afcc]
add eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x6afcc], eax
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afcc]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax + 0x1afb8]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x6afc4], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afc4]
shl eax, 5
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x6afcc]
inc ecx
mov ecx, ecx
mov rdx, qword [rsp + 0x50]
movzx ecx, byte [rdx + rcx + 0x1afb8]
xor eax, ecx
and eax, 0x7fff
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x6afc4], eax
jmp 0x18001f215
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afcc]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax + 0x1afb8]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.18001d7e0
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afd8]
dec eax
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x6afd8], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afcc]
inc eax
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x6afcc], eax
cmp dword [rsp + 0x28], 0
je 0x18001f295
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x6afbc], 0
jl 0x18001f249
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afbc]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x1afb8]
mov qword [rsp + 0x30], rax
jmp 0x18001f252
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x6afbc]
mov eax, dword [rax + 0x6afcc]
sub eax, ecx
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.18001d490
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x6afcc]
mov dword [rax + 0x6afbc], ecx
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x6afd8], 0x106
jae 0x18001f2b0
mov rcx, qword [rsp + 0x50]
call fcn.18001ebe0
jmp 0x18001ee88
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x6afbc], 0
jl 0x18001f2e2
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x6afbc]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x1afb8]
mov qword [rsp + 0x38], rax
jmp 0x18001f2eb
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x6afbc]
mov eax, dword [rax + 0x6afcc]
sub eax, ecx
mov r9d, 1
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
call fcn.18001d490
add rsp, 0x48
ret