Function at 0x18008ead0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x4f]
sub rsp, 0xc8
xor edi, edi
movaps xmmword [rsp + 0xb0], xmm6
cmp dword [0x18011dd38], 5
jge 0x18008ecdd
cmp dword [0x18011c018], 2
mov r8d, edi
movups xmm0, xmmword [0x1800ff150]
movups xmm1, xmmword [0x1800ff160]
mov eax, dword [0x1800ff1a0]
movups xmmword [rbp - 0x29], xmm0
movups xmm0, xmmword [0x1800ff170]
movups xmmword [rbp - 9], xmm0
movups xmm0, xmmword [0x1800ff190]
movups xmmword [rbp - 0x19], xmm1
movups xmm1, xmmword [0x1800ff180]
mov dword [rbp + 0x27], eax
movzx eax, word [0x1800ff1a4]
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 7], xmm1
mov word [rbp + 0x2b], ax
jl 0x18008ec8f
movdqa xmm0, xmmword [str.9999999999999999]
lea rcx, [rbp - 0x25]
movdqa xmm5, xmmword [0x1801063b0]
movdqa xmm4, xmmword [0x1801065a0]
movdqa xmm6, xmmword [0x1801063f0]
movdqa xmmword [rbp - 0x49], xmm0
mov edx, dword [rbp - 0x49]
nop dword [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, 0x50
jl 0x18008eb80
cmp r8d, 0x56
jge 0x18008ecd4
movsxd rax, r8d
lea r9, [rbp - 0x29]
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, 0x56
jl 0x18008eca0
lea rdx, [rbp - 0x29]
jmp 0x18008eec8
cmp dword [0x18011dd38], 0xb
jge 0x18008eefd
cmp dword [0x18011c018], 2
mov r8d, edi
movups xmm0, xmmword [0x1800ff100]
movups xmm1, xmmword [0x1800ff110]
movzx eax, word [0x1800ff148]
movups xmmword [rbp - 0x29], xmm0
movups xmm0, xmmword [0x1800ff120]
movups xmmword [rbp - 9], xmm0
movsd xmm0, qword [0x1800ff140]
movups xmmword [rbp - 0x19], xmm1
movups xmm1, xmmword [0x1800ff130]
movsd qword [rbp + 0x17], xmm0
movups xmmword [rbp + 7], xmm1
mov word [rbp + 0x1f], ax
jl 0x18008ee7f
movdqa xmm0, xmmword [str.9999999999999999]
lea rcx, [rbp - 0x25]
movdqa xmm5, xmmword [0x1801063b0]
movdqa xmm4, xmmword [0x1801065a0]
movdqa xmm6, xmmword [0x1801063f0]
movdqa xmmword [rbp - 0x49], xmm0
mov edx, dword [rbp - 0x49]
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, 0x48
jl 0x18008ed70
cmp r8d, 0x4a
jge 0x18008eec4
movsxd rax, r8d
lea r9, [rbp - 0x29]
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, 0x4a
jl 0x18008ee90
lea rdx, [rbp - 0x29]
xor r8d, r8d
lea rcx, [rbp + 0x67]
call fcn.18001e840
mov rdx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x18008f2d7
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
mov qword [rdx], rcx
mov qword [0x18011e6b8], rcx
jmp 0x18008f39e
cmp dword [0x18011dd38], 0x10
jge 0x18008f0dd
cmp dword [0x18011c018], 2
mov r8d, edi
mov eax, dword [0x1800ff0f8]
movups xmm0, xmmword [0x1800ff0d8]
mov dword [rbp - 9], eax
movzx eax, word [0x1800ff0fc]
movups xmm1, xmmword [0x1800ff0e8]
mov word [rbp - 5], ax
movzx eax, byte [0x1800ff0fe]
mov byte [rbp - 3], al
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm1
jl 0x18008f08f
movdqa xmm0, xmmword [str.9999999999999999]
lea rcx, [rbp - 0x25]
movdqa xmm5, xmmword [0x1801063b0]
movdqa xmm4, xmmword [0x1801065a0]
movdqa xmm6, xmmword [0x1801063f0]
movdqa xmmword [rbp - 0x49], xmm0
mov edx, dword [rbp - 0x49]
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 0x18008ef80
cmp r8d, 0x27
jge 0x18008f0d4
movsxd rax, r8d
lea r9, [rbp - 0x29]
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, 0x27
jl 0x18008f0a0
lea rdx, [rbp - 0x29]
jmp 0x18008f2c8
cmp dword [0x18011dd38], 0x18
jge 0x18008f2e3
cmp dword [0x18011c018], 2
mov r8d, edi
movups xmm0, xmmword [0x1800ff090]
movups xmm1, xmmword [0x1800ff0a0]
mov eax, dword [0x1800ff0d0]
movups xmmword [rbp - 0x29], xmm0
movups xmm0, xmmword [0x1800ff0b0]
movups xmmword [rbp - 0x19], xmm1
movups xmm1, xmmword [0x1800ff0c0]
mov dword [rbp + 0x17], eax
movzx eax, word [0x1800ff0d4]
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm1
mov word [rbp + 0x1b], ax
jl 0x18008f27f
movdqa xmm0, xmmword [str.9999999999999999]
lea rcx, [rbp - 0x25]
movdqa xmm5, xmmword [0x1801063b0]
movdqa xmm4, xmmword [0x1801065a0]
movdqa xmm6, xmmword [0x1801063f0]
movdqa xmmword [rbp - 0x49], xmm0
mov edx, dword [rbp - 0x49]
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, 0x40
jl 0x18008f170
cmp r8d, 0x46
jge 0x18008f2c4
movsxd rax, r8d
lea r9, [rbp - 0x29]
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, 0x46
jl 0x18008f290
lea rdx, [rbp - 0x29]
xor r8d, r8d
lea rcx, [rbp + 0x67]
call fcn.18001e840
mov rcx, qword [rax]
mov qword [0x18011e6b8], rcx
jmp 0x18008f39e
movsd xmm0, qword [0x18011dd30]
comisd xmm0, xmmword [0x180106040]
jb 0x18008f397
lea rdx, [0x18011efc8]
mov qword [rsp + 0xc0], rbx
lea rcx, [rbp - 0x29]
call fcn.180034490
mov r9b, 1
lea rcx, [rbp + 0x67]
xor r8d, r8d
mov rdx, rax
call fcn.180094930
xorps xmm0, xmm0
mov qword [rbp - 0x39], rdi
mov edx, 1
lea rcx, [rbp - 0x49]
movdqu xmmword [rbp - 0x49], xmm0
mov rbx, rax
call fcn.18002f690
mov rcx, qword [rbp - 0x49]
lea r8, [rbp - 0x49]
mov r9b, 1
mov dword [rsp + 0x20], 1
lea rdx, [rbp + 0x77]
mov byte [rcx], 0xe8
inc rcx
mov qword [rbp - 0x41], rcx
mov rcx, rbx
call fcn.180095490
mov rbx, qword [rsp + 0xc0]
mov rdx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x18008f2d7
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
mov qword [rdx], rcx
mov qword [0x18011e6b8], rcx
jmp 0x18008f39e
mov rcx, qword [0x18011e6b8]
cmp dword [0x18011dd38], 0x18
movaps xmm6, xmmword [rsp + 0xb0]
jl 0x18008f3c1
movsd xmm0, qword [0x18011dd30]
comisd xmm0, xmmword [0x180106040]
jb 0x18008f41d
xorps xmm0, xmm0
mov qword [rbp - 0x39], rdi
test rcx, rcx
mov qword [rbp - 0x31], rdi
movups xmmword [rbp - 0x49], xmm0
lea rcx, [rbp - 0x49]
jne 0x18008f402
mov r8d, socket
lea rdx, str.Couldnt_find_Free_
call fcn.18001d4b0
xor edx, edx
lea rcx, [rbp - 0x49]
call fcn.18008dfc0
xor al, al
add rsp, 0xc8
pop rdi
pop rbp
ret
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str.Found_Free_
call fcn.18001d4b0
lea rcx, [rbp - 0x49]
call fcn.18008dcc0
mov al, 1
add rsp, 0xc8
pop rdi
pop rbp
ret