Function at 0x1801a6750
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push r12
push r15
mov eax, 0x58
call fcn.180131170
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
mov rsi, r9
mov qword [rsp + 0x30], rax
add rcx, r9
movabs rax, 0xfffffffe0
mov r15, r8
mov r12, rdx
cmp rcx, rax
ja 0x1801a6a25
cmp rcx, r9
jb 0x1801a6a25
cmp dword [rbx + 0x174], 0
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x50], rdi
lea rdi, [rbx + 0x60]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov qword [rbx + 0x38], rcx
je 0x1801a67e4
mov rdx, rdi
lea rcx, [rbx + 0x40]
call fcn.1801a7180
mov dword [rbx + 0x174], 0
jmp 0x1801a67e9
mov qword [rsp + 0x38], rdi
movzx eax, byte [rbx + 0xd]
mov ebp, dword [rbx + 0x170]
movzx r14d, byte [rbx + 0xc]
shl r14d, 8
or r14d, eax
mov dword [rsp + 0x80], ebp
movzx eax, byte [rbx + 0xe]
shl r14d, 8
or r14d, eax
movzx eax, byte [rbx + 0xf]
shl r14d, 8
or r14d, eax
test ebp, ebp
je 0x1801a686c
lea r8, [rbx + 0x40]
test rsi, rsi
je 0x1801a6858
mov ecx, ebp
lea r8, [rbx + 0x40]
dec rsi
movzx eax, byte [rcx + rbx + 0x10]
xor al, byte [r12]
inc r12
mov byte [r15], al
inc r15
xor byte [rcx + r8], al
inc ebp
and ebp, 0xf
mov dword [rsp + 0x80], ebp
jne 0x1801a6824
jmp 0x1801a6860
test ebp, ebp
jne 0x1801a69fb
lea rdx, [rbx + 0x60]
mov rcx, r8
call fcn.1801a7180
mov r10, qword [rsp + 0xa0]
cmp rsi, 0xc00
jb 0x1801a692d
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
mov rbp, rdx
shr rbp, 0xb
imul rax, rbp, 0xfffffffffffff400
add rsi, rax
mov qword [rsp + 0x98], rsi
mov rsi, qword [rsp + 0x30]
nop dword [rax]
mov r9, rsi
mov qword [rsp + 0x20], rbx
mov r8d, 0xc0
mov rdx, r15
mov rcx, r12
call r10
add r14d, 0xc0
lea rcx, [rbx + 0x40]
mov eax, r14d
mov byte [rbx + 0xf], r14b
shr eax, 0x18
mov r9d, 0xc00
mov byte [rbx + 0xc], al
mov r8, r15
mov eax, r14d
mov rdx, rdi
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, r14d
shr eax, 8
mov byte [rbx + 0xe], al
call fcn.1801a7300
mov r10, qword [rsp + 0xa0]
add r15, 0xc00
add r12, 0xc00
sub rbp, 1
jne 0x1801a68b0
mov rsi, qword [rsp + 0x98]
mov ebp, dword [rsp + 0x80]
mov rax, rsi
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x98], rax
je 0x1801a69a2
mov r9, qword [rsp + 0x30]
mov rdi, rax
shr rdi, 4
mov rdx, r15
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r12
call r10
mov rdx, qword [rsp + 0x38]
lea rcx, [rbx + 0x40]
add r14d, edi
mov r8, r15
mov rdi, qword [rsp + 0x98]
mov eax, r14d
shr eax, 0x18
mov r9, rdi
mov byte [rbx + 0xc], al
add r12, rdi
mov eax, r14d
mov byte [rbx + 0xf], r14b
shr eax, 0x10
sub rsi, rdi
mov byte [rbx + 0xd], al
mov eax, r14d
shr eax, 8
mov byte [rbx + 0xe], al
call fcn.1801a7300
add r15, rdi
test rsi, rsi
je 0x1801a69fb
mov r8, qword [rsp + 0x30]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rbx + 0x178]
inc r14d
mov eax, r14d
mov byte [rbx + 0xf], r14b
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, r14d
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, r14d
shr eax, 8
mov byte [rbx + 0xe], al
nop dword [rax + rax]
mov ecx, ebp
inc ebp
movzx eax, byte [rbx + rcx + 0x10]
xor al, byte [rcx + r12]
mov byte [rcx + r15], al
xor byte [rcx + rbx + 0x40], al
sub rsi, 1
jne 0x1801a69e0
mov r13, qword [rsp + 0x48]
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x40]
mov dword [rbx + 0x170], ebp
mov rbp, qword [rsp + 0x88]
add rsp, 0x58
pop r15
pop r12
pop rsi
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x58
pop r15
pop r12
pop rsi
pop rbx
ret