Function at 0x1401ee968
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x1401eed71
push rbp
push r15
lea rbp, [rsp - 0x4f]
mov eax, reloc.WLDAP32.dll_Ordinal_216
call fcn.140126870
sub rsp, rax
movaps xmmword [rsp + 0xa0], xmm6
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 7], rax
cmp dword [0x140452d64], 0
movaps xmm6, xmm2
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xc8], rdi
movsxd r15, edx
mov qword [rbp - 0x59], rcx
je 0x1401eea1c
lea rcx, [rbp - 0x21]
call fcn.1401be790
mov edx, reloc.WS2_32.dll_send
lea r8, [0x1403c8670]
mov r9d, 0xdf
lea ecx, [rdx - 0xe]
call fcn.1401becb0
lea rdx, [rbp - 0x21]
lea rcx, [0x1404531a0]
call fcn.1401be760
xor ebx, ebx
lea r8, [0x1403c8688]
test eax, eax
mov edi, ebx
mov r9d, 0xe1
sete dil
lea edx, [rbx + 0x13]
mov dword [rbp - 0x69], edi
lea ecx, [rbx + 6]
call fcn.1401becb0
test edi, edi
jne 0x1401eea3d
jmp 0x1401eea23
xor ebx, ebx
mov edi, ebx
mov dword [rbp - 0x69], ebx
mov edx, reloc.WS2_32.dll_select
lea r8, [0x1403c86a0]
mov r9d, 0xe6
lea ecx, [rdx - 9]
call fcn.1401becb0
mov rcx, qword [0x140452d48]
mov rax, qword [0x140452d50]
movups xmm0, xmmword [0x140453188]
movsxd rsi, ecx
add rcx, r15
mov qword [rbp - 0x61], rax
mov eax, dword [0x140453198]
mov dword [rbp - 1], eax
mov qword [0x140452d48], rcx
movups xmmword [rbp - 0x11], xmm0
cmp rcx, 0x3ff
jb 0x1401eeab4
movabs rax, 0x40100401004011
mov qword [0x140452d40], 0x3ff
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 9
imul rax, rax, 0x3ff
sub rcx, rax
mov qword [0x140452d48], rcx
jmp 0x1401eead1
mov rax, qword [0x140452d40]
cmp rax, 0x3ff
jae 0x1401eead1
cmp rcx, rax
cmova rax, rcx
mov qword [0x140452d40], rax
mov eax, 0x66666667
mov ecx, r15d
imul r15d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
mov eax, ebx
test ecx, ecx
setg al
add eax, edx
add dword [0x140452d54], eax
test edi, edi
jne 0x1401eeb19
mov r9d, 0x106
lea r8, [0x1403c86b8]
lea edx, [rdi + 0x12]
lea ecx, [rdi + 0xa]
call fcn.1401becb0
lea rcx, [rbp - 0x51]
call fcn.1401adf20
test r15d, r15d
jle 0x1401eec8c
mov qword [rsp + 0xc0], r12
lea ecx, [r15 - 1]
mov qword [rsp + 0xb8], r13
mov eax, 0xcccccccd
mul ecx
mov qword [rsp + 0xb0], r14
mov rdi, rsi
shr edx, 4
mov r12d, reloc.WS2_32.dll_sendto
lea r13d, [rdx + 1]
nop
cmp r15d, 0x14
mov r14d, r15d
cmovg r14d, r12d
call fcn.1401ae060
mov rdx, rax
lea rcx, [rbp - 0x51]
xor r8d, r8d
call fcn.1401ad960
mov r8, r12
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x51]
call fcn.1401adbc0
lea r12d, [rsi - 0x3ff]
movsxd rdx, esi
add r12d, r14d
lea rcx, [rbp - 0x51]
test r12d, r12d
jle 0x1401eebcd
mov eax, r14d
sub eax, r12d
movsxd r8, eax
lea rax, [0x140452d70]
add rdx, rax
call fcn.1401adbc0
movsxd r8, r12d
lea rdx, [0x140452d70]
lea rcx, [rbp - 0x51]
jmp 0x1401eebda
lea rax, [0x140452d70]
movsxd r8, r14d
add rdx, rax
call fcn.1401adbc0
mov r12, qword [rbp - 0x59]
lea rcx, [rbp - 0x51]
movsxd r14, r14d
mov rdx, r12
mov r8, r14
call fcn.1401adbc0
mov r8d, 8
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.1401adbc0
xor r8d, r8d
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x51]
call fcn.1401ad880
inc dword [rbp - 0x5d]
add r12, r14
mov qword [rbp - 0x59], r12
mov rcx, rbx
test r14, r14
jle 0x1401eec5d
lea rdx, [0x140452d70]
movzx eax, byte [rbp + rcx - 0x11]
inc rcx
xor byte [rdi + rdx], al
inc rdi
cmp rdi, 0x3ff
lea eax, [rsi + 1]
mov esi, ebx
cmovl esi, eax
mov rax, rbx
cmovl rax, rdi
mov rdi, rax
cmp rcx, r14
jl 0x1401eec31
sub r15d, 0x14
mov r12d, reloc.WS2_32.dll_sendto
sub r13, 1
jne 0x1401eeb60
mov edi, dword [rbp - 0x69]
mov r14, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xc0]
lea rcx, [rbp - 0x51]
call fcn.1401adbe0
mov rsi, qword [rsp + 0xd0]
test edi, edi
jne 0x1401eecc0
mov r9d, 0x137
lea r8, [0x1403c86d0]
lea edx, [rdi + 0x12]
lea ecx, [rdi + 9]
call fcn.1401becb0
nop dword [rax]
movdqu xmm1, xmmword [0x140453188]
mov ecx, 4
lea rdx, [0x140453188]
movdqu xmm0, xmmword [rbp - 0x11]
pxor xmm1, xmm0
movdqu xmmword [0x140453188], xmm1
nop word [rax + rax]
movzx eax, byte [rbp + rbx - 1]
xor byte [rbx + rdx + 0x10], al
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x1401eecf0
movsd xmm0, qword [0x1402dd1a0]
movsd xmm1, qword [0x140452d58]
comisd xmm0, xmm1
mov rbx, qword [rsp + 0x100]
jbe 0x1401eed2d
addsd xmm1, xmm6
movsd qword [0x140452d58], xmm1
test edi, edi
mov rdi, qword [rsp + 0xc8]
jne 0x1401eed53
mov edx, reloc.WS2_32.dll_select
lea r8, [0x1403c86e8]
mov r9d, 0x144
lea ecx, [rdx - 8]
call fcn.1401becb0
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140125a70
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xd8
pop r15
pop rbp
ret