Function at 0x140006138
Capabilities:
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], r14
push rbp
lea rbp, [rax - 0x258]
sub rsp, 0x350
mov rax, qword [0x1400380c8]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor esi, esi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x54], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
call fcn.140014d50
lea r14d, [rsi + 1]
mov ebx, eax
test eax, eax
js 0x14000639f
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x6c]
lea r9, [rsp + 0x54]
mov dword [0x140038ab0], eax
lea r8, [rsp + 0x50]
mov eax, 0x10000
mov dword [0x140038ab4], 0x3c
lea rdx, [rsp + 0x60]
mov dword [0x140038abc], eax
lea rcx, [rsp + 0x60]
mov dword [0x140038ac4], eax
mov dword [0x140038acc], eax
mov dword [0x140038ab8], r14d
mov dword [0x140038ac0], r14d
mov dword [0x140038ac8], r14d
mov dword [0x140038ad0], r14d
call fcn.140006028
mov ebx, eax
test eax, eax
js 0x14000639f
cmp eax, r14d
je 0x14000639d
cmp dword [rsp + 0x50], esi
je 0x140006220
xor edx, edx
xor ecx, ecx
call fcn.140005ba8
mov ebx, eax
jmp 0x14000639f
cmp dword [rsp + 0x54], esi
je 0x140006356
mov ebx, 0x68
lea rcx, [rbp - 0x40]
mov r8d, ebx
xor edx, edx
call fcn.140015700
mov r8d, 0x104
mov dword [rbp - 0x40], ebx
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140006272
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000639f
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [0x140029de8]
lea rcx, [0x140029df0]
call fcn.140011938
mov ebx, eax
test eax, eax
js 0x14000639f
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x30]
xor r9d, r9d
mov r8d, r14d
call fcn.140011740
mov ebx, eax
test eax, eax
js 0x14000639f
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 + 0x68]
call fcn.14001079c
mov ebx, eax
test eax, eax
js 0x14000639f
mov rdx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000633e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000639f
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 0x14000639f
mov rax, qword [str.ose64]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
lea rax, [0x14000e7e8]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000639d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000639f
mov ebx, esi
cmp dword [0x140038ad4], esi
je 0x1400063af
mov ecx, r14d
call fcn.140013ec8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400063be
call fcn.140010d28
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400063cd
call fcn.140010d28
call fcn.1400145a8
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400148a0
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