Function at 0x18006e860
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x80], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x18017a408]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r13, r9
mov r14, r8
mov qword [rsp + 0x20], r8
movzx ebx, dl
mov rbp, rcx
mov rdx, qword [rsp + 0xd0]
xor eax, eax
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x68], rax
lea r8, str.initCrypt_aes2
lea rcx, [r11 - 0x78]
call fcn.180039180
nop
mov eax, dword [r14 + 8]
sub eax, 2
mov ecx, ebx
mov r12d, 1
cmp eax, 4
cmovbe ecx, r12d
mov byte [rbp + 0xb0], cl
mov ecx, dword [r14 + 0x10]
mov r15d, 0x100
cmp ecx, 0xc1
jl 0x18006e8f9
mov dword [r14 + 0x10], r15d
jmp 0x18006e910
mov eax, 0x80
mov edx, 0xc0
cmp ecx, 0x81
cmovge eax, edx
mov dword [r14 + 0x10], eax
mov esi, dword [r14 + 0x10]
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rcx, [r14 + 0x18]
call fcn.180015b30
test rax, rax
je 0x18006e98f
lea rcx, [r14 + 0x18]
call fcn.180015e00
test eax, eax
je 0x18006e98f
lea rcx, [r14 + 0x18]
call fcn.180015e00
lea rcx, [r14 + 0x18]
cmp eax, 0x20
jbe 0x18006e96f
call fcn.180015b30
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
jmp 0x18006e98f
call fcn.180015e00
mov ebx, eax
lea rcx, [r14 + 0x18]
call fcn.180015b30
mov rdx, rax
mov r8d, ebx
lea rcx, [rsp + 0x48]
call fcn.1800caa00
mov ecx, esi
sub ecx, 0x80
je 0x18006e9c2
sub ecx, 0x40
je 0x18006e9b6
cmp ecx, 0x40
je 0x18006e9aa
xor bl, bl
jmp 0x18006eed0
mov dword [rbp + 0x2b4], 0xe
jmp 0x18006e9cc
mov dword [rbp + 0x2b4], 0xc
jmp 0x18006e9cc
mov dword [rbp + 0x2b4], 0xa
lea rax, [rbp + 0xb4]
xor edi, edi
mov r10d, edi
sar esi, 5
test esi, esi
jle 0x18006ea34
lea r9, [rsp + 0x4a]
lea rcx, [rsp + 0x4a]
mov r11, rax
sub r11, rcx
nop
lea ecx, [r10*4]
movsxd rdx, ecx
movzx r8d, byte [rsp + rdx + 0x48]
shl r8d, 8
movzx ecx, byte [r9 - 1]
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r9]
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r9 + 1]
or r8d, ecx
mov dword [r11 + r9], r8d
inc r10d
lea r9, [r9 + 4]
cmp r10d, esi
jl 0x18006e9f0
mov ecx, dword [rbp + 0x2b4]
lea rsi, [0x180000000]
cmp ecx, 0xa
jne 0x18006eae2
lea rbx, [0x180132e70]
lea r11, [0x180132e98]
nop dword [rax + rax]
mov r10d, dword [rax + 0xc]
mov ecx, r10d
shr ecx, 0x10
movzx edx, cl
mov r9d, dword [rsi + rdx*4 + 0x130670]
shl r9d, 8
mov ecx, r10d
shr ecx, 8
movzx edx, cl
xor r9d, dword [rsi + rdx*4 + 0x130670]
shl r9d, 8
movzx ecx, r10b
xor r9d, dword [rsi + rcx*4 + 0x130670]
shl r9d, 8
mov ecx, r10d
shr ecx, 0x18
movzx edx, cl
xor r9d, dword [rsi + rdx*4 + 0x130670]
xor r9d, dword [rax]
xor r9d, dword [rbx]
mov dword [rax + 0x10], r9d
mov ecx, dword [rax + 4]
xor ecx, r9d
mov dword [rax + 0x14], ecx
mov edx, dword [rax + 8]
xor edx, ecx
mov dword [rax + 0x18], edx
xor edx, r10d
mov dword [rax + 0x1c], edx
add rbx, 4
add rax, 0x10
cmp rbx, r11
jl 0x18006ea60
jmp 0x18006eca5
cmp ecx, 0xc
jne 0x18006eb96
lea rbx, [0x180132e70]
lea r11, [0x180132e90]
nop dword [rax]
mov r10d, dword [rax + 0x14]
mov ecx, r10d
shr ecx, 0x10
movzx edx, cl
mov r9d, dword [rsi + rdx*4 + 0x130670]
shl r9d, 8
mov ecx, r10d
shr ecx, 8
movzx edx, cl
xor r9d, dword [rsi + rdx*4 + 0x130670]
shl r9d, 8
movzx ecx, r10b
xor r9d, dword [rsi + rcx*4 + 0x130670]
shl r9d, 8
mov ecx, r10d
shr ecx, 0x18
movzx edx, cl
xor r9d, dword [rsi + rdx*4 + 0x130670]
xor r9d, dword [rax]
xor r9d, dword [rbx]
mov dword [rax + 0x18], r9d
mov ecx, dword [rax + 4]
xor ecx, r9d
mov dword [rax + 0x1c], ecx
mov edx, dword [rax + 8]
xor edx, ecx
mov dword [rax + 0x20], edx
mov ecx, dword [rax + 0xc]
xor ecx, edx
mov dword [rax + 0x24], ecx
mov edx, dword [rax + 0x10]
xor edx, ecx
mov dword [rax + 0x28], edx
xor edx, r10d
mov dword [rax + 0x2c], edx
add rbx, 4
add rax, 0x18
cmp rbx, r11
jl 0x18006eb00
jmp 0x18006eca5
cmp ecx, 0xe
jne 0x18006eca5
lea rbx, [0x180132e70]
lea r14, [0x180132e8c]
nop dword [rax]
mov r11d, dword [rax + 0x1c]
mov ecx, r11d
shr ecx, 0x10
movzx edx, cl
mov r8d, dword [rsi + rdx*4 + 0x130670]
shl r8d, 8
mov ecx, r11d
shr ecx, 8
movzx edx, cl
xor r8d, dword [rsi + rdx*4 + 0x130670]
shl r8d, 8
movzx ecx, r11b
xor r8d, dword [rsi + rcx*4 + 0x130670]
shl r8d, 8
mov ecx, r11d
shr ecx, 0x18
movzx edx, cl
xor r8d, dword [rsi + rdx*4 + 0x130670]
xor r8d, dword [rax]
xor r8d, dword [rbx]
mov dword [rax + 0x20], r8d
mov ecx, dword [rax + 4]
xor ecx, r8d
mov dword [rax + 0x24], ecx
mov edx, dword [rax + 8]
xor edx, ecx
mov dword [rax + 0x28], edx
mov r8d, dword [rax + 0xc]
xor r8d, edx
mov dword [rax + 0x2c], r8d
mov ecx, r8d
shr ecx, 0x18
movzx edx, cl
mov r9d, dword [rsi + rdx*4 + 0x130670]
shl r9d, 8
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
xor r9d, dword [rsi + rdx*4 + 0x130670]
shl r9d, 8
shr r8d, 8
movzx ecx, r8b
xor r9d, dword [rsi + rcx*4 + 0x130670]
shl r9d, 8
movzx ecx, byte [rax + 0x2c]
xor r9d, dword [rsi + rcx*4 + 0x130670]
xor r9d, dword [rax + 0x10]
mov dword [rax + 0x30], r9d
mov ecx, dword [rax + 0x14]
xor ecx, r9d
mov dword [rax + 0x34], ecx
mov edx, dword [rax + 0x18]
xor edx, ecx
mov dword [rax + 0x38], edx
xor r11d, edx
mov dword [rax + 0x3c], r11d
add rbx, 4
add rax, 0x20
cmp rbx, r14
jl 0x18006ebb0
mov r14, qword [rsp + 0x20]
cmp byte [0x1801812f0], dil
jne 0x18006ed07
nop
mov ecx, dword [rdi + rsi + 0x130670]
lea rdx, [rcx*4]
mov ecx, dword [rdx + rsi + 0x131e70]
mov dword [rdi + rsi + 0x1802f0], ecx
mov ecx, dword [rdx + rsi + 0x132270]
mov dword [rdi + rsi + 0x1806f0], ecx
mov ecx, dword [rdx + rsi + 0x132670]
mov dword [rdi + rsi + 0x180af0], ecx
mov ecx, dword [rdx + rsi + 0x132a70]
mov dword [rdi + rsi + 0x180ef0], ecx
lea rdi, [rdi + 4]
sub r15, r12
jne 0x18006ecb0
mov byte [0x1801812f0], r12b
lea r11, [rbp + 0x1b4]
mov ecx, dword [rax]
mov dword [r11], ecx
mov ecx, dword [rax + 4]
mov dword [r11 + 4], ecx
mov ecx, dword [rax + 8]
mov dword [r11 + 8], ecx
mov ecx, dword [rax + 0xc]
mov dword [r11 + 0xc], ecx
add r11, 0x10
add rax, 0x10
cmp dword [rbp + 0x2b4], r12d
jle 0x18006ee73
nop dword [rax]
mov r10d, dword [rax - 0x20]
mov ecx, r10d
shr ecx, 0x18
movzx r8d, cl
mov ecx, r10d
shr ecx, 0x10
movzx edx, cl
mov r9d, dword [rsi + r8*4 + 0x1802f0]
xor r9d, dword [rsi + rdx*4 + 0x1806f0]
shr r10d, 8
movzx ecx, r10b
xor r9d, dword [rsi + rcx*4 + 0x180af0]
movzx ecx, byte [rax - 0x20]
xor r9d, dword [rsi + rcx*4 + 0x180ef0]
mov dword [r11], r9d
mov r10d, dword [rax - 0x1c]
mov ecx, r10d
shr ecx, 0x18
movzx r8d, cl
mov ecx, r10d
shr ecx, 0x10
movzx edx, cl
mov r9d, dword [rsi + r8*4 + 0x1802f0]
xor r9d, dword [rsi + rdx*4 + 0x1806f0]
shr r10d, 8
movzx ecx, r10b
xor r9d, dword [rsi + rcx*4 + 0x180af0]
movzx ecx, byte [rax - 0x1c]
xor r9d, dword [rsi + rcx*4 + 0x180ef0]
mov dword [r11 + 4], r9d
mov r10d, dword [rax - 0x18]
mov ecx, r10d
shr ecx, 0x18
movzx r8d, cl
mov ecx, r10d
shr ecx, 0x10
movzx edx, cl
mov r9d, dword [rsi + r8*4 + 0x1802f0]
xor r9d, dword [rsi + rdx*4 + 0x1806f0]
shr r10d, 8
movzx ecx, r10b
xor r9d, dword [rsi + rcx*4 + 0x180af0]
movzx ecx, byte [rax - 0x18]
xor r9d, dword [rsi + rcx*4 + 0x180ef0]
mov dword [r11 + 8], r9d
mov r10d, dword [rax - 0x14]
mov ecx, r10d
shr ecx, 0x18
movzx r8d, cl
mov ecx, r10d
shr ecx, 0x10
movzx edx, cl
mov r9d, dword [rsi + r8*4 + 0x1802f0]
xor r9d, dword [rsi + rdx*4 + 0x1806f0]
shr r10d, 8
movzx ecx, r10b
xor r9d, dword [rsi + rcx*4 + 0x180af0]
movzx ecx, byte [rax - 0x14]
xor r9d, dword [rsi + rcx*4 + 0x180ef0]
mov dword [r11 + 0xc], r9d
add r11, 0x10
add rax, 0xfffffffffffffff0
inc r12d
cmp r12d, dword [rbp + 0x2b4]
jl 0x18006ed40
mov ecx, dword [rax - 0x20]
mov dword [r11], ecx
mov ecx, dword [rax - 0x1c]
mov dword [r11 + 4], ecx
mov ecx, dword [rax - 0x18]
mov dword [r11 + 8], ecx
mov ecx, dword [rax - 0x14]
mov dword [r11 + 0xc], ecx
test r13, r13
je 0x18006eece
mov eax, dword [r14 + 8]
sub eax, 3
cmp eax, 1
ja 0x18006eece
lea rbx, [r14 + 0x50]
mov rcx, rbx
call fcn.180015e00
mov edi, eax
mov rcx, rbx
call fcn.180015b30
mov rdx, rax
lea rcx, [r13 + 0x4a0]
mov r9d, dword [rbp + 0xa8]
mov r8d, edi
call fcn.1800bb130
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.1800392a0
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800c9b90
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret