Function at 0x180067480
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov rcx, qword [rsp + 0x1e0]
call fcn.180062820
mov byte [rsp + 0x70], al
movzx eax, byte [rsp + 0x70]
test eax, eax
je 0x1800674b7
mov qword [rsp + 0x128], 0
jmp 0x180067a28
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0xc8]
mov qword [rsp + 0x130], rax
cmp qword [rsp + 0x130], 0
jne 0x1800674e3
mov dword [rsp + 0x7c], 1
jmp 0x1800674eb
mov dword [rsp + 0x7c], 0
movzx eax, byte [rsp + 0x7c]
mov byte [rsp + 0x71], al
movzx eax, byte [rsp + 0x71]
test eax, eax
je 0x18006750e
mov qword [rsp + 0xd0], 0
jmp 0x1800675c3
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x1e0]
add rax, 0xb8
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rax + 0x18], 8
jb 0x180067560
mov dword [rsp + 0x80], 1
jmp 0x18006756b
mov dword [rsp + 0x80], 0
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x72], al
movzx eax, byte [rsp + 0x72]
test eax, eax
je 0x1800675a3
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0xa8]
mov qword [rsp + 0x148], rax
cmp qword [rsp + 0x148], 0
jne 0x1800675f2
mov dword [rsp + 0x84], 1
jmp 0x1800675fd
mov dword [rsp + 0x84], 0
movzx eax, byte [rsp + 0x84]
mov byte [rsp + 0x73], al
movzx eax, byte [rsp + 0x73]
test eax, eax
je 0x180067623
mov qword [rsp + 0xd8], 0
jmp 0x1800676d8
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x1e0]
add rax, 0x98
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x18], 8
jb 0x180067675
mov dword [rsp + 0x88], 1
jmp 0x180067680
mov dword [rsp + 0x88], 0
movzx eax, byte [rsp + 0x88]
mov byte [rsp + 0x74], al
movzx eax, byte [rsp + 0x74]
test eax, eax
je 0x1800676b8
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x1e0]
add rax, 0x70
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x18], 8
jb 0x180067738
mov dword [rsp + 0x8c], 1
jmp 0x180067743
mov dword [rsp + 0x8c], 0
movzx eax, byte [rsp + 0x8c]
mov byte [rsp + 0x75], al
movzx eax, byte [rsp + 0x75]
test eax, eax
je 0x18006777b
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x1e0]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0xa0], eax
mov rax, qword [rsp + 0x1e0]
mov eax, dword [rax + 0x94]
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x178], rax
cmp qword [rsp + 0x178], 0
jne 0x1800677f1
mov dword [rsp + 0x90], 1
jmp 0x1800677fc
mov dword [rsp + 0x90], 0
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x76], al
movzx eax, byte [rsp + 0x76]
test eax, eax
je 0x180067822
mov qword [rsp + 0xe0], 0
jmp 0x1800678d5
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x1e0]
add rax, 0x30
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x18], 8
jb 0x180067872
mov dword [rsp + 0x94], 1
jmp 0x18006787d
mov dword [rsp + 0x94], 0
movzx eax, byte [rsp + 0x94]
mov byte [rsp + 0x77], al
movzx eax, byte [rsp + 0x77]
test eax, eax
je 0x1800678b5
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x1e0]
add rax, 0x10
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0xc8]
cmp qword [rax + 0x18], 8
jb 0x180067925
mov dword [rsp + 0x98], 1
jmp 0x180067930
mov dword [rsp + 0x98], 0
movzx eax, byte [rsp + 0x98]
mov byte [rsp + 0x78], al
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x180067968
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x20], eax
mov r9d, 0xf01ff
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
je 0x180067a51
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x70]
test eax, eax
jne 0x180067a72
cmp qword [rsp + 0xe8], 0
jne 0x180067a72
mov dword [rsp + 0x9c], 0
jmp 0x180067a7d
mov dword [rsp + 0x9c], 1
movzx eax, byte [rsp + 0x9c]
add rsp, 0x1d8
ret