Function at 0x140010d70
Capabilities:
Check if file exists
Create process on windows
Delete file
Self delete

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x420
xor ebx, ebx
lea rcx, str.TEMP
call fcn.14025aff4
mov r13, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa0], xmm1
lea r8d, [rbx + 0xc]
lea rdx, str.upgrader.exe
lea rcx, [rsp + 0x90]
call fcn.14000beb0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
or r12, 0xffffffffffffffff
mov r8, r12
inc r8
cmp byte [r8 + r13], bl
jne 0x140010de3
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.14000beb0
nop
mov r8d, 1
lea rdx, [0x1403b825c]
lea rcx, [rsp + 0x50]
call fcn.14000b8b8
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xb0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xc0], xmm1
mov qword [rax + 0x10], rbx
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rax + 0x18], r14
mov byte [rax], bl
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.1400147b0
nop
mov rdx, qword [rsp + 0xc8]
mov edi, 0x1000
cmp rdx, r14
jbe 0x140010e97
inc rdx
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, rdi
jb 0x140010e91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011403
call fcn.140248fa4
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, r14
jbe 0x140010ecf
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, rdi
jb 0x140010eca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011409
call fcn.140248fa4
movdqa xmm0, xmmword [0x1403b8370]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], bl
mov rdx, qword [rsp + 0xa8]
cmp rdx, r14
jbe 0x140010f1f
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, rdi
jb 0x140010f1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001140f
call fcn.140248fa4
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov ebx, 0x104
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140014f3c
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], r14
cmova rdx, qword [rsp + 0x30]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x70]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
cmp rsi, r14
cmova rdx, rbx
lea rcx, [rsp + 0x30]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x48]
cmp r15, 0xf
cmova rcx, r14
mov r8, qword [rsp + 0x40]
cmp r8, qword [rsp + 0x80]
jne 0x140010fa9
call fcn.14027e9f0
test eax, eax
je 0x140010fab
mov al, 1
test al, al
je 0x14001135e
lea rcx, [rsp + 0x70]
mov r14d, reloc.WS2_32.dll_ntohs
cmp rsi, r14
cmova rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
xor esi, esi
test eax, eax
je 0x140010ff5
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], r14
cmova rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], r14
cmova rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x200]
call fcn.1400139ac
mov rax, qword [rsp + 0x200]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x200], rax
mov rax, qword [rsp + 0x200]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x1fc], edx
mov r8d, 0x20
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x310]
call fcn.140011804
nop
mov rax, qword [rsp + 0x200]
movsxd rcx, dword [rax + 4]
mov bl, 6
test byte [rsp + rcx + 0x210], bl
jne 0x1400112f8
mov rax, qword [rsp + 0x310]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x320], bl
jne 0x1400112f8
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x310]
call fcn.1400127a0
lea rcx, [rsp + 0x200]
call fcn.14000b43c
lea rcx, [rsp + 0x310]
call fcn.1400116e8
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xc0], xmm1
mov r8d, 8
lea rdx, str.upgrader
lea rcx, [rsp + 0xb0]
call fcn.14000beb0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
inc r12
cmp byte [r12 + r13], sil
jne 0x140011105
mov r8, r12
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.14000beb0
nop
mov r8d, 1
lea rdx, [0x1403b825c]
lea rcx, [rsp + 0x50]
call fcn.14000b8b8
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xd0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xe0], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
mov byte [rax], sil
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x90]
call fcn.1400147b0
nop
mov rdx, qword [rsp + 0xe8]
cmp rdx, r14
jbe 0x1400111b5
inc rdx
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, rdi
jb 0x1400111af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011415
call fcn.140248fa4
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, r14
jbe 0x1400111ed
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, rdi
jb 0x1400111e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001141b
call fcn.140248fa4
movdqa xmm0, xmmword [0x1403b8370]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], sil
mov rdx, qword [rsp + 0xc8]
cmp rdx, r14
jbe 0x14001123e
inc rdx
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, rdi
jb 0x140011239
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011421
call fcn.140248fa4
mov r8d, 4
lea rdx, str..bat
lea rcx, [rsp + 0x90]
call fcn.14000b8b8
mov r8d, 2
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xf0]
call fcn.140011804
nop
mov rax, qword [rsp + 0xf0]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x100], bl
je 0x140011427
lea rcx, [rsp + 0x198]
call fcn.140011784
nop
lea rbx, vtable.std::ios_base.0
mov qword [rsp + 0x198], rbx
lea rcx, [rsp + 0x198]
call fcn.14024ace0
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, r14
jbe 0x1400112ff
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, rdi
jb 0x1400112f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001154d
call fcn.140248fa4
jmp 0x1400112ff
lea rbx, vtable.std::ios_base.0
lea rcx, [rsp + 0x3b8]
call fcn.140011784
nop
mov qword [rsp + 0x3b8], rbx
lea rcx, [rsp + 0x3b8]
call fcn.14024ace0
nop
lea rcx, [rsp + 0x2b0]
call fcn.1400126f8
nop
mov qword [rsp + 0x2b0], rbx
lea rcx, [rsp + 0x2b0]
call fcn.14024ace0
nop
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x30]
cmp r15, 0xf
jbe 0x14001139e
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, rdi
jb 0x140011389
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011553
mov rcx, r14
call fcn.140248fa4
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x70]
and qword [rsp + 0x40], 0
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
cmp rsi, 0xf
jbe 0x1400113e6
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, rdi
jb 0x1400113dd
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011559
mov rcx, rbx
call fcn.140248fa4
nop
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14025746c
nop
call fcn.14025746c
nop
call fcn.14025746c
nop
call fcn.14025746c
nop
call fcn.14025746c
nop
call fcn.14025746c
nop
lea rdx, str._echo_off
lea rcx, [rsp + 0xf0]
call fcn.14001496c
mov rcx, rax
call fcn.140012b80
lea rdx, str.timeout_3___NUL
lea rcx, [rsp + 0xf0]
call fcn.14001496c
mov rcx, rax
call fcn.140012b80
lea rdx, str.START_____
lea rcx, [rsp + 0xf0]
call fcn.14001496c
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140014bf8
lea rdx, [0x1403b8288]
mov rcx, rax
call fcn.14001496c
mov rcx, rax
call fcn.140012b80
lea rdx, [0x1403b829c]
lea rcx, [rsp + 0xf0]
call fcn.14001496c
mov rdx, r13
mov rcx, rax
call fcn.14001496c
mov rcx, rax
call fcn.140012b80
lea rdx, str.DEL__
lea rcx, [rsp + 0xf0]
call fcn.14001496c
mov rbx, rax
lea rcx, [rsp + 0x90]
call fcn.140009dac
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov rdx, rax
mov rcx, rbx
call fcn.14001496c
lea rdx, str.___f__q
mov rcx, rax
call fcn.14001496c
mov rcx, rax
call fcn.140012b80
lea rcx, [rsp + 0xf0]
call fcn.1400116e8
lea rcx, [rsp + 0x90]
call fcn.140009dac
mov r8, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call fcn.14025b304
nop
call fcn.14025746c
nop
call fcn.14025746c
nop
call fcn.14025746c
int3