Function at 0x180035d00
Capabilities:
Create service

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x138
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x70], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jne 0x180035d62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
jmp 0x180036248
mov qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x190]
call fcn.180018f10
test rax, rax
jbe 0x180035fea
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 0
jmp 0x180035dae
mov rax, qword [rsp + 0x98]
inc rax
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x190]
call fcn.180018f10
cmp qword [rsp + 0x98], rax
jae 0x180035e5b
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
sar rax, 5
cmp rax, qword [rsp + 0x98]
ja 0x180035e06
call fcn.18003d2e0
imul rax, qword [rsp + 0x98], 0x20
mov rcx, qword [rsp + 0xc0]
add rax, qword [rcx]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.18003f0a0
test rax, rax
jbe 0x180035e56
mov rcx, qword [rsp + 0xd0]
call fcn.18003f0a0
mov rcx, qword [rsp + 0x88]
lea rax, [rcx + rax + 1]
mov qword [rsp + 0x88], rax
jmp 0x180035d9b
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
shl rax, 1
mov rcx, rax
call fcn.180035ac0
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x180035e9b
mov dword [rsp + 0x70], 0x7a
jmp 0x180036239
mov rax, qword [rsp + 0x88]
shl rax, 1
mov qword [rsp + 0x110], rax
mov rdi, qword [rsp + 0x78]
xor eax, eax
mov rcx, qword [rsp + 0x110]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xa0], 0
jmp 0x180035eed
mov rax, qword [rsp + 0xa0]
inc rax
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x190]
call fcn.180018f10
cmp qword [rsp + 0xa0], rax
jae 0x180035fea
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
sar rax, 5
cmp rax, qword [rsp + 0xa0]
ja 0x180035f45
call fcn.18003d2e0
imul rax, qword [rsp + 0xa0], 0x20
mov rcx, qword [rsp + 0xc8]
add rax, qword [rcx]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.18003f0a0
test rax, rax
jbe 0x180035fe5
mov rcx, qword [rsp + 0xb0]
call fcn.18003f0a0
shl rax, 1
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0xb0]
call fcn.1800027f0
mov rdi, qword [rsp + 0xa8]
mov rsi, rax
mov rax, qword [rsp + 0x118]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xb0]
call fcn.18003f0a0
mov rcx, qword [rsp + 0xa8]
lea rax, [rcx + rax*2]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
add rax, 2
mov qword [rsp + 0xa8], rax
jmp 0x180035eda
mov rcx, qword [rsp + 0x1a0]
call fcn.18003f0a0
test rax, rax
jbe 0x180036013
mov rcx, qword [rsp + 0x1a0]
call fcn.1800027f0
mov qword [rsp + 0xd8], rax
jmp 0x18003601f
mov qword [rsp + 0xd8], 0
mov rcx, qword [rsp + 0x198]
call fcn.18003f0a0
test rax, rax
jbe 0x180036048
mov rcx, qword [rsp + 0x198]
call fcn.1800027f0
mov qword [rsp + 0xe0], rax
jmp 0x180036054
mov qword [rsp + 0xe0], 0
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x120], rax
mov rcx, qword [rsp + 0x180]
call fcn.18003f0a0
test rax, rax
jbe 0x18003608d
mov rcx, qword [rsp + 0x180]
call fcn.1800027f0
mov qword [rsp + 0xe8], rax
jmp 0x180036099
mov qword [rsp + 0xe8], 0
mov rcx, qword [rsp + 0x178]
call fcn.18003f0a0
test rax, rax
jbe 0x1800360c2
mov rcx, qword [rsp + 0x178]
call fcn.1800027f0
mov qword [rsp + 0xf0], rax
jmp 0x1800360ce
mov qword [rsp + 0xf0], 0
mov rcx, qword [rsp + 0x158]
call fcn.18003f0a0
test rax, rax
jbe 0x1800360f7
mov rcx, qword [rsp + 0x158]
call fcn.1800027f0
mov qword [rsp + 0xf8], rax
jmp 0x180036103
mov qword [rsp + 0xf8], 0
mov rcx, qword [rsp + 0x150]
call fcn.18003f0a0
test rax, rax
jbe 0x18003612c
mov rcx, qword [rsp + 0x150]
call fcn.1800027f0
mov qword [rsp + 0x100], rax
jmp 0x180036138
mov qword [rsp + 0x100], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x168]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0x20], eax
mov r9d, 0xf01ff
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x108], rax
cmp qword [rsp + 0x108], 0
je 0x1800361e8
mov dword [rsp + 0x90], 1
jmp 0x1800361f3
mov dword [rsp + 0x90], 0
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x180036217
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
jmp 0x180036226
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
cmp qword [rsp + 0x78], 0
je 0x180036239
mov rcx, qword [rsp + 0x78]
call fcn.180035c70
nop
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
cmp qword [rsp + 0x1a8], 0
je 0x180036261
mov rax, qword [rsp + 0x1a8]
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
mov eax, dword [rsp + 0x80]
add rsp, 0x138
pop rdi
pop rsi
ret