Function at 0x1800089b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x408]
sub rsp, 0x4e0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r12, rcx
lea rcx, [rsp + 0x30]
call fcn.180002ca0
nop
mov r15, qword [rsp + 0x40]
lea rcx, [r15 + 1]
call fcn.18001f3bc
mov r13, rax
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
lea r8, [r15 + 1]
mov rcx, rax
call fcn.1800208a0
lea rcx, [r15 + 1]
call fcn.18001f3bc
mov rsi, rax
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
lea r8, [r15 + 1]
mov rcx, rax
call fcn.1800208a0
lea rax, vtable.AES.0
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x68], 0
xor ebx, ebx
mov qword [rbp + 0x32c], rbx
mov dword [rbp + 0x334], ebx
lea rcx, [rsp + 0x60]
call fcn.180002560
cmp byte [rsp + 0x68], bl
je 0x180008be9
test r15, r15
je 0x180008be9
movsxd rcx, dword [rbp + 0x330]
xor edx, edx
mov rax, r15
div rcx
test rdx, rdx
jne 0x180008be9
mov r14d, ebx
mov rdi, r13
mov rbx, rsi
test rax, rax
je 0x180008be7
nop dword [rax + rax]
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1800021f0
lea r8, [rbp + 0x358]
mov rax, rbx
movsxd r9, dword [rbp + 0x330]
cmp byte [rsp + 0x68], 0
je 0x180008bb1
xor r10d, r10d
test r9d, r9d
jle 0x180008bb1
cmp r9d, 0x40
jb 0x180008b8e
lea ecx, [r9 - 1]
movsxd rdx, ecx
lea r11, [rdx + rbx]
lea rcx, [rbp + 0x358]
add rcx, rdx
cmp rbx, rcx
ja 0x180008b18
lea rcx, [rbp + 0x358]
cmp r11, rcx
jae 0x180008b8e
mov ecx, r9d
and ecx, 0x8000003f
jge 0x180008b2a
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, r9d
sub edx, ecx
nop
movdqu xmm1, xmmword [rax]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm1, xmmword [rax + 0x10]
movdqu xmm0, xmmword [r8 + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
movdqu xmm1, xmmword [rax + 0x20]
movdqu xmm0, xmmword [r8 + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
movdqu xmm1, xmmword [rax + 0x30]
movdqu xmm0, xmmword [r8 + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax + 0x30], xmm1
add r8, 0x40
add rax, 0x40
add r10d, 0x40
cmp r10d, edx
jl 0x180008b30
cmp r10d, r9d
jge 0x180008bb1
sub r8, rax
mov edx, r9d
sub edx, r10d
nop dword [rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x180008ba0
mov r8, r9
mov rdx, rdi
lea rcx, [rbp + 0x358]
call fcn.1800208a0
movsxd rcx, dword [rbp + 0x330]
add rdi, rcx
add rbx, rcx
inc r14d
xor edx, edx
mov rax, r15
div rcx
movsxd rcx, r14d
cmp rcx, rax
jb 0x180008ab0
xor ebx, ebx
movsx r9, byte [rsi + r15 - 1]
lea edx, [r15 - 1]
mov r8, r15
sub r8, r9
movsxd rax, edx
cmp rax, r8
jb 0x180008c29
lea rcx, [rax + rsi]
cmp byte [rcx], r9b
jne 0x180008c1c
mov byte [rcx], 0
dec edx
dec rcx
movsxd rax, edx
cmp rax, r8
jae 0x180008c05
jmp 0x180008c29
mov r8, r15
xor edx, edx
mov rcx, rsi
call fcn.180020d00
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], select
mov byte [r12], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], 0
jne 0x180008c43
mov rdx, rsi
mov rcx, r12
call fcn.1800031a0
mov rcx, r13
call fcn.18001ef68
mov rcx, rsi
call fcn.18001ef68
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180008ca2
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008c9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180008cc6
call fcn.18001ef68
mov rax, r12
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180023418
int3