Function at 0x18008e490
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
cmp dword [0x18011dd38], 5
movaps xmmword [rsp + 0x70], xmm6
jge 0x18008e67d
movzx eax, word [0x1800ff220]
xor r8d, r8d
cmp dword [0x18011c018], 2
movups xmm0, xmmword [0x1800ff200]
mov word [rbp - 0x20], ax
movups xmm1, xmmword [0x1800ff210]
movzx eax, byte [0x1800ff222]
mov byte [rbp - 0x1e], al
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm1
jl 0x18008e62f
movdqa xmm0, xmmword [str.9999999999999999]
lea rcx, [rbp - 0x3c]
movdqa xmm5, xmmword [0x1801063b0]
movdqa xmm4, xmmword [0x1801065a0]
movdqa xmm6, xmmword [0x1801063f0]
movdqa xmmword [rbp - 0x60], xmm0
mov edx, dword [rbp - 0x60]
nop word [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, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180106490]
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, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180106490]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x20
jl 0x18008e520
cmp r8d, 0x23
jge 0x18008e674
movsxd rax, r8d
lea r9, [rbp - 0x40]
add r9, rax
nop dword [rax]
mov eax, 0x8d3dcb09
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, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x23
jl 0x18008e640
lea rdx, [rbp - 0x40]
jmp 0x18008ea28
movsd xmm0, qword [0x180106040]
comisd xmm0, xmmword [0x18011dd30]
jbe 0x18008e85d
cmp dword [0x18011c018], 2
movups xmm0, xmmword [0x1800ff1d8]
movups xmm1, xmmword [0x1800ff1e8]
movups xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [0x1800ff1f8]
movsd qword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x30], xmm1
jl 0x18008e810
movdqa xmm0, xmmword [str.9999999999999999]
lea rcx, [rbp - 0x3c]
movdqa xmm5, xmmword [0x1801063b0]
xor edx, edx
movdqa xmm4, xmmword [0x1801065a0]
movdqa xmm6, xmmword [0x1801063f0]
movdqa xmmword [rbp - 0x60], xmm0
mov r8d, dword [rbp - 0x60]
nop dword [rax]
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 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 edx, 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 [0x180106490]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
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, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180106490]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x28
jl 0x18008e700
lea rdx, [rbp - 0x40]
jmp 0x18008ea28
lea r9, [rbp - 0x40]
xor r8d, r8d
nop word [rax + rax]
mov eax, 0x8d3dcb09
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, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x28
jl 0x18008e820
lea rdx, [rbp - 0x40]
jmp 0x18008ea28
movups xmm0, xmmword [0x1800ff1a8]
movzx eax, byte [0x1800ff1d0]
xor r8d, r8d
cmp dword [0x18011c018], 2
movups xmm1, xmmword [0x1800ff1b8]
mov byte [rbp - 0x18], al
movups xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [0x1800ff1c8]
movsd qword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x30], xmm1
jl 0x18008e9df
movdqa xmm0, xmmword [str.9999999999999999]
lea rcx, [rbp - 0x3c]
movdqa xmm5, xmmword [0x1801063b0]
movdqa xmm4, xmmword [0x1801065a0]
movdqa xmm6, xmmword [0x1801063f0]
movdqa xmmword [rbp - 0x60], xmm0
mov edx, dword [rbp - 0x60]
nop word [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, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180106490]
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, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180106490]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x28
jl 0x18008e8d0
cmp r8d, 0x29
jge 0x18008ea24
movsxd rax, r8d
lea r9, [rbp - 0x40]
add r9, rax
nop dword [rax]
mov eax, 0x8d3dcb09
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, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x29
jl 0x18008e9f0
lea rdx, [rbp - 0x40]
xor r8d, r8d
lea rcx, [rbp + 0x10]
call fcn.18001e840
mov rdx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x18008ea4d
movsxd rax, dword [rcx + 3]
add rcx, 7
add rcx, rax
mov qword [rdx], rcx
movaps xmm6, xmmword [rsp + 0x70]
xorps xmm0, xmm0
mov qword [0x18011e6d0], rcx
test rcx, rcx
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], 0
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x48], 0
jne 0x18008eaa1
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str.Couldnt_find_GObjects_
call fcn.18001d4b0
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.18008dfc0
xor al, al
add rsp, 0x80
pop rbp
ret
mov r8d, 0xf
lea rdx, str.Found_GObjects_
call fcn.18001d4b0
lea rcx, [rbp - 0x60]
call fcn.18008dcc0
mov al, 1
add rsp, 0x80
pop rbp
ret