Function at 0x140065480
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1f]
sub rsp, 0xc0
mov rax, qword gs:[0x58]
mov rdi, rcx
mov ecx, 4
mov rbx, r9
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x1401bb678], eax
jle 0x140065739
lea rcx, [0x1401bb678]
call fcn.14012e64c
cmp dword [0x1401bb678], 0xffffffff
jne 0x140065739
movups xmm0, xmmword [str.iCvDRYM_oTO__]
movzx eax, byte [0x140197808]
xor r8d, r8d
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x21], al
jl 0x140065686
movdqa xmm0, xmmword [0x140198d20]
lea rcx, [rbp - 0x2d]
movdqa xmm5, xmmword [0x140198b10]
mov eax, 5
movdqa xmm4, xmmword [0x140198df0]
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm7
movdqa xmm7, xmmword [0x140198b60]
movd xmm6, eax
mov eax, Ordinal_33
movaps xmmword [rsp + 0x90], xmm8
movdqa xmmword [rbp - 0x41], xmm0
mov edx, dword [rbp - 0x41]
movd xmm8, eax
nop dword [rax]
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
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 [0x140198ce0]
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
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 [0x140198ce0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x140065560
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0xb0]
cmp r8d, 0x11
jge 0x1400656c6
movsxd rax, r8d
lea r9, [rbp - 0x31]
add r9, rax
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x33
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x11
jl 0x140065690
cmp byte [reloc.WLDAP32.dll_Ordinal_60], 0
movsd xmm0, qword [0x140197408]
movzx eax, word [0x140197410]
movsd qword [rbp - 0x41], xmm0
mov word [rbp - 0x39], ax
je 0x14006570f
xor byte [rbp - 0x40], 0x34
xor byte [rbp - 0x3f], 0x35
xor byte [rbp - 0x3e], 0x36
xor byte [rbp - 0x3d], 0x37
xor byte [rbp - 0x3c], 0x38
xor byte [rbp - 0x3b], 0x39
xor byte [rbp - 0x3a], 0x3a
xor byte [rbp - 0x39], 0x3b
xor byte [rbp - 0x38], 0x3c
mov byte [rbp - 0x41], WSAGetLastError
lea rcx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1401bb678]
mov qword [0x1401bb688], rax
call fcn.14012e5e0
mov r10, qword [0x1401bb688]
test r10, r10
je 0x140065791
mov r9, rbx
mov qword [rbp + 0x7f], 0
xor r8d, r8d
mov edx, 0x1fffff
mov rcx, rdi
mov qword [rbp + 0x6f], 0x1000
mov qword [rbp + 0x67], 0
mov dword [rbp + 0x5f], 4
mov qword [rbp + 0x57], 0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
jmp r10
movss xmm0, dword [0x140198a84]
call fcn.140064b80
int3