Function at 0x4aaca0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1e39
mov eax, dword fs:[0]
push eax
sub esp, 0xb48
mov eax, dword [0x6385e0]
xor eax, ebp
mov dword [ebp - 0x64], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb44], ecx
lea ecx, [ebp - 0x54]
call fcn.0042fe80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004318e0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], str.SYSTEMCurrentControlSetServices
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4ab234
mov dword [ebp - 0x60], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x60]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x60]
jae 0x4ab22a
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xb48], edx
push 0x100
lea eax, [ebp - 0xa64]
push eax
mov ecx, dword [ebp - 0xb48]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0xa68], eax
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0xa68], 0
jne 0x4ab217
lea ecx, [ebp - 0xa6c]
push ecx
lea edx, [ebp - 0xa64]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4ab215
mov dword [ebp - 0xa74], 0
lea ecx, [ebp - 0xa88]
call fcn.004b34a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa64]
push ecx
lea ecx, [ebp - 0xac0]
call fcn.004b3550
mov byte [ebp - 4], 3
lea edx, [ebp - 0xac0]
push edx
lea eax, [ebp - 0xacc]
push eax
lea ecx, [ebp - 0x54]
call fcn.0042feb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac0]
call fcn.004b3860
mov dword [ebp - 0xa70], 0
mov dword [ebp - 0xa8c], 0x800
mov dword [ebp - 0xa78], 4
lea ecx, [ebp - 0xa78]
push ecx
lea edx, [ebp - 0xa7c]
push edx
lea eax, [ebp - 0xa70]
push eax
push 0
push str.Start
mov ecx, dword [ebp - 0xa6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ab1f9
lea edx, [ebp - 0xa64]
push edx
lea ecx, [ebp - 0xaf8]
call fcn.004b3550
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa7c]
push eax
lea ecx, [ebp - 0xaf8]
push ecx
lea ecx, [ebp - 0xaec]
call fcn.004884f0
mov dword [ebp - 0xb4c], eax
mov edx, dword [ebp - 0xb4c]
mov dword [ebp - 0xb50], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xb50]
push eax
lea ecx, [ebp - 0xadc]
call fcn.00451660
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xadc]
push ecx
lea edx, [ebp - 0xb04]
push edx
lea ecx, [ebp - 0x34]
call fcn.00431910
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xadc]
call fcn.00423650
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xaec]
call fcn.00423650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xaf8]
call fcn.004b3860
mov eax, dword [ebp - 0xa7c]
push eax
mov ecx, dword [ebp - 0xb44]
call fcn.004abb70
mov dword [ebp - 0xa90], eax
lea ecx, [ebp - 0xa8c]
push ecx
lea edx, [ebp - 0x864]
push edx
lea eax, [ebp - 0xa70]
push eax
push 0
push str.ImagePath
mov ecx, dword [ebp - 0xa6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ab1f9
lea edx, [ebp - 0x864]
push edx
lea ecx, [ebp - 0xa88]
call fcn.004b38f0
push str.HKLM_
lea ecx, [ebp - 0xaa0]
call fcn.004b3550
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xaa0]
call fcn.004b3b40
push 0x5c
lea ecx, [ebp - 0xaa0]
call fcn.004b3a80
lea ecx, [ebp - 0xa64]
push ecx
lea ecx, [ebp - 0xaa0]
call fcn.004b3b40
push 0x5c
lea ecx, [ebp - 0xaa0]
call fcn.004b3a80
lea ecx, [ebp - 0xa88]
call fcn.00404b70
test eax, eax
jle 0x4aafb5
lea edx, [ebp - 0xa88]
push edx
call fcn.004aa920
add esp, 4
lea ecx, [ebp - 0xa88]
call fcn.00404b70
test eax, eax
jle 0x4ab083
push 1
lea eax, [ebp - 0xa88]
push eax
mov ecx, dword [ebp - 0xb44]
mov ecx, dword [ecx + 4]
call fcn.0041e0d0
mov dword [ebp - 0xa74], eax
cmp dword [ebp - 0xa74], 0
je 0x4ab083
push 1
mov ecx, dword [ebp - 0xa74]
call fcn.004aa850
lea edx, [ebp - 0xaa0]
push edx
mov ecx, dword [ebp - 0xa74]
call fcn.00412ce0
lea eax, [ebp - 0xa64]
push eax
lea ecx, [ebp - 0xb10]
call fcn.004b3550
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb10]
push ecx
push 7
mov ecx, dword [ebp - 0xa74]
call fcn.00412a00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb10]
call fcn.004b3860
mov edx, dword [ebp - 0xa90]
push edx
lea ecx, [ebp - 0xb1c]
call fcn.004b3550
mov byte [ebp - 4], 9
lea eax, [ebp - 0xb1c]
push eax
push 8
mov ecx, dword [ebp - 0xa74]
call fcn.00412a00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb1c]
call fcn.004b3860
lea ecx, [ebp - 0xa94]
push ecx
push str.Parameters
mov edx, dword [ebp - 0xa6c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4ab1ea
mov dword [ebp - 0xaa4], 0x800
lea eax, [ebp - 0xaa4]
push eax
lea ecx, [ebp - 0x864]
push ecx
lea edx, [ebp - 0xa70]
push edx
push 0
push str.ServiceDll
mov eax, dword [ebp - 0xa6c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ab1dd
lea ecx, [ebp - 0x864]
push ecx
lea ecx, [ebp - 0xa88]
call fcn.004b38f0
lea ecx, [ebp - 0xa88]
call fcn.00404b70
test eax, eax
jle 0x4ab10f
lea edx, [ebp - 0xa88]
push edx
call fcn.004aa920
add esp, 4
lea ecx, [ebp - 0xa88]
call fcn.00404b70
test eax, eax
jle 0x4ab1dd
push 1
lea eax, [ebp - 0xa88]
push eax
mov ecx, dword [ebp - 0xb44]
mov ecx, dword [ecx + 4]
call fcn.0041e0d0
mov dword [ebp - 0xa74], eax
cmp dword [ebp - 0xa74], 0
je 0x4ab1dd
push 1
mov ecx, dword [ebp - 0xa74]
call fcn.004aa850
lea edx, [ebp - 0xaa0]
push edx
mov ecx, dword [ebp - 0xa74]
call fcn.00412ce0
lea eax, [ebp - 0xa64]
push eax
lea ecx, [ebp - 0xb28]
call fcn.004b3550
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xb28]
push ecx
push 7
mov ecx, dword [ebp - 0xa74]
call fcn.00412a00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb28]
call fcn.004b3860
mov edx, dword [ebp - 0xa90]
push edx
lea ecx, [ebp - 0xb34]
call fcn.004b3550
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xb34]
push eax
push 8
mov ecx, dword [ebp - 0xa74]
call fcn.00412a00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb34]
call fcn.004b3860
mov ecx, dword [ebp - 0xa94]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xaa0]
call fcn.004b3860
mov edx, dword [ebp - 0xa6c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa88]
call fcn.004b3860
jmp 0x4ab225
cmp dword [ebp - 0xa68], 0x103
jne 0x4ab225
jmp 0x4ab22a
jmp 0x4aad3e
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.SYSTEMSelect
call fcn.00414b30
mov ecx, eax
call fcn.00414830
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4ab301
mov dword [ebp - 0xaa8], 1
lea ecx, [ebp - 0xaa8]
push ecx
push str.Current
mov ecx, dword [ebp - 0x14]
call fcn.00414450
movzx edx, al
test edx, edx
je 0x4ab2bd
mov eax, dword [ebp - 0xaa8]
push eax
push str.ControlSet_03d
lea ecx, [ebp - 0xab4]
push ecx
call fcn.004b4d50
add esp, 0xc
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0xab4]
push eax
mov ecx, dword [ebp - 0xb44]
call fcn.004ab350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xab4]
call fcn.004b3860
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xb3c], ecx
mov edx, dword [ebp - 0xb3c]
mov dword [ebp - 0xb38], edx
cmp dword [ebp - 0xb38], 0
je 0x4ab2f7
push 1
mov eax, dword [ebp - 0xb38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xb38]
mov eax, dword [edx]
call eax
mov dword [ebp - 0xb54], eax
jmp 0x4ab301
mov dword [ebp - 0xb54], 0
mov byte [ebp - 0xb3d], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004850b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00409100
mov al, byte [ebp - 0xb3d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x64]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret