Function at 0x140033eb0
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 0x140033f26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.02__d
mov rcx, r15
call fcn.14000bb10
nop
or edi, 0xffffffff
jmp 0x14003427b
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 0x140033f6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.03__d
mov rcx, r15
call fcn.14000bb10
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
or edi, 0xffffffff
jmp 0x14003427b
lea rdx, [rbp - 1]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140033faf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.04__d
mov rcx, r15
call fcn.14000bb10
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 0x14003427b
mov rcx, r13
cmp dword [rbp + 3], 1
je 0x14003400a
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 0x140033fe9
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 0x140034003
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov al, 1
jmp 0x1400342b5
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
or edi, 0xffffffff
test eax, eax
jne 0x140034255
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8d, eax
lea rdx, str.05__d
mov rcx, r15
call fcn.14000bb10
cmp ebx, 2
jne 0x140034267
mov esi, 1
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], 0x104
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14003406c
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x79], rbx
mov edx, 0xa9
lea rcx, [rbp - 0x21]
call fcn.1400244d0
nop
cmp qword [rax + 0x18], 8
jb 0x140034093
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.140028300
mov qword [rbp - 0x71], rax
mov edx, 0x79
lea rcx, [rbp - 0x49]
call fcn.1400244d0
nop
cmp qword [rax + 0x18], 8
jb 0x1400340bc
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x61]
call fcn.140028300
nop
mov r8, r12
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.140030590
mov qword [rsp + 0x38], rax
sub esi, dword [rbx - 8]
mov ecx, dword [rbx - 0xc]
sub ecx, 0x104
or ecx, esi
jge 0x140034104
mov edx, 0x104
lea rcx, [rbp - 0x79]
call fcn.14000c030
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 0x140034152
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 0x140034170
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 0x14003418a
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.1400146a0
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 0x1400341ba
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 0x1400341d4
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.1400146a0
mov rbx, qword [rbp - 0x79]
cmp dword [rsp + 0x38], 0
jne 0x14003423a
mov rdx, qword [r14]
test rdx, rdx
jne 0x1400341f2
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, rbx
sub rdx, rbx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140034214
add rax, 2
test cx, cx
jne 0x140034200
jmp 0x140034219
sbb esi, esi
or esi, 1
mov r8d, 2
mov rcx, r15
test esi, esi
lea rdx, str.05__d_0
je 0x140034234
lea rdx, str.05__d_1
call fcn.14000bb10
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140034267
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140034267
mov byte [rbx], 1
lea rdx, str.06_00
mov rcx, r15
call fcn.14000bb10
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 0x140034299
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 0x1400342b3
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