Function at 0x1802fdb20
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x178
mov rax, qword [0x1804af240]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r15, qword [rcx + 8]
mov rsi, rcx
mov rax, qword [rcx + 0x38]
mov rbx, r8
mov r12d, dword [rcx + 0x34]
mov r13d, edx
sub r13d, r15d
mov qword [rsp + 0x40], rax
mov r10, rdx
mov qword [rsp + 0x50], r9
mov r9, qword [rcx + 0x70]
mov r14d, 1
mov ecx, dword [rcx + 0x100]
mov edx, r14d
shl edx, cl
mov eax, r13d
mov ecx, dword [rsi + 0x1c]
mov r8d, r13d
sub eax, ecx
mov qword [rsp + 0x38], rbx
sub r8d, edx
mov qword [rsp + 0x18], r9
cmp eax, edx
mov dword [rsp + 0x2c], r12d
mov eax, dword [rsi + 0x10c]
mov edi, 3
mov rdx, qword [rsi + 0x60]
cmovbe r8d, ecx
cmp dword [rsi + 0x28], 0
mov qword [rsp + 0x20], r15
cmovne r8d, ecx
mov dword [rsp], r13d
mov ecx, 5
mov dword [rsp + 0x30], r8d
cmp eax, ecx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 4], 0x1f
cmovb ecx, eax
xor r11d, r11d
shl r14d, cl
mov dword [rsp + 8], r14d
cmp dword [rsi + 0x12c], r11d
jne 0x1802fdeae
mov ebp, dword [rsi + 0x2c]
mov eax, r13d
sub eax, ebp
cmp eax, 0x180
jbe 0x1802fdd7d
lea eax, [rbp + 0x60]
cmp ebp, eax
jae 0x1802fdcd4
mov rdi, qword [rsp + 0x40]
lea rbx, [r15 + 8]
mov ecx, 0x18
mov r13d, eax
sub ecx, r12d
mov r14, r9
mov qword [rsp + 0x10], rcx
add rbx, rbp
mov r15d, ecx
mov r12d, ebp
nop word [rax + rax]
imul edx, dword [rbx], 0x9e3779b1
mov rcx, r15
mov eax, dword [rsi + 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 [rdi + rax]
mov rax, r12
lea rbx, [rbx + 1]
and eax, 7
mov r9d, dword [rsi + rax*4 + 0x40]
mov dword [rsi + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, byte [rax + rdi]
lea rdx, [rax + rdi]
dec ecx
mov r8d, eax
and ecx, 0x1f
mov eax, r11d
cmove eax, dword [rsp + 4]
inc r12
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r14 + rax*4], ebp
inc ebp
cmp ebp, r13d
jb 0x1802fdc40
mov rbx, qword [rsp + 0x38]
mov edi, 3
mov r14d, dword [rsp + 8]
mov r15, qword [rsp + 0x20]
mov r13d, dword [rsp]
mov rcx, qword [rsi + 0x38]
lea ebp, [r13 - 0x20]
mov r12, qword [rsi + 0x70]
lea rax, [r10 + 1]
mov qword [rsp + 0x10], rcx
lea r9, [r15 + rbp]
mov ecx, eax
mov r8d, ebp
sub ecx, ebp
sub ecx, r15d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, r11d
cmp ecx, eax
cmova ecx, eax
lea eax, [rcx + rbp]
cmp ebp, eax
jae 0x1802fdd78
mov rbx, qword [rsp + 0x10]
mov r13d, 0x18
sub r13d, dword [rsi + 0x34]
mov r15d, ecx
nop dword [rax]
nop word [rax + rax]
imul edx, dword [r9], 0x9e3779b1
mov rcx, r13
mov eax, dword [rsi + 0x60]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
prefetcht0 byte [rbx + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rsi + rax*4 + 0x40], edx
sub r15, 1
jne 0x1802fdd30
mov rbx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x18]
mov rax, qword [rsi + 0x38]
mov r13, qword [rsi + 0x70]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x10], rax
mov eax, dword [rsp]
cmp ebp, eax
jae 0x1802fde57
mov rdi, qword [rsp + 0x10]
lea r12, [rcx + 8]
mov r14d, 0x18
mov r15d, ebp
sub r14d, dword [rsi + 0x34]
mov ebx, eax
add r12, r15
nop dword [rax]
nop dword [rax + rax]
imul edx, dword [r12], 0x9e3779b1
mov rcx, r14
mov eax, dword [rsi + 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 + rdi]
mov rax, r15
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rsi + rax*4 + 0x40]
mov dword [rsi + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, byte [rdi + rax]
lea rdx, [rdi + rax]
dec ecx
mov r8d, eax
and ecx, 0x1f
mov eax, r11d
cmove eax, dword [rsp + 4]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], ebp
inc ebp
cmp ebp, ebx
jb 0x1802fddc0
mov rbx, qword [rsp + 0x38]
mov edi, 3
mov r14d, dword [rsp + 8]
mov eax, dword [rsp]
mov r9, qword [rsp + 0x18]
mov dword [rsi + 0x2c], eax
mov ecx, 0x18
sub ecx, dword [rsp + 0x2c]
mov r8d, eax
mov rax, qword [rsp + 0x20]
imul edx, dword [r8 + rax + 8], 0x9e3779b1
mov eax, dword [rsp + 0x48]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
mov ecx, eax
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov rax, qword [rsp + 0x40]
prefetcht0 byte [rcx + rax]
and r8d, 7
mov r15d, dword [rsi + r8*4 + 0x40]
mov dword [rsi + r8*4 + 0x40], edx
jmp 0x1802fdec9
imul r15d, dword [r10], 0x9e3779b1
mov ecx, 0x18
mov eax, edx
sub ecx, r12d
mov dword [rsi + 0x2c], r13d
xor r15, rax
shr r15, cl
add dword [rsi + 0x68], r15d
mov eax, r15d
mov rcx, qword [rsp + 0x40]
mov rbp, r11
shr eax, 3
and eax, 0x1fffffe0
add rcx, rax
mov qword [rsp + 0x48], rcx
lea r12, [r9 + rax*4]
movsx eax, r15b
movdqu xmm0, xmmword [rcx]
movzx r13d, byte [rcx]
mov edx, r13d
movd xmm2, eax
and edx, 0x1f
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 xmm0, xmm2
pmovmskb r8d, xmm0
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 0x1802fdf85
mov rdx, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x30]
test r14d, r14d
je 0x1802fdf85
bsf rcx, r9
add ecx, r13d
and ecx, 0x1f
mov ecx, dword [r12 + rcx*4]
je 0x1802fdf7c
cmp ecx, r8d
jb 0x1802fdf85
prefetcht0 byte [rcx + rdx]
mov dword [rsp + rbp*4 + 0x60], ecx
inc rbp
dec r14d
lea rax, [r9 - 1]
and r9, rax
ja 0x1802fdf54
lea ecx, [r13 - 1]
mov eax, r11d
and ecx, 0x1f
mov edx, 0x1f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x48]
mov byte [rax], cl
mov byte [rcx + rax], r15b
mov eax, dword [rsi + 0x2c]
mov dword [r12 + rcx*4], eax
inc dword [rsi + 0x2c]
test rbp, rbp
je 0x1802fe096
mov esi, dword [rsp]
mov r14, qword [rsp + 0x50]
nop
mov r9d, dword [rsp + r11*4 + 0x60]
mov eax, dword [rdi + r10 - 3]
mov edx, r9d
add rdx, qword [rsp + 0x20]
cmp dword [rdx + rdi - 3], eax
jne 0x1802fe08a
lea r8, [rbx - 7]
mov rax, r10
cmp r10, r8
jae 0x1802fe029
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x1802fdffa
bsf rcx, rcx
shr rcx, 3
jmp 0x1802fe06e
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x1802fe029
nop word [rax + rax]
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x1802fe0bd
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x1802fe010
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x1802fe040
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1802fe040
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x1802fe059
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1802fe059
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x1802fe068
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1802fe068
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rdi
jbe 0x1802fe08a
mov eax, esi
mov rdi, rcx
sub eax, r9d
add eax, 3
mov qword [r14], rax
lea rax, [rcx + r10]
cmp rax, rbx
je 0x1802fe096
inc r11
cmp r11, rbp
jb 0x1802fdfc0
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.18031c370
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
bsf rcx, rcx
shr rcx, 3
sub rcx, r10
add rcx, rax
jmp 0x1802fe06e