Function at 0x140012670
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x140
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rax, rdx
mov r14, rcx
mov qword [rsp + 0x68], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bl
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x78], xmm0
lea rdx, [0x14006f610]
mov rcx, rax
call fcn.140044c24
mov rsi, rax
lea rax, [0x140044b4c]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x60], 1
mov ecx, 0x20
call fcn.140037d78
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rsp + 0x70]
movups xmmword [rdi], xmm0
mov dword [rdi + 8], 1
mov dword [rdi + 0xc], 1
lea rcx, vtable.std::_Ref_count_resource_struct__iobuf____ptr64__int____cdecl___struct__iobuf____ptr64__.0
mov qword [rdi], rcx
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
test rsi, rsi
jne 0x1400128e4
lea rdx, [rsp + 0x50]
call fcn.1400129d0
mov r9, rax
cmp byte [rax + 0x10], sil
je 0x1400129a3
cmp dword [0x14007e010], 2
jl 0x1400128a3
movdqa xmm5, xmmword [0x1400713b0]
movdqa xmm4, xmmword [0x140071440]
movdqa xmm6, xmmword [0x1400713d0]
movdqa xmm0, xmmword [0x140071400]
movdqa xmmword [rsp + 0x30], xmm0
mov rcx, rax
movdqa xmm7, xmmword [0x1400713f0]
mov edx, dword [rsp + 0x30]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
lea eax, [rbx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, edx
paddb xmm3, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm3, xmm0
movd dword [rcx + 4], xmm3
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x10
jl 0x1400127b3
cmp eax, 0x11
jge 0x1400129a3
movsxd r8, ebx
add r8, r9
nop dword [rax]
mov eax, 0xa0a0a0a1
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, bl
sub al, cl
add al, 0x31
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x11
jge 0x1400129a3
jmp 0x1400128b0
mov rcx, rsi
call fcn.140046190
mov rbx, 0xffffffffffffffff
test eax, eax
jne 0x14001294b
nop word [rax + rax]
mov r8, rsi
mov edx, 0x80
lea rcx, [rsp + 0x90]
call fcn.140045270
test rax, rax
je 0x14001293f
lea rax, [rsp + 0x90]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140012925
lea rdx, [rsp + 0x90]
mov rcx, r14
call fcn.140022920
mov rcx, rsi
call fcn.140046190
test eax, eax
je 0x140012900
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140012972
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140012972
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + ioctlsocket]
mov rax, r14
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140037c30
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.1400021f0
lea rdx, [0x14007c738]
lea rcx, [rsp + 0x30]
call fcn.14003be68
int3