Function at 0x2d9e3c5fd0
Capabilities:
Enumerate services
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push r13
lea rbp, [rsp - 0xc30]
sub rsp, 0xd30
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rbp + 0xc10], rax
xor r13d, r13d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x5c], r13d
mov r8d, 0xf003f
mov dword [rsp + 0x54], r13d
mov dword [rsp + 0x58], r13d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x68], rax
mov rbx, rax
test rax, rax
je 0x2d9e3c6074
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea r9d, [r13 + 3]
lea rax, [rsp + 0x54]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r8d, [r13 + 0x30]
lea rax, [rsp + 0x5c]
mov rcx, rbx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov eax, dword [rsp + 0x5c]
test eax, eax
jne 0x2d9e3c607b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x2d9e3c67e9
mov qword [rsp + 0xd50], rsi
mov ecx, 0x40
lea esi, [rax + 0x38]
mov qword [rsp + 0xd58], rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x70], rax
mov rdi, rax
mov rcx, rbx
test rax, rax
jne 0x2d9e3c60b7
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x2d9e3c67d9
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
xor edx, edx
lea rax, [rsp + 0x54]
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x2d9e3c6115
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x2d9e3c67d9
mov qword [rsp + 0xd60], r12
mov edx, 0x19000
mov qword [rsp + 0xd28], r14
mov ecx, 0x40
mov qword [rsp + 0xd20], r15
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14d, 1
mov edx, 0x2000
mov rsi, rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], r14d
mov byte [rax], 0x87
lea ecx, [r14 + 0x3f]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x2000
mov dword [rsp + 0x68], r13d
lea ecx, [r14 + 0x3f]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x208
mov r12, rax
call fcn.2d9e3e3840
mov eax, r13d
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x54], r13d
jbe 0x2d9e3c6784
lea rcx, [0x2d9e406058]
nop dword [rax]
mov qword [r12], rcx
mov r14, rcx
imul rsi, rax, 0x38
mov r13, rcx
mov qword [rbp - 0x78], rcx
add rsi, rdi
mov qword [rbp - 0x80], rcx
mov r8d, 1
mov dword [rsp + 0x70], 0xffffffff
mov rcx, rbx
mov qword [rbp - 0x58], rsi
mov rdx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x2d9e3c6299
lea r9, [rsp + 0x68]
mov r8d, 0x2000
mov rdx, r15
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x2d9e3c625d
mov rcx, qword [r15 + 0x10]
lea rdx, [0x2d9e406058]
mov eax, dword [r15 + 4]
test rcx, rcx
mov dword [rsp + 0x70], eax
mov r14, rdx
mov rax, qword [r15 + 0x18]
cmovne r14, rcx
test rax, rax
mov r13, rdx
mov rdi, rdx
cmovne r13, rax
mov rax, qword [r15 + 0x28]
test rax, rax
cmovne rdi, rax
mov rax, qword [r15 + 0x30]
mov qword [rbp - 0x78], rdi
test rax, rax
mov rdi, rdx
cmovne rdi, rax
mov qword [rbp - 0x80], rdi
lea rax, [rsp + 0x68]
mov r9d, 0x2000
mov r8, r12
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
cmp qword [r12], 0
jne 0x2d9e3c6290
lea rax, [0x2d9e406058]
mov qword [r12], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x208
call fcn.2d9e3e3840
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x208
call fcn.2d9e3e3840
mov r8, qword [rsi]
lea rdx, [0x2d9e409390]
lea rcx, [rbp + 0xa00]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
mov dword [rsp + 0x6c], 0x104
mov r8d, 0x104
lea rcx, [rbp - 0x50]
call fcn.2d9e3e3840
lea rax, [rsp + 0x78]
xor edi, edi
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x78], rdi
lea rdx, [rbp + 0xa00]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2d9e3c638d
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
lea rax, [rbp - 0x50]
xor r8d, r8d
lea rdx, [0x2d9e409440]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x78]
mov ebx, edi
test eax, eax
mov eax, 1
cmove ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x2d9e3c638d
cmp dword [rsp + 0x6c], edi
jbe 0x2d9e3c638d
mov r8d, 0x104
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp + 0x1c0]
jmp 0x2d9e3c63f9
mov word [rbp - 0x50], di
test r14, r14
je 0x2d9e3c63f5
cmp word [r14], 0x22
mov rcx, r14
mov rax, rdi
jne 0x2d9e3c63cb
lea rdx, [r14 + 2]
movzx ecx, word [rdx]
test cx, cx
je 0x2d9e3c63f0
cmp cx, 0x22
je 0x2d9e3c63f0
mov word [rbp + rax*2 - 0x50], cx
add rdx, 2
inc rax
cmp rax, 0x208
jl 0x2d9e3c63a7
jmp 0x2d9e3c63f5
mov r8d, 0xffdf
movzx edx, word [rcx]
test r8w, dx
je 0x2d9e3c63f0
mov word [rbp + rax*2 - 0x50], dx
add rcx, 2
inc rax
cmp rax, 0x208
jl 0x2d9e3c63d1
jmp 0x2d9e3c63f5
mov word [rbp + rax*2 - 0x50], di
lea rcx, [rbp - 0x50]
lea r9, [rbp + 0x7f0]
lea r8, [rbp + 0x5e0]
lea rdx, [rbp + 0x3d0]
call fcn.2d9e3c95d0
mov rcx, qword [r12]
mov rbx, qword [rsi]
mov rdi, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rdi
add esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp - 0x80]
add esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdi, qword [rbp - 0x78]
add esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r13
add esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r14
add esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x3d0]
add esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x5e0]
add esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x7f0]
add esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x1c0]
add esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rbx, qword [rsp + 0x60]
add esi, eax
mov rcx, rbx
lea eax, [rsi + rsi]
mov esi, dword [rsp + 0x50]
add esi, 0x3e
add esi, eax
call qword [sym.imp.KERNEL32.dll_LocalSize]
cmp rax, rsi
jae 0x2d9e3c64e1
mov r8d, 0x42
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rbx, rax
mov qword [rsp + 0x60], rax
mov rsi, qword [rbp - 0x58]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsi]
add rcx, rbx
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x50]
lea eax, [rax + 1]
lea ebx, [rcx + rax*2]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsi + 8]
mov ecx, ebx
add rcx, qword [rsp + 0x60]
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [r12]
lea ebx, [rbx + rax*2]
add ebx, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [r12]
mov ecx, ebx
add rcx, qword [rsp + 0x60]
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsp + 0x60]
movups xmm0, xmmword [rsi + 0x10]
mov ecx, dword [rsp + 0x70]
lea ebx, [rbx + rax*2]
add ebx, 2
movups xmmword [rbx + rdx], xmm0
movups xmm1, xmmword [rsi + 0x20]
movups xmmword [rbx + rdx + 0x10], xmm1
mov eax, dword [rsi + 0x30]
mov rsi, rdx
mov dword [rbx + rdx + 0x20], eax
add ebx, 0x24
mov dword [rbx + rdx], ecx
mov rcx, r14
add ebx, 4
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
mov rdx, r14
add rcx, rsi
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x1c0]
lea ebx, [rbx + rax*2]
add ebx, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
lea rdx, [rbp + 0x1c0]
add rcx, rsi
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r13
lea ebx, [rbx + rax*2]
add ebx, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
mov rdx, r13
add rcx, rsi
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rdi
lea ebx, [rbx + rax*2]
add ebx, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
mov rdx, rdi
add rcx, rsi
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdi, qword [rbp - 0x80]
mov rcx, rdi
lea ebx, [rbx + rax*2]
add ebx, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
mov rdx, rdi
add rcx, rsi
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x3d0]
lea ebx, [rbx + rax*2]
add ebx, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
lea rdx, [rbp + 0x3d0]
add rcx, rsi
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x5e0]
lea ebx, [rbx + rax*2]
add ebx, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
lea rdx, [rbp + 0x5e0]
add rcx, rsi
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
lea rcx, [rbp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x7f0]
lea ebx, [rbx + rax*2]
add ebx, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
lea rdx, [rbp + 0x7f0]
add rcx, rsi
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.2d9e3e2bb0
lea rcx, [rbp + 0x7f0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdi, qword [rbp - 0x70]
lea rcx, [0x2d9e406058]
lea eax, [rax + 1]
lea r14d, [rbx + rax*2]
mov eax, dword [rsp + 0x74]
mov rbx, qword [rbp - 0x68]
inc eax
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x74], eax
cmp eax, dword [rsp + 0x54]
jb 0x2d9e3c61b0
mov edx, r14d
mov r8d, 0x42
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r15, qword [rsp + 0xd20]
mov rax, rbx
mov r14, qword [rsp + 0xd28]
mov r12, qword [rsp + 0xd60]
mov rsi, qword [rsp + 0xd50]
mov rdi, qword [rsp + 0xd58]
mov rcx, qword [rbp + 0xc10]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0xd30
pop r13
pop rbx
pop rbp
ret