Function at 0x140073d00
Capabilities:
Check if file exists
Query or enumerate registry value
Query service status
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r14, r9
mov r15, r8
mov rbx, rdx
mov r12, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rbp - 0x51], rax
test rax, rax
jne 0x140073d76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1403f4e50]
mov rcx, r15
call fcn.140008754
nop
or edi, 0xffffffff
jmp 0x1400740cb
mov r8d, reloc.WS2_32.dll_sendto
mov rdx, qword [r12]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r13, rax
test rax, rax
jne 0x140073dbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1403f4e58]
mov rcx, r15
call fcn.140008754
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
or edi, 0xffffffff
jmp 0x1400740cb
lea rdx, [rbp - 1]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140073dff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.04__d
mov rcx, r15
call fcn.140008754
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
or edi, 0xffffffff
jmp 0x1400740cb
mov rcx, r13
cmp dword [rbp + 3], 1
je 0x140073e5a
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [r12]
sub rdx, 0x18
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140073e39
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140073e53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov al, 1
jmp 0x140074105
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
or edi, 0xffffffff
test eax, eax
jne 0x1400740a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8d, eax
lea rdx, str.05__d
mov rcx, r15
call fcn.140008754
cmp ebx, 2
jne 0x1400740b7
mov esi, 1
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], 0x104
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x140073ebc
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x79], rbx
mov edx, 0xad
lea rcx, [rbp - 0x21]
call fcn.140016310
nop
cmp qword [rax + 0x18], 8
jb 0x140073ee3
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.140006214
mov qword [rbp - 0x71], rax
mov edx, 0x7d
lea rcx, [rbp - 0x49]
call fcn.140016310
nop
cmp qword [rax + 0x18], 8
jb 0x140073f0c
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x61]
call fcn.140006214
nop
mov r8, r12
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.140070ae0
mov qword [rsp + 0x38], rax
sub esi, dword [rbx - 8]
mov ecx, dword [rbx - 0xc]
sub ecx, 0x104
or ecx, esi
jge 0x140073f54
mov edx, 0x104
lea rcx, [rbp - 0x79]
call fcn.140007cb8
mov rbx, qword [rbp - 0x79]
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
mov r8, qword [rbp - 0x71]
mov r8, qword [r8]
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [rsp + 0x38], eax
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140073fa2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140073fc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov r8, qword [rbp - 0x31]
cmp r8, 8
jb 0x140073fda
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.14000c6f4
mov qword [rbp - 0x31], 7
xor esi, esi
mov qword [rbp - 0x39], rsi
mov word [rbp - 0x49], si
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007400a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x140074024
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.14000c6f4
mov rbx, qword [rbp - 0x79]
cmp dword [rsp + 0x38], 0
jne 0x14007408a
mov rdx, qword [r14]
test rdx, rdx
jne 0x140074042
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, rbx
sub rdx, rbx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140074064
add rax, 2
test cx, cx
jne 0x140074050
jmp 0x140074069
sbb esi, esi
or esi, 1
mov r8d, 2
mov rcx, r15
test esi, esi
lea rdx, str.05__d_0
je 0x140074084
lea rdx, str.05__d_1
call fcn.140008754
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400740b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400740b7
mov byte [rbx], 1
lea rdx, str.06_00
mov rcx, r15
call fcn.140008754
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400740e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140074103
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret