Function at 0x14009d21c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x50
call fcn.14024eae0
sub rsp, rax
mov rax, qword [rbp + 0x50]
lea edi, [r8 - 8]
mov r14, rcx
xor ebx, ebx
mov rsi, rdx
movzx edx, byte [rax]
lea rcx, [rax + 1]
movzx r12d, byte [rcx]
lea r15d, [rbx + 1]
shl r12d, 8
add rcx, r15
or r12d, edx
movzx eax, byte [rcx]
add rcx, r15
shl eax, 0x10
or r12d, eax
movzx eax, byte [rcx]
shl eax, 0x18
or r12d, eax
cmp dword [rbp + 0x58], ebx
je 0x14009d4c6
add rcx, r15
movzx r13d, byte [rcx]
add rcx, r15
movzx eax, byte [rcx]
shl eax, 8
or r13d, eax
movzx eax, byte [rcx + r15]
shl eax, 0x10
or r13d, eax
lea rax, [r15 + 1]
add rax, rcx
mov qword [rbp - 0x28], rax
movzx eax, byte [rax]
shl eax, 0x18
or r13d, eax
test edi, edi
js 0x14009d3b8
mov eax, r8d
shr rax, 3
mov qword [rbp - 0x20], rax
neg eax
mov rbx, qword [rbp - 0x20]
lea edi, [rdi + rax*8]
mov dword [rbp + 0x58], edi
mov rdi, qword [rbp + 0x48]
movzx edx, byte [r14]
add r14, r15
movzx eax, byte [r14]
add r14, r15
shl eax, 8
or edx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x10
or edx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x18
or edx, eax
xor edx, r12d
movzx ecx, byte [r14]
add r14, r15
mov dword [rbp - 0x30], edx
mov rdx, rdi
movzx eax, byte [r14]
add r14, r15
shl eax, 8
or ecx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x10
or ecx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x18
or ecx, eax
xor ecx, r13d
mov dword [rbp - 0x2c], ecx
lea rcx, [rbp - 0x30]
call fcn.14009d75c
mov r12d, dword [rbp - 0x30]
mov eax, r12d
mov r13d, dword [rbp - 0x2c]
mov byte [rsi], r12b
add rsi, r15
shr eax, 8
mov byte [rsi], al
add rsi, r15
mov eax, r12d
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov eax, r12d
shr eax, 0x18
mov byte [rsi], al
add rsi, r15
mov eax, r13d
shr eax, 8
mov byte [rsi], r13b
add rsi, r15
mov byte [rsi], al
add rsi, r15
mov eax, r13d
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov eax, r13d
shr eax, 0x18
mov byte [rsi], al
add rsi, r15
sub rbx, r15
jne 0x14009d2e4
mov edi, dword [rbp + 0x58]
mov r9, qword [rbp + 0x48]
cmp edi, 0xfffffff8
je 0x14009d4b2
lea ecx, [rdi + 8]
mov edx, ebx
movsxd rax, ecx
add r14, rax
sub ecx, r15d
je 0x14009d441
sub ecx, r15d
je 0x14009d435
sub ecx, r15d
je 0x14009d429
sub ecx, r15d
je 0x14009d41f
sub ecx, r15d
je 0x14009d416
sub ecx, r15d
je 0x14009d40a
sub ecx, r15d
je 0x14009d3fe
cmp ecx, r15d
jne 0x14009d448
sub r14, r15
movzx ebx, byte [r14]
shl ebx, 0x18
sub r14, r15
movzx eax, byte [r14]
shl eax, 0x10
or ebx, eax
sub r14, r15
movzx eax, byte [r14]
shl eax, 8
or ebx, eax
sub r14, r15
movzx eax, byte [r14]
or ebx, eax
sub r14, r15
movzx edx, byte [r14]
shl edx, 0x18
sub r14, r15
movzx eax, byte [r14]
shl eax, 0x10
or edx, eax
sub r14, r15
movzx eax, byte [r14]
shl eax, 8
or edx, eax
movzx eax, byte [r14 - 1]
or edx, eax
xor edx, r12d
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x30], edx
xor ebx, r13d
mov rdx, r9
mov dword [rbp - 0x2c], ebx
call fcn.14009d75c
mov r12d, dword [rbp - 0x30]
mov eax, r12d
mov r13d, dword [rbp - 0x2c]
mov byte [rsi], r12b
add rsi, r15
shr eax, 8
mov byte [rsi], al
add rsi, r15
mov eax, r12d
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov eax, r12d
shr eax, 0x18
mov byte [rsi], al
add rsi, r15
mov eax, r13d
shr eax, 8
mov byte [rsi], r13b
add rsi, r15
mov byte [rsi], al
mov eax, r13d
shr eax, 0x10
mov byte [rsi + r15], al
mov eax, r13d
shr eax, 0x18
mov byte [rsi + r15 + 1], al
mov r15, qword [rbp - 0x28]
lea rax, [r15 - 6]
lea r14, [rax + 4]
mov rsi, r14
jmp 0x14009d6f0
movzx r13d, byte [rcx + r15]
lea rax, [r15 + 1]
add rax, rcx
mov rcx, rax
mov qword [rbp - 0x18], rax
movzx eax, byte [rax]
shl eax, 8
or r13d, eax
movzx eax, byte [rcx + r15]
shl eax, 0x10
or r13d, eax
lea rax, [rcx + 2]
mov qword [rbp - 0x28], rax
movzx eax, byte [rax]
shl eax, 0x18
or r13d, eax
test edi, edi
js 0x14009d5e6
mov eax, r8d
shr rax, 3
mov qword [rbp - 0x20], rax
neg eax
lea edi, [rdi + rax*8]
mov dword [rbp + 0x58], edi
movzx edi, byte [r14]
lea rcx, [rbp - 0x30]
add r14, r15
mov rdx, r9
movzx eax, byte [r14]
add r14, r15
shl eax, 8
or edi, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x10
or edi, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x18
or edi, eax
mov dword [rbp - 0x30], edi
movzx ebx, byte [r14]
add r14, r15
movzx eax, byte [r14]
add r14, r15
shl eax, 8
or ebx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x10
or ebx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x18
or ebx, eax
mov dword [rbp - 0x2c], ebx
call fcn.14009d8a4
mov edx, dword [rbp - 0x30]
mov ecx, dword [rbp - 0x2c]
xor edx, r12d
mov r9, qword [rbp + 0x48]
xor ecx, r13d
mov byte [rsi], dl
mov eax, edx
add rsi, r15
shr eax, 8
mov r12d, edi
mov r13d, ebx
mov byte [rsi], al
add rsi, r15
mov eax, edx
shr edx, 0x18
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov eax, ecx
shr eax, 8
mov byte [rsi], dl
add rsi, r15
mov byte [rsi], cl
add rsi, r15
mov byte [rsi], al
add rsi, r15
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov byte [rsi], cl
add rsi, r15
sub qword [rbp - 0x20], r15
jne 0x14009d519
mov edi, dword [rbp + 0x58]
cmp edi, 0xfffffff8
je 0x14009d6e1
movzx ebx, byte [r14]
add r14, r15
movzx eax, byte [r14]
add r14, r15
shl eax, 8
or ebx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x10
or ebx, eax
movzx eax, byte [r14]
add r14, r15
shl eax, 0x18
or ebx, eax
mov dword [rbp - 0x30], ebx
movzx edx, byte [r14]
add r14, r15
movzx eax, byte [r14]
movzx ecx, byte [r14 + r15 + 1]
shl ecx, 8
shl eax, 8
or edx, eax
movzx eax, byte [r14 + r15]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], edx
mov dword [rbp + 0x58], edx
mov rdx, r9
call fcn.14009d8a4
mov r8d, dword [rbp - 0x30]
lea ecx, [rdi + 8]
mov edx, dword [rbp - 0x2c]
xor r8d, r12d
movsxd rax, ecx
xor edx, r13d
add rsi, rax
sub ecx, r15d
je 0x14009d6d6
sub ecx, r15d
je 0x14009d6cb
sub ecx, r15d
je 0x14009d6c0
sub ecx, r15d
je 0x14009d6b5
sub ecx, r15d
je 0x14009d6b0
sub ecx, r15d
je 0x14009d6a6
sub ecx, r15d
je 0x14009d69c
cmp ecx, r15d
jne 0x14009d6da
sub rsi, r15
mov eax, edx
shr eax, 0x18
mov byte [rsi], al
sub rsi, r15
mov eax, edx
shr eax, 0x10
mov byte [rsi], al
sub rsi, r15
mov eax, edx
shr eax, 8
mov byte [rsi], al
sub rsi, r15
mov byte [rsi], dl
sub rsi, r15
mov eax, r8d
shr eax, 0x18
mov byte [rsi], al
sub rsi, r15
mov eax, r8d
shr eax, 0x10
mov byte [rsi], al
sub rsi, r15
mov eax, r8d
shr eax, 8
mov byte [rsi], al
mov byte [rsi - 1], r8b
mov r13d, dword [rbp + 0x58]
mov r12d, ebx
mov r15, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x18]
mov r14, rsi
lea rax, [r15 - 6]
mov rbx, 0xfffffffffffffff9
mov r11d, r12d
mov ecx, r13d
mov edx, r13d
shr ecx, 0x18
mov r8d, r13d
shr edx, 0x10
mov r9d, r12d
mov byte [r15 + rbx], r12b
mov r10d, r12d
shr r8d, 8
mov rdi, rax
shr r9d, 0x18
shr r10d, 0x10
shr r11d, 8
mov byte [rax], r11b
lea r11, [rsp + 0x50]
mov byte [rax + 1], r10b
mov byte [rax + 2], r9b
mov byte [rax + 3], r13b
mov byte [r14], r8b
mov byte [rsi + 1], dl
mov byte [rsi + 2], cl
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret