Function at 0x18004fe20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov r15, rcx
mov qword [rsp + 0x110], r12
mov rcx, r8
mov rbx, rdx
call fcn.180058680
mov r8, qword [0x18020bb68]
xor r13d, r13d
mov r12, rax
mov esi, r13d
test r8, r8
jne 0x18004fee2
mov edi, r13d
mov qword [rsp + 0x118], r14
nop
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
sub rdx, rcx
movsxd rax, esi
sar rdx, 3
cmp rax, rdx
jae 0x18004feda
mov rcx, qword [rdi + rcx]
xor r9d, r9d
mov r8d, 0x400
mov dword [rsp + 0x20], r13d
mov rdx, r12
call fcn.18004f360
mov r14, rax
test rax, rax
je 0x18004fec8
mov rcx, qword [rbx]
mov rcx, qword [rdi + rcx]
call fcn.18004f670
movsxd rcx, eax
mov r8d, dword [rcx + r14]
shr r8, 3
mov qword [0x18020bb68], r8
jmp 0x18004fecf
mov r8, qword [0x18020bb68]
inc esi
add rdi, 8
test r8, r8
je 0x18004fe70
mov r14, qword [rsp + 0x118]
mov rax, qword [rbx]
mov r12, qword [rsp + 0x110]
cmp rax, qword [rbx + 8]
je 0x18004fefe
mov qword [rbx + 8], rax
mov r8, qword [0x18020bb68]
test r8, r8
jne 0x1800503e3
cmp byte [0x1800eb63b], r13b
movsd xmm0, qword [0x1800eb630]
mov eax, dword [0x1800eb638]
mov esi, dword [0x18010c088]
movsd qword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0xd0], xmm6
mov dword [rsp + 0x38], eax
je 0x180050094
mov r8d, r13d
cmp esi, 2
jl 0x18005004a
movdqa xmm2, xmmword [0x1800fab00]
mov r8d, 8
movdqa xmm3, xmmword [0x1800fab20]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1800fad80]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800fabc0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x1800eb630]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800fac90]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x30], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800fabc0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x34]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800fac90]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x180050060
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
xorps xmm1, xmm1
mov rdi, 0xffffffffffffffff
movups xmmword [rbp - 0x29], xmm0
mov r8, rdi
movdqu xmmword [rbp - 0x19], xmm1
inc r8
cmp byte [rax + r8], r13b
jne 0x1800500b2
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x29]
call fcn.1800140a0
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x49], xmm0
mov r8, rdi
movdqu xmmword [rbp - 0x39], xmm1
nop dword [rax + rax]
inc r8
cmp byte [r15 + r8], r13b
jne 0x1800500e0
mov rdx, r15
lea rcx, [rbp - 0x49]
call fcn.1800140a0
movups xmm0, xmmword [0x1800ebab8]
movups xmmword [rsp + 0x30], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x180050295
cmp esi, 2
jl 0x180050259
movdqa xmm0, xmmword [0x1800fac90]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1800fab00]
mov edx, r13d
movdqa xmm4, xmmword [0x1800fad80]
movdqa xmm6, xmmword [0x1800fabc0]
movdqa xmmword [rbp - 0x69], xmm0
mov r8d, dword [rbp - 0x69]
nop dword [rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800fac70]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x10
jl 0x180050150
jmp 0x180050295
lea r9, [rsp + 0x30]
mov r8d, r13d
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0x10
jl 0x180050261
movaps xmm6, xmmword [rsp + 0xd0]
lea rax, [rsp + 0x30]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x69], xmm0
movdqu xmmword [rbp - 0x59], xmm1
inc rdi
cmp byte [rax + rdi], r13b
jne 0x1800502b1
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x69]
call fcn.1800140a0
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x69]
lea rcx, [rsp + 0x30]
call fcn.180022f30
lea r9, [rbp - 0x29]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 9]
call fcn.180022f30
xor edx, edx
lea rcx, [rbp - 9]
call fcn.180029810
mov rdx, qword [rbp - 0x71]
cmp rdx, 0xf
jbe 0x180050336
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180050331
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005043e
call fcn.1800b4d3c
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x180050371
mov rcx, qword [rbp - 0x69]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005036c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005043e
call fcn.1800b4d3c
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x1800503ac
mov rcx, qword [rbp - 0x49]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800503a7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005043e
call fcn.1800b4d3c
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x1800503e3
mov rcx, qword [rbp - 0x29]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800503de
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005043e
call fcn.1800b4d3c
mov rcx, qword [rbx]
test rcx, rcx
je 0x180050427
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x180050417
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18005043e
mov rcx, r8
call fcn.1800b4d3c
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret
call fcn.1800bbacc
int3