Function at 0x140005c3c
Capabilities:
Copy file
Create process on windows
Get system information on windows
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x258]
sub rsp, 0x350
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rbp + 0x240], rax
and dword [rsp + 0x50], 0
xor edi, edi
and dword [rsp + 0x54], 0
xor esi, esi
xor ecx, ecx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x74]
lea r14d, [rdi + 1]
mov dword [0x14003fc00], eax
lea r9, [rsp + 0x54]
mov eax, 0x10000
mov dword [0x14003fc04], 0x3c
lea r8, [rsp + 0x50]
mov dword [0x14003fc0c], eax
mov dword [0x14003fc14], eax
mov dword [0x14003fc1c], eax
mov dword [0x14003fc08], r14d
mov dword [0x14003fc10], r14d
mov dword [0x14003fc18], r14d
mov dword [0x14003fc20], r14d
call fcn.140005ef8
mov ebx, eax
test eax, eax
js 0x140005ea2
cmp eax, r14d
je 0x140005ea0
cmp dword [rsp + 0x50], esi
je 0x140005d1b
xor edx, edx
xor ecx, ecx
call fcn.140005ffc
mov ebx, eax
jmp 0x140005ea2
cmp dword [rsp + 0x54], esi
je 0x140005e58
xor edx, edx
lea rcx, [rbp - 0x3c]
lea r8d, [rdx + 0x64]
call fcn.140017680
mov r8d, 0x104
mov dword [rbp - 0x40], 0x68
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r14d, 0x80070000
test eax, eax
jne 0x140005d70
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005ea2
lea r8, [rsp + 0x60]
call fcn.1400128a0
mov rdi, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
js 0x140005ea2
xor r8d, r8d
lea rcx, [rbp + 0x30]
mov rdx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140005db0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005ea2
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r8, rdi
lea rdx, str.__s___standalone
lea rcx, [rsp + 0x58]
call fcn.1400119f4
mov ebx, eax
test eax, eax
js 0x140005e51
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x40]
xor ecx, ecx
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], rsi
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], esi
mov rsi, qword [rsp + 0x58]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140005e39
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005ea2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005ea2
mov rsi, qword [rsp + 0x58]
jmp 0x140005ea2
and qword [rsp + 0x78], rsi
lea rax, str.ose64
and qword [rbp - 0x80], rsi
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
lea rax, [0x14000f820]
mov qword [rsp + 0x70], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140005ea0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005ea2
xor ebx, ebx
cmp dword [0x14003fbfc], 0
je 0x140005eb0
call fcn.1400147fc
test rsi, rsi
je 0x140005ebd
mov rcx, rsi
call fcn.1400152f4
test rdi, rdi
je 0x140005eca
mov rcx, rdi
call fcn.1400152f4
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140015940
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret