Function at 0x1401b9423
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
xor r12d, r12d
test rcx, rcx
je 0x1401b95b6
mov rdi, r8
test r8, r8
je 0x1401b95b6
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1401b99b0
mov rcx, rdi
call fcn.14017ed70
mov r14, rax
mov rcx, rbx
call fcn.14017ed70
mov r15, rax
mov qword [rsp + 0x40], rax
mov r13, qword [rsi + 0x10]
mov eax, dword [rsi + 0x30]
cmp r13, 0x80
jne 0x1401b97a0
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov edx, r15d
mov r8, rdi
mov r9d, r14d
call fcn.1401b99d1
lea ecx, [r14 + r15]
inc ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], eax
mov r12d, eax
xor eax, eax
mov qword [rsp + 0x38], rax
mov rax, r12
xor edx, edx
div r13
mov r13, rdx
mov rax, qword [rsi + 8]
mov rcx, rdx
shl rcx, 5
cmp dword [rax + rcx + 0x14], 0
mov edx, 0
mov qword [rsp + 0x28], rdx
jne 0x1401b9721
mov rbp, qword [rsi + 0x28]
test rbp, rbp
jne 0x1401b98c8
mov rbp, qword [rsi + 0x20]
add r15, r14
test rbp, rbp
je 0x1401b9625
lea edx, [r15 + 1]
xor ecx, ecx
xor eax, eax
mov r12, qword [rbp + 8]
mov r8, qword [rbp + 0x10]
sub r8, r12
cmp r8, rdx
jbe 0x1401b95fa
mov r15d, dword [rsp + 0x40]
mov rcx, r12
mov rdx, rbx
mov r8, r15
call fcn.140158a70
mov rax, qword [rbp + 8]
add rax, r15
inc rax
mov qword [rbp + 8], rax
mov byte [rax - 1], 0x3a
mov rcx, qword [rbp + 8]
mov ebx, r14d
mov rdx, rdi
mov r8, rbx
call fcn.140158a70
mov rax, qword [rbp + 8]
add rax, rbx
inc rax
mov qword [rbp + 8], rax
mov byte [rax - 1], 0
inc qword [rbp + 0x20]
test r12, r12
je 0x1401b95f5
cmp qword [rsp + 0x28], 0
jne 0x1401b9684
mov rax, qword [rsi + 8]
mov ecx, r13d
shl rcx, 5
mov qword [rax + rcx + 8], r12
mov edx, dword [rsp + 0x30]
mov dword [rax + rcx + 0x10], edx
mov qword [rax + rcx], 0
mov dword [rax + rcx + 0x14], 1
mov edx, dword [rsp + 0x34]
mov dword [rax + rcx + 0x18], edx
inc dword [rsi + 0x18]
cmp dword [rsp + 0x38], 4
jae 0x1401b95ca
mov rax, r12
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x10]
cmp rax, 0xfe502a
ja 0x1401b95b6
add rax, rax
lea rdx, [rax + rax*2]
mov rcx, rsi
call fcn.14028201a
jmp 0x1401b95b6
mov rdx, qword [rsi + 0x38]
test rdx, rdx
je 0x1401b961a
cmp rcx, rdx
jbe 0x1401b961a
xor r12d, r12d
jmp 0x1401b95b6
mov r8, qword [rbp + 0x18]
cmp r8, rax
cmova rax, r8
mov r9, qword [rbp]
add rcx, r8
mov rbp, r9
test r9, r9
jne 0x1401b9506
jmp 0x1401b95e7
test rax, rax
je 0x1401b9625
shl rax, 2
jmp 0x1401b962a
mov eax, 0x3e8
lea r15d, [r15*4 + 4]
cmp rax, r15
cmova r15, rax
mov rax, qword [fcn.14003ee90]
lea rcx, [r15 + 0x30]
call qword [0x14037e008]
test rax, rax
je 0x1401b95f5
mov rbp, rax
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], 0
add rax, 0x28
mov qword [rbp + 8], rax
lea rax, [rbp + r15 + 0x28]
mov qword [rbp + 0x10], rax
mov rax, qword [rsi + 0x20]
mov qword [rbp], rax
mov qword [rsi + 0x20], rbp
mov r12, qword [rbp + 8]
jmp 0x1401b951a
mov rax, qword [fcn.14003ee90]
mov ecx, 0x20
call qword [0x14037e008]
test rax, rax
je 0x1401b95f5
mov qword [rax + 8], r12
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x10], ecx
mov qword [rax], 0
mov dword [rax + 0x14], 1
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x18], ecx
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x1401b95ac
xor eax, eax
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + 0x18], eax
jne 0x1401b94e1
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + 0x10], eax
jne 0x1401b94e1
mov rax, qword [rsp + 0x28]
mov r8, qword [rax + 8]
mov rcx, rbx
mov rdx, rdi
call fcn.140260e00
test eax, eax
je 0x1401b94e1
mov rax, qword [rsp + 0x28]
mov r12, qword [rax + 8]
jmp 0x1401b95b6
lea rdx, [rax + rcx]
mov qword [rsp + 0x28], rdx
mov rax, qword [rax + rcx]
test rax, rax
je 0x1401b96cc
xor ecx, ecx
mov qword [rsp + 0x38], rcx
jmp 0x1401b9767
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [rsp + 0x38]
inc eax
mov qword [rsp + 0x38], rax
mov rax, rcx
mov qword [rsp + 0x28], rcx
mov rax, qword [rcx]
test rax, rax
je 0x1401b96d3
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x28]
cmp dword [rdx + 0x18], ecx
jne 0x1401b9744
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
cmp dword [rdx + 0x10], ecx
jne 0x1401b9744
mov rax, qword [rsp + 0x28]
mov r8, qword [rax + 8]
mov rcx, rbx
mov rdx, rdi
call fcn.140260e00
test eax, eax
je 0x1401b973c
jmp 0x1401b9713
test r15d, r15d
jle 0x1401b97ce
mov ecx, dword [rsp + 0x40]
xor edx, edx
movzx r8d, byte [rbx + rdx]
add r8d, eax
mov r9d, r8d
shl r9d, 0xa
add r9d, r8d
mov eax, r9d
shr eax, 6
xor eax, r9d
inc rdx
cmp rcx, rdx
jne 0x1401b97ab
mov ecx, eax
shl ecx, 0xa
add ecx, eax
add ecx, 0xe83a
mov eax, ecx
shr eax, 6
xor eax, ecx
test r14d, r14d
jle 0x1401b980f
mov ecx, r14d
xor edx, edx
movzx r8d, byte [rdi + rdx]
add r8d, eax
mov r9d, r8d
shl r9d, 0xa
add r9d, r8d
mov eax, r9d
shr eax, 6
xor eax, r9d
inc rdx
cmp rcx, rdx
jne 0x1401b97ec
lea eax, [rax + rax*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov eax, ecx
shl eax, 0xf
add eax, ecx
jmp 0x1401b949e
mov ecx, 0x80
mov r13d, dword [rsp + 0x34]
cmp rax, 0x80
je 0x1401b98ee
mov ecx, dword [rbp + 0x30]
test r15d, r15d
jle 0x1401b986d
mov edx, dword [rsp + 0x40]
xor r8d, r8d
movzx r9d, byte [rbx + r8]
add r9d, ecx
mov r10d, r9d
shl r10d, 0xa
add r10d, r9d
mov ecx, r10d
shr ecx, 6
xor ecx, r10d
inc r8
cmp rdx, r8
jne 0x1401b984a
mov edx, ecx
shl edx, 0xa
add edx, ecx
add edx, 0xe83a
mov ecx, edx
shr ecx, 6
xor ecx, edx
test r14d, r14d
jle 0x1401b98af
mov edx, r14d
xor r8d, r8d
movzx r9d, byte [rdi + r8]
add r9d, ecx
mov r10d, r9d
shl r10d, 0xa
add r10d, r9d
mov ecx, r10d
shr ecx, 6
xor ecx, r10d
inc r8
cmp rdx, r8
jne 0x1401b988c
lea ecx, [rcx + rcx*8]
mov edx, ecx
shr edx, 0xb
xor edx, ecx
mov r13d, edx
shl r13d, 0xf
add r13d, edx
mov rcx, rax
jmp 0x1401b98ee
cmp qword [rsi + 0x10], 0x80
mov rax, qword [rbp + 0x10]
je 0x1401b9825
mov rcx, rax
mov r13d, dword [rsp + 0x34]
cmp rax, 0x80
je 0x1401b998b
mov eax, r13d
xor edx, edx
div rcx
mov rax, qword [rbp + 8]
shl rdx, 5
cmp dword [rax + rdx + 0x14], 0
je 0x1401b995e
lea rbp, [rax + rdx]
mov rax, qword [rax + rdx]
jmp 0x1401b9926
mov rax, qword [rbp]
mov rbp, rax
mov rax, qword [rsp + 0x38]
inc eax
mov qword [rsp + 0x38], rax
mov rax, qword [rbp]
test rax, rax
je 0x1401b994f
cmp dword [rbp + 0x18], r13d
jne 0x1401b9913
mov ecx, dword [rsp + 0x30]
cmp dword [rbp + 0x10], ecx
jne 0x1401b9913
mov r8, qword [rbp + 8]
mov rcx, rbx
mov rdx, rdi
call fcn.140260e00
test eax, eax
je 0x1401b990f
jmp 0x1401b9982
cmp dword [rbp + 0x18], r13d
jne 0x1401b995e
mov eax, dword [rsp + 0x30]
cmp dword [rbp + 0x10], eax
je 0x1401b996f
mov rax, r12
xor edx, edx
div qword [rsi + 0x10]
mov r13, rdx
jmp 0x1401b94ee
mov r8, qword [rbp + 8]
mov rcx, rbx
mov rdx, rdi
call fcn.140260e00
test eax, eax
je 0x1401b995e
mov r12, qword [rbp + 8]
jmp 0x1401b95b6
mov eax, dword [rbp + 0x30]
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov edx, r15d
mov r8, rdi
mov r9d, r14d
call fcn.1401b99d1
mov r13d, eax
mov ecx, 0x80
jmp 0x1401b98ee
mov rcx, rsi
mov rdx, rdi
mov r8d, 0xffffffff
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400e9335