Function at 0x140035400
Capabilities:
Create service
Modify service

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x9f8
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x9e8], rax
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14004b8b0
nop
mov r8d, 2
lea rdx, [0x1400c6408]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x14003552c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov edx, 1
lea rcx, [rsp + 0x3c0]
call fcn.14003aba0
nop
lea rdx, [0x1400c63e8]
lea rcx, [rsp + 0x3c0]
call fcn.14001d2a0
mov qword [rsp + 0xa8], rax
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0xa8]
call fcn.140005ba0
lea rdx, [rsp + 0x870]
lea rcx, [rsp + 0x3c0]
call fcn.14003aac0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x240]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x240]
call fcn.140065380
nop
lea rcx, [rsp + 0x870]
call fcn.140019710
lea rcx, [rsp + 0x3c0]
call fcn.14002d320
jmp 0x140035ed7
mov rcx, qword [rsp + 0xa38]
call fcn.1400196d0
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xa20]
call fcn.1400196d0
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xa10]
call fcn.1400196d0
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xa08]
call fcn.1400196d0
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0xa40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0xa28]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa30]
mov dword [rsp + 0x20], eax
mov r9d, 0xf01ff
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140035616
jmp 0x140035aec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1400359ab
mov rcx, qword [rsp + 0xa08]
call fcn.1400196d0
mov r8d, 0xf01ff
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140035865
mov rcx, qword [rsp + 0xa10]
call fcn.1400196d0
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xa38]
call fcn.1400196d0
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xa20]
call fcn.1400196d0
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, dword [rsp + 0xa28]
mov edx, dword [rsp + 0xa30]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [rsp + 0x8c], eax
cmp dword [rsp + 0x8c], 0
jne 0x140035860
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x90], eax
mov edx, 1
lea rcx, [rsp + 0x4b0]
call fcn.14003aba0
nop
lea rdx, str.ChangeServiceConfig_failed_for
lea rcx, [rsp + 0x4b0]
call fcn.14001d2a0
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0xa08]
call fcn.1400196d0
mov rdx, rax
lea rcx, [rsp + 0x890]
call fcn.1400426d0
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x110]
call fcn.140017ba0
lea rdx, [0x1400c64c8]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x118], rax
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x118]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x890]
call fcn.140019710
lea rdx, [rsp + 0x8b0]
lea rcx, [rsp + 0x4b0]
call fcn.14003aac0
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x258]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x258]
call fcn.140065380
nop
lea rcx, [rsp + 0x8b0]
call fcn.140019710
lea rcx, [rsp + 0x4b0]
call fcn.14002d320
nop
jmp 0x1400359a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x94], eax
mov edx, 1
lea rcx, [rsp + 0x5a0]
call fcn.14003aba0
nop
lea rdx, [0x1400c6478]
lea rcx, [rsp + 0x5a0]
call fcn.14001d2a0
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0xa08]
call fcn.1400196d0
mov rdx, rax
lea rcx, [rsp + 0x8d0]
call fcn.1400426d0
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x148]
call fcn.140017ba0
lea rdx, [0x1400c6490]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x150], rax
mov edx, dword [rsp + 0x94]
mov rcx, qword [rsp + 0x150]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x8d0]
call fcn.140019710
lea rdx, [rsp + 0x8f0]
lea rcx, [rsp + 0x5a0]
call fcn.14003aac0
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x160], rax
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x270]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x270]
call fcn.140065380
nop
lea rcx, [rsp + 0x8f0]
call fcn.140019710
lea rcx, [rsp + 0x5a0]
call fcn.14002d320
nop
jmp 0x140035aec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov edx, 1
lea rcx, [rsp + 0x690]
call fcn.14003aba0
nop
lea rdx, str.CreateService_failed_for
lea rcx, [rsp + 0x690]
call fcn.14001d2a0
mov qword [rsp + 0x180], rax
mov rcx, qword [rsp + 0xa08]
call fcn.1400196d0
mov rdx, rax
lea rcx, [rsp + 0x910]
call fcn.1400426d0
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x178], rax
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x180]
call fcn.140017ba0
lea rdx, [0x1400c6558]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x188], rax
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x188]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x910]
call fcn.140019710
lea rdx, [rsp + 0x930]
lea rcx, [rsp + 0x690]
call fcn.14003aac0
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
mov rdx, qword [rsp + 0x198]
lea rcx, [rsp + 0x288]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x288]
call fcn.140065380
nop
lea rcx, [rsp + 0x930]
call fcn.140019710
lea rcx, [rsp + 0x690]
call fcn.14002d320
nop
cmp dword [rsp + 0xa30], 0x10
jne 0x140035eaa
mov rcx, qword [rsp + 0xa18]
call fcn.1400196d0
mov qword [rsp + 0x1a0], rax
lea r8, [rsp + 0x1a0]
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140035c70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x9c], eax
mov edx, 1
lea rcx, [rsp + 0x780]
call fcn.14003aba0
nop
lea rdx, str.ChangeServiceConfig2W_SERVICE_CONFIG_DESCRIPTION__failed_for
lea rcx, [rsp + 0x780]
call fcn.14001d2a0
mov qword [rsp + 0x1c0], rax
mov rcx, qword [rsp + 0xa08]
call fcn.1400196d0
mov rdx, rax
lea rcx, [rsp + 0x9b0]
call fcn.1400426d0
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x1b8], rax
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x1c0]
call fcn.140017ba0
lea rdx, [0x1400c6520]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x1c8], rax
mov edx, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x1c8]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x9b0]
call fcn.140019710
lea rdx, [rsp + 0x950]
lea rcx, [rsp + 0x780]
call fcn.14003aac0
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x1d8], rax
mov rdx, qword [rsp + 0x1d8]
lea rcx, [rsp + 0x2a0]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x2a0]
call fcn.140065380
nop
lea rcx, [rsp + 0x950]
call fcn.140019710
lea rcx, [rsp + 0x780]
call fcn.14002d320
nop
mov eax, 8
imul rax, rax, 0
mov dword [rsp + rax + 0x9d0], 1
mov eax, 8
imul rax, rax, 0
mov dword [rsp + rax + 0x9d4], 0x3e8
mov eax, 8
imul rax, rax, 1
mov dword [rsp + rax + 0x9d0], 1
mov eax, 8
imul rax, rax, 1
mov dword [rsp + rax + 0x9d4], 0x2710
mov eax, 8
imul rax, rax, 2
mov dword [rsp + rax + 0x9d0], 0
mov eax, 8
imul rax, rax, 2
mov dword [rsp + rax + 0x9d4], 0
mov dword [rsp + 0x230], 3
mov dword [rsp + 0x218], 0x384
mov qword [rsp + 0x228], 0
mov qword [rsp + 0x220], 0
lea rax, [rsp + 0x9d0]
mov qword [rsp + 0x238], rax
lea r8, [rsp + 0x218]
mov edx, 2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140035e87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
mov edx, 1
lea rcx, [rsp + 0x2d0]
call fcn.14003aba0
nop
lea rdx, str.ChangeServiceConfig2W_SERVICE_CONFIG_FAILURE_ACTIONS__failed_for
lea rcx, [rsp + 0x2d0]
call fcn.14001d2a0
mov qword [rsp + 0x1f8], rax
mov rcx, qword [rsp + 0xa08]
call fcn.1400196d0
mov rdx, rax
lea rcx, [rsp + 0x970]
call fcn.1400426d0
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x1e8], rax
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x1f0], rax
mov rdx, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1f8]
call fcn.140017ba0
lea rdx, [0x1400c65f8]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x200], rax
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x200]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x970]
call fcn.140019710
lea rdx, [rsp + 0x990]
lea rcx, [rsp + 0x2d0]
call fcn.14003aac0
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x210], rax
mov rdx, qword [rsp + 0x210]
lea rcx, [rsp + 0x2b8]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x2b8]
call fcn.140065380
nop
lea rcx, [rsp + 0x990]
call fcn.140019710
lea rcx, [rsp + 0x2d0]
call fcn.14002d320
nop
mov dword [rsp + 0xa4], 0x7530
lea r8, [rsp + 0xa4]
mov edx, 7
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp qword [rsp + 0x70], 0
je 0x140035ebd
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x80], 0
je 0x140035ed7
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rsp + 0x78]
call fcn.14004bc00
mov rcx, qword [rsp + 0x9e8]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x9f8
ret