Function at 0x18004a1b0
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x18006e078]
xor edi, edi
mov qword [rsp + 0x60], rbx
mov rbx, rcx
test rax, rax
je 0x18004a1d5
mov rax, qword [rax + 0x98]
jmp 0x18004a1d8
mov rax, rdi
cmp dword [rax + 0x28], edi
jne 0x18004a1e2
call fcn.180006ac0
call fcn.180007820
call fcn.18000e2b0
cmp byte [rbx], dil
mov rbx, qword [rsp + 0x60]
je 0x18004a51f
mov rax, qword [0x18006e078]
xorps xmm1, xmm1
movss xmm0, dword [rax + 0x18]
addss xmm0, xmm0
mulss xmm0, dword [0x180062a5c]
addss xmm0, dword [0x18006e564]
comiss xmm1, xmm0
ja 0x18004a22e
movss xmm1, dword [0x180062a48]
minss xmm1, xmm0
comiss xmm1, dword [0x1800629ac]
movss dword [0x18006e564], xmm1
jbe 0x18004a4ef
call fcn.18000cd40
xor ecx, ecx
call fcn.180026f90
mov rax, qword [0x18006e078]
xor ecx, ecx
movss xmm1, dword [0x18006e564]
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.18000a990
movups xmm0, xmmword [str.a__A_KIZPRV__6C_]
movups xmmword [rsp + 0x20], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x18004a451
cmp dword [0x18006d428], 2
jl 0x18004a418
movdqa xmm0, xmmword [0x180062d60]
lea rcx, [rsp + 0x24]
movdqa xmm4, xmmword [0x180062d20]
mov edx, edi
movdqa xmm3, xmmword [0x180063030]
movdqa xmm5, xmmword [0x180062d40]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
movaps xmmword [rsp + 0x40], xmm6
movdqa xmm6, xmmword [0x180062d50]
nop dword [rax]
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add edx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x10
jl 0x18004a330
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x18004a451
lea r9, [rsp + 0x20]
mov r8d, edi
mov eax, 0x4d4873ed
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9 - 1], al
cmp r8d, 0x10
jl 0x18004a420
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x1ab
call fcn.1800140a0
call fcn.180049d90
call fcn.180048f30
call fcn.1800499a0
call fcn.180048c00
call fcn.1800162c0
mov rcx, qword [0x18006e078]
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, [0x18005aca0]
cmp dword [rax + r10*4], 8
mov r9d, dword [rax + r10*4 + 8]
jne 0x18004a4e9
mov eax, dword [rax + r10*4 + 4]
cmp eax, 1
jne 0x18004a4ca
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x37f8], eax
jmp 0x18004a4e9
cmp eax, 2
jne 0x18004a4e9
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.1800108d0
call fcn.180010c70
mov rax, qword [0x18006e078]
mov rcx, qword [rax + 0x40e0]
mov rcx, qword [rcx]
add rcx, 0x48
cmp byte [rcx], dil
cmove rcx, rdi
add rsp, 0x50
pop rdi
jmp fcn.180006340
add rsp, 0x50
pop rdi
ret