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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r14
push rbp
mov rbp, rsp
sub rsp, 0x350
mov rax, qword [0x140027098]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor esi, esi
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
call fcn.140019e20
lea r14d, [rsi + 1]
mov ebx, eax
test eax, eax
js 0x140005aca
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r11d, dword [rsp + 0x2a4]
mov eax, 0x10000
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
mov dword [0x1400283a0], r11d
mov dword [0x1400283a4], 0x3c
mov dword [0x1400283a8], r14d
mov dword [0x1400283ac], eax
mov dword [0x1400283b0], r14d
mov dword [0x1400283b4], eax
mov dword [0x1400283b8], r14d
mov dword [0x1400283bc], eax
mov dword [0x1400283c0], r14d
call fcn.140005fec
mov ebx, eax
test eax, eax
js 0x140005aca
cmp eax, r14d
je 0x140005ac8
cmp dword [rsp + 0x54], esi
je 0x14000593b
xor edx, edx
xor ecx, ecx
call fcn.140005b24
mov ebx, eax
jmp 0x140005aca
cmp dword [rsp + 0x50], esi
je 0x140005a79
mov ebx, 0x68
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, ebx
call fcn.140010880
lea rdx, [rsp + 0x90]
mov r8d, 0x104
xor ecx, ecx
mov dword [rbp - 0x80], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140005991
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005aca
lea r8, [rsp + 0x58]
lea rdx, [0x140020dd8]
lea rcx, [0x140020de0]
xor r9d, r9d
call fcn.140016758
mov ebx, eax
test eax, eax
js 0x140005aca
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x90]
xor r9d, r9d
mov r8d, r14d
call fcn.140016494
mov ebx, eax
test eax, eax
js 0x140005aca
mov rcx, qword [rsp + 0x58]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r8, qword [rsp + 0x58]
lea rdx, str.__s___standalone
lea rcx, [rsp + 0x60]
call fcn.140015e7c
mov ebx, eax
test eax, eax
js 0x140005aca
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
xor ecx, ecx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140005a61
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005aca
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005aca
mov rax, qword [str.ose64]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x70], rax
lea rax, [0x14000ee3c]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x78], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140005ac8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005aca
mov ebx, esi
cmp dword [0x1400283c8], esi
je 0x140005ada
mov ecx, r14d
call fcn.140019078
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140005ae9
call fcn.140016048
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140005af8
call fcn.140016048
call fcn.140019e28
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140010528
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret