Function at 0x18009d5d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x180119040]
xor rax, rsp
mov qword [rbp + 0x37], rax
cmp dword [0x18011abec], 5
jge 0x18009d89b
movups xmm0, xmmword [0x1800fea20]
xor ecx, ecx
cmp dword [0x180119010], 2
movups xmm1, xmmword [0x1800fea30]
mov eax, dword [0x1800fea70]
movups xmmword [rbp - 0x29], xmm0
movups xmm0, xmmword [0x1800fea40]
movups xmmword [rbp - 9], xmm0
movups xmm0, xmmword [0x1800fea60]
movups xmmword [rbp - 0x19], xmm1
movups xmm1, xmmword [0x1800fea50]
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 7], xmm1
mov dword [rbp + 0x27], eax
jl 0x18009d794
movdqa xmm0, xmmword [str.2222222222222222]
lea rdx, [rbp - 0x25]
movdqa xmm5, xmmword [0x1801044a0]
movdqa xmm4, xmmword [0x1801046b0]
movdqa xmmword [rbp - 0x39], xmm0
mov r8d, dword [rbp - 0x39]
movaps xmmword [rsp + 0xc0], xmm6
movdqa xmm6, xmmword [0x180104500]
nop dword [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, 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 [0x1801045a0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps 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, 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 [0x1801045a0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x50
jl 0x18009d680
movaps xmm6, xmmword [rsp + 0xc0]
cmp ecx, 0x54
jge 0x18009d7cf
movsxd rax, ecx
lea r8, [rbp - 0x29]
add r8, rax
nop
mov eax, 0x8fb823ef
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, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp ecx, 0x54
jl 0x18009d7a0
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.180009330
cmp dword [0x18011abec], 5
mov rcx, qword [rax]
mov qword [0x18011b768], rcx
jge 0x18009d89b
xorps xmm0, xmm0
mov qword [rbp - 0x49], 0
test rcx, rcx
mov qword [rbp - 0x41], 0xf
movups xmmword [rbp - 0x59], xmm0
mov ecx, 0x20
jne 0x18009d860
call fcn.1800c8160
movups xmm0, xmmword [str.Couldnt_find_GiveAbility_]
mov qword [rbp - 0x59], rax
xor edx, edx
mov qword [rbp - 0x49], 0x1a
mov qword [rbp - 0x41], 0x1f
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1800fe710]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1800fe718]
mov word [rax + 0x18], cx
lea rcx, [rbp - 0x59]
mov byte [rax + 0x1a], 0
call fcn.180097a80
jmp 0x18009d89b
call fcn.1800c8160
movups xmm0, xmmword [str.Found_GiveAbility_]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x49], socket
mov qword [rbp - 0x41], 0x1f
movups xmmword [rax], xmm0
movzx ecx, word [0x1800fe760]
mov word [rax + 0x10], cx
lea rcx, [rbp - 0x59]
mov byte [rax + 0x12], 0
call fcn.180097780
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1800c8140
add rsp, 0xd0
pop rbp
ret