Function at 0x140003410
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1400b60c0]
xor rax, rsp
mov qword [rbp + 0x250], rax
xor edx, edx
mov r8d, 0x298
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [0x1400b6190]
lea rcx, [rbp - 0x50]
call fcn.140002810
nop
movsd xmm0, qword [0x14009e498]
movsd qword [rsp + 0x20], xmm0
mov eax, dword [0x14009e4a0]
mov dword [rsp + 0x28], eax
xor edi, edi
cmp byte [str._EDX8bad_cast], dil
je 0x14000360d
mov ecx, edi
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400035da
movdqa xmm5, xmmword [0x1400a7930]
movdqa xmm2, xmmword [0x1400a7850]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400a78c0]
psubd xmm2, xmm0
movdqa xmm4, xmmword [0x1400a78f0]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400a7910]
movd xmm0, dword [0x14009e498]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm2, xmmword [0x1400a7860]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400a78c0]
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400a7910]
movd xmm0, dword [rsp + 0x24]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
movdqa xmm3, xmmword [0x1400a7870]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400a78c0]
psubd xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1400a7910]
movd xmm0, eax
xorps xmm3, xmm0
movd dword [rsp + 0x28], xmm3
jmp 0x14000360d
lea r8, [rsp + 0x20]
nop
mov eax, 0x3521cfb3
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x35
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xc
jl 0x1400035e0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x140003630
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400040a0
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x50]
call fcn.140038970
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x50]
call fcn.140003870
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140002f30
mov rbx, qword [rsp + 0x70]
cmp qword [rsp + 0x78], rbx
je 0x1400036a1
mov rcx, rbx
call fcn.1400156d0
test eax, eax
je 0x1400036a1
mov edi, 1
test rbx, rbx
je 0x1400036de
mov rdx, qword [rbp - 0x80]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400036d5
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140089d8c
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14000371c
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003717
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003717
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089d8c
movdqa xmm0, xmmword [0x1400a7840]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
lea rcx, [rbp - 0x50]
call fcn.140002b50
mov eax, edi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140089d30
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret