Function at 0x180031ed0
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 0x180031f3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x180031f3a
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.1800da0c0
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 0x180032243
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 0x1800321ea
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 0x1800321db
mov ecx, 0x1fa0
call fcn.1800da0c0
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 0x1800321d2
cmp byte [0x1801836fb], r12b
movsd xmm0, qword [str.Y_DD]
mov ecx, dword [0x1801836f8]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], ecx
je 0x1800321bf
mov ecx, r12d
cmp r15d, 2
jl 0x180032185
movdqa xmm2, xmmword [0x1801873c0]
mov ecx, 8
movdqa xmm3, xmmword [0x180187400]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1801876e0]
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 [0x180187470]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.Y_DD]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180187520]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.00000000000000009999999999999999]
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 [0x180187470]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x44]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180187520]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.00000000000000009999999999999999]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp ecx, 0xc
jl 0x180032190
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x40]
call fcn.1800dbcd4
test rax, rax
jne 0x180032230
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc ebx
cmp ebx, dword [rsp + 0xe0]
jb 0x180031ff0
mov rcx, rbp
call fcn.1800d9c4c
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.1800d9c4c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800321f2
mov rcx, rbp
call fcn.1800d9c4c
mov rbp, qword [rsp + 0xa8]
mov al, 1
add rsp, 0xb8
pop r14
pop r12
ret