Function at 0x1400032d0
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 [0x14016e054]
inc byte [rdi]
mov r10, r9
mov rbx, qword [0x14016e068]
xor edx, edx
movsxd r13, dword [0x14016e078]
mov r11, r8
mov r8, qword [0x14016e080]
movsxd rcx, eax
movzx eax, byte [rdi]
mov qword [rsp + 0xc8], rcx
movzx ecx, byte [0x14016e043]
movzx r9d, byte [rax + rdi]
mov rax, qword [0x14016e090]
movzx eax, byte [rdi + rax*4]
div r9d
mov eax, dword [0x14016e064]
inc eax
mov r12d, edx
mov edx, dword [0x14016e07c]
mov dword [0x14016e064], eax
movzx esi, byte [r8 + rcx*4]
add cl, 0xff
mov bpl, byte [r8 + 0x1d69]
mov byte [0x14016e043], cl
sub bpl, 0x2d
cdqe
mov qword [rsp + 0x58], rax
mov eax, edx
shl eax, 2
inc edx
movsxd rcx, eax
movsxd rax, dword [0x14016e044]
mov byte [rsp + 0xd8], bpl
mov qword [rsp + 0x48], rsi
movzx r15d, word [r10 + rcx*2]
mov dword [0x14016e07c], edx
movzx ecx, word [r10 + 0x2218]
mov r10, qword [rsp + 0xb8]
xor rcx, rax
movsxd rax, dword [0x14016e060]
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 0x140003444
mov edx, dword [0x14016e060]
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 [0x14016e060]
inc edx
mov dword [0x14016e060], edx
movzx eax, byte [rdi]
cmp r8d, dword [rsi + rax*8]
jle 0x1400033f9
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 0x140003587
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.1400012c0
mov ecx, dword [0x14016e07c]
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 [0x14016e060]
cdq
idiv r15d
cdq
idiv ebp
xor byte [0x14016e042], al
movabs rax, 0x345bfef22f80ec17
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 [0x14016e052]
mov r8, qword [0x14016e070]
or rbx, r8
mul rbx
shr rdx, 9
xor dl, r15b
inc r15d
movzx eax, dl
imul ecx, eax
mov byte [0x14016e052], cl
cmp r15d, r12d
jg 0x140003491
mov rsi, qword [rsp + 0x48]
mov bpl, byte [rsp + 0xd8]
mov r11, qword [rsp + 0x50]
mov r14d, dword [rsp + 0xb0]
jmp 0x140003596
mov r8, qword [0x14016e070]
mov r9, qword [rsp + 0xc8]
movzx ecx, byte [0x14016e043]
mov dl, byte [0x14016e042]
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rax + rcx*8]
and dword [0x14016e07c], 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 [0x14016e088]
mov qword [0x14016e088], rcx
movzx eax, byte [rdi]
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x58]
mov dword [rax + rcx*4], r8d
mov al, byte [0x14016e068]
dec qword [0x14016e070]
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 [0x14016e060]
mov byte [0x14016e041], al
movzx eax, dl
shl eax, 2
mov edx, eax
add eax, 0xb
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