Function at 0x140064980
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2f0
mov qword [rsp + 0x2c0], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x300]
call fcn.140065720
lea rdx, [rsp + 0x1b0]
mov qword [rsp + 0x1b8], rdx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.1400010c0
nop
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x300]
call fcn.140043d00
lea rdx, [rsp + 0x1c0]
mov qword [rsp + 0x1c8], rdx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x98]
call fcn.1400010c0
nop
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x310]
call fcn.140043d00
lea rdx, [rsp + 0x1d0]
mov qword [rsp + 0x1d8], rdx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400010c0
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x308]
call fcn.140043d00
lea r8, [rsp + 0x70]
lea rdx, [0x1401a2a08]
lea rcx, [rsp + 0xe8]
call fcn.140001150
mov qword [rsp + 0x2c8], rax
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x2d0], rax
lea r8, [0x1401a2a08]
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x110]
call fcn.140013df0
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 0x20], 8
jb 0x140064acc
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x2d8], rax
jmp 0x140064ae0
mov rax, qword [rsp + 0x1e0]
add rax, 8
mov qword [rsp + 0x2d8], rax
cmp qword [rsp + 0xb8], 8
jb 0x140064afd
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x2e0], rax
jmp 0x140064b0d
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x2e0], rax
cmp qword [rsp + 0xe0], 8
jb 0x140064b2a
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x2e8], rax
jmp 0x140064b3a
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x2e8], 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 [rsp + 0x2d8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x2e0]
mov rdx, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdx, rax
mov rax, qword [rsp + 0x300]
mov qword [rax + 0x30], rdx
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x110]
call fcn.1400010c0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xe8]
call fcn.1400010c0
mov rax, qword [rsp + 0x300]
cmp qword [rax + 0x30], 0
jne 0x140064ca3
lea rax, [rsp + 0x208]
mov qword [rsp + 0x210], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x188]
call fcn.140011d00
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, str.cannot_register_service
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x238], rcx
mov r8, qword [rsp + 0x238]
lea rdx, str.cannot_register_service
lea rcx, [rsp + 0x188]
call fcn.1400128b0
nop
xor r9d, r9d
mov r8, qword [rsp + 0x300]
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x138]
call fcn.14003e0c0
lea rdx, [0x1401d8ba0]
lea rcx, [rsp + 0x138]
call fcn.1400e0fa4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x188]
call fcn.140011d00
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.1400010c0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x98]
call fcn.1400010c0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xc0]
call fcn.1400010c0
add rsp, 0x2f0
pop rdi
ret