Function at 0x18012bda0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x180201ac0]
xor rax, rsp
mov qword [rbp], rax
mov rbx, qword [rbp + 0x88]
mov rdi, rcx
mov r14, qword [rbp + 0x98]
mov rcx, rbx
mov qword [rsp + 0x38], r9
mov rsi, rdx
mov qword [rsp + 0x40], r8
xor r15d, r15d
call fcn.1800eb360
lea rcx, [rsp + 0x50]
mov r12, rax
lea r13d, [r15 + 1]
call fcn.1800ebaf0
mov r9, rbx
mov qword [rsp + 0x20], r15
mov r8, rsi
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.1800ebbe0
test eax, eax
je 0x18012c066
mov rax, qword [rbp + 0x90]
mov esi, dword [rbp + 0x80]
test rax, rax
je 0x18012c05b
nop word [rax + rax]
cmp r12, rax
mov byte [rsp + 0x33], r13b
mov rbx, r12
mov qword [rsp + 0x20], r15
cmova rbx, rax
lea rcx, [rsp + 0x50]
mov eax, r13d
xor r9d, r9d
shr eax, 0x18
xor r8d, r8d
mov byte [rsp + 0x30], al
xor edx, edx
mov eax, r13d
shr eax, 0x10
mov byte [rsp + 0x31], al
mov eax, r13d
shr eax, 8
mov byte [rsp + 0x32], al
call fcn.1800ebbe0
test eax, eax
je 0x18012c066
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
call fcn.1800ebe40
test eax, eax
je 0x18012c066
mov r8d, 4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1800ebe40
test eax, eax
je 0x18012c066
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800ebb20
test eax, eax
je 0x18012c066
test rbx, rbx
je 0x18012bef2
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.180135a90
mov edi, 1
cmp esi, edi
jbe 0x18012c03b
nop
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.1800ebbe0
test eax, eax
je 0x18012c066
mov r8, r12
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800ebe40
test eax, eax
je 0x18012c066
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800ebb20
test eax, eax
je 0x18012c066
mov rcx, r15
test rbx, rbx
je 0x18012c031
cmp rbx, 0x40
jb 0x18012c003
lea rdx, [r14 - 1]
add rdx, rbx
lea rax, [rbp + rbx - 0x41]
cmp r14, rax
ja 0x18012bf85
lea rax, [rbp - 0x40]
cmp rdx, rax
jae 0x18012c003
mov r9, rbx
and r9, 0xffffffffffffffc0
lea rdx, [rbp - 0x40]
sub rdx, r14
lea r8, [rbp - 0x30]
sub r8, r14
lea rax, [r14 + 0x20]
nop
movdqu xmm0, xmmword [rax - 0x20]
add rcx, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x20]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
movdqu xmm1, xmmword [r8 + rax - 0x60]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [r8 + rax - 0x40]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rcx, r9
jb 0x18012bfa0
cmp rcx, rbx
jae 0x18012c031
lea r8, [rbp - 0x40]
mov rdx, rbx
sub r8, r14
lea rax, [r14 + rcx]
sub rdx, rcx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x18012c020
inc edi
cmp edi, esi
jb 0x18012bf00
mov rax, qword [rbp + 0x90]
add r14, rbx
sub rax, rbx
inc r13d
mov qword [rbp + 0x90], rax
test rax, rax
jne 0x18012be40
test esi, esi
mov eax, 1
cmovne r15d, eax
lea rcx, [rsp + 0x50]
call fcn.1800eba60
mov eax, r15d
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180133630
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret