Function at 0x1800c6e20
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c8
mov rax, qword [0x18050b500]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r10, qword [rcx + 8]
mov r11, rcx
mov eax, dword [rcx + 0x34]
mov r13, r8
mov r14, qword [rcx + 0x70]
mov r12d, edx
mov dword [rsp + 0x40], eax
sub r12d, r10d
mov eax, dword [rcx + 0x18]
mov rdi, rdx
mov dword [rsp + 0x48], eax
mov ebp, 1
add rax, r10
mov qword [rsp + 0x78], r8
mov qword [rsp + 0xa8], rax
mov edx, ebp
mov eax, r12d
mov qword [rsp + 0x80], r9
mov r9, qword [rcx + 0x38]
mov r8d, r12d
mov ecx, dword [rcx + 0x100]
mov ebx, 3
shl edx, cl
mov ecx, dword [r11 + 0x1c]
sub r8d, edx
sub eax, ecx
mov qword [rsp + 0x68], r14
cmp eax, edx
mov qword [rsp + 0x60], r9
mov eax, dword [r11 + 0x10c]
cmovbe r8d, ecx
mov qword [rsp + 0x58], r10
cmp dword [r11 + 0x28], 0
mov dword [rsp + 0x44], r12d
cmovne r8d, ecx
mov ecx, 5
cmp eax, ecx
mov dword [rsp + 0x4c], r8d
cmovb ecx, eax
mov rax, qword [r11 + 0x60]
imul r15d, dword [rdi], 0x9e3779b1
mov qword [rsp + 0x38], rax
mov rax, qword [r11 + 0xf8]
mov qword [rsp + 0x88], rax
shl ebp, cl
mov ecx, 0x18
mov dword [rsp + 0x30], ebp
sub ecx, dword [rax + 0x34]
mov r8, qword [rax + 0x70]
mov rdx, qword [rax + 0x38]
mov eax, r15d
shr rax, cl
mov qword [rsp + 0x98], rax
shr eax, 3
and eax, 0x1fffffe0
mov ecx, eax
add rax, rdx
mov qword [rsp + 0x90], rax
lea rax, [r8 + rcx*4]
mov qword [rsp + 0xa0], rax
prefetcht0 byte [rax]
prefetcht0 byte [r8 + rcx*4 + 0x40]
prefetcht0 byte [rdx + rcx]
xor esi, esi
mov dword [rsp + 0x34], 0x1f
cmp dword [r11 + 0x12c], esi
jne 0x1800c724a
mov r10d, dword [r11 + 0x2c]
mov eax, r12d
mov r15, qword [rsp + 0x58]
sub eax, r10d
mov r8d, dword [rsp + 0x40]
mov ecx, r8d
mov qword [rsp + 0x70], r9
mov rdx, r15
cmp eax, 0x180
jbe 0x1800c7134
lea eax, [r10 + 0x60]
cmp r10d, eax
jae 0x1800c7063
mov r13, qword [rsp + 0x68]
lea r12, [r15 + 8]
mov ebx, 0x18
mov r14d, r10d
sub ebx, r8d
mov rbp, r9
add r12, r10
mov r15d, eax
nop
imul edx, dword [r12], 0x9e3779b1
mov rcx, rbx
mov eax, dword [r11 + 0x60]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
mov rax, r14
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov dword [r11 + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, byte [rax + rbp]
lea rdx, [rax + rbp]
dec ecx
mov r8d, eax
and ecx, 0x1f
mov eax, esi
cmove eax, dword [rsp + 0x34]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rcx + rdx], r9b
mov dword [r13 + rax*4], r10d
inc r10d
cmp r10d, r15d
jb 0x1800c6fc0
mov rdx, qword [r11 + 8]
mov ebx, 3
mov ebp, dword [rsp + 0x30]
mov r13, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x44]
mov r15, qword [rsp + 0x58]
mov rcx, qword [r11 + 0x38]
lea r10d, [r12 - 0x20]
mov r14, qword [r11 + 0x70]
lea rax, [rdi + 1]
mov qword [rsp + 0x70], rcx
lea r9, [r10 + r15]
mov ecx, dword [r11 + 0x34]
mov dword [rsp + 0x50], ecx
mov ecx, eax
sub ecx, r10d
mov r8d, r10d
sub ecx, r15d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, esi
cmp ecx, eax
cmova ecx, eax
lea eax, [r10 + rcx]
cmp r10d, eax
jae 0x1800c7130
mov r15, qword [rsp + 0x70]
mov eax, 0x18
sub eax, dword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov ebp, eax
mov r13d, ecx
nop word [rax + rax]
imul edx, dword [r9], 0x9e3779b1
mov rcx, rbp
mov eax, dword [r11 + 0x60]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [r15 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r13, 1
jne 0x1800c70d0
mov rax, qword [r11 + 0x38]
mov r14, qword [r11 + 0x70]
mov rdx, qword [r11 + 8]
mov ebp, dword [rsp + 0x30]
mov r13, qword [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov ecx, dword [r11 + 0x34]
cmp r10d, r12d
jae 0x1800c71ee
mov r13, qword [rsp + 0x70]
lea rbx, [r10 + 8]
mov ebp, 0x18
mov r15d, r10d
sub ebp, ecx
add rbx, rdx
nop dword [rax]
nop word [rax + rax]
imul edx, dword [rbx], 0x9e3779b1
mov rcx, rbp
mov eax, dword [r11 + 0x60]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
mov rax, r15
lea rbx, [rbx + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov dword [r11 + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, byte [rax + r13]
lea rdx, [rax + r13]
dec ecx
mov r8d, eax
and ecx, 0x1f
mov eax, esi
cmove eax, dword [rsp + 0x34]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r14 + rax*4], r10d
inc r10d
cmp r10d, r12d
jb 0x1800c7160
mov ebp, dword [rsp + 0x30]
mov ebx, 3
mov r13, qword [rsp + 0x78]
mov eax, dword [rsp + 0x38]
mov ecx, 0x18
sub ecx, dword [rsp + 0x40]
mov r10, qword [rsp + 0x58]
mov r14, qword [rsp + 0x68]
mov r8d, r12d
mov dword [r11 + 0x2c], r12d
imul edx, dword [r8 + r10 + 8], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
mov r15, qword [rsp + 0x60]
prefetcht0 byte [rax + r15]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x1800c7269
mov eax, dword [rsp + 0x38]
mov ecx, 0x18
sub ecx, dword [rsp + 0x40]
mov r9d, r15d
mov r15, qword [rsp + 0x60]
xor r9, rax
shr r9, cl
mov dword [r11 + 0x2c], r12d
add dword [r11 + 0x68], r9d
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
mov qword [rsp + 0x68], r9
movdqu xmm1, xmmword [rax + r15 + 0x10]
lea rdx, [rax + r15]
mov r15, rsi
movdqu xmm0, xmmword [rdx]
lea rcx, [r14 + rax*4]
mov qword [rsp + 0x60], rdx
movsx eax, r9b
mov r14, rsi
mov qword [rsp + 0x38], rcx
movzx ecx, byte [rdx]
mov edx, ecx
mov dword [rsp + 0x34], ecx
movd xmm2, eax
and edx, 0x1f
punpcklbw xmm2, xmm2
mov ecx, edx
neg ecx
punpcklwd xmm2, xmm2
and ecx, 0x1f
pshufd xmm2, xmm2, 0
pcmpeqb xmm1, xmm2
pcmpeqb xmm0, xmm2
pmovmskb r8d, xmm1
pmovmskb eax, xmm0
shl r8d, 0x10
or r8d, eax
mov r9d, r8d
mov eax, r8d
mov r8, qword [rsp + 0x38]
shl r9d, cl
mov ecx, edx
mov edx, dword [rsp + 0x34]
shr rax, cl
or r9, rax
jbe 0x1800c733d
mov r13d, dword [rsp + 0x4c]
test ebp, ebp
je 0x1800c7334
bsf rcx, r9
add ecx, edx
and ecx, 0x1f
mov ecx, dword [r8 + rcx*4]
je 0x1800c732b
cmp ecx, r13d
jb 0x1800c7334
prefetcht0 byte [rcx + r10]
mov dword [rsp + r15*4 + 0xb0], ecx
inc r15
dec ebp
lea rax, [r9 - 1]
and r9, rax
ja 0x1800c7301
mov r13, qword [rsp + 0x78]
mov dword [rsp + 0x30], ebp
lea ecx, [rdx - 1]
mov eax, esi
and ecx, 0x1f
mov edx, 0x1f
cmove eax, edx
mov rdx, qword [rsp + 0x60]
add ecx, eax
mov rax, qword [rsp + 0x68]
mov byte [rdx], cl
mov byte [rcx + rdx], al
mov eax, dword [r11 + 0x2c]
mov dword [r8 + rcx*4], eax
inc dword [r11 + 0x2c]
test r15, r15
je 0x1800c73d9
mov esi, dword [rsp + 0x44]
mov rbp, qword [rsp + 0x80]
nop dword [rax + rax]
mov r12d, dword [rsp + r14*4 + 0xb0]
lea rdx, [r10 + r12]
mov eax, dword [rdx + rbx - 3]
cmp eax, dword [rbx + rdi - 3]
jne 0x1800c73c6
mov r8, r13
mov rcx, rdi
call fcn.1800b86b0
mov rcx, rax
cmp rax, rbx
jbe 0x1800c73c1
mov rbx, rax
mov eax, esi
sub eax, r12d
add eax, 3
mov qword [rbp], rax
lea rax, [rbx + rdi]
cmp rax, r13
je 0x1800c73ce
mov r10, qword [rsp + 0x58]
inc r14
cmp r14, r15
jb 0x1800c7380
mov ebp, dword [rsp + 0x30]
xor esi, esi
mov r12d, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x90]
mov r14, rsi
mov r11, qword [rsp + 0x88]
movdqu xmm0, xmmword [rcx]
movzx r10d, byte [rcx]
mov eax, dword [r11 + 0x18]
mov edx, r10d
mov r15, qword [r11 + 8]
and edx, 0x1f
mov r11, qword [r11]
mov dword [rsp + 0x4c], eax
mov eax, r11d
sub eax, r15d
mov qword [rsp + 0x38], r11
sub dword [rsp + 0x48], eax
movsx eax, byte [rsp + 0x98]
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, edx
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm2, xmm0
pmovmskb r8d, xmm2
shl r8d, 0x10
or r8d, eax
mov r9d, r8d
mov eax, r8d
shl r9d, cl
mov ecx, edx
shr rax, cl
or r9, rax
jbe 0x1800c752b
mov edx, dword [rsp + 0x4c]
mov r8, qword [rsp + 0xa0]
nop dword [rax]
test ebp, ebp
je 0x1800c74b2
bsf rcx, r9
add ecx, r10d
and ecx, 0x1f
mov ecx, dword [r8 + rcx*4]
je 0x1800c74a9
cmp ecx, edx
jb 0x1800c74b2
prefetcht0 byte [rcx + r15]
mov dword [rsp + rsi*4 + 0xb0], ecx
inc rsi
dec ebp
lea rax, [r9 - 1]
and r9, rax
ja 0x1800c7480
test rsi, rsi
je 0x1800c752b
nop word [rax + rax]
mov ebp, dword [rsp + r14*4 + 0xb0]
mov eax, dword [rdi]
lea rdx, [r15 + rbp]
cmp dword [rdx], eax
jne 0x1800c7523
mov rax, qword [rsp + 0xa8]
lea rcx, [rdi + 4]
add rdx, 4
mov qword [rsp + 0x20], rax
mov r9, r11
mov r8, r13
call fcn.1800b8750
add rax, 4
cmp rax, rbx
jbe 0x1800c751e
mov rdx, qword [rsp + 0x80]
mov ecx, r12d
sub ecx, ebp
mov rbx, rax
sub ecx, dword [rsp + 0x48]
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + rdi]
cmp rcx, r13
je 0x1800c752e
mov r11, qword [rsp + 0x38]
inc r14
cmp r14, rsi
jb 0x1800c74c0
mov rax, rbx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180313c00
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret