Function at 0x18009cfa0
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
movsd xmm0, qword [0x18011ac10]
ucomisd xmm0, qword [0x180104150]
jp 0x18009d2a4
jne 0x18009d2a4
movups xmm0, xmmword [0x1800ff320]
xor r8d, r8d
cmp dword [0x180119010], 2
mov eax, dword [0x1800ff370]
movups xmm1, xmmword [0x1800ff330]
movups xmmword [rbp - 0x29], xmm0
movups xmm0, xmmword [0x1800ff340]
mov dword [rbp + 0x27], eax
movzx eax, word [0x1800ff374]
movups xmmword [rbp - 9], xmm0
movups xmm0, xmmword [0x1800ff360]
movups xmmword [rbp - 0x19], xmm1
movups xmm1, xmmword [0x1800ff350]
mov word [rbp + 0x2b], ax
movzx eax, byte [0x1800ff376]
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 7], xmm1
mov byte [rbp + 0x2d], al
jl 0x18009d188
movdqa xmm0, xmmword [str.2222222222222222]
lea rcx, [rbp - 0x25]
movdqa xmm5, xmmword [0x1801044a0]
movdqa xmm4, xmmword [0x1801046b0]
movdqa xmmword [rbp - 0x39], xmm0
mov edx, dword [rbp - 0x39]
movaps xmmword [rsp + 0xc0], xmm7
movdqa xmm7, xmmword [0x180104500]
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, 0x50
jl 0x18009d071
movaps xmm7, xmmword [rsp + 0xc0]
cmp r8d, 0x57
jge 0x18009d1d4
movsxd rax, r8d
lea r9, [rbp - 0x29]
add r9, rax
nop dword [rax]
nop word [rax + rax]
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, 0x57
jl 0x18009d1a0
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.180009330
movsd xmm0, qword [0x18011ac10]
ucomisd xmm0, qword [0x180104150]
mov rcx, qword [rax]
mov qword [0x18011b090], rcx
jp 0x18009d2a4
jne 0x18009d2a4
mov qword [rbp - 0x41], 0xf
test rcx, rcx
jne 0x18009d26c
xorps xmm0, xmm0
mov qword [rbp - 0x49], rcx
mov ecx, 0x20
movups xmmword [rbp - 0x59], xmm0
call fcn.1800c8160
movups xmm0, xmmword [str.Couldnt_find_NetMode_]
mov qword [rbp - 0x59], rax
xor edx, edx
mov qword [rbp - 0x49], socket
mov qword [rbp - 0x41], 0x1f
movups xmmword [rax], xmm0
mov ecx, dword [0x1800fe6b8]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x1800fe6bc]
mov word [rax + 0x14], cx
lea rcx, [rbp - 0x59]
mov byte [rax + 0x16], 0
call fcn.180097a80
jmp 0x18009d2a4
mov eax, dword [0x1800fe6f8]
lea rcx, [rbp - 0x59]
movsd xmm0, qword [str.Found_NetMode_]
mov dword [rbp - 0x51], eax
movzx eax, word [0x1800fe6fc]
mov word [rbp - 0x4d], ax
mov word [rbp - 0x4b], 0
mov qword [rbp - 0x49], 0xe
movsd qword [rbp - 0x59], xmm0
call fcn.180097780
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1800c8140
add rsp, 0xd0
pop rbp
ret