Function at 0x14004af10
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0xf0
vmovaps xmmword [r11 - 0x18], xmm6
vmovaps xmmword [r11 - 0x28], xmm7
vmovaps xmmword [r11 - 0x38], xmm8
mov rax, qword [0x140438180]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rbx, rcx
mov qword [r11 - 0x68], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
vmovups ymm0, ymmword [0x14041e160]
vmovups ymmword [rsp + 0x50], ymm0
vmovups xmm1, xmmword [0x14041e180]
vmovups xmmword [rsp + 0x70], xmm1
vmovsd xmm0, qword [0x14041e190]
vmovsd qword [rsp + 0x80], xmm0
mov eax, dword [0x14041e198]
mov dword [rsp + 0x88], eax
movzx eax, word [0x14041e19c]
mov word [rsp + 0x8c], ax
movzx eax, byte [0x14041e19e]
mov byte [rsp + 0x8e], al
vmovdqu xmm7, xmmword [0x14041ec80]
mov ecx, esi
vmovdqu xmm6, xmmword [0x14041ed60]
vmovdqu xmm8, xmmword [0x14041ecb0]
vmovdqu xmm0, xmmword [0x14041ecc0]
vmovdqu xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x54]
mov r8d, dword [rsp + 0x30]
nop
vmovd xmm0, ecx
vpshufd xmm0, xmm0, 0
vpaddd xmm5, xmm0, xmm7
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm6
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm6
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm0, xmm4, 0x1f
vpaddd xmm1, xmm0, xmm4
vpmulld xmm2, xmm1, xmm8
vpsubd xmm3, xmm5, xmm2
vpshufb xmm4, xmm3, xmmword [0x14041ec40]
vmovd xmm1, r8d
vpaddb xmm2, xmm4, xmm1
vmovd xmm0, dword [rdx - 4]
vpxor xmm1, xmm2, xmm0
vmovd dword [rdx - 4], xmm1
lea eax, [rcx + 4]
vmovd xmm0, eax
vpshufd xmm0, xmm0, 0
vpaddd xmm5, xmm0, xmm7
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm6
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm6
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmm8
vpsubd xmm3, xmm5, xmm2
vpshufb xmm4, xmm3, xmmword [0x14041ec40]
vmovd xmm0, r8d
vpaddb xmm1, xmm4, xmm0
vmovd xmm0, dword [rdx]
vpxor xmm1, xmm1, xmm0
vmovd dword [rdx], xmm1
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x38
jl 0x14004aff0
cmp ecx, 0x3f
jge 0x14004b0fc
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
sub al, dl
add al, 0x38
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x3f
jl 0x14004b0d0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x98], xmm0
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], rsi
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x14004b125
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
vzeroupper
call fcn.1400581b0
nop
vpxor xmm0, xmm0, xmm0
vmovups 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 [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov r9, qword [rsp + 0xa8]
lea rcx, [r9 + 1]
xor edx, edx
div rcx
movsxd rcx, edx
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
cmp r9, rcx
jb 0x14004b2c5
sub r9, rcx
mov r8d, 1
cmp r9, r8
cmovb r8, r9
lea rdx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 0xf
cmova rdx, qword [rsp + 0x98]
add rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1400581b0
or edi, 2
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400564b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14004b233
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b22e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004b27f
call fcn.1400a80e0
cmp qword [rbx + 0x10], 5
jne 0x14004b164
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0xf
jbe 0x14004b28b
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b286
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b286
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 fcn.1400a80e0
mov rax, rbx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400a7ff0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
vmovaps xmm6, xmmword [r11 - 0x10]
vmovaps xmm7, xmmword [r11 - 0x20]
vmovaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rdi
ret
call fcn.140056650
int3