Function at 0x1802fe6d0
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 rax, qword [rcx + 0x70]
mov rsi, rcx
mov r15, qword [rcx + 8]
mov rbx, r8
mov ebp, dword [rcx + 0x34]
mov r8d, edx
sub r8d, r15d
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x38]
mov r14d, 1
mov ecx, dword [rcx + 0x100]
mov r10, rdx
mov qword [rsp + 0x40], rax
mov edi, 3
mov qword [rsp + 0x58], r9
mov eax, r8d
mov qword [rsp + 0x28], rdx
mov r9d, r8d
mov edx, r14d
mov qword [rsp + 0x30], rbx
shl edx, cl
movabs r12, 0xcf1bbcdcbb000000
mov ecx, dword [rsi + 0x1c]
sub r9d, edx
sub eax, ecx
mov dword [rsp + 0xc], ebp
cmp eax, edx
mov qword [rsp + 0x18], r15
mov eax, dword [rsi + 0x10c]
cmovbe r9d, ecx
mov dword [rsp], r8d
cmp dword [rsi + 0x28], 0
mov dword [rsp + 8], 0xf
cmovne r9d, ecx
mov ecx, 4
cmp eax, ecx
mov dword [rsp + 0x20], r9d
cmovb ecx, eax
mov rax, qword [rsi + 0x60]
shl r14d, cl
xor r11d, r11d
mov qword [rsp + 0x50], rax
mov dword [rsp + 4], r14d
cmp dword [rsi + 0x12c], r11d
jne 0x1802fea64
mov ebp, dword [rsi + 0x2c]
mov eax, r8d
sub eax, ebp
mov r13d, 0x38
cmp eax, 0x180
jbe 0x1802fe93e
lea eax, [rbp + 0x60]
cmp ebp, eax
jae 0x1802fe898
mov rdi, qword [rsp + 0x38]
lea r14, [r15 + 8]
mov r10d, r13d
mov ebx, ebp
sub r10d, dword [rsp + 0xc]
mov r15d, eax
mov r13, qword [rsp + 0x40]
add r14, rbp
nop word [rax + rax]
mov rdx, qword [r14]
mov ecx, r10d
imul rdx, r12
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rax + r13]
mov rax, rbx
lea r14, [r14 + 1]
and eax, 7
mov r9d, dword [rsi + rax*4 + 0x40]
mov dword [rsi + 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, r11d
cmove eax, dword [rsp + 8]
inc rbx
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rdi + rax*4], ebp
inc ebp
cmp ebp, r15d
jb 0x1802fe800
mov r10, qword [rsp + 0x28]
mov edi, 3
mov rbx, qword [rsp + 0x30]
mov r13d, 0x38
mov r14d, dword [rsp + 4]
mov r15, qword [rsp + 0x18]
mov r8d, dword [rsp]
mov rcx, qword [rsi + 0x70]
lea ebp, [r8 - 0x20]
mov qword [rsp + 0x10], rcx
lea rax, [r10 + 1]
mov rcx, qword [rsi + 0x38]
lea r9, [r15 + rbp]
mov qword [rsp + 0x48], rcx
mov ecx, eax
sub ecx, r15d
mov r8d, ebp
sub ecx, ebp
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 0x1802fe93a
mov r14, qword [rsp + 0x10]
mov ebx, r13d
sub ebx, dword [rsi + 0x34]
mov r10, qword [rsp + 0x48]
mov r15d, ecx
nop dword [rax]
mov rdx, qword [r9]
mov ecx, ebx
imul rdx, r12
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [rax + r10]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rsi + rax*4 + 0x40], edx
sub r15, 1
jne 0x1802fe8f0
mov r10, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
mov r14d, dword [rsp + 4]
mov r8d, dword [rsp]
mov rax, qword [rsi + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rsi + 8]
cmp ebp, r8d
jae 0x1802fea14
mov edi, dword [rsp]
lea rbx, [rax + 8]
mov r10, qword [rsp + 0x48]
mov r14d, r13d
sub r14d, dword [rsi + 0x34]
mov r13, qword [rsp + 0x10]
mov r15d, ebp
add rbx, r15
nop dword [rax + rax]
mov rdx, qword [rbx]
mov ecx, r14d
imul rdx, r12
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r10 + rax*4]
prefetcht0 byte [rax + r13]
mov rax, r15
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, 4
and eax, 0xffffff0
movzx ecx, byte [rax + r13]
lea rdx, [rax + r13]
dec ecx
mov r8d, eax
and ecx, 0xf
mov eax, r11d
cmove eax, dword [rsp + 8]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r10 + rax*4], ebp
inc ebp
cmp ebp, edi
jb 0x1802fe980
mov r10, qword [rsp + 0x28]
mov edi, 3
mov rbx, qword [rsp + 0x30]
mov r13d, 0x38
mov r14d, dword [rsp + 4]
mov r8d, dword [rsp]
mov rax, qword [rsp + 0x18]
sub r13d, dword [rsp + 0xc]
movzx ecx, r13b
mov dword [rsi + 0x2c], r8d
mov rdx, qword [r8 + rax + 8]
imul rdx, r12
xor rdx, qword [rsp + 0x50]
shr rdx, cl
mov rcx, qword [rsp + 0x38]
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r9, qword [rsp + 0x40]
prefetcht0 byte [rax + r9]
and r8d, 7
mov r15d, dword [rsi + r8*4 + 0x40]
mov dword [rsi + r8*4 + 0x40], edx
jmp 0x1802fea86
mov r15, qword [r10]
mov ecx, 0x38
mov r9, qword [rsp + 0x40]
sub ecx, ebp
imul r15, r12
mov dword [rsi + 0x2c], r8d
xor r15, rax
shr r15, cl
mov rcx, qword [rsp + 0x38]
add dword [rsi + 0x68], r15d
mov eax, r15d
shr eax, 4
mov rbp, r11
and eax, 0xffffff0
movzx r13d, byte [rax + r9]
movdqu xmm0, xmmword [rax + r9]
lea r12, [rcx + rax*4]
lea rcx, [rax + r9]
movsx eax, r15b
mov qword [rsp + 0x50], rcx
movd xmm1, eax
mov eax, r13d
and eax, 0xf
punpcklbw xmm1, xmm1
mov ecx, eax
punpcklwd xmm1, xmm1
mov edx, 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
movzx r9d, ax
movzx eax, r8w
shr rax, cl
or r9, rax
jbe 0x1802feb32
mov rdx, qword [rsp + 0x18]
mov r8d, dword [rsp + 0x20]
test r14d, r14d
je 0x1802feb32
bsf rcx, r9
add ecx, r13d
and ecx, 0xf
mov ecx, dword [r12 + rcx*4]
je 0x1802feb29
cmp ecx, r8d
jb 0x1802feb32
prefetcht0 byte [rcx + rdx]
mov dword [rsp + rbp*4 + 0x60], ecx
inc rbp
dec r14d
lea rax, [r9 - 1]
and r9, rax
ja 0x1802feb01
lea ecx, [r13 - 1]
mov eax, r11d
and ecx, 0xf
mov edx, 0xf
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x50]
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 0x1802fec46
mov esi, dword [rsp]
mov r14, qword [rsp + 0x58]
nop dword [rax]
mov r9d, dword [rsp + r11*4 + 0x60]
mov eax, dword [rdi + r10 - 3]
mov edx, r9d
add rdx, qword [rsp + 0x18]
cmp dword [rdx + rdi - 3], eax
jne 0x1802fec3a
lea r8, [rbx - 7]
mov rax, r10
cmp r10, r8
jae 0x1802febd9
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x1802febaa
bsf rcx, rcx
shr rcx, 3
jmp 0x1802fec1e
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x1802febd9
nop word [rax + rax]
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x1802fec6d
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x1802febc0
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x1802febf0
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1802febf0
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x1802fec09
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1802fec09
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x1802fec18
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1802fec18
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rdi
jbe 0x1802fec3a
mov eax, esi
mov rdi, rcx
sub eax, r9d
add eax, 3
mov qword [r14], rax
lea rax, [rcx + r10]
cmp rax, rbx
je 0x1802fec46
inc r11
cmp r11, rbp
jb 0x1802feb70
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 0x1802fec1e