Function at 0x4070d0
Capabilities:
Create service
Delete service
Modify service
Stop service

Disassembly:
mov r11, rsp
sub rsp, 0x508
mov rax, qword [0x004364e0]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov rsi, qword [rsp + 0x530]
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
mov rdi, r8
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r14
mov r14, rcx
xor eax, eax
mov rdx, r8
mov rcx, 0xffffffffffffffff
mov rbx, r9
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r14 + 8]
call fcn.00401bc0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rbx
mov rdx, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r14 + 0x30]
call fcn.00401bc0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [r14 + 0x58]
call fcn.00401bc0
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xa0], 0
call fcn.0040bb30
lea rdx, [rsp + 0x2b0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x2b0]
mov dx, 0x5c
call fcn.0040b6b0
xor esi, esi
mov word [rax + 2], 0
mov rcx, rsi
nop
movzx eax, word [rsp + rcx + 0x2b0]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x9e], ax
jne 0x4071d0
xor eax, eax
lea rdi, [rsp + 0xa0]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.HRLemong.exe]
mov rcx, 0xffffffffffffffff
mov qword [rdi - 2], rax
mov rax, qword [0x0042bba0]
mov qword [rdi + 6], rax
mov rax, qword [0x0042bba8]
mov qword [rdi + 0xe], rax
movzx eax, word [0x0042bbb0]
mov word [rdi + 0x16], ax
xor eax, eax
lea rdi, [rsp + 0xa0]
repne scasw ax, word [rdi]
cmp qword [r14 + 0x28], 8
mov rax, qword [str.__RunService]
mov qword [rdi - 2], rax
mov rax, qword [0x0042c150]
mov qword [rdi + 6], rax
mov rax, qword [0x0042c158]
mov qword [rdi + 0xe], rax
movzx eax, word [0x0042c160]
mov word [rdi + 0x16], ax
jb 0x407276
mov rbx, qword [r14 + 0x10]
jmp 0x40727a
lea rbx, [r14 + 0x10]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rdi, rax
je 0x4072e5
mov r8d, 0x10020
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rbx, rax
jne 0x4072b7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4072e5
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rdi, rax
je 0x407388
cmp qword [r14 + 0x50], 8
jb 0x40730e
mov r8, qword [r14 + 0x38]
jmp 0x407312
lea r8, [r14 + 0x38]
cmp qword [r14 + 0x28], 8
jb 0x40731f
mov rdx, qword [r14 + 0x10]
jmp 0x407323
lea rdx, [r14 + 0x10]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
lea rax, [0x0042b614]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0xa0]
mov r9d, 0xf01ff
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
mov rbx, rax
jne 0x40738c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4073fd
cmp qword [r14 + 0x78], 8
jb 0x40739e
mov rax, qword [r14 + 0x60]
mov qword [rsp + 0x70], rax
jmp 0x4073a7
lea rax, [r14 + 0x60]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call fcn.00406c70
mov ecx, 0x4e20
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [r14 + 0x28], 8
jb 0x4073ec
mov rdx, qword [r14 + 0x10]
jmp 0x4073f0
lea rdx, [r14 + 0x10]
mov rcx, r14
call fcn.00406ba0
mov eax, 1
mov r14, qword [rsp + 0x4d0]
mov r13, qword [rsp + 0x4d8]
mov r12, qword [rsp + 0x4e0]
mov rdi, qword [rsp + 0x4e8]
mov rsi, qword [rsp + 0x4f0]
mov rbp, qword [rsp + 0x4f8]
mov rbx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.0040bd10
add rsp, 0x508
ret