Function at 0x140004690
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14000bb38], eax
jle 0x140004714
lea rcx, [0x14000bb38]
call fcn.1400052f4
cmp dword [0x14000bb38], 0xffffffff
jne 0x140004714
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtSetTimerResolution
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000bb40], rax
lea rcx, [0x14000bb38]
call fcn.140005288
xor ebx, ebx
mov dword [rsp + 0x78], ebx
lea r8, [rsp + 0x78]
mov dl, 1
mov ecx, 0x1388
call qword [0x14000bb40]
test eax, eax
je 0x140004947
movups xmm0, xmmword [str.EE___A_RK]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [0x140007818]
movups xmmword [rsp + 0x40], xmm1
movsd xmm0, qword [0x140007828]
movsd qword [rsp + 0x50], xmm0
cmp dword [0x14000a098], 2
jl 0x14000487f
movdqa xmm4, xmmword [0x1400078b0]
movdqa xmm3, xmmword [0x140007900]
movdqa xmm5, xmmword [str.5555]
movdqa xmm0, xmmword [0x1400078f0]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x34]
movdqa xmm6, xmmword [0x1400078d0]
mov edx, dword [rsp + 0x20]
nop
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x28
jl 0x1400047a0
jmp 0x1400048bd
lea r8, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x3521cfb3
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x35
movzx eax, bl
sub al, cl
add al, 0x30
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x28
jl 0x140004890
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140003b20
nop
cmp qword [rax + 0x18], 0xf
jbe 0x1400048d7
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400048e3
mov qword [rsp + 0x28], rcx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call fcn.140004e40
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140004947
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004942
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004942
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005254
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400051f0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
ret