Function at 0x140001a80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, qword [0x140025210]
lea edi, [rdx - 1]
mov r11, qword [0x140025278]
mov r15, rcx
mov rax, qword [rsp + 0xb8]
xor edx, edx
movzx ecx, word [0x140025234]
dec rbx
mov r14, qword [rsp + 0xc0]
movzx r12d, r9w
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xc8]
mov qword [0x140025210], rbx
mov rax, qword [rax + 0xf350]
movsxd r10, dword [r11 + rbx*4]
div r10
xor edx, edx
movzx r9d, r8w
mov qword [rsp + 0x40], rax
mov eax, 0x90b
div ecx
mov ecx, dword [r14 - 4]
add ecx, 2
movzx eax, r8w
mov qword [rsp + 0xb8], rax
movsxd rcx, ecx
mov dword [rsp + 0xa0], edx
xor edx, edx
mov dword [rsp + 0x98], edi
mov eax, dword [r11 + rcx*4]
mov rcx, rbx
sub eax, r9d
add rcx, rcx
cdqe
dec rbx
mov qword [rsp + 0x90], rax
mov rax, qword [0x140025208]
movsxd r8, dword [rax + rcx*8 + 0x18]
mov rax, qword [r15 + 0xcef8]
div r8
mov qword [0x140025210], rbx
movsxd rcx, dword [r14 - 4]
mov r13, rax
mov qword [rsp + 0x38], rax
lea eax, [rdi + 0x13a8]
cdqe
mov qword [rsp + 0x30], rax
mov eax, 0x6a94016b
movsxd rdi, dword [r14 + rcx*4 - 4]
mov ecx, r9d
mul r9d
xor rdi, 0x1794
sub ecx, edx
shr ecx, 1
add ecx, edx
dec dword [rdi]
shr ecx, 0xc
imul eax, ecx, 0x1698
sub r9d, eax
movsxd rax, r9d
mov qword [rsp + 0xc0], rax
movsxd rax, dword [rdi]
movsxd r10, dword [rsi + rax*4]
mov rcx, r10
cmp r10, qword [r15 + rax*8]
ja 0x140001c56
lea r9, [rsi + 0x8c]
shl rcx, 4
mov rsi, qword [rsp + 0xb8]
lea r11, [r10*4 + 0x9f1]
add r9, rcx
movzx ecx, word [0x14002522c]
mov eax, r10d
cdq
idiv ecx
mov word [0x14002522c], dx
movzx ecx, byte [r11]
lea r11, [r11 + 4]
mov eax, dword [r14 - 4]
add eax, 7
movsxd r8, eax
movsxd rax, dword [rdi + 4]
movzx eax, byte [rax + rsi]
xor eax, r10d
inc r10d
cdq
idiv ecx
sub al, 0x62
or byte [r8 + rbp], al
mov eax, dword [rdi + 4]
add rdi, 8
shl eax, 2
movsxd rdx, eax
mov rax, qword [0x140025210]
movzx ecx, word [r13 + rax*8]
mov eax, dword [r15 + rdx*8]
imul eax, ecx
movsxd rcx, r10d
xor dword [r9], eax
lea r9, [r9 + 0x10]
movsxd rax, dword [rdi]
cmp rcx, qword [r15 + rax*8]
jbe 0x140001bdd
mov rsi, qword [rsp + 0xb0]
movsxd r8, dword [r14 - 4]
xor edx, edx
movzx r13d, word [rsp + 0xa0]
mov eax, r8d
movsxd r11, dword [0x140025228]
shl eax, 2
movsxd rcx, eax
movsxd rax, dword [r14 + rcx*4 - 4]
mov rcx, qword [0x140025210]
div qword [rcx*8 + 0x1950]
movzx edx, word [0x1400251e4]
mov ecx, r13d
mov rbx, rax
mov rax, qword [rsp + 0xc0]
mov r10d, dword [rax + r8*4]
mov eax, 0x10bf8ef3
movsxd r8, dword [rsp + 0x98]
xor r10d, edx
mul r13d
mov dword [rsp + 0x28], r10d
shr edx, 8
imul r9d, edx, 0xf49
mov rdx, rbx
mov qword [rsp + 0x20], r11
sub ecx, r9d
mov r9d, 0x1eba
call fcn.14000227c
mov ecx, dword [rdi + 4]
mov rdx, qword [rsp + 0xb8]
add ecx, 3
movsxd rcx, ecx
mov byte [rcx + rdx], al
mov r8, qword [0x140025210]
mov rax, qword [0x140025238]
inc r8
mov qword [0x140025210], r8
movsxd rcx, dword [rdi + 8]
movzx ecx, byte [rax + rcx*2]
mov rax, qword [rsp + 0xc0]
imul edx, ecx, 0x6a
add dl, byte [rax + r8*4 + 0x20]
movsxd rax, dword [r14 - 4]
mov byte [rax + rbp], dl
movsxd rax, dword [r14 - 4]
movzx ecx, word [0x1400251e0]
mov edx, dword [rax*8 + 0x1950]
mov rax, qword [0x140025278]
or edx, ecx
movzx ecx, byte [rbp]
mov dword [rax + rcx*4], edx
movsxd r9, dword [0x1400251a8]
cmp r9d, 0x1d74
je 0x140001df1
mov r11, qword [rsp + 0x90]
lea r10, [r9 + 0x9f1]
mov rbx, qword [rsp + 0x30]
sub rbp, r9
inc dword [rdi + 8]
mov edx, dword [rdi + 8]
mov eax, edx
shl eax, 2
movsxd rcx, eax
movzx eax, byte [rcx + rbx]
lea ecx, [rdx + 1]
movsxd rdx, ecx
movzx ecx, byte [r10]
add rax, qword [r15 + rdx*8]
xor edx, edx
imul rax, qword [r11 + 0x5178]
xor rax, qword [0x140025258]
div rcx
mov byte [r10], al
mov eax, 0xffff
movzx ecx, byte [r10 + rbp - 0x9f1]
add r12w, ax
mov rax, qword [0x140025270]
inc r10
movsxd r8, dword [rdi + 8]
movzx edx, r12w
mov eax, dword [rax + rcx*4]
mov ecx, dword [rsi + r8*4]
imul eax, edx
xor eax, r9d
cdq
idiv r9d
inc r9d
imul ecx, eax
mov dword [rsi + r8*4], ecx
cmp r9d, 0x1d74
jne 0x140001d72
mov eax, dword [r14 - 4]
shl eax, 2
cdqe
movsxd r8, dword [rsi + rax*4]
cmp r8d, dword [0x1400251a0]
jl 0x140001e64
mov r10, qword [rsp + 0x38]
mov r9, r8
shl r9, 3
movsxd rax, dword [rdi + 8]
mov dword [r14 + rax*4 - 4], 0x1f28
mov rcx, qword [0x1400251d0]
movsxd rax, r8d
or qword [r9 + rcx], rax
movzx eax, word [r9 + r10]
lea r9, [r9 + 8]
mov ecx, dword [rdi + 8]
cdq
idiv r8d
add ecx, ecx
inc r8d
movsxd rdx, ecx
mov rcx, qword [0x140025278]
imul eax, dword [rcx + rdx*4]
mov rcx, qword [0x140025258]
mov dword [rsi + rcx*4], eax
cmp r8d, dword [0x1400251a0]
jge 0x140001e13
mov eax, dword [rdi + 8]
shl eax, 2
movsxd rcx, eax
movzx r8d, byte [rcx + 0x9f1]
cmp r8, 0x10dd
jb 0x140001ecb
mov r10, qword [rsp + 0x40]
lea rcx, [rsi + r8*4]
lea r9, [rsi + r8*8]
shl r8, 5
add r8, 0x1950
mov qword [r8], 0x2a2
add r8, 0x20
mov eax, dword [rdi + 4]
inc eax
cdqe
mov dword [r10 + rax*4], r13d
mov eax, 0x6c2
cdq
idiv dword [r9]
lea r9, [r9 + 8]
cdq
idiv dword [rcx]
mov dword [rcx], eax
lea rcx, [rcx + 4]
cmp r8, 0x234f0
jge 0x140001e96
mov eax, dword [r15 + 0xf28]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret