Function at 0x14005f490
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140494c78]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, r8
mov rdi, rdx
mov qword [rbp - 0x40], rdx
xor r15d, r15d
lea rcx, [r8 + 0xab0]
call fcn.140053430
mov rsi, rax
lea rcx, [rax + 0x10]
call fcn.140053250
movsxd r14, eax
test eax, eax
jne 0x14005f60d
mov eax, dword [str.viy_yp:]
mov dword [rbp - 0x40], eax
cmp byte [0x1400da973], r15b
je 0x14005f5d5
cmp dword [0x140494c90], 2
jl 0x14005f597
movdqa xmm3, xmmword [0x1400d9420]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1400db420]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1400db420]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
mov ecx, 5
movd xmm0, ecx
psrad xmm2, xmm0
mov ecx, 0x1f
movd xmm0, ecx
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x1400db390]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400db3a0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.8888888888888888]
movd xmm0, eax
pxor xmm2, xmm0
movd dword [rbp - 0x40], xmm2
jmp 0x14005f5d5
lea r9, [rbp - 0x40]
mov r8d, r15d
nop
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x38
add cl, r8b
xor byte [r9], cl
inc r8d
lea r9, [r9 + 1]
cmp r8d, 4
jl 0x14005f5a0
mov qword [rdi], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
lea rax, [rbp - 0x40]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], r15b
jne 0x14005f5f0
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140001d50
jmp 0x14005f783
lea rcx, [rbx - 6]
and ecx, 8
call fcn.1400531b0
test al, al
je 0x14005f66f
movzx eax, word [0x1400da974]
mov word [rbp - 0x40], ax
movzx eax, byte [0x1400da976]
mov byte [rbp - 0x40], 0x41
xor byte [rbp - 0x3f], 0x39
xor al, 0x3a
mov byte [rbp - 0x3e], al
mov qword [rdi], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
lea rax, [rbp - 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r15b
jne 0x14005f652
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140001d50
jmp 0x14005f783
lea rcx, [rsi + 8]
call fcn.140053430
mov eax, 2
mul r14
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1400cebec
mov rsi, rax
mov r9d, r15d
mov rdx, rax
lea ecx, [r14 - 1]
mov r8d, r15d
movzx ecx, cl
test r14d, r14d
cmovne r8d, ecx
and r8d, 3
lea eax, [r14 - 1]
mov ecx, r15d
test r14d, r14d
cmovne ecx, eax
nop
cmp r9d, ecx
jge 0x14005f6dd
add r8d, 3
inc r9d
movzx eax, r8w
and ax, 7
add word [rdx], ax
add rdx, 2
jmp 0x14005f6c0
mov qword [rbp - 0x30], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], r15w
jne 0x14005f6f0
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.140052920
nop
mov rcx, rsi
call fcn.1400ce390
lea rcx, [rbp - 0x30]
mov rax, qword [rbp - 0x20]
cmp qword [rbp - 0x18], 8
jb 0x14005f72b
mov rdx, qword [rbp - 0x30]
lea r8, [rdx + rax*2]
jmp 0x14005f733
lea r8, [rcx + rax*2]
lea rdx, [rbp - 0x30]
lea r9, [rbp - 0x38]
mov rcx, rdi
call fcn.140052110
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14005f783
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f77e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005f77e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce390
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400ce990
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret