Function at 0x1400e2f00
Capabilities:
Delete file
Delete service
Modify service
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140422080]
xor rax, rsp
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xc0], 0
jne 0x1400e2f30
xor al, al
jmp 0x1400e31b7
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax]
test eax, eax
je 0x1400e2f57
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x78], 0
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x79], 0
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x78]
test eax, eax
je 0x1400e2f7d
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax]
test eax, eax
jne 0x1400e2f7d
mov al, 1
jmp 0x1400e31b7
mov r8d, 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1400e2fa1
xor al, al
jmp 0x1400e31b7
mov dword [rsp + 0x64], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x79]
test eax, eax
jne 0x1400e2fc5
mov eax, dword [rsp + 0x64]
bts eax, 0x10
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x7a]
test eax, eax
je 0x1400e2fe0
mov eax, dword [rsp + 0x64]
or eax, 2
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0xc0]
add rax, 0x48
mov rcx, rax
call fcn.140012b30
mov r8d, dword [rsp + 0x64]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400e3026
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400e31b7
lea r8, [rsp + 0x80]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400e305f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400e31b7
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x7a]
test eax, eax
je 0x1400e30eb
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8d, 4
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x1400e30eb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400e31b7
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x79]
test eax, eax
je 0x1400e3127
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax]
test eax, eax
jne 0x1400e3127
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x1400e31b7
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x7b]
test eax, eax
je 0x1400e319f
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax]
test eax, eax
je 0x1400e319f
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rcx, rax
call fcn.140012b30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1400e3193
mov byte [rsp + 0x60], 1
jmp 0x1400e3198
mov byte [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
jmp 0x1400e31b7
cmp dword [rsp + 0x78], 0
je 0x1400e31ad
mov byte [rsp + 0x61], 1
jmp 0x1400e31b2
mov byte [rsp + 0x61], 0
movzx eax, byte [rsp + 0x61]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401524a0
add rsp, 0xb8
ret