Function at 0x1400177c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
movzx eax, word [0x14020e870]
mov r14, r9
movzx r11d, byte [r8 + rax*4]
lea rcx, [r8 + rax*4]
mov eax, dword [r8 + rax*4]
mov rbx, rdx
add eax, dword [0x14020e8d0]
mov rdi, r8
movsxd r15, dword [r8 + 0x1c80]
inc byte [0x14020e84e]
mov r10, qword [0x14020e828]
movsxd rbp, eax
movzx eax, byte [0x14020e822]
mov esi, eax
add al, 0xff
mov byte [0x14020e822], al
dec dword [rdx]
mov eax, dword [0x14020e8d4]
add eax, 0x6ba
movsxd r9, eax
movsxd rax, dword [rdx]
movsxd rdx, dword [0x14020e824]
lea rcx, [rax + rax]
mov rax, qword [0x14020e878]
movzx r12d, word [rcx + rax]
mov rax, qword [0x14020e8c8]
movzx r8d, word [rcx + rax]
movzx ecx, byte [rdx + r10]
cmp r8d, ecx
jae 0x140017919
lea r9, [r9 + r8*8]
nop dword [rax]
dec edx
lea r9, [r9 + 8]
mov dword [0x14020e824], edx
mov eax, 0xac3
cdq
idiv r8d
xor edx, edx
mov ecx, eax
movzx eax, word [0x14020e870]
mov dword [rdi + rax*4], ecx
mov rax, qword [0x14020e898]
mov eax, dword [rax + 0x1ae0]
add eax, r8d
inc r8d
add eax, esi
cdqe
div qword [0x14020e8b0]
mov qword [0x14020e8b0], rax
mov rax, qword [0x14020e850]
movsxd rcx, dword [rdi]
lea rdx, [rax + rcx*4]
mov eax, dword [0x14020e8a4]
add eax, eax
movsxd rcx, eax
mov eax, dword [rdx]
imul eax, dword [rcx*8 + 0xdf8]
mov dword [rdx], eax
xor edx, edx
movzx ecx, word [0x14020e84c]
mov eax, 0x17bf
sub eax, dword [0x14020e8a4]
add rcx, rcx
cdqe
div qword [r9 - 8]
xor edx, edx
div qword [r14 + rcx*8]
mov qword [r14 + rcx*8], rax
movsxd rdx, dword [0x14020e824]
movzx ecx, byte [rdx + r10]
cmp r8d, ecx
jl 0x140017870
movsxd rax, dword [0x14020e85c]
dec edx
mov rcx, qword [0x14020e8b8]
mov r8, qword [0x14020e828]
imul rcx, rax
mov dword [0x14020e824], edx
dec r8
mov qword [0x14020e8b8], rcx
xor edx, edx
movzx eax, r11b
mov qword [0x14020e828], r8
lea ecx, [rax*2 + 0x12]
movzx eax, word [0x14020e84c]
div r8
sub rax, qword [r14 + rcx*8]
mov qword [r14 + rcx*8], rax
mov eax, dword [0x14020e880]
or eax, dword [0x14020e8d0]
xor eax, 0x4a
mov dword [0x14020e8d0], eax
mov eax, dword [rdi + 0x4200]
cdq
idiv dword [0x14020e848]
mov eax, 0x1945
or word [r15 + rbp*8], dx
movsxd r9, dword [0x14020e884]
movsxd rdx, dword [rdi + r9*4]
cmp edx, eax
je 0x140017a13
sub eax, edx
lea rcx, [rdi + rdx*4]
mov r11d, eax
lea r10, [rdx*8 + 0xdf8]
mov r9, rdx
nop dword [rax]
movsxd rax, dword [0x14020e824]
lea r10, [r10 + 8]
mov edx, esi
lea rcx, [rcx + 4]
sub edx, dword [0x14020e8a0]
lea r8, [rbx + rax*4]
movzx eax, word [r15 + rbp*4]
xor edx, eax
mov eax, dword [r8]
sub edx, dword [0x14020e8b8]
imul eax, edx
xor edx, edx
mov dword [r8], eax
mov rax, r9
dec dword [0x14020e824]
inc r9
div qword [r10 - 8]
or dword [rcx - 4], edx
sub r11, 1
jne 0x1400179c0
mov r9d, dword [0x14020e884]
movzx r8d, word [0x14020e870]
movsxd rdx, dword [0x14020e858]
inc r8w
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov word [0x14020e870], r8w
movsxd rcx, dword [rbx]
mov rbx, qword [rsp + 0x20]
mov rax, qword [r14 + rcx*8]
xor rax, rdx
movzx ecx, r8w
xor edx, edx
div rcx
movsxd rcx, r9d
mov dword [rdi + rcx*4], eax
mov ecx, dword [0x14020e884]
mov rdi, qword [rsp + 0x38]
inc ecx
mov dword [0x14020e884], ecx
lea eax, [rcx + rcx]
cdqe
mov eax, dword [r12 + rax*8 + 0xe75]
pop r15
pop r14
pop r12
ret