Function at 0x140002470
Capabilities:
Create process on windows
Move file
Terminate process

Disassembly:
push rdi
sub rsp, 0xe0
cmp qword [rdx + 0x18], 8
mov rdi, rdx
jb 0x140002486
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140002490
mov rcx, qword [rcx]
mov r8d, 2
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0x108], r12
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14000269e
lea rdx, str.File_moved_to:
lea rcx, [0x14003a380]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
call fcn.1400086b0
mov rdx, rdi
mov rcx, rax
call fcn.140008910
mov edx, 0xa
mov rcx, rax
mov rbp, rax
call fcn.140004080
mov rcx, qword [rbp]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
mov esi, ebx
lea r12d, [rbx + 4]
test byte [rcx + rbp + 0x10], 6
jne 0x14000251b
mov rcx, qword [rcx + rbp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp eax, 0xffffffff
cmove esi, r12d
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
add rcx, rbp
mov rbp, qword [rsp + 0xf8]
test esi, esi
je 0x140002548
mov edx, dword [rcx + 0x10]
or edx, esi
cmp qword [rcx + 0x48], rbx
jne 0x140002540
or edx, r12d
xor r8d, r8d
call fcn.140001e70
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], 0x68
lea r8d, [rdx + 0x60]
call fcn.140010600
cmp qword [rdi + 0x18], 8
mov rsi, qword [rsp + 0x100]
jb 0x140002572
mov rdi, qword [rdi]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140002638
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.File_executed_successfully.
lea rcx, [0x14003a380]
call fcn.1400086b0
mov edx, 0xa
mov rcx, rax
mov rdi, rax
call fcn.140004080
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000260a
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r12d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x14000262f
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002627
or edx, r12d
xor r8d, r8d
call fcn.140001e70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, str.Failed_to_execute_file.
lea rcx, [0x14003a3f0]
call fcn.1400086b0
mov edx, 0xa
mov rcx, rax
mov rdi, rax
call fcn.140004080
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000267b
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r12d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x14000270e
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002706
or edx, r12d
jmp 0x140002706
lea rdx, str.Failed_to_move_file.
lea rcx, [0x14003a3f0]
call fcn.1400086b0
mov edx, 0xa
mov rcx, rax
mov rdi, rax
call fcn.140004080
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1400026e9
mov rcx, qword [rcx + rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov r12d, 4
cmp eax, 0xffffffff
cmove ebx, r12d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x14000270e
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002706
or edx, 4
xor r8d, r8d
call fcn.140001e70
mov r12, qword [rsp + 0x108]
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret