Function at 0x1401b0682
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 0x1401b0822
mov rdi, r8
test r8, r8
je 0x1401b0822
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1401b08cb
mov rcx, rdi
call fcn.140198c60
mov r14, rax
mov rcx, rbx
call fcn.140198c60
mov r15, rax
mov qword [rsp + 0x40], rax
mov r13, qword [rsi + 0x10]
mov eax, dword [rsi + 0x30]
cmp r13, 0x80
jne 0x1401b08ec
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov edx, r15d
mov r8, rdi
mov r9d, r14d
call fcn.1401b0c18
mov r8d, eax
lea eax, [r14 + r15]
inc eax
mov dword [rsp + 0x28], eax
mov r12d, r8d
xor ebp, ebp
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 dword [rsp + 0x2c], r8d
jne 0x1401b0836
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rbp
mov rbp, qword [rsi + 0x28]
test rbp, rbp
jne 0x1401b0974
mov rbp, qword [rsi + 0x20]
add r15, r14
test rbp, rbp
je 0x1401b0a63
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 0x1401b0a2c
mov r15d, dword [rsp + 0x40]
mov rcx, r12
mov rdx, rbx
mov r8, r15
call fcn.1401730b0
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.1401730b0
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 0x1401b0ac2
mov r14, qword [rsp + 0x30]
test r14, r14
mov edi, dword [rsp + 0x2c]
mov rbx, qword [rsp + 0x38]
jne 0x1401b088c
mov rax, qword [rsi + 8]
mov ecx, r13d
shl rcx, 5
mov qword [rax + rcx + 8], r12
mov edx, dword [rsp + 0x28]
mov dword [rax + rcx + 0x10], edx
mov qword [rax + rcx], 0
mov dword [rax + rcx + 0x14], 1
mov dword [rax + rcx + 0x18], edi
inc dword [rsi + 0x18]
cmp ebx, 4
jae 0x1401b0aca
mov rax, r12
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rax + rcx]
mov rax, qword [rax + rcx]
xor ebp, ebp
test rax, rax
jne 0x1401b0b9d
cmp dword [rdx + 0x18], r8d
jne 0x1401b073a
mov eax, dword [rsp + 0x28]
mov qword [rsp + 0x30], rdx
cmp dword [rdx + 0x10], eax
jne 0x1401b0be9
mov rax, qword [rsp + 0x30]
mov r8, qword [rax + 8]
mov rcx, rbx
mov rdx, rdi
call fcn.140234390
test eax, eax
je 0x1401b0be9
mov rax, qword [rsp + 0x30]
mov r12, qword [rax + 8]
jmp 0x1401b0822
mov rax, qword [fcn.140070a20]
mov ecx, 0x20
call qword [case.0x140211850.0]
test rax, rax
je 0x1401b0ac2
mov qword [rax + 8], r12
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x10], ecx
mov qword [rax], 0
mov dword [rax + 0x14], 1
mov dword [rax + 0x18], edi
mov qword [r14], rax
jmp 0x1401b0816
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.140092407
test r15d, r15d
jle 0x1401b091a
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 0x1401b08f7
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 0x1401b095b
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 0x1401b0938
lea eax, [rax + rax*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov r8d, ecx
shl r8d, 0xf
add r8d, ecx
jmp 0x1401b0700
cmp qword [rsi + 0x10], 0x80
mov rax, qword [rbp + 0x10]
jne 0x1401b0aee
mov ecx, 0x80
mov r13d, dword [rsp + 0x2c]
cmp rax, 0x80
je 0x1401b0b02
mov ecx, dword [rbp + 0x30]
test r15d, r15d
jle 0x1401b09ce
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 0x1401b09ab
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 0x1401b0a10
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 0x1401b09ed
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 0x1401b0b02
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 0x1401b0769
mov rdx, qword [rsi + 0x38]
test rdx, rdx
je 0x1401b0a58
cmp rcx, rdx
ja 0x1401b0ac2
test rax, rax
je 0x1401b0a63
shl rax, 2
jmp 0x1401b0a68
mov eax, 0x3e8
lea r15d, [r15*4 + 4]
cmp rax, r15
cmova r15, rax
mov rax, qword [fcn.140070a20]
lea rcx, [r15 + 0x30]
call qword [case.0x140211850.0]
test rax, rax
je 0x1401b0ac2
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 0x1401b077d
xor r12d, r12d
jmp 0x1401b0822
mov rax, qword [rsi + 0x10]
cmp rax, 0xaaa
ja 0x1401b0822
add rax, rax
lea rdx, [rax + rax*2]
mov rcx, rsi
call fcn.14026ea08
jmp 0x1401b0822
mov rcx, rax
mov r13d, dword [rsp + 0x2c]
cmp rax, 0x80
je 0x1401b0bf3
mov eax, r13d
xor edx, edx
div rcx
mov rax, qword [rbp + 8]
shl rdx, 5
cmp dword [rax + rdx + 0x14], 0
je 0x1401b0b8c
lea rbp, [rax + rdx]
mov rax, qword [rax + rdx]
test rax, rax
je 0x1401b0b61
cmp dword [rbp + 0x18], r13d
jne 0x1401b0b4c
mov ecx, dword [rsp + 0x28]
cmp dword [rbp + 0x10], ecx
jne 0x1401b0b4c
mov r8, qword [rbp + 8]
mov rcx, rbx
mov rdx, rdi
call fcn.140234390
test eax, eax
jne 0x1401b0b83
mov rax, qword [rbp]
mov rbp, rax
mov rax, qword [rsp + 0x38]
inc eax
mov qword [rsp + 0x38], rax
mov rax, qword [rbp]
jmp 0x1401b0b21
cmp dword [rbp + 0x18], r13d
jne 0x1401b0b8c
mov eax, dword [rsp + 0x28]
cmp dword [rbp + 0x10], eax
jne 0x1401b0b8c
mov r8, qword [rbp + 8]
mov rcx, rbx
mov rdx, rdi
call fcn.140234390
test eax, eax
je 0x1401b0b8c
mov r12, qword [rbp + 8]
jmp 0x1401b0822
mov rax, r12
xor edx, edx
div qword [rsi + 0x10]
mov r13, rdx
jmp 0x1401b0751
xor ebp, ebp
mov qword [rsp + 0x38], rbp
cmp dword [rdx + 0x18], r8d
jne 0x1401b0bcd
mov rbp, rdx
mov ecx, dword [rsp + 0x28]
cmp dword [rdx + 0x10], ecx
jne 0x1401b0bcd
mov r8, qword [rbp + 8]
mov rcx, rbx
mov rdx, rdi
call fcn.140234390
test eax, eax
jne 0x1401b0b83
mov rax, qword [rbp]
mov rbp, qword [rsp + 0x38]
mov rdx, rax
inc ebp
mov rax, qword [rax]
test rax, rax
mov r8d, dword [rsp + 0x2c]
jne 0x1401b0b9f
jmp 0x1401b0849
mov rdx, qword [rsp + 0x30]
jmp 0x1401b073a
mov eax, dword [rbp + 0x30]
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov edx, r15d
mov r8, rdi
mov r9d, r14d
call fcn.1401b0c18
mov r13d, eax
mov ecx, 0x80
jmp 0x1401b0b02