Function at 0x18013fb20
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
push r14
push r15
mov eax, 0x68
call fcn.1803146e0
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rbx, rcx
mov qword [rsp + 0x30], rax
mov r15, r9
mov rax, qword [rcx + 0x188]
mov r14, r8
mov rcx, qword [rcx + 0x38]
mov rdi, rdx
mov qword [rsp + 0x28], rax
add rcx, r9
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x18013ff10
cmp rcx, r9
jb 0x18013ff10
mov qword [rsp + 0x60], rsi
xor esi, esi
mov qword [rsp + 0x58], r12
mov r12d, dword [rbx + 0x178]
mov qword [rsp + 0x50], r13
lea r13, [rbx + 0x40]
mov qword [rbx + 0x38], rcx
mov dword [rsp + 0x90], r12d
cmp dword [rbx + 0x17c], esi
je 0x18013fbf2
test r9, r9
jne 0x18013fbca
lea rdx, [rbx + 0x60]
mov rcx, r13
call qword [rbx + 0x170]
xor eax, eax
mov dword [rbx + 0x17c], esi
jmp 0x18013fef6
movups xmm0, xmmword [r13]
mov r12d, 0x10
mov dword [rsp + 0x90], r12d
movups xmmword [rbx + 0x190], xmm0
mov qword [r13], rsi
mov qword [rbx + 0x48], rsi
mov dword [rbx + 0x17c], esi
movzx eax, byte [rbx + 0xd]
lea r8, [rbx + 0x190]
movzx esi, byte [rbx + 0xc]
shl esi, 8
or esi, eax
mov qword [rsp + 0x98], rbp
movzx eax, byte [rbx + 0xe]
mov ebp, r12d
shl esi, 8
or esi, eax
movzx eax, byte [rbx + 0xf]
shl esi, 8
or esi, eax
and ebp, 0xf
mov dword [rsp + 0x20], ebp
je 0x18013fc91
nop dword [rax]
test r15, r15
je 0x18013fee5
movzx ecx, byte [rdi]
dec r15
mov eax, r12d
inc rdi
inc r12d
mov byte [rax + rbx + 0x190], cl
xor cl, byte [rbp + rbx + 0x10]
mov byte [r14], cl
inc r14
inc ebp
and ebp, 0xf
jne 0x18013fc30
lea r13, [rbx + 0x40]
mov r9d, r12d
mov rcx, r13
lea r8, [rbx + 0x190]
lea rdx, [rbx + 0x60]
call qword [rbx + 0x168]
xor r12d, r12d
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x90], r12d
lea r8, [rbx + 0x190]
lea rax, [rbx + 0x60]
cmp r15, 0x10
jb 0x18013fcba
test r12d, r12d
je 0x18013fcba
mov r9d, r12d
mov rdx, rax
mov rcx, r13
call qword [rbx + 0x168]
xor r12d, r12d
mov dword [rsp + 0x90], r12d
cmp r15, 0xc00
jb 0x18013fd84
movabs rax, 0xaaaaaaaaaaaaaaab
lea rbp, [rbx + 0x40]
mul r15
shr rdx, 0xb
imul rax, rdx, 0xfffffffffffff400
mov qword [rsp + 0x48], rdx
add r15, rax
nop dword [rax + rax]
mov r9d, 0xc00
lea rdx, [rbx + 0x60]
mov r8, rdi
mov rcx, rbp
call qword [rbx + 0x168]
mov r13d, 0xc0
nop dword [rax]
mov r8, qword [rsp + 0x28]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + 0x30]
inc esi
mov byte [rbx + 0xf], sil
mov eax, esi
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, esi
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, esi
shr eax, 8
mov byte [rbx + 0xe], al
mov rax, qword [rbx + 0x10]
xor rax, qword [rdi]
mov qword [r14], rax
mov rax, qword [rdi + 8]
add rdi, 0x10
xor rax, qword [rbx + 0x18]
mov qword [r14 + 8], rax
add r14, 0x10
sub r13, 1
jne 0x18013fd10
sub qword [rsp + 0x48], 1
lea rbp, [rbx + 0x40]
jne 0x18013fcf0
mov r12d, dword [rsp + 0x90]
mov qword [rsp + 0x48], rbp
mov r13, qword [rsp + 0x48]
mov ebp, dword [rsp + 0x20]
mov r9, r15
lea r8, [rbx + 0xf]
mov qword [rsp + 0x48], r8
lea rdx, [rbx + 0xe]
mov qword [rsp + 0x40], rdx
lea rcx, [rbx + 0xd]
mov qword [rsp + 0x38], rcx
lea r10, [rbx + 0x60]
lea rax, [rbx + 0xc]
and r9, 0xfffffffffffffff0
je 0x18013fe7f
mov r8, rdi
mov rdx, r10
mov rcx, r13
call qword [rbx + 0x168]
lea rax, [rbx + 0xd]
mov qword [rsp + 0x38], rax
lea rax, [rbx + 0xe]
mov qword [rsp + 0x40], rax
lea rax, [rbx + 0xf]
mov qword [rsp + 0x48], rax
lea r13, [rbx + 0xc]
cmp r15, 0x10
jb 0x18013fe82
mov r13, r15
shr r13, 4
imul rax, r13, 0xfffffffffffffff0
add r15, rax
nop word [rax + rax]
mov r8, qword [rsp + 0x28]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + 0x30]
inc esi
mov byte [rbx + 0xf], sil
mov eax, esi
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, esi
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, esi
shr eax, 8
mov byte [rbx + 0xe], al
mov rax, qword [rbx + 0x10]
xor rax, qword [rdi]
mov qword [r14], rax
mov rax, qword [rdi + 8]
add rdi, 0x10
xor rax, qword [rbx + 0x18]
mov qword [r14 + 8], rax
add r14, 0x10
sub r13, 1
jne 0x18013fe00
mov ebp, dword [rsp + 0x20]
lea rax, [rbx + 0xd]
mov r12d, dword [rsp + 0x90]
lea r13, [rbx + 0xc]
mov qword [rsp + 0x38], rax
lea rax, [rbx + 0xe]
mov qword [rsp + 0x40], rax
lea rax, [rbx + 0xf]
mov qword [rsp + 0x48], rax
jmp 0x18013fe82
mov r13, rax
test r15, r15
je 0x18013fee5
mov r8, qword [rsp + 0x28]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
inc esi
mov eax, esi
shr eax, 0x18
mov byte [r13], al
mov eax, esi
shr eax, 0x10
mov byte [rcx], al
mov eax, esi
mov rcx, qword [rsp + 0x40]
shr eax, 8
mov byte [rcx], al
mov rax, qword [rsp + 0x48]
mov byte [rax], sil
mov edx, ebp
inc ebp
mov eax, r12d
inc r12d
movzx ecx, byte [rdx + rdi]
mov byte [rax + rbx + 0x190], cl
xor cl, byte [rbx + rdx + 0x10]
mov byte [r14 + rdx], cl
sub r15, 1
jne 0x18013fec2
mov rbp, qword [rsp + 0x98]
xor eax, eax
mov dword [rbx + 0x178], r12d
mov r13, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbx
ret