Function at 0x1800aebe0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov esi, r8d
mov edi, r8d
shr esi, 2
mov r12, r9
mov r8d, r8d
mov rbx, rcx
mov dword [rcx + 0xf4], edi
lea eax, [rsi + 6]
mov dword [rcx + 0xf0], eax
call fcn.1800baef0
test esi, esi
je 0x1800ae537
mov rdx, rbx
mov r8d, esi
mov eax, dword [rdx]
mov ecx, eax
ror ecx, 8
rol eax, 8
and ecx, 0xff00ff00
and eax, 0xff00ff
or ecx, eax
mov dword [rdx], ecx
lea rdx, [rdx + 4]
sub r8, 1
jne 0x1800ae514
cmp edi, 0x10
je 0x1800ae823
cmp edi, 0x18
je 0x1800ae6eb
cmp edi, 0x20
je 0x1800ae558
mov eax, 0xffffff53
jmp 0x1800aebc2
mov edx, dword [rbx + 0x1c]
lea r10, [0x180000000]
mov eax, edx
lea r15, [rbx + 8]
shr eax, 0x10
lea r9, [rbx + 0x30]
movzx ecx, al
lea rdi, [0x1800fd304]
mov eax, edx
mov esi, 0xff000000
shr rax, 0x18
mov ebp, 0xff0000
mov r14d, 0xff00
mov r11d, 6
mov r8d, dword [r10 + rcx*4 + 0xfeb30]
btc r8d, 0x18
movzx eax, byte [r10 + rax*4 + 0xfe730]
and r8d, esi
xor r8d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0xfef30]
and eax, ebp
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0xfe330]
and ecx, r14d
xor r8d, ecx
xor r8d, dword [rbx]
mov dword [rbx + 0x20], r8d
xor r8d, dword [rbx + 4]
mov dword [rbx + 0x24], r8d
xor r8d, dword [r15]
mov dword [rbx + 0x28], r8d
xor r8d, dword [rbx + 0xc]
mov dword [rbx + 0x2c], r8d
mov edx, dword [r9 - 4]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
mov r8d, dword [r10 + rcx*4 + 0xfef30]
mov eax, dword [r10 + rax*4 + 0xfeb30]
and r8d, ebp
and eax, esi
xor r8d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0xfe330]
and eax, r14d
xor r8d, eax
movzx eax, dl
movzx eax, byte [r10 + rax*4 + 0xfe730]
xor r8d, eax
xor r8d, dword [r9 - 0x20]
mov dword [r9], r8d
xor r8d, dword [r9 - 0x1c]
mov dword [r9 + 4], r8d
xor r8d, dword [r9 - 0x18]
mov dword [r9 + 8], r8d
xor r8d, dword [r9 - 0x14]
mov dword [r9 + 0xc], r8d
lea r9, [r9 + 0x20]
mov edx, dword [r9 - 0x14]
mov eax, edx
shr rax, 0x18
movzx r8d, byte [r10 + rax*4 + 0xfe730]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0xfef30]
and eax, ebp
xor r8d, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0xfeb30]
and eax, esi
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0xfe330]
and ecx, r14d
xor r8d, ecx
xor r8d, dword [r9 - 0x30]
xor r8d, dword [rdi]
lea rdi, [rdi + 4]
mov dword [r9 - 0x10], r8d
xor r8d, dword [r9 - 0x2c]
mov dword [r9 - 0xc], r8d
xor r8d, dword [r9 - 0x28]
mov dword [r9 - 8], r8d
xor r8d, dword [r9 - 0x24]
mov dword [r9 - 4], r8d
sub r11, 1
jne 0x1800ae5f5
jmp 0x1800ae940
mov edx, dword [rbx + 0x14]
lea r10, [0x180000000]
mov eax, edx
lea r15, [rbx + 8]
shr eax, 0x10
lea r9, [rbx + 0x28]
movzx ecx, al
lea rdi, [0x1800fd304]
mov eax, edx
mov esi, 0xff000000
shr rax, 0x18
mov ebp, 0xff0000
mov r14d, 0xff00
mov r11d, 7
mov r8d, dword [r10 + rcx*4 + 0xfeb30]
btc r8d, 0x18
movzx eax, byte [r10 + rax*4 + 0xfe730]
and r8d, esi
xor r8d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0xfef30]
and eax, ebp
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0xfe330]
and ecx, r14d
xor r8d, ecx
xor r8d, dword [rbx]
mov dword [rbx + 0x18], r8d
xor r8d, dword [rbx + 4]
mov dword [rbx + 0x1c], r8d
xor r8d, dword [r15]
mov dword [rbx + 0x20], r8d
xor r8d, dword [rbx + 0xc]
mov dword [rbx + 0x24], r8d
mov eax, dword [r9 - 0x18]
xor eax, dword [r9 - 4]
mov dword [r9], eax
xor eax, dword [r9 - 0x14]
mov dword [r9 + 4], eax
lea r9, [r9 + 0x18]
mov edx, dword [r9 - 0x14]
mov eax, edx
shr rax, 0x18
movzx r8d, byte [r10 + rax*4 + 0xfe730]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0xfef30]
and eax, ebp
xor r8d, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0xfeb30]
and eax, esi
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0xfe330]
and ecx, r14d
xor r8d, ecx
xor r8d, dword [r9 - 0x28]
xor r8d, dword [rdi]
lea rdi, [rdi + 4]
mov dword [r9 - 0x10], r8d
xor r8d, dword [r9 - 0x24]
mov dword [r9 - 0xc], r8d
xor r8d, dword [r9 - 0x20]
mov dword [r9 - 8], r8d
xor r8d, dword [r9 - 0x1c]
mov dword [r9 - 4], r8d
sub r11, 1
jne 0x1800ae788
jmp 0x1800ae940
mov r8d, dword [rbx + 0xc]
lea r10, [0x180000000]
mov eax, r8d
lea r11, [rbx + 0x10]
shr eax, 0x10
lea r15, [rbx + 8]
movzx ecx, al
lea rdi, [0x1800fd304]
mov eax, r8d
mov esi, 0xff000000
shr rax, 0x18
mov ebp, 0xff0000
mov r14d, 0xff00
mov r13d, 9
mov edx, dword [r10 + rcx*4 + 0xfeb30]
btc edx, 0x18
movzx eax, byte [r10 + rax*4 + 0xfe730]
and edx, esi
xor edx, eax
mov eax, r8d
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0xfef30]
and eax, ebp
xor edx, eax
movzx eax, r8b
mov ecx, dword [r10 + rax*4 + 0xfe330]
and ecx, r14d
xor edx, ecx
xor edx, dword [rbx]
mov dword [r11], edx
xor edx, dword [rbx + 4]
mov dword [rbx + 0x14], edx
xor edx, dword [r15]
mov dword [rbx + 0x18], edx
xor edx, r8d
mov dword [rbx + 0x1c], edx
mov r9d, dword [r11 + 0xc]
mov rdx, r11
add r11, 0x10
mov eax, r9d
shr rax, 0x18
movzx r8d, byte [r10 + rax*4 + 0xfe730]
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0xfef30]
and eax, ebp
xor r8d, eax
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0xfeb30]
and eax, esi
xor r8d, eax
movzx eax, r9b
mov ecx, dword [r10 + rax*4 + 0xfe330]
and ecx, r14d
xor r8d, ecx
xor r8d, dword [rdx]
xor r8d, dword [rdi]
lea rdi, [rdi + 4]
mov dword [r11], r8d
xor r8d, dword [r11 - 0xc]
mov dword [r11 + 4], r8d
xor r8d, dword [r11 - 8]
mov dword [r11 + 8], r8d
xor r8d, r9d
mov dword [r11 + 0xc], r8d
sub r13, 1
jne 0x1800ae8b9
cmp dword [rsp + 0x70], 1
jne 0x1800aeb9d
mov r9d, dword [rbx + 0xf0]
shl r9d, 2
test r9d, r9d
je 0x1800ae9d5
lea edi, [r9 + 2]
mov esi, 0xfffffffc
mov r11d, 2
lea eax, [r11 - 2]
mov edx, dword [rbx + rax*4]
mov r8d, eax
mov eax, dword [rbx + r9*4]
mov dword [rbx + r8*4], eax
lea eax, [r11 - 1]
mov r8d, eax
mov dword [rbx + r9*4], edx
add r9d, esi
mov edx, dword [rbx + rax*4]
lea eax, [rdi - 1]
mov ecx, eax
mov eax, dword [rbx + rax*4]
mov dword [rbx + r8*4], eax
mov eax, dword [rbx + rdi*4]
mov dword [rbx + rcx*4], edx
mov r8d, r11d
mov edx, dword [rbx + r8*4]
mov dword [rbx + r8*4], eax
lea eax, [r11 + 1]
mov r8d, eax
add r11d, 4
mov dword [rbx + rdi*4], edx
mov edx, dword [rbx + rax*4]
lea eax, [rdi + 1]
mov ecx, eax
add edi, esi
mov eax, dword [rbx + rax*4]
mov dword [rbx + r8*4], eax
lea eax, [r11 - 2]
mov dword [rbx + rcx*4], edx
cmp eax, r9d
jb 0x1800ae96a
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jbe 0x1800aeb9d
lea r15, [r15 + 0x10]
inc r11d
mov r8d, dword [r15 - 8]
mov eax, r8d
shr rax, 0x18
movzx edx, byte [r10 + rax*4 + 0xfe730]
mov eax, r8d
shr eax, 0x10
movzx ecx, al
shr r8d, 8
mov r9d, dword [r10 + rdx*4 + 0xfd330]
movzx eax, byte [r10 + rcx*4 + 0xfe730]
xor r9d, dword [r10 + rax*4 + 0xfd730]
movzx eax, r8b
mov r8d, dword [r15 - 4]
movzx ecx, byte [r10 + rax*4 + 0xfe730]
movzx eax, byte [r15 - 8]
xor r9d, dword [r10 + rcx*4 + 0xfdb30]
movzx ecx, byte [r10 + rax*4 + 0xfe730]
mov eax, r8d
shr rax, 0x18
xor r9d, dword [r10 + rcx*4 + 0xfdf30]
movzx edx, byte [r10 + rax*4 + 0xfe730]
mov eax, r8d
shr eax, 0x10
movzx ecx, al
mov dword [r15 - 8], r9d
mov r9d, dword [r10 + rdx*4 + 0xfd330]
shr r8d, 8
movzx eax, byte [r10 + rcx*4 + 0xfe730]
xor r9d, dword [r10 + rax*4 + 0xfd730]
movzx eax, r8b
mov r8d, dword [r15]
movzx ecx, byte [r10 + rax*4 + 0xfe730]
movzx eax, byte [r15 - 4]
xor r9d, dword [r10 + rcx*4 + 0xfdb30]
movzx ecx, byte [r10 + rax*4 + 0xfe730]
mov eax, r8d
shr rax, 0x18
xor r9d, dword [r10 + rcx*4 + 0xfdf30]
movzx edx, byte [r10 + rax*4 + 0xfe730]
mov eax, r8d
shr eax, 0x10
movzx ecx, al
mov dword [r15 - 4], r9d
mov r9d, dword [r10 + rdx*4 + 0xfd330]
shr r8d, 8
movzx eax, byte [r10 + rcx*4 + 0xfe730]
xor r9d, dword [r10 + rax*4 + 0xfd730]
movzx eax, r8b
mov r8d, dword [r15 + 4]
movzx ecx, byte [r10 + rax*4 + 0xfe730]
movzx eax, byte [r15]
xor r9d, dword [r10 + rcx*4 + 0xfdb30]
movzx ecx, byte [r10 + rax*4 + 0xfe730]
mov eax, r8d
shr rax, 0x18
xor r9d, dword [r10 + rcx*4 + 0xfdf30]
movzx edx, byte [r10 + rax*4 + 0xfe730]
mov eax, r8d
shr eax, 0x10
mov dword [r15], r9d
movzx ecx, al
mov r9d, dword [r10 + rdx*4 + 0xfd330]
shr r8d, 8
movzx eax, byte [r10 + rcx*4 + 0xfe730]
xor r9d, dword [r10 + rax*4 + 0xfd730]
movzx eax, r8b
movzx ecx, byte [r10 + rax*4 + 0xfe730]
movzx eax, byte [r15 + 4]
xor r9d, dword [r10 + rcx*4 + 0xfdb30]
movzx ecx, byte [r10 + rax*4 + 0xfe730]
xor r9d, dword [r10 + rcx*4 + 0xfdf30]
mov dword [r15 + 4], r9d
cmp r11d, dword [rbx + 0xf0]
jb 0x1800ae9e8
lea rcx, [rbx + 0xf8]
mov r8d, 0x10
test r12, r12
je 0x1800aebb9
mov rdx, r12
call fcn.1800baef0
jmp 0x1800aebc0
xor edx, edx
call fcn.1800bb5a0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test rcx, rcx
je 0x1800aec11
lea eax, [r8 - 0x10]
test eax, 0xffffffe7
jne 0x1800aec11
cmp r8d, 0x28
je 0x1800aec11
mov eax, r8d
mov dword [rcx + 0xf4], r8d
shr eax, 2
add eax, 6
mov dword [rcx + 0xf0], eax
jmp 0x1800ae4c8
mov eax, 0xffffff53
ret