Function at 0x18005e7d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d8
mov rax, qword [0x18014f1c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r10, qword [rcx + 8]
mov r11, rcx
mov eax, dword [rcx + 0x18]
mov r12d, edx
mov r14, qword [rcx + 0x70]
sub r12d, r10d
mov r15, qword [rcx + 0x38]
mov rdi, rdx
mov rsi, qword [r11 + 0xf8]
mov r13, r8
mov dword [rsp + 0x4c], eax
mov ebp, 1
add rax, r10
mov qword [rsp + 0x70], r8
mov qword [rsp + 0xb0], rax
mov edx, ebp
mov eax, r12d
mov qword [rsp + 0x90], r9
mov r9d, dword [rcx + 0x34]
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 + 0x80], r14
cmp eax, edx
mov qword [rsp + 0x68], r15
mov eax, dword [r11 + 0x10c]
mov rdx, qword [rsi + 0x38]
cmovbe r8d, ecx
cmp dword [r11 + 0x28], 0
mov dword [rsp + 0x5c], r9d
cmovne r8d, ecx
mov qword [rsp + 0x60], r10
mov ecx, 6
mov dword [rsp + 0x78], r8d
mov r8, qword [rsi + 0x70]
cmp eax, ecx
mov dword [rsp + 0x48], r12d
cmovb ecx, eax
mov qword [rsp + 0x98], rsi
mov rax, qword [r11 + 0x60]
mov qword [rsp + 0x40], rax
imul eax, dword [rdi], 0x9e3779b1
shl ebp, cl
mov ecx, 0x18
sub ecx, dword [rsi + 0x34]
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x50], eax
shr rax, cl
mov qword [rsp + 0xa0], rax
shr eax, 2
and eax, 0x3fffffc0
mov ecx, eax
add rdx, rcx
mov qword [rsp + 0x88], rdx
lea rax, [r8 + rax*4]
mov qword [rsp + 0xa8], rax
prefetcht0 byte [rax]
prefetcht0 byte [r8 + rcx*4 + 0x40]
prefetcht0 byte [rdx]
prefetcht0 byte [rdx + 0x20]
xor esi, esi
mov dword [rsp + 0x58], 0x3f
cmp dword [r11 + 0x12c], esi
jne 0x18005ec1d
mov r10d, dword [r11 + 0x2c]
mov eax, r12d
sub eax, r10d
mov qword [rsp + 0x38], r15
mov r15, qword [rsp + 0x60]
mov ecx, r9d
mov rdx, r15
cmp eax, 0x180
jbe 0x18005eafa
lea eax, [r10 + 0x60]
cmp r10d, eax
jae 0x18005ea28
mov r13, qword [rsp + 0x80]
lea r12, [r15 + 8]
mov rbp, qword [rsp + 0x68]
mov ebx, 0x18
sub ebx, r9d
mov r14d, r10d
add r12, r10
mov r15d, eax
nop word [rax + rax]
imul edx, dword [r12], 0x9e3779b1
mov rcx, rbx
mov eax, dword [r11 + 0x60]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
prefetcht0 byte [rax + rbp + 0x20]
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, 2
and eax, 0x3fffffc0
movzx ecx, byte [rax + rbp]
lea rdx, [rax + rbp]
dec ecx
mov r8d, eax
and ecx, 0x3f
mov eax, esi
cmove eax, dword [rsp + 0x58]
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 0x18005e980
mov rdx, qword [r11 + 8]
mov ebx, 3
mov ebp, dword [rsp + 0x30]
mov r13, qword [rsp + 0x70]
mov r12d, dword [rsp + 0x48]
mov r15, qword [rsp + 0x60]
mov rcx, qword [r11 + 0x38]
lea r10d, [r12 - 0x20]
mov r14, qword [r11 + 0x70]
lea rax, [rdi + 1]
mov qword [rsp + 0x38], rcx
lea r9, [r10 + r15]
mov ecx, dword [r11 + 0x34]
mov dword [rsp + 0x50], ecx
mov ecx, eax
sub ecx, r15d
mov r8d, r10d
sub ecx, r10d
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 0x18005eaf6
mov r13, qword [rsp + 0x38]
mov eax, 0x18
sub eax, dword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov ebp, eax
mov r15d, ecx
nop dword [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, 2
and eax, 0x3fffffc0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
prefetcht0 byte [rax + r13 + 0x20]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r15, 1
jne 0x18005ea90
mov rcx, qword [r11 + 0x38]
mov r14, qword [r11 + 0x70]
mov rdx, qword [r11 + 8]
mov ebp, dword [rsp + 0x30]
mov r13, qword [rsp + 0x70]
mov qword [rsp + 0x38], rcx
mov ecx, dword [r11 + 0x34]
cmp r10d, r12d
jae 0x18005ebb8
mov r13, qword [rsp + 0x38]
lea rbx, [r10 + 8]
mov ebp, 0x18
mov r15d, r10d
sub ebp, ecx
add rbx, rdx
nop dword [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, 2
and eax, 0x3fffffc0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
prefetcht0 byte [rax + r13 + 0x20]
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, 2
and eax, 0x3fffffc0
movzx ecx, byte [rax + r13]
lea rdx, [rax + r13]
dec ecx
mov r8d, eax
and ecx, 0x3f
mov eax, esi
cmove eax, dword [rsp + 0x58]
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 0x18005eb20
mov ebp, dword [rsp + 0x30]
mov ebx, 3
mov r13, qword [rsp + 0x70]
mov eax, dword [rsp + 0x40]
mov ecx, 0x18
sub ecx, dword [rsp + 0x5c]
mov r10, qword [rsp + 0x60]
mov r14, qword [rsp + 0x80]
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, 2
and eax, 0x3fffffc0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
mov r15, qword [rsp + 0x68]
prefetcht0 byte [rax + r15]
prefetcht0 byte [rax + r15 + 0x20]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x18005ec39
mov r9d, dword [rsp + 0x40]
mov ecx, 0x18
mov eax, dword [rsp + 0x50]
sub ecx, dword [rsp + 0x5c]
xor r9, rax
shr r9, cl
mov dword [r11 + 0x2c], r12d
add dword [r11 + 0x68], r9d
mov eax, r9d
shr eax, 2
and eax, 0x3fffffc0
mov qword [rsp + 0x68], r9
movdqu xmm1, xmmword [rax + r15 + 0x10]
movdqu xmm0, xmmword [rax + r15]
lea rcx, [r14 + rax*4]
mov r14, rsi
mov qword [rsp + 0x40], rcx
lea rcx, [rax + r15]
movsx eax, r9b
mov r15, rsi
mov qword [rsp + 0x38], rcx
movd xmm2, eax
mov rax, rcx
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
pcmpeqb xmm1, xmm2
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm1
movdqu xmm1, xmmword [rcx + 0x30]
pmovmskb r8d, xmm0
movdqu xmm0, xmmword [rcx + 0x20]
pcmpeqb xmm1, xmm2
pmovmskb r9d, xmm1
pcmpeqb xmm0, xmm2
pmovmskb eax, xmm0
shl r9, 0x10
or r9, rax
movsxd rax, edx
movzx edx, byte [rcx]
shl r9, 0x10
or r9, rax
movsxd rax, r8d
mov r8, qword [rsp + 0x40]
shl r9, 0x10
or r9, rax
mov rax, rcx
movzx ecx, dl
and cl, 0x3f
ror r9, cl
test r9, r9
je 0x18005ed2c
mov r13d, dword [rsp + 0x78]
nop
test ebp, ebp
je 0x18005ed23
bsf rcx, r9
add ecx, edx
and ecx, 0x3f
mov ecx, dword [r8 + rcx*4]
je 0x18005ed1a
cmp ecx, r13d
jb 0x18005ed23
prefetcht0 byte [rcx + r10]
mov dword [rsp + r15*4 + 0xc0], ecx
inc r15
dec ebp
lea rax, [r9 - 1]
and r9, rax
ja 0x18005ecf0
mov r13, qword [rsp + 0x70]
mov dword [rsp + 0x30], ebp
lea ecx, [rdx - 1]
mov eax, esi
and ecx, 0x3f
mov edx, 0x3f
cmove eax, edx
mov rdx, qword [rsp + 0x38]
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 0x18005edc9
mov esi, dword [rsp + 0x48]
mov rbp, qword [rsp + 0x90]
nop word [rax + rax]
mov r12d, dword [rsp + r14*4 + 0xc0]
lea rdx, [r10 + r12]
mov eax, dword [rdx + rbx - 3]
cmp eax, dword [rbx + rdi - 3]
jne 0x18005edb6
mov r8, r13
mov rcx, rdi
call fcn.18004f920
mov rcx, rax
cmp rax, rbx
jbe 0x18005edb1
mov rbx, rax
mov eax, esi
sub eax, r12d
add eax, 3
mov qword [rbp], rax
lea rax, [rbx + rdi]
cmp rax, r13
je 0x18005edbe
mov r10, qword [rsp + 0x60]
inc r14
cmp r14, r15
jb 0x18005ed70
mov ebp, dword [rsp + 0x30]
xor esi, esi
mov r12d, dword [rsp + 0x48]
mov r10, qword [rsp + 0x98]
mov r14, rsi
mov r15, qword [r10 + 8]
mov r11d, dword [r10 + 0x18]
mov r10, qword [r10]
mov eax, r10d
mov qword [rsp + 0x40], r10
sub eax, r15d
sub dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x88]
movzx r9d, byte [rax]
movsx eax, byte [rsp + 0xa0]
movd xmm2, eax
mov rax, qword [rsp + 0x88]
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rax + 0x10]
pmovmskb r8d, xmm1
movdqa xmm1, xmm2
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
movdqu xmm0, xmmword [rax + 0x20]
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rax + 0x30]
pmovmskb ecx, xmm1
pcmpeqb xmm2, xmm0
pmovmskb eax, xmm2
shl rax, 0x10
or rax, rcx
movsxd rcx, edx
shl rax, 0x10
or rax, rcx
movsxd rcx, r8d
shl rax, 0x10
or rax, rcx
mov ecx, r9d
and ecx, 0x3f
ror rax, cl
test rax, rax
je 0x18005ef3b
mov r8, qword [rsp + 0xa8]
nop dword [rax]
test ebp, ebp
je 0x18005eec3
bsf rdx, rax
add edx, r9d
and edx, 0x3f
mov edx, dword [r8 + rdx*4]
je 0x18005eeba
cmp edx, r11d
jb 0x18005eec3
prefetcht0 byte [rdx + r15]
mov dword [rsp + rsi*4 + 0xc0], edx
inc rsi
dec ebp
lea rcx, [rax - 1]
and rax, rcx
ja 0x18005ee90
test rsi, rsi
je 0x18005ef3b
nop dword [rax + rax]
mov ebp, dword [rsp + r14*4 + 0xc0]
mov eax, dword [rdi]
lea rdx, [r15 + rbp]
cmp dword [rdx], eax
jne 0x18005ef33
mov rax, qword [rsp + 0xb0]
lea rcx, [rdi + 4]
add rdx, 4
mov qword [rsp + 0x20], rax
mov r9, r10
mov r8, r13
call fcn.18004f9c0
lea rcx, [rax + 4]
cmp rcx, rbx
jbe 0x18005ef2e
mov rdx, qword [rsp + 0x90]
mov eax, r12d
sub eax, ebp
mov rbx, rcx
sub eax, dword [rsp + 0x4c]
add eax, 3
mov qword [rdx], rax
lea rax, [rcx + rdi]
cmp rax, r13
je 0x18005ef3b
mov r10, qword [rsp + 0x40]
inc r14
cmp r14, rsi
jb 0x18005eed0
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800cec10
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret