Function at 0x14001d3a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r9d, dword [0x14057ee94]
movzx r11d, dx
movzx esi, word [rsp + 0xc0]
mov edx, 1
movzx edi, word [0x14057ee88]
mov r14, r8
mov r8d, dword [0x14057eeb8]
mov ebp, esi
movzx ebx, word [0x14057ef08]
add si, dx
movzx r15d, word [0x14057ee5c]
add ebx, 0x12ab
mov r13, rcx
mov word [rsp + 0xc0], si
mov ecx, dword [0x14057ee58]
lea eax, [r9 + r8]
cdqe
mov r12d, 0x19c8
mov qword [rsp + 0x58], rax
movsxd rax, dword [0x14057eefc]
mov qword [rsp + 0x50], rax
add eax, edx
mov dword [0x14057eefc], eax
mov eax, r9d
cdq
mov qword [rsp + 0x60], rbx
idiv dword [0x14057ef0c]
imul eax, dword [0x14057ee3c], 0x1766
mov r10d, edx
mov dword [rsp + 0x40], edx
mov edx, 1
add di, dx
mov word [0x14057ee88], di
xor dil, sil
movsxd r9, eax
mov qword [rsp + 0x48], r9
cmp ecx, 0x1727
jle 0x14001d53e
mov rax, qword [0x14057eec0]
movzx ecx, word [0x14057ee98]
sub rax, rdx
mov qword [0x14057eec0], rax
mov qword [0x14057ee40], rax
movzx edx, r11w
add edx, 0x20
or word [r14 + rdx*2], cx
movzx eax, byte [r15]
add rax, rax
movzx ecx, r10b
mov eax, dword [rbp + rax*8]
lea r9d, [rcx*4 + 0xd]
movsxd rcx, dword [0x14057eefc]
cdq
mov ebp, 1
add r15, rbp
movzx r8d, word [r13 + rcx*2]
idiv r8d
movzx ecx, dil
mov eax, 0x14667acd
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, si
xor dx, word [rax + 0x2ab8]
mov eax, 0x10df
or word [r13 + r9*2], dx
xor edx, edx
movzx r8d, byte [r15]
mov r9, qword [rsp + 0x48]
div ecx
movzx ecx, word [r14 + r8*2 + 0x38]
mov r8d, dword [0x14057eeb8]
add cx, ax
mov eax, dword [0x14057eefc]
xor cx, ax
or r12w, cx
mov ecx, dword [0x14057ee58]
sub eax, ebp
mov dword [0x14057eefc], eax
jmp 0x14001d543
mov ebp, 1
cmp r10b, dil
ja 0x14001d55c
movzx eax, dil
mov edx, 0xed6
add dil, bpl
cmp word [r13 + rax*2], dx
je 0x14001d56b
movzx eax, word [0x14057ee48]
cmp eax, ecx
jg 0x14001d81f
mov edx, dword [0x14057ee8c]
movzx ebp, r11w
movzx eax, word [r14 + rbp*2]
cmp eax, edx
jne 0x14001d81f
mov rax, qword [0x14057ef10]
mov ecx, 1
mov r11, qword [rsp + 0xb8]
sub rax, rcx
mov qword [0x14057ef10], rax
sub edx, ecx
mov rcx, qword [0x14057ee60]
inc r11
mov dword [0x14057ee8c], edx
movzx eax, word [r13 + rax*8 + 0xe]
or eax, edx
mov qword [rsp + 0xb8], r11
mov rdx, qword [rsp + 0x50]
add eax, r8d
cdqe
xor qword [rdx + rcx*8], rax
xor edx, edx
movzx ecx, byte [rbx + r11*4]
mov eax, dword [0x14057eefc]
lea eax, [rax*4 + 0x1e]
movsxd r8, eax
mov eax, 0x1ac0
div ecx
movzx ecx, byte [rbx + r11]
cdq
idiv ecx
movzx ecx, word [r13 + r8*2]
and edx, dword [0x14057ee58]
mov eax, edx
cdq
idiv ecx
mov word [r13 + r8*2], ax
movsxd rcx, dword [0x14057eefc]
movzx r11d, word [r9 + 0x269e]
movzx ebx, byte [0x14057ee98]
movzx eax, r10b
imul ebx, eax
lea eax, [rcx + 0x14]
movsxd rdx, eax
mov rax, qword [0x14057eed0]
movzx r8d, word [r13 + rdx*2]
mov edx, r11d
sub r8w, word [rax + rcx*4]
mov cl, bl
movsxd rax, dword [0x14057ee58]
movzx r9d, word [r9 + rax*2]
movzx eax, word [0x14057ee48]
xor r9, qword [rsp + 0xb8]
shl eax, 2
movzx r10d, word [r13 + rax*2]
mov qword [rsp + 0x30], r10
movzx eax, dil
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1de7
call fcn.14001974c
mov ecx, dword [0x14057ee58]
mov r10, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
mov r11d, dword [rsp + 0x40]
lea ecx, [rcx*4 + 0xd]
movzx r8d, r11b
movsxd rdx, ecx
shl r8d, 2
movzx ecx, dil
mov word [r10 + rdx*2], ax
mov eax, 1
add word [r14], ax
mov r9d, dword [0x14057eef8]
add r9d, eax
mov dword [0x14057eef8], r9d
movzx eax, word [r14]
movzx edx, word [rbx + rax*4]
and dx, cx
movzx eax, r9w
movzx ecx, dx
imul ecx, eax
add word [r13 + r8*2], cx
mov r8d, 1
mov eax, dword [0x14057ee90]
add eax, r8d
mov dword [0x14057ee90], eax
sub r11b, r8b
cdqe
movzx ecx, r11b
movzx edx, si
movzx ecx, word [rdx + rcx*2 + 0xc]
xor cx, word [rbx + rax*4]
mov word [r13 + rbp*2 + 0xe], cx
mov ecx, 0x19d5
movsxd rax, dword [0x14057eefc]
movzx ebx, r12w
or word [r10 + rax*2], cx
mov ecx, dword [0x14057eea0]
cmp ebx, ecx
jl 0x14001d7fa
mov r13, qword [rsp + 0x60]
lea rdi, [rbx + 0x12]
xor rbp, 0x8ed
mov esi, r8d
add ecx, esi
mov eax, 0x1edc
cdq
mov dword [0x14057eea0], ecx
idiv ecx
mov rcx, qword [0x14057ef00]
mov r9, rbp
add al, byte [r15 + 0x5f0]
or al, byte [0x14057ef08]
mov byte [rdi + rcx], al
movzx ecx, byte [r15]
mov al, byte [rcx + r13 + 4]
xor al, byte [0x14057ee3a]
mov byte [rcx + r13 + 4], al
mov eax, ebx
movsxd r8, dword [0x14057eefc]
movsxd rcx, dword [0x14057ee3c]
movzx edx, word [r14 + r8*2]
sub eax, edx
movsxd rdx, eax
imul eax, r8d, 0x1e6b
movsxd r8, eax
mov eax, 0xffff
add r12w, ax
movzx eax, r12w
mov qword [rsp + 0x20], rax
call fcn.14001cadc
movsxd rcx, eax
add ebx, esi
mov qword [0x14057eec0], rcx
add rdi, rsi
mov ecx, dword [0x14057eea0]
cmp ebx, ecx
jge 0x14001d751
movzx esi, word [rsp + 0xc0]
mov r8d, 1
mov r10, qword [rsp + 0x48]
mov eax, dword [0x14057eeb0]
add ecx, r8d
add eax, r8d
mov dword [0x14057eea0], ecx
mov dword [0x14057eeb0], eax
add eax, 5
movsxd rcx, eax
movzx eax, word [r10 + rcx*2]
jmp 0x14001d838
mov eax, dword [0x14057eeb0]
inc eax
mov dword [0x14057eeb0], eax
add eax, 5
movsxd rcx, eax
movzx eax, word [r9 + rcx*2]
movzx ecx, si
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
xor edx, edx
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
div ecx
mov eax, edx
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret