Function at 0x180051fd0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
xor edi, edi
mov qword [rax + 0x10], rbx
lea rcx, [0x1800c1cf0]
mov dword [rax + 8], edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp byte [0x1800c16f1], dil
mov r9, rax
movups xmm3, xmmword [0x1800c16d8]
movzx eax, word [0x1800c16f0]
movsd xmm0, qword [0x1800c16e8]
movups xmmword [rsp + 0x30], xmm3
mov word [rsp + 0x48], ax
movsd qword [rsp + 0x40], xmm0
je 0x1800522ff
cmp dword [reloc.WS2_32.dll_accept], 2
mov ecx, edi
jl 0x1800522c0
movdqa xmm5, xmmword [0x1800c2400]
movdqa xmm2, xmmword [0x1800c1fc0]
movdqa xmm4, xmmword [0x1800c2090]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
movd eax, xmm3
movdqa xmm3, xmmword [0x1800c1ff0]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x1800c2080]
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movaps xmmword [rsp + 0x50], xmm7
movdqa xmm7, xmmword [0x1800c20f0]
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm2, xmmword [0x1800c1fe0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmulld xmm0, xmm6
psubd xmm2, xmm0
pmuldq xmm1, xmm5
movd xmm0, dword [rsp + 0x34]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x34], xmm2
movdqa xmm2, xmmword [0x1800c2000]
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm6
psubd xmm3, xmm0
punpckldq xmm1, xmm2
movd xmm0, dword [rsp + 0x38]
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm7
pmuldq xmm1, xmm5
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
movd dword [rsp + 0x38], xmm3
shufps xmm1, xmm0, 0xdd
movdqa xmm3, xmmword [0x1800c2010]
paddd xmm1, xmm2
psrad xmm1, 5
mov ecx, Ordinal_27
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm6
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x3c]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
pmuldq xmm1, xmm5
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x3c], xmm2
movdqa xmm2, xmmword [0x1800c2020]
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm6
psubd xmm3, xmm0
punpckldq xmm1, xmm2
movd xmm0, dword [rsp + 0x40]
andps xmm3, xmm4
packuswb xmm3, xmm3
pmuldq xmm1, xmm5
packuswb xmm3, xmm3
paddb xmm3, xmm7
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
movd dword [rsp + 0x40], xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x60]
psubd xmm2, xmm0
movd xmm0, dword [rsp + 0x44]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
movaps xmm7, xmmword [rsp + 0x50]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
mov eax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
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, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x1a
jl 0x1800522d0
lea rdx, [rsp + 0x30]
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r8, [rsp + 0x80]
mov edx, 7
call rbx
mov rbx, qword [rsp + 0x88]
test eax, eax
jne 0x180052352
cmp dword [rsp + 0x80], edi
setne dil
mov eax, edi
add rsp, 0x70
pop rdi
ret
xor eax, eax
add rsp, 0x70
pop rdi
ret