Function at 0x1800c1fc0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a8
mov rax, qword [0x18050b500]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r15, qword [rcx + 8]
mov r10, rcx
mov esi, dword [rcx + 0x34]
mov r13d, edx
sub r13d, r15d
mov qword [rsp + 0x60], rdx
mov ebp, 1
mov qword [rsp + 0x88], r9
mov r9, qword [rcx + 0x38]
mov r14, rdx
mov edx, ebp
mov qword [rsp + 0x80], r8
mov r8, qword [rcx + 0x70]
mov eax, r13d
mov ecx, dword [rcx + 0x100]
mov r11d, r13d
shl edx, cl
mov edi, 3
mov ecx, dword [r10 + 0x1c]
sub r11d, edx
sub eax, ecx
mov qword [rsp + 0x70], r8
cmp eax, edx
mov qword [rsp + 0x68], r9
mov eax, dword [r10 + 0x10c]
cmovbe r11d, ecx
mov dword [rsp + 0x28], esi
cmp dword [r10 + 0x28], 0
mov qword [rsp + 0x40], r15
cmovne r11d, ecx
mov dword [rsp + 0x20], r13d
mov ecx, 4
mov dword [rsp + 0x58], r11d
cmp eax, ecx
mov dword [rsp + 0x38], 0xf
cmovb ecx, eax
mov rax, qword [r10 + 0x60]
shl ebp, cl
xor ebx, ebx
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x24], ebp
cmp dword [r10 + 0x12c], ebx
jne 0x1800c236d
mov r11d, dword [r10 + 0x2c]
lea r12d, [rdi + 0x35]
mov eax, r13d
mov qword [rsp + 0x30], r8
sub eax, r11d
mov qword [rsp + 0x48], r9
mov edx, esi
mov rcx, r15
movabs rsi, 0xcf1bbcdcbf9b0000
cmp eax, 0x180
jbe 0x1800c226c
lea ecx, [r11 + 0x60]
mov qword [rsp + 0x50], r15
cmp r11d, ecx
jae 0x1800c219d
mov r14d, r12d
lea rax, [r15 + 8]
sub r14d, edx
mov ebp, r11d
add rax, r11
mov edi, ecx
mov r15, rax
mov r12, r8
mov r13, r9
nop dword [rax + rax]
mov rdx, qword [r15]
mov ecx, r14d
imul rdx, rsi
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [rax + r13]
mov rax, rbp
lea r15, [r15 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov dword [r10 + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 4
and eax, 0xffffff0
movzx ecx, byte [rax + r13]
lea rdx, [rax + r13]
dec ecx
mov r8d, eax
and ecx, 0xf
mov eax, ebx
cmove eax, dword [rsp + 0x38]
inc rbp
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r12 + rax*4], r11d
inc r11d
cmp r11d, edi
jb 0x1800c2100
mov rax, qword [r10 + 8]
mov edi, 3
mov r14, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x24]
mov r15, qword [rsp + 0x40]
mov r13d, dword [rsp + 0x20]
lea r12d, [rdi + 0x35]
mov qword [rsp + 0x50], rax
mov rcx, qword [r10 + 0x70]
lea r11d, [r13 - 0x20]
lea rax, [r14 + 1]
mov qword [rsp + 0x30], rcx
mov rcx, qword [r10 + 0x38]
lea r9, [r15 + r11]
mov edx, eax
mov qword [rsp + 0x48], rcx
mov ecx, dword [r10 + 0x34]
sub edx, r11d
sub edx, r15d
mov dword [rsp + 0x20], ecx
inc edx
mov r8d, r11d
cmp r9, rax
mov eax, 8
cmova edx, ebx
cmp edx, eax
cmova edx, eax
lea eax, [rdx + r11]
cmp r11d, eax
jae 0x1800c225e
mov rbp, qword [rsp + 0x30]
mov ecx, r12d
sub ecx, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
mov r14d, edx
nop dword [rax]
mov rdx, qword [r9]
imul rdx, rsi
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [rbp + rax*4]
prefetcht0 byte [rax + rdi]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub r14, 1
jne 0x1800c2200
mov rax, qword [r10 + 0x70]
lea edi, [r14 + 3]
mov rcx, qword [r10 + 8]
mov r14, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x24]
mov qword [rsp + 0x30], rax
mov rax, qword [r10 + 0x38]
mov qword [rsp + 0x48], rax
jmp 0x1800c2263
mov rcx, qword [rsp + 0x50]
mov edx, dword [r10 + 0x34]
mov r9, qword [rsp + 0x68]
cmp r11d, r13d
jae 0x1800c2321
mov rdi, qword [rsp + 0x30]
lea r15, [r11 + 8]
mov rbp, qword [rsp + 0x48]
sub r12d, edx
add r15, rcx
mov r14d, r11d
nop dword [rax]
mov rdx, qword [r15]
mov ecx, r12d
imul rdx, rsi
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rax + rbp]
mov rax, r14
lea r15, [r15 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov dword [r10 + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 4
and eax, 0xffffff0
movzx ecx, byte [rax + rbp]
lea rdx, [rax + rbp]
dec ecx
mov r8d, eax
and ecx, 0xf
mov eax, ebx
cmove eax, dword [rsp + 0x38]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rdi + rax*4], r11d
inc r11d
cmp r11d, r13d
jb 0x1800c2290
mov r14, qword [rsp + 0x60]
mov edi, 3
mov ebp, dword [rsp + 0x24]
mov r15, qword [rsp + 0x40]
mov r9, qword [rsp + 0x68]
lea r12d, [rdi + 0x35]
sub r12d, dword [rsp + 0x28]
movzx ecx, r12b
mov r8d, r13d
mov dword [r10 + 0x2c], r13d
mov rdx, qword [r8 + r15 + 8]
imul rdx, rsi
xor rdx, qword [rsp + 0x78]
shr rdx, cl
mov rcx, qword [rsp + 0x70]
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
prefetcht0 byte [rax + r9]
and r8d, 7
mov r11d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
mov r8, rcx
jmp 0x1800c2391
mov r11, qword [r14]
movabs rsi, 0xcf1bbcdcbf9b0000
imul r11, rsi
mov ecx, 0x38
mov dword [r10 + 0x2c], r13d
sub ecx, dword [rsp + 0x28]
xor r11, rax
shr r11, cl
add dword [r10 + 0x68], r11d
mov eax, r11d
shr eax, 4
mov rsi, rbx
and eax, 0xffffff0
movzx r12d, byte [rax + r9]
movdqu xmm0, xmmword [rax + r9]
lea rcx, [r8 + rax*4]
mov qword [rsp + 0x40], rcx
lea rcx, [rax + r9]
mov qword [rsp + 0x78], rcx
movsx eax, r11b
movd xmm1, eax
mov eax, r12d
and eax, 0xf
punpcklbw xmm1, xmm1
mov edx, eax
punpcklwd xmm1, xmm1
mov ecx, eax
pshufd xmm1, xmm1, 0
neg ecx
pcmpeqb xmm0, xmm1
and ecx, 0xf
pmovmskb r8d, xmm0
movzx eax, r8w
shl ax, cl
movzx ecx, dl
mov rdx, qword [rsp + 0x40]
movzx r9d, ax
movzx eax, r8w
shr rax, cl
or r9, rax
jbe 0x1800c2443
mov r8d, dword [rsp + 0x58]
test ebp, ebp
je 0x1800c2443
bsf rcx, r9
add ecx, r12d
and ecx, 0xf
mov ecx, dword [rdx + rcx*4]
je 0x1800c243a
cmp ecx, r8d
jb 0x1800c2443
prefetcht0 byte [rcx + r15]
mov dword [rsp + rsi*4 + 0x90], ecx
inc rsi
dec ebp
lea rax, [r9 - 1]
and r9, rax
ja 0x1800c2411
lea ecx, [r12 - 1]
mov eax, ebx
and ecx, 0xf
mov r8d, 0xf
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x78]
mov byte [rax], cl
mov byte [rcx + rax], r11b
mov eax, dword [r10 + 0x2c]
mov dword [rdx + rcx*4], eax
inc dword [r10 + 0x2c]
test rsi, rsi
je 0x1800c24d8
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + rbx*4 + 0x90]
mov eax, dword [rdi + r14 - 3]
lea rdx, [r15 + rbp]
cmp dword [rdx + rdi - 3], eax
jne 0x1800c24d0
mov r12, qword [rsp + 0x80]
mov rcx, r14
mov r8, r12
call fcn.1800b86b0
mov rcx, rax
cmp rax, rdi
jbe 0x1800c24d0
mov rdx, qword [rsp + 0x88]
mov rdi, rax
mov eax, r13d
sub eax, ebp
add eax, 3
mov qword [rdx], rax
lea rax, [rcx + r14]
cmp rax, r12
je 0x1800c24d8
inc rbx
cmp rbx, rsi
jb 0x1800c2480
mov rax, rdi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.180313c00
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret