Function at 0x140050eb0
Capabilities:
Create service
Start service

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x90]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1401deb80]
xor rax, rsp
mov qword [rbp + 0x120], rax
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
call fcn.140005d70
mov qword [rbp + 0x50], rax
mov rcx, qword [rsp + 0x1e0]
call fcn.14002c880
mov qword [rbp + 0x40], rax
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 2]
lea rcx, [rbp + 0xe0]
call fcn.1400518c0
mov rcx, rax
call fcn.140051570
mov qword [rbp + 0x48], rax
mov r8, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x50]
call fcn.14000bec0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x140050f7e
xor eax, eax
jmp 0x14005123f
lea rcx, [rbp + 0x80]
call fcn.14003c3e0
nop
mov rdx, qword [rsp + 0x1e0]
lea rcx, [rbp + 0xa0]
call fcn.14002ca50
nop
lea rcx, [rbp + 0xa0]
call fcn.14002c880
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x80]
call fcn.14002c880
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x80]
call fcn.14002c880
mov qword [rbp + 0x68], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x140051073
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rbp + 0x20], 0
lea rcx, [rbp + 0xa0]
call fcn.14000ef70
nop
lea rcx, [rbp + 0x80]
call fcn.14000ef70
mov eax, dword [rbp + 0x20]
jmp 0x14005123f
lea rcx, [rbp + 0x80]
call fcn.14002c880
mov r8d, 0xf01ff
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x140051135
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rax, [rbp + 3]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 3]
movzx r8d, byte [rbp + 4]
movzx edx, byte [rbp + 5]
lea rcx, [rbp + 0xc0]
call fcn.140051940
mov rcx, rax
call fcn.140051780
xor r9d, r9d
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov dword [rbp + 0x24], 0
lea rcx, [rbp + 0xa0]
call fcn.14000ef70
nop
lea rcx, [rbp + 0x80]
call fcn.14000ef70
mov eax, dword [rbp + 0x24]
jmp 0x14005123f
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400511fe
lea rax, [rbp + 6]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 7]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
call fcn.140005d70
mov qword [rbp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x28], eax
movzx r9d, byte [rbp + 6]
movzx r8d, byte [rbp + 7]
movzx edx, byte [rbp + 8]
lea rcx, [rbp + 0x100]
call fcn.140051990
mov rcx, rax
call fcn.140051570
mov qword [rbp + 0x70], rax
mov r8d, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x78]
call fcn.14000bec0
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rbp + 0x2c], 0
lea rcx, [rbp + 0xa0]
call fcn.14000ef70
nop
lea rcx, [rbp + 0x80]
call fcn.14000ef70
mov eax, dword [rbp + 0x2c]
jmp 0x14005123f
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rbp + 0x30], 1
lea rcx, [rbp + 0xa0]
call fcn.14000ef70
nop
lea rcx, [rbp + 0x80]
call fcn.14000ef70
mov eax, dword [rbp + 0x30]
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140149a30
add rsp, 0x1c8
pop rdi
pop rbp
ret