Function at 0x140219320
Capabilities:
Check if file exists
Create process on windows
Delete file
Encode data using xor
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x2310]
mov eax, 0x2410
call fcn.1403cb200
sub rsp, rax
mov rbx, rcx
call qword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1402196c2
mov rcx, rbx
call fcn.1403e0638
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1402196c2
mov rcx, rbx
mov qword [rsp + 0x2420], rdi
call qword [sym.imp.kernel32.dll_DeleteFileA]
call qword [sym.imp.kernel32.dll_GetLastError]
xor edi, edi
cmp eax, 5
jne 0x14021967b
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x2388
call fcn.1403ccc50
movdqa xmm0, xmmword [0x1404ced60]
mov edx, edi
movdqu xmmword [rsp + 0x30], xmm0
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x30]
add rcx, rax
lea eax, [rdx - 0xd]
inc edx
xor byte [rcx], al
cmp edx, 0xf
jb 0x1402193b0
lea rcx, [rbp - 0x80]
mov byte [rsp + 0x3f], dil
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1402193d3
lea r8, [rsp + 0x30]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1402193f0
lea rcx, [rbp - 0x80]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140219410
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140219420
mov dword [rsp + 0x30], 0xd0d3d4d1
mov edx, edi
mov dword [rsp + 0x34], 0x9b9a91d7
mov dword [rsp + 0x38], 0xde8e9098
mov word [rsp + 0x3c], 0xdd
movsxd rax, edx
lea rcx, [rsp + 0x30]
add rcx, rax
lea eax, [rdx - 0xd]
inc edx
xor byte [rcx], al
cmp edx, 0xd
jb 0x140219450
lea rcx, [rbp - 0x80]
mov byte [rsp + 0x3d], dil
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140219473
lea r8, [rsp + 0x30]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140219490
lea rcx, [rbp - 0x80]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1402194b0
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1402194c0
movdqa xmm0, xmmword [0x1404cfc40]
xor eax, eax
movdqa xmm1, xmmword [0x1404d02f0]
mov edx, edi
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x64], al
movdqu xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x60], 0x502f3636
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x40]
add rcx, rax
lea eax, [rdx - 0xd]
inc edx
xor byte [rcx], al
cmp edx, 0x24
jb 0x140219500
lea rcx, [rbp - 0x80]
mov byte [rsp + 0x64], dil
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140219523
lea r8, [rsp + 0x40]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140219540
xor eax, eax
mov dword [rsp + 0x30], 0xd6d3d2d3
mov byte [rsp + 0x38], al
mov edx, edi
mov dword [rsp + 0x34], 0x8e908092
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x30]
add rcx, rax
lea eax, [rdx - 0xd]
inc edx
xor byte [rcx], al
cmp edx, 8
jb 0x140219570
lea rcx, [rbp - 0x80]
mov byte [rsp + 0x38], dil
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140219593
lea r8, [rsp + 0x30]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1402195b0
mov dword [rbp + 0x2328], 0x919990
mov edx, edi
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp + 0x2328]
add rcx, rax
lea eax, [rdx - 0xd]
inc edx
xor byte [rcx], al
cmp edx, 3
jb 0x1402195d0
xor eax, eax
mov byte [rbp + 0x232b], dil
mov byte [rbp + 0x2334], al
mov edx, edi
mov dword [rbp + 0x2330], 0x9890849c
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rbp + 0x2330]
add rcx, rax
lea eax, [rdx - 0xd]
inc edx
xor byte [rcx], al
cmp edx, 4
jb 0x140219610
mov dword [rsp + 0x28], edi
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x2328]
mov qword [rsp + 0x20], rdi
lea rdx, [rbp + 0x2330]
mov byte [rbp + 0x2334], dil
xor ecx, ecx
call qword [sym.imp.shell32.dll_ShellExecuteA]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x2388
call fcn.1403ccc50
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.kernel32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_DeleteFileA]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1402196ba
mov eax, 0x614
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x40]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x48], 3
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.shell32.dll_SHFileOperationA]
mov rdi, qword [rsp + 0x2420]
mov rbx, qword [rsp + 0x2438]
add rsp, 0x2410
pop rbp
ret