Function at 0x140009e20
Capabilities:
Create service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov rax, qword [0x1400354c8]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor ebx, ebx
lea r12, fcn.14000a470
and qword [rsp + 0x78], rbx
lea rdx, [rbp - 0x60]
and qword [rbp - 0x78], rbx
mov r8d, 0x104
xor ecx, ecx
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x80], r12
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
mov r15d, 0x80070000
test eax, eax
jne 0x140009ebd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
lea rcx, str.GetModuleFileName_failed__0x_08X__n
or ebx, r15d
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.14001c500
test ebx, ebx
js 0x14000a034
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
mov rsi, rax
cmp rax, rcx
je 0x140009f10
test rcx, rcx
je 0x140009f08
mov rax, qword [rsp + 0x70]
movabs r10, 0xefcdb65178560a70
mov rax, qword [rax]
lea rcx, [rsp + 0x70]
call qword [0x14002acf0]
test al, al
je 0x14000a0c8
mov rcx, rsi
mov qword [rsp + 0x78], rcx
test rcx, rcx
jne 0x140009f3f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
lea rcx, str.OpenSCManager_failed__0x_08X__n
or ebx, r15d
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.14001c500
mov rcx, qword [rsp + 0x78]
test ebx, ebx
js 0x14000a039
lea rax, [0x14002c130]
mov r9d, 0x14
mov qword [rsp + 0x60], rax
lea r8, [0x14002c9a0]
lea rax, str..LocalSystem
mov qword [rsp + 0x58], rax
lea rdx, str.PerceptionSimulation
lea rax, str.rpcss
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x78]
mov rsi, rax
cmp rax, rcx
je 0x140009ff3
test rcx, rcx
je 0x140009fec
mov rax, qword [rbp - 0x80]
movabs r10, 0xefcdb65178560a70
mov rax, qword [rax]
lea rcx, [rbp - 0x80]
call qword [0x14002acf0]
test al, al
je 0x14000a0ea
mov rcx, rsi
mov qword [rbp - 0x78], rcx
test rcx, rcx
jne 0x14000a021
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
lea rcx, str.CreateService_failed__0x_08X__n
or ebx, r15d
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.14001c500
test ebx, ebx
js 0x14000a034
lea rdx, str.PerceptionSimulation
lea rcx, str._ls_is_installed.
call fcn.14001c500
mov rcx, qword [rsp + 0x78]
cmp qword [rbp - 0x78], 0
mov qword [rbp - 0x80], r12
je 0x14000a05f
lea rcx, [rbp - 0x80]
call fcn.14000a470
test al, al
je 0x14000a10c
and qword [rbp - 0x78], 0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x70], r12
test rcx, rcx
je 0x14000a077
lea rcx, [rsp + 0x70]
call fcn.14000a470
test al, al
je 0x14000a0a6
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14001b420
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edx, 1
or ecx, r15d
test eax, eax
cmovle ecx, eax
call fcn.140006624
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edx, 1
or ecx, r15d
test eax, eax
cmovle ecx, eax
call fcn.140006624
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edx, 1
or ecx, r15d
test eax, eax
cmovle ecx, eax
call fcn.140006624
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edx, 1
or ecx, r15d
test eax, eax
cmovle ecx, eax
call fcn.140006624
int3