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

Disassembly:
push rdi
sub rsp, 0xe0
cmp qword [rdx + 0x18], 8
mov rdi, rdx
jb 0x140002416
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140002420
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 0x14000262e
lea rdx, str.File_moved_to:
lea rcx, [0x1400392b0]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
call fcn.140007c80
mov rdx, rdi
mov rcx, rax
call fcn.140007ee0
mov edx, 0xa
mov rcx, rax
mov rbp, rax
call fcn.1400037f0
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 0x1400024ab
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 0x1400024d8
mov edx, dword [rcx + 0x10]
or edx, esi
cmp qword [rcx + 0x48], rbx
jne 0x1400024d0
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.14000f930
cmp qword [rdi + 0x18], 8
mov rsi, qword [rsp + 0x100]
jb 0x140002502
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 0x1400025c8
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, [0x1400392b0]
call fcn.140007c80
mov edx, 0xa
mov rcx, rax
mov rdi, rax
call fcn.1400037f0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000259a
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 0x1400025bf
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1400025b7
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, [0x140039320]
call fcn.140007c80
mov edx, 0xa
mov rcx, rax
mov rdi, rax
call fcn.1400037f0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000260b
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 0x14000269e
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002696
or edx, r12d
jmp 0x140002696
lea rdx, str.Failed_to_move_file.
lea rcx, [0x140039320]
call fcn.140007c80
mov edx, 0xa
mov rcx, rax
mov rdi, rax
call fcn.1400037f0
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x140002679
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 0x14000269e
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002696
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