Function at 0x1801a6a40
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r15
mov eax, 0x58
call fcn.180131170
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rbp, rcx
mov rcx, qword [rcx + 0x38]
mov rbx, r9
mov qword [rsp + 0x30], rax
add rcx, r9
movabs rax, 0xfffffffe0
mov r12, r8
mov r15, rdx
cmp rcx, rax
ja 0x1801a6d12
cmp rcx, rbx
jb 0x1801a6d12
cmp dword [rbp + 0x174], 0
lea r8, [rbp + 0x60]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r14
mov qword [rbp + 0x38], rcx
je 0x1801a6acc
mov rdx, r8
lea rcx, [rbp + 0x40]
call fcn.1801a7180
lea r8, [rbp + 0x60]
mov dword [rbp + 0x174], 0
movzx eax, byte [rbp + 0xd]
mov esi, dword [rbp + 0x170]
movzx r14d, byte [rbp + 0xc]
shl r14d, 8
or r14d, eax
mov dword [rsp + 0x80], esi
movzx eax, byte [rbp + 0xe]
shl r14d, 8
or r14d, eax
movzx eax, byte [rbp + 0xf]
shl r14d, 8
or r14d, eax
test esi, esi
je 0x1801a6b51
lea rax, [rbp + 0x40]
test rbx, rbx
je 0x1801a6b3e
movzx edx, byte [r15]
dec rbx
mov ecx, esi
inc r15
movzx eax, byte [rcx + rbp + 0x10]
xor al, dl
mov byte [r12], al
inc r12
xor byte [rcx + rbp + 0x40], dl
lea rax, [rbp + 0x40]
inc esi
and esi, 0xf
mov dword [rsp + 0x80], esi
jne 0x1801a6b07
jmp 0x1801a6b46
test esi, esi
jne 0x1801a6d08
mov rdx, r8
mov rcx, rax
call fcn.1801a7180
mov qword [rsp + 0x50], rdi
cmp rbx, 0xc00
jb 0x1801a6c0a
movabs rax, 0xaaaaaaaaaaaaaaab
mul rbx
mov rdi, rdx
shr rdi, 0xb
imul rax, rdi, 0xfffffffffffff400
add rbx, rax
mov qword [rsp + 0x98], rbx
mov rbx, qword [rsp + 0x30]
nop
mov r9d, 0xc00
lea rdx, [rbp + 0x60]
mov r8, r15
lea rcx, [rbp + 0x40]
call fcn.1801a7300
mov r9, rbx
mov qword [rsp + 0x20], rbp
mov r8d, 0xc0
mov rdx, r12
mov rcx, r15
call qword [rsp + 0xa0]
add r14d, 0xc0
add r12, 0xc00
mov eax, r14d
mov byte [rbp + 0xf], r14b
shr eax, 0x18
add r15, 0xc00
mov byte [rbp + 0xc], al
mov eax, r14d
shr eax, 0x10
mov byte [rbp + 0xd], al
mov eax, r14d
shr eax, 8
mov byte [rbp + 0xe], al
sub rdi, 1
jne 0x1801a6b90
mov rbx, qword [rsp + 0x98]
mov esi, dword [rsp + 0x80]
mov rax, rbx
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x98], rax
je 0x1801a6c82
mov rdi, rax
lea rdx, [rbp + 0x60]
mov r9, rax
shr rdi, 4
mov r8, r15
lea rcx, [rbp + 0x40]
call fcn.1801a7300
mov r9, qword [rsp + 0x30]
mov r8, rdi
mov rdx, r12
mov qword [rsp + 0x20], rbp
mov rcx, r15
call qword [rsp + 0xa0]
add r14d, edi
mov eax, r14d
mov byte [rbp + 0xf], r14b
shr eax, 0x18
mov byte [rbp + 0xc], al
mov eax, r14d
shr eax, 0x10
mov byte [rbp + 0xd], al
mov eax, r14d
shr eax, 8
mov byte [rbp + 0xe], al
mov rax, qword [rsp + 0x98]
add r12, rax
add r15, rax
sub rbx, rax
test rbx, rbx
je 0x1801a6cde
mov r8, qword [rsp + 0x30]
lea rdx, [rbp + 0x10]
mov rcx, rbp
call qword [rbp + 0x178]
inc r14d
mov eax, r14d
mov byte [rbp + 0xf], r14b
shr eax, 0x18
mov byte [rbp + 0xc], al
mov eax, r14d
shr eax, 0x10
mov byte [rbp + 0xd], al
mov eax, r14d
shr eax, 8
mov byte [rbp + 0xe], al
nop dword [rax + rax]
mov edx, esi
inc esi
movzx ecx, byte [rdx + r15]
movzx eax, byte [rbp + rdx + 0x10]
xor byte [rdx + rbp + 0x40], cl
xor al, cl
mov byte [rdx + r12], al
sub rbx, 1
jne 0x1801a6cc0
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov dword [rbp + 0x170], esi
mov r13, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x40]
add rsp, 0x58
pop r15
pop r12
pop rbp
pop rbx
ret
mov dword [rbp + 0x170], esi
xor eax, eax
jmp 0x1801a6ceb
mov eax, 0xffffffff
add rsp, 0x58
pop r15
pop r12
pop rbp
pop rbx
ret