Function at 0x140011e70
Capabilities:
Create service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10c8]
mov eax, 0x11c8
call fcn.1400641b0
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rbp + 0x10b0], rax
mov r15, r9
mov rsi, r8
mov r14, rdx
mov rbx, rcx
mov qword [rbp - 0x58], rcx
mov r12d, dword [rbp + 0x1130]
xor r13d, r13d
mov dword [rsp + 0x78], r13d
xor eax, eax
mov qword [rcx + 8], rax
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov dword [rsp + 0x78], 1
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x70], r13
mov rcx, qword [rbx]
cmp rax, rcx
je 0x140011f43
test rcx, rcx
je 0x140011f40
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x140011f3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_close_service_handle___i_.
lea rcx, [rbp + 0x50]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rbp + 0x50]
call fcn.140066028
int3
mov qword [rbx], r13
mov qword [rbx], rdi
lea rcx, [rsp + 0x70]
call fcn.140012ab0
cmp qword [rbx], 0
jne 0x140011fb6
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.140002e70
mov rdi, rax
mov rdx, r14
lea rcx, [rbp - 0x50]
call fcn.140002e70
mov rbx, rax
cmp qword [rdi + 0x18], 0x10
jb 0x140011f7b
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x140011f85
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8, rbx
lea rdx, str.Could_not_open_SCM_while_trying_to_create_service_with_name__s_and_path__s___i_.
lea rcx, [rbp + 0x50]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rbp + 0x50]
call fcn.140066028
nop
mov qword [rbp + 0x1080], r13
mov qword [rbp + 0x1088], r13
mov qword [rbp + 0x1088], 7
mov qword [rbp + 0x1080], r13
mov word [rbp + 0x1070], r13w
cmp dword [r15 + 0x10], 0
je 0x140012112
mov r9d, 2
lea r8, [0x140102544]
lea rcx, [rbp + 0x10]
call fcn.1400029e0
nop
mov r9d, 1
lea r8, [0x140102548]
lea rcx, [rbp - 0x10]
call fcn.1400029e0
nop
mov r8, rsi
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.140002630
nop
lea r8, [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140002630
nop
mov r8, r15
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140002630
nop
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140002ec0
mov rdi, rax
lea rax, [rbp + 0x1070]
cmp rax, rdi
je 0x1400120b1
mov r8, qword [rbp + 0x1088]
cmp r8, 8
jb 0x140012087
inc r8
mov rdx, qword [rbp + 0x1070]
lea rcx, [rbp + 0x1070]
call fcn.1400046b0
mov qword [rbp + 0x1088], 7
mov qword [rbp + 0x1080], r13
mov word [rbp + 0x1070], r13w
mov rdx, rdi
lea rcx, [rbp + 0x1070]
call fcn.140003970
nop
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x1400120cb
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.1400046b0
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r13
mov word [rbp - 0x80], r13w
lea rcx, [rbp + 0x30]
call fcn.1400036b0
nop
lea rcx, [rbp - 0x50]
call fcn.1400036b0
nop
lea rcx, [rbp - 0x30]
call fcn.1400036b0
nop
lea rcx, [rbp - 0x10]
call fcn.1400036b0
nop
lea rcx, [rbp + 0x10]
call fcn.1400036b0
jmp 0x1400121a5
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140002ec0
mov rdi, rax
lea rax, [rbp + 0x1070]
cmp rax, rdi
je 0x14001217a
mov r8, qword [rbp + 0x1088]
cmp r8, 8
jb 0x140012150
inc r8
mov rdx, qword [rbp + 0x1070]
lea rcx, [rbp + 0x1070]
call fcn.1400046b0
mov qword [rbp + 0x1088], 7
mov qword [rbp + 0x1080], r13
mov word [rbp + 0x1070], r13w
mov rdx, rdi
lea rcx, [rbp + 0x1070]
call fcn.140003970
nop
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x140012194
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.1400046b0
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r13
mov word [rbp - 0x80], r13w
mov rdx, r14
lea rcx, [rbp + 0x1090]
call fcn.140002ec0
nop
lea r9, [rbp + 0x1070]
cmp qword [rbp + 0x1088], 8
cmovae r9, qword [rbp + 0x1070]
lea r8, [rbp + 0x1090]
cmp qword [rbp + 0x10a8], 8
cmovae r8, qword [rbp + 0x1090]
lea rdx, [rbp + 0x1090]
cmovae rdx, qword [rbp + 0x1090]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x70], r13
mov rcx, qword [rbx + 8]
cmp rax, rcx
je 0x14001228b
test rcx, rcx
je 0x140012287
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x140012283
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_close_service_handle___i_.
lea rcx, [rbp + 0x50]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rbp + 0x50]
call fcn.140066028
int3
mov qword [rbx + 8], r13
mov qword [rbx + 8], rdi
lea rcx, [rsp + 0x70]
call fcn.140012ab0
cmp qword [rbx + 8], 0
jne 0x1400122ff
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.140002e70
mov rdi, rax
mov rdx, r14
lea rcx, [rbp - 0x50]
call fcn.140002e70
mov rbx, rax
cmp qword [rdi + 0x18], 0x10
jb 0x1400122c4
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x1400122ce
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8, rbx
lea rdx, str.Could_not_create_service_with_name__s_and_path__s___i_.
lea rcx, [rbp + 0x50]
call fcn.140007170
lea rdx, [0x14012e008]
lea rcx, [rbp + 0x50]
call fcn.140066028
nop
mov r8, qword [rbp + 0x10a8]
cmp r8, 8
jb 0x140012322
inc r8
mov rdx, qword [rbp + 0x1090]
lea rcx, [rbp + 0x1090]
call fcn.1400046b0
mov qword [rbp + 0x10a8], 7
mov qword [rbp + 0x10a0], r13
mov word [rbp + 0x1090], r13w
mov r8, qword [rbp + 0x1088]
cmp r8, 8
jb 0x14001235f
inc r8
mov rdx, qword [rbp + 0x1070]
lea rcx, [rbp + 0x1070]
call fcn.1400046b0
mov qword [rbp + 0x1088], 7
mov qword [rbp + 0x1080], r13
mov word [rbp + 0x1070], r13w
mov rax, rbx
mov rcx, qword [rbp + 0x10b0]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x11c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret