Function at 0x1400032ac
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 [0x14016e7f4]
inc byte [rdi]
mov r10, r9
mov rbx, qword [0x14016e808]
xor edx, edx
movsxd r13, dword [0x14016e818]
mov r11, r8
mov r8, qword [0x14016e820]
movsxd rcx, eax
movzx eax, byte [rdi]
mov qword [rsp + 0xc8], rcx
movzx ecx, byte [0x14016e7e3]
movzx r9d, byte [rax + rdi]
mov rax, qword [0x14016e830]
movzx eax, byte [rdi + rax*4]
div r9d
mov eax, dword [0x14016e804]
inc eax
mov r12d, edx
mov edx, dword [0x14016e81c]
mov dword [0x14016e804], eax
movzx esi, byte [r8 + rcx*4]
add cl, 0xff
mov bpl, byte [r8 + 0x1d69]
mov byte [0x14016e7e3], cl
sub bpl, 0x2d
cdqe
mov qword [rsp + 0x58], rax
mov eax, edx
shl eax, 2
inc edx
movsxd rcx, eax
movsxd rax, dword [0x14016e7e4]
mov byte [rsp + 0xd8], bpl
mov qword [rsp + 0x48], rsi
movzx r15d, word [r10 + rcx*2]
mov dword [0x14016e81c], edx
movzx ecx, word [r10 + 0x2218]
mov r10, qword [rsp + 0xb8]
xor rcx, rax
movsxd rax, dword [0x14016e800]
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 0x140003420
mov edx, dword [0x14016e800]
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 [0x14016e800]
inc edx
mov dword [0x14016e800], edx
movzx eax, byte [rdi]
cmp r8d, dword [rsi + rax*8]
jle 0x1400033d5
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 0x140003563
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 [0x14016e81c]
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 [0x14016e800]
cdq
idiv r15d
cdq
idiv ebp
xor byte [0x14016e7e2], al
movabs rax, 0xcbe6d9601cbe6d97
mul rcx
sub rcx, rdx
shr rcx, 1
lea rax, [rdx + rcx]
mov rcx, qword [rsp + 0x38]
shr rax, 8
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 [0x14016e7f2]
mov r8, qword [0x14016e810]
or rbx, r8
mul rbx
shr rdx, 9
xor dl, r15b
inc r15d
movzx eax, dl
imul ecx, eax
mov byte [0x14016e7f2], cl
cmp r15d, r12d
jg 0x14000346d
mov rsi, qword [rsp + 0x48]
mov bpl, byte [rsp + 0xd8]
mov r11, qword [rsp + 0x50]
mov r14d, dword [rsp + 0xb0]
jmp 0x140003572
mov r8, qword [0x14016e810]
mov r9, qword [rsp + 0xc8]
movzx ecx, byte [0x14016e7e3]
mov dl, byte [0x14016e7e2]
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rax + rcx*8]
and dword [0x14016e81c], ecx
movzx eax, byte [rdi]
sub dl, byte [rsi + 0x2458]
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax*8]
dec eax
add eax, r14d
movsxd rcx, eax
sub rcx, qword [0x14016e828]
mov qword [0x14016e828], rcx
movzx eax, byte [rdi]
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x58]
mov dword [rax + rcx*4], r8d
mov al, byte [0x14016e808]
dec qword [0x14016e810]
xor al, 0xad
or bpl, al
mov eax, dword [rsp + 0xc0]
shl eax, 2
sub r11d, dword [rsi + rax*4]
mov dword [rsi + rax*4], r11d
mov al, byte [0x14016e800]
mov byte [0x14016e7e1], al
movzx eax, dl
shl eax, 2
mov edx, eax
add eax, 0x11
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