Function at 0x18000c920
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1800e1080]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov ebx, dword [rcx + 0x1c]
xor r14d, r14d
mov rdi, rcx
sub ebx, 6
je 0x18000c9c3
mov r8d, ebx
lea rcx, [rbp - 0x30]
shl r8, 2
call fcn.18008b270
xor r11d, r11d
xor eax, eax
xor r9d, r9d
cmp r11d, dword [rdi + 0x1c]
ja 0x18000cb88
cmp r9d, ebx
jae 0x18000c9a4
lea r10, [rbp - 0x30]
lea r10, [r10 + r9*4]
nop dword [rax + rax]
cmp eax, 4
jae 0x18000c9a4
mov ecx, eax
inc r9d
mov edx, r11d
inc eax
lea r8, [rcx + rdx*4]
mov ecx, dword [r10]
add r10, 4
mov dword [rdi + r8*4 + 0x20], ecx
cmp r9d, ebx
jb 0x18000c980
cmp eax, 4
lea ecx, [r11 + 1]
cmovne ecx, r11d
mov r11d, ecx
xor ecx, ecx
cmp eax, 4
cmovne ecx, eax
mov eax, ecx
cmp r9d, ebx
jb 0x18000c964
jmp 0x18000c9c8
xor r11d, r11d
xor eax, eax
cmp r11d, dword [rdi + 0x1c]
ja 0x18000cb88
mov qword [rsp + 0x78], rsi
lea esi, [rbx - 1]
mov qword [rsp + 0x80], r15
lea r15, sym.ACE_DFS64.dll_Ordinal_10007
nop dword [rax]
movzx ecx, byte [rbp + rsi*4 - 0x2f]
movzx r8d, byte [rbp - 0x30]
mov edx, dword [r15 + r14*4 + 0xcd4e0]
lea r14d, [r14 + 1]
xor r8b, byte [rcx + r15 + 0xcd560]
mov byte [rbp - 0x30], r8b
xor dl, r8b
movzx ecx, byte [rbp + rsi*4 - 0x2e]
movzx ecx, byte [rcx + r15 + 0xcd560]
xor byte [rbp - 0x2f], cl
movzx ecx, byte [rbp + rsi*4 - 0x2d]
movzx ecx, byte [rcx + r15 + 0xcd560]
xor byte [rbp - 0x2e], cl
movzx ecx, byte [rbp + rsi*4 - 0x30]
mov byte [rbp - 0x30], dl
movzx ecx, byte [rcx + r15 + 0xcd560]
xor byte [rbp - 0x2d], cl
cmp ebx, 8
je 0x18000ca85
cmp ebx, 1
jbe 0x18000ca78
lea rdx, [rbp - 0x2c]
mov r9, rsi
lea r8, [rbp - 0x30]
mov ecx, dword [r8]
lea r8, [r8 + 4]
xor dword [rdx], ecx
lea rdx, [rdx + 4]
sub r9, 1
jne 0x18000ca60
jmp 0x18000cb13
test ebx, ebx
je 0x18000cb71
jmp 0x18000cb13
lea rdx, [rbp - 0x2c]
mov r9d, 3
lea r8, [rbp - 0x30]
mov ecx, dword [r8]
lea r8, [r8 + 4]
xor dword [rdx], ecx
lea rdx, [rdx + 4]
sub r9, 1
jne 0x18000ca93
movzx ecx, byte [rbp - 0x24]
lea rdx, [rbp - 0x1c]
lea r8, [rbp - 0x20]
mov r9d, 3
movzx ecx, byte [rcx + r15 + 0xcd560]
xor byte [rbp - 0x20], cl
movzx ecx, byte [rbp - 0x23]
movzx ecx, byte [rcx + r15 + 0xcd560]
xor byte [rbp - 0x1f], cl
movzx ecx, byte [rbp - 0x22]
movzx ecx, byte [rcx + r15 + 0xcd560]
xor byte [rbp - 0x1e], cl
movzx ecx, byte [rbp - 0x21]
movzx ecx, byte [rcx + r15 + 0xcd560]
xor byte [rbp - 0x1d], cl
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [r8]
lea r8, [r8 + 4]
xor dword [rdx], ecx
lea rdx, [rdx + 4]
sub r9, 1
jne 0x18000cb00
xor r9d, r9d
cmp r11d, dword [rdi + 0x1c]
ja 0x18000cb7b
cmp r9d, ebx
jae 0x18000cb54
lea r10, [rbp - 0x30]
lea r10, [r10 + r9*4]
nop dword [rax]
cmp eax, 4
jae 0x18000cb54
mov ecx, eax
inc r9d
mov edx, r11d
inc eax
lea r8, [rcx + rdx*4]
mov ecx, dword [r10]
add r10, 4
mov dword [rdi + r8*4 + 0x20], ecx
cmp r9d, ebx
jb 0x18000cb30
cmp eax, 4
lea ecx, [r11 + 1]
cmovne ecx, r11d
mov r11d, ecx
xor ecx, ecx
cmp eax, 4
cmovne ecx, eax
mov eax, ecx
cmp r9d, ebx
jb 0x18000cb16
cmp r11d, dword [rdi + 0x1c]
jbe 0x18000c9f0
mov r15, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180088650
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret