Function at 0x140049240
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x130
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, rdx
mov r14, 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
lea rdx, [0x1400c6ba8]
mov rcx, rax
call fcn.14007984c
mov rsi, rax
lea rax, [0x140079774]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 1
lea ecx, [rbx + 0x20]
call fcn.140062afc
mov rdi, rax
mov qword [rsp + 0x168], rax
mov rcx, qword [rsp + 0x160]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_resource_struct__iobuf____ptr64__int____cdecl___struct__iobuf____ptr64__.0
mov qword [rdi], rax
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
test rsi, rsi
jne 0x1400494c2
lea rdx, [rsp + 0x28]
call fcn.1400495a0
mov r9, rax
cmp byte [rax + 0x10], sil
je 0x140049578
cmp dword [0x1400da008], 2
jl 0x140049484
movdqa xmm5, xmmword [0x1400c82b0]
movdqa xmm4, xmmword [0x1400c8370]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x1400c82e0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [str.1111111111111111]
movdqa xmmword [rsp + 0x50], xmm0
mov rcx, r9
mov edx, dword [rsp + 0x50]
nop dword [rax + rax]
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
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
andps xmm2, xmmword [0x1400c82f0]
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
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c82f0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm2, xmm0
movd dword [rcx + 4], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x10
jl 0x140049380
cmp eax, 0x11
jge 0x140049578
movsxd r8, ebx
add r8, r9
nop word [rax + rax]
mov eax, 0x4bda12f7
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, bl
sub al, cl
add al, 0x31
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x11
jge 0x140049578
jmp 0x140049490
mov rcx, rsi
call fcn.140079e88
mov rbx, 0xffffffffffffffff
test eax, eax
jne 0x14004952b
nop word [rax + rax]
mov r8, rsi
mov edx, 0x80
lea rcx, [rsp + 0x80]
call fcn.140079a74
test rax, rax
je 0x14004951f
lea rax, [rsp + 0x80]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140049505
lea rdx, [rsp + 0x80]
mov rcx, r14
call fcn.140031990
mov rcx, rsi
call fcn.140079e88
test eax, eax
je 0x1400494e0
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140049552
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140049552
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + ioctlsocket]
mov rax, r14
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.140032160
lea rdx, [0x1400d81b8]
lea rcx, [rsp + 0x60]
call fcn.140067898
int3