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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x258]
sub rsp, 0x350
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140039008]
xor rax, rsp
mov qword [rbp + 0x240], rax
and dword [rsp + 0x50], 0
and dword [rsp + 0x54], 0
xor edi, edi
mov qword [rsp + 0x60], rdi
xor esi, esi
mov qword [rsp + 0x58], rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x6c]
mov dword [0x14003aab0], eax
mov dword [0x14003aab4], 0x3c
lea r14d, [rdi + 1]
mov dword [0x14003aab8], r14d
mov eax, 0x10000
mov dword [0x14003aabc], eax
mov dword [0x14003aac0], r14d
mov dword [0x14003aac4], eax
mov dword [0x14003aac8], r14d
mov dword [0x14003aacc], eax
mov dword [0x14003aad0], r14d
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x50]
call fcn.1400061c0
mov ebx, eax
test eax, eax
js 0x140006143
cmp eax, r14d
je 0x140006141
cmp dword [rsp + 0x50], esi
je 0x140005fb3
xor edx, edx
xor ecx, ecx
call fcn.1400062f4
mov ebx, eax
jmp 0x140006143
cmp dword [rsp + 0x54], esi
je 0x1400060f9
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.140017800
mov dword [rbp - 0x40], ebx
mov r8d, 0x104
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r14d, 0x80070000
test eax, eax
jne 0x140006008
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006143
lea r8, [rsp + 0x60]
call fcn.140012da4
mov ebx, eax
mov rdi, qword [rsp + 0x60]
test eax, eax
js 0x140006143
xor ebx, ebx
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140006051
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006143
xor edx, edx
lea r8d, [rdx + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r8, rdi
lea rdx, str.__s___standalone
lea rcx, [rsp + 0x58]
call fcn.140012030
mov ebx, eax
test eax, eax
js 0x1400060f2
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
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
xor r9d, r9d
xor r8d, r8d
mov rsi, qword [rsp + 0x58]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400060da
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006143
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 0x140006143
mov rsi, qword [rsp + 0x58]
jmp 0x140006143
lea rax, str.ose64
mov qword [rsp + 0x68], rax
lea rax, [0x14000fd10]
mov qword [rsp + 0x70], rax
and qword [rsp + 0x78], rsi
and qword [rbp - 0x80], rsi
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140006141
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006143
xor ebx, ebx
cmp dword [0x14003aaac], 0
je 0x140006152
call fcn.140014b28
nop
test rsi, rsi
je 0x14000616c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
test rdi, rdi
je 0x140006191
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop word [rax + rax]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140015cc0
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