Function at 0x1400032a8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rdi, qword [rsp + 0xd8]
mov eax, 0xae3
cdq
movsxd r14, ecx
idiv dword [0x14016ef54]
inc byte [rdi]
mov r10, r9
mov rbx, qword [0x14016ef68]
xor edx, edx
movsxd r13, dword [0x14016ef78]
mov r11, r8
mov r8, qword [0x14016ef80]
movsxd rcx, eax
movzx eax, byte [rdi]
mov qword [rsp + 0xc8], rcx
movzx ecx, byte [0x14016ef43]
movzx r9d, byte [rax + rdi]
mov rax, qword [0x14016ef90]
movzx eax, byte [rdi + rax*4]
div r9d
mov eax, dword [0x14016ef64]
inc eax
mov r12d, edx
mov edx, dword [0x14016ef7c]
mov dword [0x14016ef64], eax
movzx esi, byte [r8 + rcx*4]
add cl, 0xff
mov bpl, byte [r8 + 0x1d69]
mov byte [0x14016ef43], cl
sub bpl, 0x2d
cdqe
mov qword [rsp + 0x58], rax
mov eax, edx
shl eax, 2
inc edx
movsxd rcx, eax
movsxd rax, dword [0x14016ef44]
mov byte [rsp + 0xd8], bpl
mov qword [rsp + 0x48], rsi
movzx r15d, word [r10 + rcx*2]
mov dword [0x14016ef7c], edx
movzx ecx, word [r10 + 0x2218]
mov r10, qword [rsp + 0xb8]
xor rcx, rax
movsxd rax, dword [0x14016ef60]
mov dword [rsp + 0xc0], r15d
mov qword [rsp + 0x38], rcx
mov r11, qword [r11 + rax*8]
dec byte [rdi]
movzx eax, byte [rdi]
mov qword [rsp + 0x50], r11
movzx r8d, byte [r10 + rax*4]
cmp r8d, dword [rsi + rax*8]
jg 0x14000341c
mov edx, dword [0x14016ef60]
movzx eax, r12b
lea r10d, [rax*4 + 0x24]
movzx ecx, byte [rdi]
mov eax, r8d
and eax, r15d
inc r8d
sub eax, edx
xor edx, edx
cdqe
div qword [rbx + rcx*8 + 0x140]
movzx ecx, word [r14 + r10*2]
mov rax, rdx
xor edx, edx
div rcx
mov word [r14 + r10*2], dx
mov edx, dword [0x14016ef60]
inc edx
mov dword [0x14016ef60], edx
movzx eax, byte [rdi]
cmp r8d, dword [rsi + rax*8]
jle 0x1400033d1
mov r10, qword [rsp + 0xb8]
inc byte [rdi]
movzx ecx, byte [rdi]
mov r12d, dword [rsp + 0xe8]
mov r15d, dword [rbx + rcx*8 + 0x108]
cmp r15d, r12d
jle 0x14000355f
mov rsi, qword [rsp + 0xe0]
lea ecx, [r14 - 1]
mov rax, r14
xor edx, edx
div r13
movsxd r14, ecx
mov qword [rsp + 0x30], rax
sub r14, r13
movzx eax, bpl
mov ebp, dword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
movzx r8d, byte [r10 + 0x1a90]
mov r9, r13
inc byte [rdi]
and r8w, r15w
movzx ecx, byte [rdi]
movsxd rbx, r15d
mov rdx, rbx
movsxd rax, dword [rsi + rcx*4 + 0x6c]
mov cl, r12b
sub cl, r15b
mov qword [rsp + 0x20], rax
call fcn.1400012c8
mov ecx, dword [0x14016ef7c]
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0xc8]
mov r10, qword [rsp + 0xb8]
shl ecx, 2
movsxd rdx, ecx
mov rcx, rbx
imul rcx, qword [rsp + 0x30]
mov dword [rsi + rdx*4], eax
mov eax, dword [0x14016ef60]
cdq
idiv r15d
cdq
idiv ebp
xor byte [0x14016ef42], al
movabs rax, 0xfc1e630e5d37b2d
mul rcx
sub rcx, rdx
shr rcx, 1
lea rax, [rdx + rcx]
mov rcx, qword [rsp + 0x38]
shr rax, 0xc
xor edx, edx
div qword [rcx + r8*8]
mov qword [rcx + r8*8], rax
movabs rax, 0xad2589a356e95797
xor qword [r9 + rbx*8], r14
movzx ecx, byte [0x14016ef52]
mov r8, qword [0x14016ef70]
or rbx, r8
mul rbx
shr rdx, 9
xor dl, r15b
inc r15d
movzx eax, dl
imul ecx, eax
mov byte [0x14016ef52], cl
cmp r15d, r12d
jg 0x140003469
mov rsi, qword [rsp + 0x48]
mov bpl, byte [rsp + 0xd8]
mov r11, qword [rsp + 0x50]
mov r14d, dword [rsp + 0xb0]
jmp 0x14000356e
mov r8, qword [0x14016ef70]
mov r9, qword [rsp + 0xc8]
movzx ecx, byte [0x14016ef43]
mov dl, byte [0x14016ef42]
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rax + rcx*8]
and dword [0x14016ef7c], ecx
sub dl, byte [rsi + 0x2458]
movzx eax, byte [rdi]
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax*8]
dec eax
add eax, r14d
movsxd rcx, eax
sub rcx, qword [0x14016ef88]
mov qword [0x14016ef88], rcx
movzx eax, byte [rdi]
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x58]
mov dword [rax + rcx*4], r8d
mov al, byte [0x14016ef68]
dec qword [0x14016ef70]
xor al, 0xad
or bpl, al
movzx ecx, dl
mov eax, dword [rsp + 0xc0]
mov edx, ecx
shl eax, 2
shl edx, 2
sub r11d, dword [rsi + rax*4]
mov dword [rsi + rax*4], r11d
mov al, byte [0x14016ef60]
mov byte [0x14016ef41], al
lea eax, [rcx*4 + 0x28]
movsxd rax, dword [rsi + rax*4]
and qword [r9 + rdx*8], rax
movzx eax, bpl
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret