Function at 0x1800464b0
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 [0x1800ed0f8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov eax, dword [rcx + 0x18]
mov r11, rcx
mov r14, qword [rcx + 0x70]
mov rsi, rdx
mov r12, qword [rcx + 0x38]
mov r13, r8
mov r15d, dword [rcx + 0x34]
mov ebp, 1
mov dword [rsp + 0x74], eax
mov ebx, 3
mov qword [rsp + 0x58], r8
mov r8d, edx
mov qword [rsp + 0x80], r9
mov r9, qword [rcx + 8]
mov ecx, dword [rcx + 0x100]
add rax, r9
mov qword [rsp + 0xa8], rax
sub r8d, r9d
mov eax, edx
mov qword [rsp + 0x78], r14
sub eax, r9d
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x30], eax
mov edx, ebp
shl edx, cl
mov eax, r8d
mov ecx, dword [r11 + 0x1c]
mov r10d, r8d
sub eax, ecx
mov dword [rsp + 0x48], r15d
sub r10d, edx
mov qword [rsp + 0x60], r9
cmp eax, edx
mov dword [rsp + 0x40], r8d
mov eax, dword [r11 + 0x10c]
cmovbe r10d, ecx
cmp dword [r11 + 0x28], 0
cmovne r10d, ecx
mov ecx, 5
cmp eax, ecx
mov dword [rsp + 0x70], r10d
mov r10, qword [r11 + 0xf8]
cmovb ecx, eax
mov qword [rsp + 0x88], r10
imul edx, dword [rsi], 0x9e3779b1
mov rax, qword [r11 + 0x60]
shl ebp, cl
mov ecx, 0x18
sub ecx, dword [r10 + 0x34]
mov qword [rsp + 0x38], rax
mov rax, qword [r10 + 0x70]
mov edi, edx
shr rdi, cl
mov ecx, edi
mov qword [rsp + 0x98], rdi
mov rdi, qword [r10 + 0x38]
shr rcx, 3
and ecx, 0x1fffffe0
mov dword [rsp + 0x34], ebp
add rdi, rcx
mov qword [rsp + 0x90], rdi
lea rax, [rax + rcx*4]
mov qword [rsp + 0xa0], rax
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
prefetcht0 byte [rdi]
xor edi, edi
mov dword [rsp + 0x44], 0x1f
cmp dword [r11 + 0x12c], edi
jne 0x1800468c8
mov r10d, dword [r11 + 0x2c]
mov r15, r14
mov eax, dword [rsp + 0x30]
mov rdx, r9
mov r8d, dword [rsp + 0x48]
sub eax, r10d
mov ecx, r8d
cmp eax, 0x180
jbe 0x1800467ae
lea r12d, [r10 + 0x60]
cmp r10d, r12d
jae 0x1800466ef
mov r13, qword [rsp + 0x78]
lea r15, [r9 + 8]
mov rbx, qword [rsp + 0x68]
mov ebp, 0x18
sub ebp, r8d
mov r14d, r10d
add r15, r10
mov eax, dword [r11 + 0x60]
mov rcx, rbp
imul edx, dword [r15], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rbx + rax]
mov rax, r14
lea r15, [r15 + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r11 + rax*4 + 0x40], edx
mov eax, edi
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [rbx + r8]
lea rdx, [rbx + r8]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x44]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], r10d
inc r10d
cmp r10d, r12d
jb 0x180046651
mov rdx, qword [r11 + 8]
mov ebx, 3
mov ebp, dword [rsp + 0x34]
mov r13, qword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
mov r10d, dword [rsp + 0x30]
lea rax, [rsi + 1]
mov ecx, dword [r11 + 0x34]
add r10d, 0xffffffe0
mov r15, qword [r11 + 0x70]
mov r12, qword [r11 + 0x38]
mov dword [rsp + 0x50], ecx
mov ecx, eax
sub ecx, r10d
mov r8d, r10d
sub ecx, r9d
lea r14, [r10 + r9]
inc ecx
cmp r14, rax
mov eax, 8
cmova ecx, edi
cmp ecx, eax
cmova ecx, eax
lea eax, [r10 + rcx]
cmp r10d, eax
jae 0x1800467a5
mov eax, 0x18
mov r13d, ecx
sub eax, dword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov ecx, eax
nop dword [rax]
mov eax, dword [r11 + 0x60]
imul edx, dword [r14], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
mov rax, r8
lea r14, [r14 + 1]
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r13, 1
jne 0x180046750
mov r15, qword [r11 + 0x70]
mov r12, qword [r11 + 0x38]
mov rdx, qword [r11 + 8]
mov r13, qword [rsp + 0x58]
mov ecx, dword [r11 + 0x34]
mov r14, qword [rsp + 0x78]
mov eax, dword [rsp + 0x30]
cmp r10d, eax
jae 0x180046873
mov ebx, 0x18
mov r14d, r10d
sub ebx, ecx
lea r13, [r10 + 8]
add r13, rdx
mov ebp, eax
nop
mov eax, dword [r11 + 0x60]
mov rcx, rbx
imul edx, dword [r13], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
prefetcht0 byte [rax + r12]
mov rax, r14
lea r13, [r13 + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r11 + rax*4 + 0x40], edx
mov eax, edi
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + r12]
lea rdx, [r8 + r12]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x44]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r15 + rax*4], r10d
inc r10d
cmp r10d, ebp
jb 0x1800467d0
mov ebp, dword [rsp + 0x34]
mov ebx, 3
mov r13, qword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
mov r14, qword [rsp + 0x78]
mov eax, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x40]
mov ecx, 0x18
sub ecx, dword [rsp + 0x48]
mov dword [r11 + 0x2c], eax
mov eax, dword [rsp + 0x38]
imul edx, dword [r8 + r9 + 8], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
mov r12, qword [rsp + 0x68]
prefetcht0 byte [rax + r12]
and r8d, 7
mov r10d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x1800468e1
mov eax, dword [rsp + 0x38]
mov ecx, 0x18
mov r10d, edx
sub ecx, r15d
xor r10, rax
mov dword [r11 + 0x2c], r8d
shr r10, cl
add dword [r11 + 0x68], r10d
mov eax, r10d
shr rax, 3
mov r15, rdi
and eax, 0x1fffffe0
movdqu xmm0, xmmword [rax + r12]
lea rcx, [r14 + rax*4]
mov r14, rdi
mov qword [rsp + 0x38], rcx
lea rcx, [rax + r12]
movzx eax, byte [rax + r12]
mov r12d, eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x68], rcx
and r12d, 0x1f
movsx eax, r10b
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, r12d
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
shl edx, 0x10
or edx, eax
mov r8d, edx
mov eax, edx
mov rdx, qword [rsp + 0x38]
shl r8d, cl
mov ecx, r12d
shr rax, cl
or r8, rax
jbe 0x1800469b3
mov r13d, dword [rsp + 0x70]
test ebp, ebp
je 0x1800469aa
bsf rcx, r8
add ecx, r12d
and ecx, 0x1f
je 0x1800469a1
mov ecx, dword [rdx + rcx*4]
cmp ecx, r13d
jb 0x1800469aa
prefetcht0 byte [rcx + r9]
mov dword [rsp + r15*4 + 0xb0], ecx
inc r15
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x180046977
mov r13, qword [rsp + 0x58]
mov dword [rsp + 0x34], ebp
mov ecx, dword [rsp + 0x50]
mov eax, edi
dec ecx
mov r8d, 0x1f
and ecx, 0x1f
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x68]
mov byte [rax], cl
mov byte [rcx + rax], r10b
mov eax, dword [r11 + 0x2c]
mov dword [rdx + rcx*4], eax
inc dword [r11 + 0x2c]
test r15, r15
je 0x180046a54
mov edi, dword [rsp + 0x40]
mov rbp, qword [rsp + 0x80]
nop dword [rax]
nop word [rax + rax]
mov r12d, dword [rsp + r14*4 + 0xb0]
mov eax, dword [rbx + rsi - 3]
lea rdx, [r9 + r12]
cmp dword [rdx + rbx - 3], eax
jne 0x180046a46
mov r8, r13
mov rcx, rsi
call fcn.180037e00
mov rcx, rax
cmp rax, rbx
jbe 0x180046a41
mov rbx, rax
mov eax, edi
sub eax, r12d
add eax, 3
mov qword [rbp], rax
lea rax, [rbx + rsi]
cmp rax, r13
je 0x180046a4e
mov r9, qword [rsp + 0x60]
inc r14
cmp r14, r15
jb 0x180046a00
mov ebp, dword [rsp + 0x34]
xor edi, edi
mov rcx, qword [rsp + 0x90]
mov r14, rdi
movsx eax, byte [rsp + 0x98]
mov r10, qword [rsp + 0x88]
movdqu xmm0, xmmword [rcx]
movzx r9d, byte [rcx]
mov r15, qword [r10 + 8]
and r9d, 0x1f
mov r11d, dword [r10 + 0x18]
mov r12d, r15d
mov r10, qword [r10]
movd xmm2, eax
sub r12d, r10d
add r12d, dword [rsp + 0x74]
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
mov qword [rsp + 0x38], r10
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, r9d
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
shl edx, 0x10
or edx, eax
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, r9d
shr rax, cl
or r8, rax
jbe 0x180046b9b
mov rdx, qword [rsp + 0xa0]
nop dword [rax]
test ebp, ebp
je 0x180046b22
bsf rcx, r8
add ecx, r9d
and ecx, 0x1f
je 0x180046b19
mov ecx, dword [rdx + rcx*4]
cmp ecx, r11d
jb 0x180046b22
prefetcht0 byte [rcx + r15]
mov dword [rsp + rdi*4 + 0xb0], ecx
inc rdi
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x180046af0
test rdi, rdi
je 0x180046b9b
nop word [rax + rax]
mov ebp, dword [rsp + r14*4 + 0xb0]
mov eax, dword [rsi]
lea rdx, [r15 + rbp]
cmp dword [rdx], eax
jne 0x180046b93
mov rax, qword [rsp + 0xa8]
lea rcx, [rsi + 4]
add rdx, 4
mov qword [rsp + 0x20], rax
mov r9, r10
mov r8, r13
call fcn.180037ea0
add rax, 4
cmp rax, rbx
jbe 0x180046b8e
mov ecx, dword [rsp + 0x40]
mov rbx, rax
mov rdx, qword [rsp + 0x80]
sub ecx, ebp
sub ecx, r12d
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + rsi]
cmp rcx, r13
je 0x180046b9e
mov r10, qword [rsp + 0x38]
inc r14
cmp r14, rdi
jb 0x180046b30
mov rax, rbx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800b2170
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret