Function at 0x1800c2a70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x198
mov rax, qword [0x18050b500]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15, qword [rcx + 8]
mov r10, rcx
mov r12, qword [rcx + 0x38]
mov r13d, edx
mov esi, dword [rcx + 0x34]
sub r13d, r15d
mov qword [rsp + 0x70], r8
mov ebp, 1
mov r14, rdx
mov qword [rsp + 0x48], rdx
mov edx, ebp
mov qword [rsp + 0x78], r9
mov r9, qword [rcx + 0x70]
mov eax, r13d
mov ecx, dword [rcx + 0x100]
mov r8d, r13d
shl edx, cl
mov edi, 3
mov ecx, dword [r10 + 0x1c]
sub r8d, edx
sub eax, ecx
mov qword [rsp + 0x58], r9
cmp eax, edx
mov qword [rsp + 0x60], r12
mov eax, dword [r10 + 0x10c]
cmovbe r8d, ecx
mov dword [rsp + 0x28], esi
cmp dword [r10 + 0x28], 0
mov qword [rsp + 0x50], r15
cmovne r8d, ecx
mov dword [rsp + 0x20], r13d
mov ecx, 6
mov dword [rsp + 0x44], r8d
cmp eax, ecx
mov dword [rsp + 0x40], 0x3f
cmovb ecx, eax
mov rax, qword [r10 + 0x60]
shl ebp, cl
xor ebx, ebx
movabs rcx, 0xcf1bbcdcbf9b0000
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x24], ebp
cmp dword [r10 + 0x12c], ebx
jne 0x1800c2e79
mov r11d, dword [r10 + 0x2c]
mov eax, r13d
mov r8d, dword [rsp + 0x28]
sub eax, r11d
mov qword [rsp + 0x38], r12
mov rsi, r9
lea r12d, [rdi + 0x35]
mov rdx, r15
cmp eax, 0x180
jbe 0x1800c2d51
lea edx, [r11 + 0x60]
mov qword [rsp + 0x30], r15
cmp r11d, edx
jae 0x1800c2c66
mov r13, qword [rsp + 0x60]
lea rax, [r15 + 8]
mov esi, r12d
mov ebp, r11d
sub esi, r8d
mov rdi, rcx
add rax, r11
mov r14d, edx
mov r15, rax
mov r12, r9
nop dword [rax]
mov rdx, qword [r15]
mov ecx, esi
imul rdx, rdi
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
prefetcht0 byte [rax + r13 + 0x20]
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, 2
and eax, 0x3fffffc0
movzx ecx, byte [rax + r13]
lea rdx, [rax + r13]
dec ecx
mov r8d, eax
and ecx, 0x3f
mov eax, ebx
cmove eax, dword [rsp + 0x40]
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, r14d
jb 0x1800c2bb0
mov rax, qword [r10 + 8]
mov edi, 3
mov r14, qword [rsp + 0x48]
movabs rcx, 0xcf1bbcdcbf9b0000
mov ebp, dword [rsp + 0x24]
mov r15, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x20]
lea r12d, [rdi + 0x35]
mov qword [rsp + 0x30], rax
mov rdx, qword [r10 + 0x38]
lea r11d, [r13 - 0x20]
mov rsi, qword [r10 + 0x70]
lea rax, [r14 + 1]
mov qword [rsp + 0x38], rdx
lea r9, [r15 + r11]
mov edx, dword [r10 + 0x34]
mov dword [rsp + 0x20], edx
mov edx, eax
sub edx, r11d
mov r8d, r11d
sub edx, r15d
inc edx
cmp r9, rax
mov eax, 8
cmova edx, ebx
cmp edx, eax
cmova edx, eax
lea eax, [r11 + rdx]
cmp r11d, eax
jae 0x1800c2d43
mov r14, qword [rsp + 0x38]
mov ebx, r12d
sub ebx, dword [rsp + 0x20]
movabs rbp, 0xcf1bbcdcbf9b0000
mov r15d, edx
nop word [rax + rax]
mov rdx, qword [r9]
mov ecx, ebx
imul rdx, rbp
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [r14 + rax]
prefetcht0 byte [r14 + rax + 0x20]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub r15, 1
jne 0x1800c2cd0
mov rdx, qword [r10 + 0x38]
xor ebx, ebx
mov rsi, qword [r10 + 0x70]
movabs rcx, 0xcf1bbcdcbf9b0000
mov r14, qword [rsp + 0x48]
mov ebp, dword [rsp + 0x24]
mov r15, qword [rsp + 0x50]
mov qword [rsp + 0x38], rdx
mov rdx, qword [r10 + 8]
jmp 0x1800c2d48
mov rdx, qword [rsp + 0x30]
mov r8d, dword [r10 + 0x34]
mov r9, qword [rsp + 0x58]
cmp r11d, r13d
jae 0x1800c2e25
mov rdi, qword [rsp + 0x38]
lea r15, [r11 + 8]
sub r12d, r8d
mov r14d, r11d
add r15, rdx
movabs rbp, 0xcf1bbcdcbf9b0000
nop word [rax + rax]
mov rdx, qword [r15]
mov ecx, r12d
imul rdx, rbp
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [rdi + rax]
prefetcht0 byte [rdi + rax + 0x20]
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, 2
and eax, 0x3fffffc0
movzx ecx, byte [rax + rdi]
lea rdx, [rax + rdi]
dec ecx
mov r8d, eax
and ecx, 0x3f
mov eax, ebx
cmove eax, dword [rsp + 0x40]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rsi + rax*4], r11d
inc r11d
cmp r11d, r13d
jb 0x1800c2d80
mov r14, qword [rsp + 0x48]
mov edi, 3
mov ebp, dword [rsp + 0x24]
movabs rcx, 0xcf1bbcdcbf9b0000
mov r15, qword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
lea r12d, [rdi + 0x35]
sub r12d, dword [rsp + 0x28]
mov r8d, r13d
mov dword [r10 + 0x2c], r13d
mov rdx, qword [r8 + r15 + 8]
imul rdx, rcx
movzx ecx, r12b
xor rdx, qword [rsp + 0x68]
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov rsi, qword [rsp + 0x60]
prefetcht0 byte [rax + rsi]
prefetcht0 byte [rax + rsi + 0x20]
and r8d, 7
mov r11d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
jmp 0x1800c2e94
mov r11, qword [r14]
imul r11, rcx
mov ecx, 0x38
mov dword [r10 + 0x2c], r13d
sub ecx, esi
xor r11, rax
shr r11, cl
mov rsi, r12
add dword [r10 + 0x68], r11d
mov eax, r11d
shr eax, 2
and eax, 0x3fffffc0
movdqu xmm1, xmmword [rax + rsi + 0x10]
movzx r12d, byte [rax + rsi]
movdqu xmm0, xmmword [rax + rsi]
lea rcx, [r9 + rax*4]
lea r9, [rax + rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x68], r9
movzx ecx, r12b
movsx eax, r11b
and cl, 0x3f
mov rsi, rbx
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
pcmpeqb xmm1, xmm2
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm1
movdqu xmm1, xmmword [r9 + 0x30]
pmovmskb r8d, xmm0
movdqu xmm0, xmmword [r9 + 0x20]
pcmpeqb xmm1, xmm2
pmovmskb r9d, xmm1
pcmpeqb xmm0, xmm2
pmovmskb eax, xmm0
shl r9, 0x10
or r9, rax
movsxd rax, edx
mov rdx, qword [rsp + 0x30]
shl r9, 0x10
or r9, rax
movsxd rax, r8d
shl r9, 0x10
or r9, rax
ror r9, cl
test r9, r9
je 0x1800c2f72
mov r8d, dword [rsp + 0x44]
nop
test ebp, ebp
je 0x1800c2f72
bsf rcx, r9
add ecx, r12d
and ecx, 0x3f
mov ecx, dword [rdx + rcx*4]
je 0x1800c2f69
cmp ecx, r8d
jb 0x1800c2f72
prefetcht0 byte [rcx + r15]
mov dword [rsp + rsi*4 + 0x80], ecx
inc rsi
dec ebp
lea rax, [r9 - 1]
and r9, rax
ja 0x1800c2f40
lea ecx, [r12 - 1]
mov eax, ebx
and ecx, 0x3f
mov r8d, 0x3f
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x68]
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 0x1800c3002
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + rbx*4 + 0x80]
mov eax, dword [rdi + r14 - 3]
lea rdx, [r15 + rbp]
cmp dword [rdx + rdi - 3], eax
jne 0x1800c2ffa
mov r12, qword [rsp + 0x70]
mov rcx, r14
mov r8, r12
call fcn.1800b86b0
mov rcx, rax
cmp rax, rdi
jbe 0x1800c2ffa
mov rdx, qword [rsp + 0x78]
mov rdi, rax
mov eax, r13d
sub eax, ebp
add eax, 3
mov qword [rdx], rax
lea rax, [rcx + r14]
cmp rax, r12
je 0x1800c3002
inc rbx
cmp rbx, rsi
jb 0x1800c2fb0
mov rax, rdi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180313c00
add rsp, 0x198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret