Function at 0x1400401a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x50], 0
lea r14, [rdx + 0x10]
mov rcx, qword [r14]
mov rax, rdx
lea r15, [rdx + 0x18]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400401f7
mov rax, qword [rdx]
lea r14, [rdx + 0x10]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
call fcn.140135960
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14003e6b0
nop
lea rcx, [rsp + 0x68]
call fcn.14003f0c0
movzx r13d, al
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x14004027a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040275
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004051b
lea r14, [rbx + 0x10]
lea r15, [rbx + 0x18]
call fcn.140136310
test r13b, r13b
jne 0x140040530
movsd xmm0, qword [str.u_YS]
movsd qword [rsp + 0x30], xmm0
mov edx, dword [0x140176ac8]
mov dword [rsp + 0x38], edx
movzx eax, word [0x140176acc]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x140176ace]
mov byte [rsp + 0x3e], al
xor r14d, r14d
mov ecx, r14d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14004041b
movdqa xmm5, xmmword [0x140177de0]
movdqa xmm2, xmmword [0x1401778f0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140177930]
psubd xmm2, xmm0
movdqa xmm4, xmmword [0x140177990]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.3333333333333333]
movd xmm0, dword [str.u_YS]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm2, xmmword [0x140177910]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140177930]
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.3333333333333333]
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
movdqa xmm3, xmmword [0x140177920]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140177930]
psubd xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [str.3333333333333333]
movd xmm0, edx
xorps xmm3, xmm0
movd dword [rsp + 0x38], xmm3
mov ecx, ntohl
mov eax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xf
jl 0x140040430
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x140040480
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400413c0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400404cd
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400404c8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040522
mov rcx, r8
call fcn.140136310
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140040512
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14004050d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040529
mov rcx, r8
call fcn.140136310
mov qword [rsi + 0x10], r14
jmp 0x140040678
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140047e30
nop
xor r13d, r13d
mov qword [rbp - 0x40], r13
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.14004b050
nop
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.1400486e0
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140048240
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], r13b
mov dword [rsp + 0x50], Ordinal_41
cmp byte [rax], 3
jne 0x1400406a8
mov rdx, qword [rax + 8]
mov r12, r15
cmp rdi, rdx
je 0x1400405d7
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400405ce
mov rdx, qword [rdx]
lea r14, [rbx + 0x10]
lea r12, [rbx + 0x18]
mov rcx, rdi
call fcn.14005ae00
nop
lea rcx, [rsp + 0x58]
call fcn.140049e00
movzx edx, byte [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.140049980
nop
lea rcx, [rbp - 0x30]
call fcn.1400406f0
nop
mov rdx, qword [r15]
cmp rdx, 0xf
jbe 0x140040630
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14004062b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004069a
mov rcx, r8
call fcn.140136310
mov qword [r14], r13
mov qword [r12], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140040674
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14004066f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400406a1
mov rcx, r8
call fcn.140136310
mov qword [rsi + 0x10], r13
mov rax, rdi
mov byte [rsi], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
add rsp, 0x1e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rax
call fcn.140049d70
mov qword [rbp + 0x148], rax
lea r8, [rbp + 0x148]
lea rcx, [rsp + 0x30]
call fcn.14005af70
nop
mov r8, rax
lea rcx, [rbp - 0x78]
call fcn.14005b030
lea rdx, [0x14018e848]
lea rcx, [rbp - 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3