Function at 0x140005130
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x2c0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x1400d51c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov edx, 0x100
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0x90]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1400051a0
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140016ec0
nop
movups xmm0, xmmword [str.n__SB_YK_]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x1400c0140]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x1400c0150]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x1400c0160]
movups xmmword [rsp + 0x80], xmm1
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140005311
movdqa xmm5, xmmword [0x1400c07b0]
movdqa xmm4, xmmword [0x1400c0890]
movdqa xmm6, xmmword [0x1400c0820]
movdqa xmm7, xmmword [0x1400c0840]
lea rcx, [rsp + 0x50]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [rbx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add ebx, 8
lea rcx, [rcx + 0x10]
cmp ebx, 0x20
jl 0x140005222
jmp 0x140005349
lea r8, [rsp + 0x50]
nop word [rax + rax]
mov eax, 0x8d3dcb09
mul ebx
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, bx
sub ax, cx
add ax, 0x32
xor word [r8], ax
inc ebx
lea r8, [r8 + 2]
cmp ebx, 0x20
jl 0x140005320
lea rax, [rsp + 0x50]
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140005350
mov r8, rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140015170
mov rdx, rax
mov rcx, rsi
call fcn.140015200
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400053bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400053b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a73e4
mov rax, rsi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400a7070
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rdi
ret