Function at 0x140073cc0
Capabilities:
Check if file exists
Create process on windows
Delete file
Get file attributes
Get system information on windows
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rbp + 0x410], rax
movzx r15d, r9b
movzx esi, r8b
mov rbx, rdx
mov r14d, ecx
xor r12d, r12d
mov edi, r12d
test r8b, r8b
je 0x140073d81
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x40]
test rax, rax
je 0x140073d2e
call rax
jmp 0x140073d34
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx r8d, word [rbp - 0x40]
cmp r8d, 6
je 0x140073d7c
cmp r8d, 9
je 0x140073d75
lea rdx, str.Unsupported_processor_type:__d_n
lea rcx, [rbp - 0x10]
call fcn.140003120
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x1400f7478]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x140074043
mov edi, 0x51c
jmp 0x140073d81
mov edi, 0x51d
mov rcx, rbx
call fcn.1400b0640
mov rdx, rax
mov rcx, rbx
call fcn.1400b0780
mov qword [rsp + 0x20], rax
mov r8d, 0x103
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14007402e
test sil, sil
je 0x140073ec5
lea rcx, str.__originalpath__
call fcn.1400b0640
mov rdx, rax
lea rcx, str.__originalpath__
call fcn.1400b0780
mov qword [rsp + 0x38], rax
lea rcx, [rbp - 0x10]
call fcn.1400b0640
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1400b0780
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.1400b0290
mov rbx, rax
lea rcx, [0x140100cd4]
call fcn.1400b0640
mov rdx, rax
lea rcx, [0x140100cd4]
call fcn.1400b0780
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400b0290
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400b03c0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140073e5e
call fcn.1400b0810
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140073e6e
call fcn.1400b0810
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140073e7e
call fcn.1400b0810
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140073e8e
call fcn.1400b0810
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140073e9e
call fcn.1400b0810
nop
mov edx, 0x2e
lea rcx, [rbp - 0x10]
call fcn.1400ba6f8
mov word [rax], r12w
lea r8, str.64.exe
mov edx, 0x104
lea rcx, [rbp - 0x10]
call fcn.1400cf5e4
test edi, edi
je 0x140073f3c
mov r8d, 0x104
lea rdx, [rbp + 0x200]
lea rcx, str._TEMP_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, 0x5c
lea rcx, [rbp - 0x10]
call fcn.1400ba6f8
mov r8, rax
mov edx, 0x104
lea rcx, [rbp + 0x200]
call fcn.1400cf5e4
lea r8, [rbp + 0x200]
mov edx, 0x104
lea rcx, [rbp - 0x10]
call fcn.1400ce79c
mov ecx, edi
lea rdx, [rbp - 0x10]
call fcn.140027b70
test al, al
jne 0x140073f3c
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007402e
lea rcx, [rsp + 0x20]
call fcn.1400b0200
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x50], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x54], 0x40
mov qword [rsp + 0x58], r12
lea rdx, str.Runas
lea rcx, str.Open
test r15b, r15b
cmovne rcx, rdx
mov qword [rsp + 0x60], rcx
mov dword [rbp - 0x80], r14d
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140073fbc
mov bl, 1
jmp 0x140073ffd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140073fcb
mov bl, 1
jmp 0x14007401d
mov r8d, 0x104
lea rdx, [rbp + 0x200]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rbp + 0x200]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor bl, bl
test eax, eax
je 0x14007401d
mov rdi, qword [rbp - 0x48]
test rdi, rdi
je 0x14007401d
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
je 0x140074030
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140074030
xor bl, bl
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140074040
call fcn.1400b0810
nop
movzx eax, bl
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1400b5660
add rsp, 0x520
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret