Function at 0x14004c220
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
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x230
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140700d00]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r13d, r13d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
movups xmm0, xmmword [0x1402a4c48]
movups xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [str.37b]
movsd qword [rsp + 0x70], xmm0
cmp byte [0x1402a4c5f], al
je 0x14004c41c
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14004c3df
movdqa xmm5, xmmword [0x1402377c0]
mov edx, r13d
movdqa xmm4, xmmword [0x1402a52d0]
movdqa xmm6, xmmword [str.5555]
movdqa xmm0, xmmword [str.7777777777777777W]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x64]
mov r8d, dword [rsp + 0x50]
movd xmm2, edx
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 [0x1402377f0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 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 [0x1402377f0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x18
jl 0x14004c2e0
jmp 0x14004c41c
lea r8, [rsp + 0x60]
mov ecx, r13d
nop word [rax + 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, 0x37
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x18
jl 0x14004c3f0
mov qword [rbp - 0x80], r13
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
mov cl, 1
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x68]
call fcn.14003fe50
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x68]
call fcn.140040040
mov qword [rbp - 0x70], rax
lea rcx, [rsp + 0x60]
mov r14, 0xffffffffffffffff
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14004c460
lea r8, [rsp + 0x60]
add r8, rax
mov r9d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.14003efc0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp - 0x50], r13
mov byte [rbp - 0x48], 0
movdqu xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov qword [rbp - 0x20], r13
mov byte [rbp - 0x18], 0
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp], 0
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], r13
mov byte [rbp + 0x18], 0
cmp qword [rsi + 0x18], 0xf
jbe 0x14004c4e6
mov rdx, qword [rsi]
mov qword [rsp + 0x40], rdx
mov rbx, rdx
add rbx, qword [rsi + 0x10]
mov rsi, rdx
jmp 0x14004c4f2
mov rbx, qword [rsi + 0x10]
add rbx, rsi
mov qword [rsp + 0x40], rsi
mov r12, rbx
mov r15, qword [rbp - 0x80]
test r15, r15
je 0x14004c79b
xor r13b, r13b
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [r15 + 0x20]
mov ecx, dword [r15 + 0x28]
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x78]
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.140040150
nop
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x20]
call fcn.14003e750
test al, al
jne 0x14004c60f
cmp rsi, rbx
je 0x14004c627
mov eax, dword [rbp + 0xdc]
btr eax, 0xd
bts eax, 8
mov dword [rbp + 0xdc], eax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], 0
mov r9, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140049b70
mov rax, qword [rax]
cmp rax, rbx
je 0x14004c5f4
mov r15, rax
nop word [rax + rax]
mov qword [rbp + 0xc8], rax
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x20]
call fcn.14003e750
test al, al
jne 0x14004c60f
lea r8, [r15 + 1]
mov qword [rsp + 0x20], 0
mov r9, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140049b70
mov rax, qword [rax]
mov r15, rax
cmp rax, r12
jne 0x14004c5b0
mov qword [rbp + 0xc8], rbx
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x20]
call fcn.14003e750
test al, al
je 0x14004c627
mov r13b, 1
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x28], rsi
cmp rsi, qword [rbp - 0x20]
setne byte [rbp - 0x18]
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x14004c687
mov rdx, qword [rbp + 0xb0]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c669
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c669
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140230ac8
xor esi, esi
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xb0], rsi
jmp 0x14004c689
xor esi, esi
lea rcx, [rbp + 0x60]
call fcn.140040de0
lea rcx, [rbp + 0x20]
call fcn.140040de0
test r13b, r13b
je 0x14004c798
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x40]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
ja 0x14004c6da
lea rax, [rbp + 8]
lea r8, [rbp + 0x18]
jmp 0x14004c6e2
lea rax, [r8 + 0x18]
add r8, 0x28
cmp byte [r8], 0
je 0x14004c6f2
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
jmp 0x14004c6fb
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
cmp rdx, r8
jne 0x14004c729
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
jmp 0x14004c735
sub r8, rdx
mov rcx, rdi
call fcn.14001c3b0
nop
lea rcx, [rbp - 0x40]
call fcn.14001ded0
nop
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14004c77c
lock xadd dword [rax + 0x2c], r14d
cmp r14d, 1
jne 0x14004c77c
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x14004c77c
nop dword [rax]
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], rsi
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
jne 0x14004c760
mov qword [rbp - 0x80], rsi
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14004c832
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14004c81f
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
xor r8d, r8d
lea rdx, [0x14050ca85]
mov rcx, rdi
call fcn.14001c3b0
nop
lea rcx, [rbp - 0x40]
call fcn.14001ded0
nop
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14004c80c
lock xadd dword [rax + 0x2c], r14d
cmp r14d, 1
jne 0x14004c80c
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x14004c80c
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], r13
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
jne 0x14004c7f0
mov qword [rbp - 0x80], r13
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14004c832
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14004c832
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, rdi
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140230920
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret