Function at 0x18009d2c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180119040]
xor rax, rsp
mov qword [rbp - 0x20], rax
movsd xmm0, qword [0x18011ac10]
ucomisd xmm0, qword [0x180104028]
jp 0x18009d5b6
jne 0x18009d5b6
movups xmm0, xmmword [0x1800ff918]
movzx eax, byte [0x1800ff940]
xor r8d, r8d
cmp dword [0x180119010], 2
movups xmm1, xmmword [0x1800ff928]
mov byte [rbp - 0x28], al
movups xmmword [rbp - 0x50], xmm0
movsd xmm0, qword [0x1800ff938]
movsd qword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x40], xmm1
jl 0x18009d484
movdqa xmm0, xmmword [str.2222222222222222]
lea rcx, [rbp - 0x4c]
movdqa xmm5, xmmword [0x1801044a0]
movdqa xmm4, xmmword [0x1801046b0]
movdqa xmmword [rbp - 0x60], xmm0
mov edx, dword [rbp - 0x60]
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x180104500]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 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 r8d, 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, xmm7
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, edx
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, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x28
jl 0x18009d370
movaps xmm7, xmmword [rsp + 0x70]
cmp r8d, 0x29
jge 0x18009d4c4
movsxd rax, r8d
lea r9, [rbp - 0x50]
add r9, rax
nop
mov eax, 0x8fb823ef
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, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0x29
jl 0x18009d490
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
call fcn.180009330
movsd xmm0, qword [0x18011ac10]
ucomisd xmm0, qword [0x180104028]
mov rcx, qword [rax]
mov qword [0x18011c3c0], rcx
jp 0x18009d5b6
jne 0x18009d5b6
xorps xmm0, xmm0
mov qword [rbp - 0x40], 0
test rcx, rcx
mov qword [rbp - 0x38], 0xf
movups xmmword [rbp - 0x50], xmm0
mov ecx, 0x20
jne 0x18009d571
call fcn.1800c8160
movups xmm0, xmmword [str.Couldnt_find_AbilityPatch_]
mov qword [rbp - 0x50], rax
mov rdx, rax
mov qword [rbp - 0x40], 0x1b
mov qword [rbp - 0x38], 0x1f
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1800fe6e0]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1800fe6e8]
mov word [rax + 0x18], cx
lea rcx, [rbp - 0x50]
movzx eax, byte [0x1800fe6ea]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], 0
xor edx, edx
call fcn.180097a80
jmp 0x18009d5b6
call fcn.1800c8160
movups xmm0, xmmword [str.Found_AbilityPatch_]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], socket
mov qword [rbp - 0x38], 0x1f
movups xmmword [rax], xmm0
movzx ecx, word [0x1800fe730]
mov word [rax + 0x10], cx
movzx ecx, byte [0x1800fe732]
mov byte [rax + 0x12], cl
lea rcx, [rbp - 0x50]
mov byte [rax + 0x13], 0
call fcn.180097780
mov al, 1
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1800c8140
add rsp, 0x80
pop rbp
ret