Function at 0x140006150
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 [0x1400370c8]
xor rax, rsp
mov qword [rbp + 0x240], 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.140014d78
lea r14d, [rsi + 1]
mov ebx, eax
test eax, eax
js 0x1400063b7
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x6c]
lea r9, [rsp + 0x50]
mov dword [0x140037aa8], eax
lea r8, [rsp + 0x54]
mov eax, 0x10000
mov dword [0x140037aac], 0x3c
lea rdx, [rsp + 0x68]
mov dword [0x140037ab4], eax
lea rcx, [rsp + 0x68]
mov dword [0x140037abc], eax
mov dword [0x140037ac4], eax
mov dword [0x140037ab0], r14d
mov dword [0x140037ab8], r14d
mov dword [0x140037ac0], r14d
mov dword [0x140037ac8], r14d
call fcn.140006040
mov ebx, eax
test eax, eax
js 0x1400063b7
cmp eax, r14d
je 0x1400063b5
cmp dword [rsp + 0x54], esi
je 0x140006238
xor edx, edx
xor ecx, ecx
call fcn.140005bc0
mov ebx, eax
jmp 0x1400063b7
cmp dword [rsp + 0x50], esi
je 0x14000636e
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 0x14000628a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400063b7
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [0x140029e08]
lea rcx, [0x140029e10]
call fcn.140011958
mov ebx, eax
test eax, eax
js 0x1400063b7
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x30]
xor r9d, r9d
mov r8d, r14d
call fcn.140011760
mov ebx, eax
test eax, eax
js 0x1400063b7
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.1400107bc
mov ebx, eax
test eax, eax
js 0x1400063b7
mov rdx, qword [rsp + 0x60]
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 0x140006356
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400063b7
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 0x1400063b7
mov rax, qword [str.ose64]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
lea rax, [0x14000e808]
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 0x1400063b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400063b7
mov ebx, esi
cmp dword [0x140037acc], esi
je 0x1400063c7
mov ecx, r14d
call fcn.140013ee4
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400063d6
call fcn.140010d48
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400063e5
call fcn.140010d48
call fcn.140014d8c
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400148c0
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