Function at 0x180013390
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword gs:[0x58]
mov rdi, rcx
mov edx, dword [0x18010f094]
xor ebx, ebx
mov ecx, 4
mov r8, qword [rax + rdx*8]
mov eax, dword [rcx + r8]
cmp dword [0x18010ede8], eax
jg 0x18001348f
lea rcx, [rdi + 0x98]
cmp rcx, 0x400000
jbe 0x18001347c
lea rax, [rdi + 0xa0]
movabs rdx, 0x7fffffff0000
cmp rax, rdx
jae 0x18001347c
mov rax, qword [rcx]
test rax, rax
je 0x18001347c
lea rcx, [rax + 0x2a0]
cmp rcx, 0x400000
jbe 0x18001347c
add rax, 0x2a8
cmp rax, rdx
jae 0x18001347c
mov rax, qword [rcx]
test rax, rax
je 0x18001347c
cmp rax, 0x3f000000
je 0x18001347c
lea rcx, [rax + 0x20]
cmp rcx, 0x400000
jbe 0x18001347c
add rax, 0x28
cmp rax, rdx
jae 0x18001347c
mov rax, qword [rcx]
test rax, rax
je 0x18001347c
cmp rax, 0x3f000000
je 0x18001347c
lea rcx, [rax + 0x18]
cmp rcx, 0x400000
jbe 0x180013469
add rax, 0x1c
cmp rax, rdx
jae 0x180013469
mov ebx, dword [rcx]
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
mov rbx, qword [rsp + 0xb0]
xor eax, eax
add rsp, 0xa0
pop rdi
ret
lea rcx, [0x18010ede8]
call fcn.180056398
cmp dword [0x18010ede8], 0xffffffff
jne 0x1800133ca
cmp dword [0x18010e520], 2
mov ecx, ebx
movups xmm0, xmmword [str.vKJ_VQG]
movzx eax, word [0x18005d268]
movups xmm1, xmmword [0x18005d248]
mov word [rsp + 0x60], ax
movzx eax, byte [0x18005d26a]
movups xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x62], al
movups xmm0, xmmword [0x18005d258]
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm0
jl 0x180013674
movdqa xmm0, xmmword [str.7777777777777777]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x18005f6e0]
mov eax, 5
movdqa xmm4, xmmword [0x18005fe90]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm7
movdqa xmm7, xmmword [0x18005f730]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x70], xmm8
movd xmm8, eax
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 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 ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x18005f740]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x18005f740]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x30
jl 0x180013550
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
cmp ecx, 0x33
jge 0x1800136af
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x37
xor byte [r8 - 1], al
cmp ecx, 0x33
jl 0x180013680
lea rcx, [rsp + 0x30]
call qword [0x18010eb00]
lea rcx, [0x18010ede8]
mov qword [0x18010ede0], rax
call fcn.180056338
jmp 0x1800133ca