Function at 0x180049b00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x18006d078]
xor edi, edi
mov rbx, rcx
test rax, rax
je 0x180049b24
mov rax, qword [rax + 0x98]
jmp 0x180049b27
mov rax, rdi
cmp dword [rax + 0x28], edi
jne 0x180049b31
call fcn.180006250
call fcn.180006fb0
call fcn.18000da40
cmp byte [rbx], dil
je 0x180049e83
mov rax, qword [0x18006d078]
xorps xmm1, xmm1
movss xmm0, dword [rax + 0x18]
addss xmm0, xmm0
mulss xmm0, dword [0x180062824]
addss xmm0, dword [0x18006d55c]
comiss xmm1, xmm0
ja 0x180049b78
movss xmm1, dword [0x180062810]
minss xmm1, xmm0
comiss xmm1, dword [0x180062784]
movss dword [0x18006d55c], xmm1
jbe 0x180049e58
call fcn.18000c4d0
xor ecx, ecx
call fcn.180026700
mov rax, qword [0x18006d078]
xor ecx, ecx
movss xmm1, dword [0x18006d55c]
mov qword [rax + 0x3834], 0x3f800000
mov dword [rax + 0x383c], 0x40400000
mov dword [rax + 0x380c], edi
mov dword [rax + 0x3870], 0x40400000
mov dword [rax + 0x386c], 0x40a00000
or dword [rax + 0x3fe0], 2
mov dword [rax + 0x4000], 0x44518000
mov dword [rax + 0x4004], 0x4405c000
mov dword [rax + 0x3fe8], 1
call fcn.18000a120
cmp byte [0x18006133b], dil
movsd xmm0, qword [str.aS_PTu_QTO__]
mov eax, dword [0x180061338]
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], eax
je 0x180049dba
cmp dword [0x18006c428], 2
mov r8d, edi
jl 0x180049d8b
movdqa xmm2, xmmword [0x180062af0]
movdqa xmm5, xmmword [0x180062eb0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x180062b10]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movdqa xmm4, xmmword [0x180062b60]
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180062b50]
psubd xmm2, xmm0
movd xmm0, dword [str.aS_PTu_QTO__]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.11111111111111119999999999999999]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm2, xmmword [0x180062b00]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [0x180062b50]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x24]
andps xmm2, xmm4
packuswb xmm2, xmm2
pmuldq xmm1, xmm5
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.11111111111111119999999999999999]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x24], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180062b50]
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [str.11111111111111119999999999999999]
xorps xmm3, xmm0
movd dword [rsp + 0x28], xmm3
jmp 0x180049dba
lea r9, [rsp + 0x20]
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
mul r8d
shr edx, 5
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 0x180049d90
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x1ab
call fcn.180013830
call fcn.1800496e0
call fcn.180048880
call fcn.1800492f0
call fcn.180048550
call fcn.180015a50
mov rcx, qword [0x18006d078]
movsxd rax, dword [rcx + 0x4060]
mov r8, qword [rcx + 0x4068]
lea rdx, [rax + rax*2]
movsxd rax, dword [r8 + rdx*4 - 0xc]
lea r10, [rax + rax*2]
lea rax, [0x18005ac20]
cmp dword [rax + r10*4], 8
mov r9d, dword [rax + r10*4 + 8]
jne 0x180049e52
mov eax, dword [rax + r10*4 + 4]
cmp eax, 1
jne 0x180049e33
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x37f8], eax
jmp 0x180049e52
cmp eax, 2
jne 0x180049e52
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x37f8], eax
mov eax, dword [r8 + rdx*4 - 4]
mov dword [r9 + rcx + 0x37fc], eax
dec dword [rcx + 0x4060]
call fcn.180010060
call fcn.180010400
mov rax, qword [0x18006d078]
mov rcx, qword [rax + 0x40e0]
mov rcx, qword [rcx]
add rcx, 0x48
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.180005ad0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret