Function at 0x180005cd0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x180021050]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0xe8]
mov rdi, qword [rbp + 0xf8]
xor r14d, r14d
mov qword [rsp + 0x38], r9
mov r9, qword [rbp + 0xd8]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0xf0]
mov dword [rsp + 0x18], r8d
mov r8, qword [rbp + 0xe0]
mov qword [rsp + 0x50], rax
mov r11d, edx
mov r10, rcx
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x30], rdi
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
mov qword [rbp], r14
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
nop dword [rax]
mov eax, dword [rcx]
add rcx, 4
inc dword [rbp + rax*4 - 0x20]
dec edx
jne 0x180005d60
cmp dword [rbp - 0x20], r11d
jne 0x180005d81
mov qword [r9], r14
xor eax, eax
mov dword [r8], r14d
jmp 0x180006142
mov qword [rsp + 0x188], rsi
mov esi, dword [r8]
mov qword [rsp + 0x178], r13
mov qword [rsp + 0x170], r15
mov ecx, 1
mov eax, ecx
cmp dword [rbp + rax*4 - 0x20], r14d
jne 0x180005db1
inc ecx
cmp ecx, 0xf
jbe 0x180005da1
cmp esi, ecx
mov r13d, ecx
mov edx, 0xf
cmovb esi, ecx
lea rax, [rbp + 0x1c]
cmp dword [rax], r14d
jne 0x180005dcf
sub rax, 4
dec edx
jne 0x180005dc2
cmp esi, edx
movsxd r15, edx
cmova esi, edx
mov dword [rsp + 8], r15d
mov dword [r8], esi
mov r8d, 1
shl r8d, cl
cmp ecx, edx
jae 0x180005e02
nop dword [rax]
mov eax, ecx
sub r8d, dword [rbp + rax*4 - 0x20]
js 0x180005e12
inc ecx
add r8d, r8d
cmp ecx, edx
jb 0x180005df0
mov ecx, edx
mov eax, dword [rbp + rcx*4 - 0x20]
sub r8d, eax
mov dword [rsp + 0x20], r8d
jns 0x180005e1c
mov eax, 0xfffffffd
jmp 0x18000612a
add eax, r8d
dec edx
mov qword [rsp + 0x1c0], rbx
mov dword [rbp + rcx*4 - 0x20], eax
mov qword [rsp + 0x180], r12
mov dword [rbp + 0x24], r14d
mov ecx, r14d
je 0x180005e60
mov rax, r14
nop word [rax + rax]
add ecx, dword [rbp + rax - 0x1c]
add rax, 4
dec edx
mov dword [rbp + rax + 0x24], ecx
jne 0x180005e50
mov edx, r14d
mov eax, dword [r10]
add r10, 4
test eax, eax
je 0x180005e7d
mov ecx, eax
mov eax, dword [rbp + rax*4 + 0x20]
mov dword [rdi + rax*4], edx
inc eax
mov dword [rbp + rcx*4 + 0x20], eax
inc edx
cmp edx, r11d
jb 0x180005e63
mov eax, dword [rbp + r15*4 + 0x20]
mov rdx, rdi
or r12, 0xffffffffffffffff
mov r11d, esi
mov ebx, r14d
mov dword [rbp + 0x20], r14d
neg r11d
mov dword [rsp + 0x1c], eax
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x60], r14
mov r9, r14
mov r10d, r14d
mov rdi, r12
cmp r13d, r15d
jg 0x180006106
nop dword [rax]
movsxd rax, r13d
lea rax, [rbp + rax*4 - 0x20]
mov qword [rsp + 0x28], rax
mov r8d, dword [rax]
test r8d, r8d
je 0x1800060f5
nop dword [rax]
dec r8d
lea ecx, [r11 + rsi]
mov dword [rsp + 0xc], r8d
cmp r13d, ecx
jle 0x180005ff8
mov eax, esi
lea r14d, [r8 + 1]
neg eax
lea r15d, [rax + rax]
mov r9d, dword [rsp + 8]
inc r12d
inc rdi
sub r9d, ecx
mov r11d, ecx
mov ecx, r13d
cmp r9d, esi
mov edx, 1
cmova r9d, esi
sub ecx, r11d
shl edx, cl
cmp edx, r14d
jbe 0x180005f67
or eax, 0xffffffff
sub eax, r8d
mov r8, qword [rsp + 0x28]
add edx, eax
cmp ecx, r9d
jae 0x180005f67
inc ecx
cmp ecx, r9d
jae 0x180005f67
nop word [rax + rax]
mov eax, dword [r8 + 4]
add r8, 4
add edx, edx
cmp edx, eax
jbe 0x180005f67
inc ecx
sub edx, eax
cmp ecx, r9d
jb 0x180005f50
mov r8, qword [rsp + 0x50]
mov r10d, 1
mov eax, dword [r8]
shl r10d, cl
lea edx, [rax + r10]
cmp edx, 0x5a0
ja 0x18000615a
mov r9, qword [rsp + 0x40]
mov dword [r8], edx
lea r9, [r9 + rax*8]
mov qword [rsp + rdi*8 + 0x60], r9
test r12d, r12d
je 0x180005fd6
mov rdx, qword [rsp + rdi*8 + 0x58]
mov byte [rsp], cl
mov r8d, ebx
lea ecx, [r15 + r11]
mov rax, r9
mov byte [rsp + 1], sil
sub rax, rdx
add ecx, esi
mov dword [rbp + rdi*4 + 0x20], ebx
shr r8d, cl
sar rax, 3
sub eax, r8d
mov dword [rsp + 4], eax
mov rax, qword [rsp]
mov qword [rdx + r8*8], rax
jmp 0x180005fde
mov rax, qword [rsp + 0x48]
mov qword [rax], r9
mov r8d, dword [rsp + 0xc]
lea ecx, [r11 + rsi]
cmp r13d, ecx
jg 0x180005f01
mov rdx, qword [rsp + 0x10]
xor r14d, r14d
mov rcx, qword [rsp + 0x30]
movzx eax, r13b
sub al, r11b
mov byte [rsp + 1], al
mov eax, dword [rsp + 0x1c]
lea rcx, [rcx + rax*4]
cmp rdx, rcx
jb 0x18000601b
mov byte [rsp], 0xc0
jmp 0x180006064
mov ecx, dword [rdx]
mov eax, dword [rsp + 0x18]
cmp ecx, eax
jae 0x18000603d
mov eax, 0x60
cmp ecx, 0x100
mov dword [rsp + 4], ecx
cmovb eax, r14d
mov byte [rsp], al
jmp 0x18000605b
sub ecx, eax
mov rax, qword [rbp + 0xd0]
movzx eax, byte [rax + rcx*4]
add al, 0x50
mov byte [rsp], al
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 4], eax
add rdx, 4
mov qword [rsp + 0x10], rdx
mov ecx, r13d
mov r8d, 1
mov edx, ebx
sub ecx, r11d
shl r8d, cl
mov ecx, r11d
shr edx, cl
cmp edx, r10d
jae 0x18000608f
mov rax, qword [rsp]
mov qword [r9 + rdx*8], rax
add edx, r8d
cmp edx, r10d
jb 0x180006083
lea ecx, [r13 - 1]
mov eax, 1
shl eax, cl
test ebx, eax
je 0x1800060a8
nop
xor ebx, eax
shr eax, 1
test ebx, eax
jne 0x1800060a0
xor ebx, eax
mov ecx, r11d
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
cmp eax, dword [rbp + rdi*4 + 0x20]
je 0x1800060dd
nop
sub r11d, esi
mov eax, 1
dec rdi
mov ecx, r11d
dec r12d
shl eax, cl
dec eax
and eax, ebx
cmp eax, dword [rbp + rdi*4 + 0x20]
jne 0x1800060c0
mov r8d, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x10]
test r8d, r8d
jne 0x180005ee0
mov r15d, dword [rsp + 8]
inc r13d
cmp r13d, r15d
jle 0x180005ec0
mov r8d, dword [rsp + 0x20]
test r8d, r8d
je 0x180006117
cmp r15d, 1
je 0x180006117
mov r14d, 0xfffffffb
mov eax, r14d
mov r12, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x188]
mov r13, qword [rsp + 0x178]
mov r15, qword [rsp + 0x170]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.180008d60
add rsp, 0x190
pop r14
pop rdi
pop rbp
ret
mov eax, 0xfffffffc
jmp 0x18000611a