Function at 0x14013f7e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r12
push r14
push r15
mov eax, 0x58
call fcn.1401abae0
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
mov r14, r9
mov qword [rsp + 0x30], rax
add rcx, r9
movabs rax, 0xfffffffe0
mov r15, r8
mov r12, rdx
cmp rcx, rax
ja 0x14013fa8e
cmp rcx, r9
jb 0x14013fa8e
cmp dword [rbx + 0x174], 0
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x50], rsi
mov qword [rbx + 0x38], rcx
je 0x14013f861
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1401401e0
mov dword [rbx + 0x174], 0
movzx eax, byte [rbx + 0xd]
mov esi, dword [rbx + 0x170]
movzx ebp, byte [rbx + 0xc]
shl ebp, 8
or ebp, eax
mov dword [rsp + 0x80], esi
movzx eax, byte [rbx + 0xe]
shl ebp, 8
or ebp, eax
movzx eax, byte [rbx + 0xf]
shl ebp, 8
or ebp, eax
test esi, esi
je 0x14013f8d6
test r14, r14
je 0x14013f8c1
mov ecx, esi
dec r14
movzx eax, byte [rcx + rbx + 0x10]
xor al, byte [r12]
inc r12
mov byte [r15], al
inc r15
xor byte [rcx + rbx + 0x40], al
inc esi
and esi, 0xf
mov dword [rsp + 0x80], esi
jne 0x14013f891
jmp 0x14013f8c9
test esi, esi
jne 0x14013fa84
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1401401e0
mov r10, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r13
cmp r14, 0xc00
jb 0x14013f99a
movabs rax, 0xaaaaaaaaaaaaaaab
mul r14
mov rdi, rdx
shr rdi, 0xb
imul rax, rdi, 0xfffffffffffff400
add r14, rax
mov qword [rsp + 0x98], r14
mov r14, qword [rsp + 0x30]
mov r9, r14
mov qword [rsp + 0x20], rbx
mov r8d, 0xc0
mov rdx, r15
mov rcx, r12
call r10
add ebp, 0xc0
lea rdx, [rbx + 0x60]
mov eax, ebp
mov byte [rbx + 0xf], bpl
shr eax, 0x18
lea rcx, [rbx + 0x40]
mov byte [rbx + 0xc], al
mov r9d, 0xc00
mov eax, ebp
mov r8, r15
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
call fcn.140140010
mov r10, qword [rsp + 0xa0]
add r15, 0xc00
add r12, 0xc00
sub rdi, 1
jne 0x14013f920
mov esi, dword [rsp + 0x80]
mov r14, qword [rsp + 0x98]
mov r13, r14
and r13, 0xfffffffffffffff0
je 0x14013f9fa
mov r9, qword [rsp + 0x30]
mov rdi, r13
shr rdi, 4
mov rdx, r15
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r12
call r10
add ebp, edi
lea rdx, [rbx + 0x60]
mov eax, ebp
mov byte [rbx + 0xf], bpl
shr eax, 0x18
lea rcx, [rbx + 0x40]
mov byte [rbx + 0xc], al
mov r9, r13
mov eax, ebp
mov r8, r15
shr eax, 0x10
add r12, r13
mov byte [rbx + 0xd], al
sub r14, r13
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
call fcn.140140010
add r15, r13
mov r13, qword [rsp + 0x40]
test r14, r14
je 0x14013fa5e
mov r8, qword [rsp + 0x30]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rbx + 0x178]
inc ebp
mov eax, ebp
mov byte [rbx + 0xf], bpl
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, ebp
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
nop dword [rax]
nop dword [rax + rax]
mov ecx, esi
inc esi
movzx edx, byte [rcx + r12]
movzx eax, byte [rbx + rcx + 0x10]
xor edx, eax
mov byte [rcx + r15], dl
xor byte [rcx + rbx + 0x40], dl
sub r14, 1
jne 0x14013fa40
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov dword [rbx + 0x170], esi
mov rbp, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop r14
pop r12
pop rbx
ret
mov dword [rbx + 0x170], esi
xor eax, eax
jmp 0x14013fa6b
or eax, 0xffffffff
add rsp, 0x58
pop r15
pop r14
pop r12
pop rbx
ret