Function at 0x140005eec
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 [0x14003a008]
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 [0x14003bc10], eax
lea r9, [rsp + 0x54]
mov eax, 0x10000
mov dword [0x14003bc14], 0x3c
lea r8, [rsp + 0x50]
mov dword [0x14003bc1c], eax
mov dword [0x14003bc24], eax
mov dword [0x14003bc2c], eax
mov dword [0x14003bc18], r14d
mov dword [0x14003bc20], r14d
mov dword [0x14003bc28], r14d
mov dword [0x14003bc30], r14d
call fcn.1400061c0
mov ebx, eax
test eax, eax
js 0x140006152
cmp eax, r14d
je 0x140006150
cmp dword [rsp + 0x50], esi
je 0x140005fcb
xor edx, edx
xor ecx, ecx
call fcn.1400062f4
mov ebx, eax
jmp 0x140006152
cmp dword [rsp + 0x54], esi
je 0x140006108
mov ebx, 0x68
lea rcx, [rbp - 0x40]
mov r8d, ebx
xor edx, edx
call fcn.140017700
mov r8d, 0x104
mov dword [rbp - 0x40], ebx
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r14d, 0x80070000
test eax, eax
jne 0x140006020
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006152
lea r8, [rsp + 0x60]
call fcn.140012c1c
mov rdi, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
js 0x140006152
xor r8d, r8d
lea rcx, [rbp + 0x30]
mov rdx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140006060
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006152
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.140011ea4
mov ebx, eax
test eax, eax
js 0x140006101
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 0x1400060e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006152
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 0x140006152
mov rsi, qword [rsp + 0x58]
jmp 0x140006152
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, [0x14000fb70]
mov qword [rsp + 0x70], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140006150
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006152
xor ebx, ebx
cmp dword [0x14003bc0c], 0
je 0x140006160
call fcn.1400149ec
test rsi, rsi
je 0x140006179
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x140006192
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140015ba0
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