Function at 0x140013660
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140079040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
mov qword [rbp + 0x17], rcx
xor esi, esi
mov dword [rbp - 0x59], esi
xor ecx, ecx
call fcn.140043278
mov rcx, rax
call fcn.14003d3d0
movups xmm0, xmmword [0x14006ccd8]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [0x14006cce8]
movups xmmword [rbp - 0x19], xmm1
movups xmm0, xmmword [0x14006ccf8]
movups xmmword [rbp - 9], xmm0
movsd xmm0, qword [0x14006cd08]
movsd qword [rbp + 7], xmm0
mov eax, dword [0x14006cd10]
mov dword [rbp + 0xf], eax
movzx eax, word [0x14006cd14]
mov word [rbp + 0x13], ax
movzx eax, byte [0x14006cd16]
mov byte [rbp + 0x15], al
mov ecx, esi
cmp dword [0x140079088], 2
jl 0x140013832
movdqa xmm5, xmmword [0x14006d690]
movdqa xmm4, xmmword [0x14006d6f0]
movdqa xmm6, xmmword [0x14006d6c0]
movdqa xmm0, xmmword [str.2222222222222222]
movdqa xmmword [rbp - 0x49], xmm0
lea rdx, [rbp - 0x25]
mov r8d, dword [rbp - 0x49]
movd xmm2, ecx
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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14006d6d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14006d6d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x38
jl 0x140013730
cmp ecx, 0x3f
jge 0x14001386c
movsxd rax, ecx
lea r8, [rbp - 0x29]
add r8, rax
nop dword [rax]
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x32
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x3f
jl 0x140013840
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp + 0x2f], rsi
mov qword [rbp + 0x37], rsi
lea rax, [rbp - 0x29]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x140013886
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x1f]
call fcn.1400266a0
nop
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov edi, 1
mov dword [rbp - 0x59], edi
nop word [rax + rax]
call fcn.14003d3a4
cdqe
mov r9, qword [rbp + 0x2f]
lea rcx, [r9 - 1]
xor edx, edx
div rcx
movsxd rcx, edx
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], rsi
cmp r9, rcx
jb 0x1400139e6
sub r9, rcx
mov r8d, 1
cmp r9, r8
cmovb r8, r9
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0xf
cmova rdx, qword [rbp + 0x1f]
add rdx, rcx
lea rcx, [rbp - 0x49]
call fcn.1400266a0
or edi, 2
mov dword [rbp - 0x59], edi
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0xf
cmova rdx, qword [rbp - 0x49]
mov r8, qword [rbp - 0x39]
mov rcx, rbx
call fcn.14001f420
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140013971
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001396c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400139e0
call fcn.140034080
cmp qword [rbx + 0x10], 0x2c
jne 0x1400138c0
mov rdx, qword [rbp + 0x37]
cmp rdx, 0xf
jbe 0x1400139b3
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400139ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400139ec
call fcn.140034080
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140034060
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
call fcn.140044044
int3
call fcn.140022330
nop
call fcn.140044044
int3