Function at 0x1403994d0
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.1403cb200
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 0x140399777
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 0x14039966c
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.140399b70
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 0x140399598
mov edi, dword [rbp + 0x58]
mov r9, qword [rbp + 0x48]
cmp edi, 0xfffffff8
je 0x140399766
lea ecx, [rdi + 8]
mov edx, ebx
movsxd rax, ecx
add r14, rax
sub ecx, r15d
je 0x1403996f5
sub ecx, r15d
je 0x1403996e9
sub ecx, r15d
je 0x1403996dd
sub ecx, r15d
je 0x1403996d3
sub ecx, r15d
je 0x1403996ca
sub ecx, r15d
je 0x1403996be
sub ecx, r15d
je 0x1403996b2
cmp ecx, r15d
jne 0x1403996fc
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.140399b70
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 r14, qword [rbp - 0x28]
lea rax, [r14 - 6]
lea rdi, [rax + 4]
jmp 0x14039999e
movzx r13d, byte [rcx + r15]
lea rax, [r15 + 1]
add rax, rcx
mov qword [rbp - 0x18], rax
mov rcx, 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 0x140399897
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.140399a10
mov ecx, dword [rbp - 0x30]
mov edx, dword [rbp - 0x2c]
xor ecx, r12d
mov r9, qword [rbp + 0x48]
xor edx, r13d
mov byte [rsi], cl
mov eax, ecx
add rsi, r15
shr eax, 8
mov r12d, edi
mov r13d, ebx
mov byte [rsi], al
add rsi, r15
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov eax, edx
shr eax, 8
mov byte [rsi], cl
add rsi, r15
mov byte [rsi], dl
add rsi, r15
mov byte [rsi], al
add rsi, r15
mov eax, edx
shr edx, 0x18
shr eax, 0x10
mov byte [rsi], al
add rsi, r15
mov byte [rsi], dl
add rsi, r15
sub qword [rbp - 0x20], r15
jne 0x1403997ca
mov edi, dword [rbp + 0x58]
cmp edi, 0xfffffff8
je 0x140399992
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 ecx, byte [r14 + r15 + 1]
movzx eax, byte [r14]
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 + 0x58], edx
mov dword [rbp - 0x2c], edx
mov rdx, r9
call fcn.140399a10
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 0x140399987
sub ecx, r15d
je 0x14039997c
sub ecx, r15d
je 0x140399971
sub ecx, r15d
je 0x140399966
sub ecx, r15d
je 0x140399961
sub ecx, r15d
je 0x140399957
sub ecx, r15d
je 0x14039994d
cmp ecx, r15d
jne 0x14039998b
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 r14, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x18]
lea rax, [r14 - 6]
mov byte [r14 - 7], r12b
mov r11d, r12d
mov rsi, rdi
mov ecx, r13d
shr ecx, 0x18
mov edx, r13d
shr edx, 0x10
mov r8d, r13d
shr r8d, 8
mov r9d, r12d
shr r9d, 0x18
mov r10d, r12d
shr r10d, 0x10
mov rbx, rax
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 [rdi], r8b
mov byte [rdi + 1], dl
mov byte [rdi + 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