Function at 0x14001d358
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 [0x14004b7f4]
movzx r11d, dx
movzx esi, word [rsp + 0xc0]
mov edx, 1
movzx edi, word [0x14004b7e8]
mov r14, r8
mov r8d, dword [0x14004b818]
mov ebp, esi
movzx ebx, word [0x14004b868]
add si, dx
movzx r15d, word [0x14004b7bc]
add ebx, 0x12ab
mov r13, rcx
mov word [rsp + 0xc0], si
mov ecx, dword [0x14004b7b8]
lea eax, [r9 + r8]
cdqe
mov r12d, 0x19c8
mov qword [rsp + 0x58], rax
movsxd rax, dword [0x14004b85c]
mov qword [rsp + 0x50], rax
add eax, edx
mov dword [0x14004b85c], eax
mov eax, r9d
cdq
mov qword [rsp + 0x60], rbx
idiv dword [0x14004b86c]
imul eax, dword [0x14004b79c], 0x1766
mov r10d, edx
mov dword [rsp + 0x40], edx
mov edx, 1
add di, dx
mov word [0x14004b7e8], di
xor dil, sil
movsxd r9, eax
mov qword [rsp + 0x48], r9
cmp ecx, 0x1727
jle 0x14001d4f6
mov rax, qword [0x14004b820]
movzx ecx, word [0x14004b7f8]
sub rax, rdx
mov qword [0x14004b820], rax
mov qword [0x14004b7a0], 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 [0x14004b85c]
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 [0x14004b818]
add cx, ax
mov eax, dword [0x14004b85c]
xor cx, ax
or r12w, cx
mov ecx, dword [0x14004b7b8]
sub eax, ebp
mov dword [0x14004b85c], eax
jmp 0x14001d4fb
mov ebp, 1
cmp r10b, dil
ja 0x14001d514
movzx eax, dil
mov edx, 0xed6
add dil, bpl
cmp word [r13 + rax*2], dx
je 0x14001d523
movzx eax, word [0x14004b7a8]
cmp eax, ecx
jg 0x14001d7d7
mov edx, dword [0x14004b7ec]
movzx ebp, r11w
movzx eax, word [r14 + rbp*2]
cmp eax, edx
jne 0x14001d7d7
mov rax, qword [0x14004b870]
mov ecx, 1
mov r11, qword [rsp + 0xb8]
sub rax, rcx
mov qword [0x14004b870], rax
sub edx, ecx
mov rcx, qword [0x14004b7c0]
inc r11
mov dword [0x14004b7ec], 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 [0x14004b85c]
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 [0x14004b7b8]
mov eax, edx
cdq
idiv ecx
mov word [r13 + r8*2], ax
movsxd rcx, dword [0x14004b85c]
movzx r11d, word [r9 + 0x269e]
movzx ebx, byte [0x14004b7f8]
movzx eax, r10b
imul ebx, eax
lea eax, [rcx + 0x14]
movsxd rdx, eax
mov rax, qword [0x14004b830]
movzx r8d, word [r13 + rdx*2]
mov edx, r11d
sub r8w, word [rax + rcx*4]
mov cl, bl
movsxd rax, dword [0x14004b7b8]
movzx r9d, word [r9 + rax*2]
movzx eax, word [0x14004b7a8]
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.140019748
mov ecx, dword [0x14004b7b8]
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 [0x14004b858]
add r9d, eax
mov dword [0x14004b858], 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 [0x14004b7f0]
add eax, r8d
mov dword [0x14004b7f0], 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 [0x14004b85c]
movzx ebx, r12w
or word [r10 + rax*2], cx
mov ecx, dword [0x14004b800]
cmp ebx, ecx
jl 0x14001d7b2
mov r13, qword [rsp + 0x60]
lea rdi, [rbx + 0x12]
xor rbp, 0x8ed
mov esi, r8d
add ecx, esi
mov eax, 0x1e9d
cdq
mov dword [0x14004b800], ecx
idiv ecx
mov rcx, qword [0x14004b860]
mov r9, rbp
add al, byte [r15 + 0x5f0]
or al, byte [0x14004b868]
mov byte [rdi + rcx], al
movzx ecx, byte [r15]
mov al, byte [rcx + r13 + 4]
xor al, byte [0x14004b79a]
mov byte [rcx + r13 + 4], al
mov eax, ebx
movsxd r8, dword [0x14004b85c]
movsxd rcx, dword [0x14004b79c]
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.14001ca94
movsxd rcx, eax
add ebx, esi
mov qword [0x14004b820], rcx
add rdi, rsi
mov ecx, dword [0x14004b800]
cmp ebx, ecx
jge 0x14001d709
movzx esi, word [rsp + 0xc0]
mov r8d, 1
mov r10, qword [rsp + 0x48]
mov eax, dword [0x14004b810]
add ecx, r8d
add eax, r8d
mov dword [0x14004b800], ecx
mov dword [0x14004b810], eax
add eax, 5
movsxd rcx, eax
movzx eax, word [r10 + rcx*2]
jmp 0x14001d7f0
mov eax, dword [0x14004b810]
inc eax
mov dword [0x14004b810], 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