Function at 0x180031cb0
Capabilities:
Encode data using xor
Enumerate services
Query service configuration

Disassembly:
mov r11, rsp
push r12
push r14
sub rsp, 0xb8
xor r12d, r12d
lea rax, [r11 + 0x18]
mov qword [rsp + 0x38], r12
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r14, rcx
lea rax, [r11 + 0x10]
mov dword [r11 + 0x10], r12d
mov qword [rsp + 0x28], rax
lea edx, [r12 + 0xb]
lea r8d, [r12 + 3]
mov dword [rsp + 0x20], r12d
mov dword [r11 + 0x18], r12d
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x180031d1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x180031d1a
mov al, 1
add rsp, 0xb8
pop r14
pop r12
ret
mov eax, dword [rsp + 0xd8]
add eax, 0x30
mov qword [rsp + 0xa8], rbp
mov ecx, eax
mov dword [rsp + 0xd8], eax
call fcn.1800d9a50
mov ecx, dword [rsp + 0xd8]
mov rbp, rax
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov edx, listen
lea rax, [rsp + 0xd8]
mov r9, rbp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r14
lea r8d, [rdx - 8]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x180032025
mov qword [rsp + 0xb0], rbx
mov ebx, r12d
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0x90], r15
movaps xmmword [rsp + 0x80], xmm6
cmp dword [rsp + 0xe0], r12d
jbe 0x180031fcc
mov r15d, dword [reloc.WS2_32.dll_accept]
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
mov r8d, 1
lea rcx, [rax + rax*2]
add rcx, rcx
mov rdx, qword [rbp + rcx*8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x180031fbd
mov ecx, 0x1fa0
call fcn.1800d9a50
lea r9, [rsp + 0xe8]
mov dword [rsp + 0xe8], r12d
mov r8d, 0x1fa0
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x180031fb4
cmp byte [0x1801826eb], r12b
movsd xmm0, qword [str.ZECA]
mov ecx, dword [0x1801826e8]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], ecx
je 0x180031fa1
mov ecx, r12d
cmp r15d, 2
jl 0x180031f65
movdqa xmm2, xmmword [0x180186340]
mov ecx, 8
movdqa xmm3, xmmword [0x180186380]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x180186690]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1801863b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.ZECA]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1801864b0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.3333333333333333]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x40], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1801863b0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x44]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1801864b0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.3333333333333333]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x33
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0xc
jl 0x180031f70
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x40]
call fcn.1800db664
test rax, rax
jne 0x180032012
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc ebx
cmp ebx, dword [rsp + 0xe0]
jb 0x180031dd0
mov rcx, rbp
call fcn.1800d95dc
mov r15, qword [rsp + 0x90]
xor al, al
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0x80]
mov rbx, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb8
pop r14
pop r12
ret
mov rcx, rbp
call fcn.1800d95dc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180031fd4
mov rcx, rbp
call fcn.1800d95dc
mov rbp, qword [rsp + 0xa8]
mov al, 1
add rsp, 0xb8
pop r14
pop r12
ret