Function at 0x140003288
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 [0x14016e984]
inc byte [rdi]
mov r10, r9
mov rbx, qword [0x14016e998]
xor edx, edx
movsxd r13, dword [0x14016e9a8]
mov r11, r8
mov r8, qword [0x14016e9b0]
movsxd rcx, eax
movzx eax, byte [rdi]
mov qword [rsp + 0xc8], rcx
movzx ecx, byte [0x14016e973]
movzx r9d, byte [rax + rdi]
mov rax, qword [0x14016e9c0]
movzx eax, byte [rdi + rax*4]
div r9d
mov eax, dword [0x14016e994]
inc eax
mov r12d, edx
mov edx, dword [0x14016e9ac]
mov dword [0x14016e994], eax
movzx esi, byte [r8 + rcx*4]
add cl, 0xff
mov bpl, byte [r8 + 0x1d69]
mov byte [0x14016e973], cl
sub bpl, 0x2d
cdqe
mov qword [rsp + 0x58], rax
mov eax, edx
shl eax, 2
inc edx
movsxd rcx, eax
movsxd rax, dword [0x14016e974]
mov byte [rsp + 0xd8], bpl
mov qword [rsp + 0x48], rsi
movzx r15d, word [r10 + rcx*2]
mov dword [0x14016e9ac], edx
movzx ecx, word [r10 + 0x2218]
mov r10, qword [rsp + 0xb8]
xor rcx, rax
movsxd rax, dword [0x14016e990]
mov dword [rsp + 0xc0], r15d
mov qword [rsp + 0x40], 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 0x1400033fc
mov edx, dword [0x14016e990]
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 [0x14016e990]
inc edx
mov dword [0x14016e990], edx
movzx eax, byte [rdi]
cmp r8d, dword [rsi + rax*8]
jle 0x1400033b1
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 0x140003538
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 + 0x38], 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 [0x14016e9ac]
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 [0x14016e990]
cdq
idiv r15d
cdq
idiv ebp
xor byte [0x14016e972], al
movabs rax, 0xc4827ea81ba259d
mul rcx
mov rcx, qword [rsp + 0x38]
mov rax, rdx
xor edx, edx
shr rax, 5
div qword [r8 + rcx*8]
mov qword [r8 + rcx*8], rax
movabs rax, 0xad2589a356e95797
xor qword [r9 + rbx*8], r14
movzx ecx, byte [0x14016e982]
mov r8, qword [0x14016e9a0]
or rbx, r8
mul rbx
shr rdx, 9
xor dl, r15b
inc r15d
movzx eax, dl
imul ecx, eax
mov byte [0x14016e982], cl
cmp r15d, r12d
jg 0x140003449
mov rsi, qword [rsp + 0x48]
mov bpl, byte [rsp + 0xd8]
mov r11, qword [rsp + 0x50]
mov r14d, dword [rsp + 0xb0]
jmp 0x140003547
mov r8, qword [0x14016e9a0]
mov r9, qword [rsp + 0xc8]
movzx ecx, byte [0x14016e973]
mov dl, byte [0x14016e972]
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rax + rcx*8]
and dword [0x14016e9ac], 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 [0x14016e9b8]
mov qword [0x14016e9b8], rcx
movzx eax, byte [rdi]
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x58]
mov dword [rax + rcx*4], r8d
mov al, byte [0x14016e998]
dec qword [0x14016e9a0]
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 [0x14016e990]
mov byte [0x14016e971], 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