Function at 0x1003e8a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101205f8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x34], esi
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], 0
call fcn.10022690
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x1003e8f5
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
push dword [esi + 0xc]
mov dword [ebp - 0x14], 0
push str.EnumVirtServiceRegKeys_AppID_s_
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, str.VirtSvcUtils
mov edx, dword [ebp - 0x20]
call fcn.10043b30
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1003e96f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
push 0x109
push 0
push str.RegistryMachineSystemCurrentControlSetServices
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003e9ef
lea ecx, [ebp - 0x54]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.1003f910
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1003e9db
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x34]
push dword [eax + 0xc]
lea eax, [ebp - 0x20]
push str.EnumVirtServiceRegKeys:__s:_browsing_service_keys
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, str.VirtSvcUtils
mov edx, dword [ebp - 0x20]
call fcn.10043b30
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1003ea35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x20], 0
lea esp, [esp]
lea ecx, [ebp - 0x7c]
call fcn.1003df90
mov byte [ebp - 4], 4
call fcn.10022690
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x1003e8eb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 5
call fcn.10022690
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x1003e8eb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 6
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x1003eaba
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.100249c0
mov esi, dword [ebp - 0x1c]
push 0x104
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push dword [esi - 8]
mov dword [ebp - 0x18], eax
push esi
call fcn.1010374b
add esp, 8
test eax, eax
js 0x1003ef1a
cmp eax, dword [esi - 8]
jg 0x1003ef1a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x18], ecx
jne 0x1003eeb3
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.Type
call fcn.10023fc0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x18], eax
call fcn.10024750
mov ecx, esp
lea edx, [ebp - 0x60]
add eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.10045ce0
add esp, 0xc
test eax, eax
jne 0x1003ebcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push str.EnumVirtServiceRegKeys:_could_NOT_read_value_Start__LE_d_._Skipping_this_service.
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 8
mov ecx, str.VirtSvcUtils
mov edx, dword [ebp - 0x24]
call fcn.10043b30
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003eb91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov ecx, esi
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003ebae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1003eea3
mov ecx, dword [edi]
push edi
jmp 0x1003ee9e
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.Start
call fcn.10023fc0
push ecx
mov ecx, dword [ebp - 0x18]
mov esi, esp
mov byte [ebp - 4], 9
call fcn.10024750
add eax, 0x10
lea edx, [ebp - 0x5c]
mov dword [esi], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.10045ce0
add esp, 0xc
test eax, eax
jne 0x1003ec95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.EnumVirtServiceRegKeys:_could_NOT_read_value_Start__LE_d_._Skipping_this_service.
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, str.VirtSvcUtils
mov edx, dword [ebp - 0x28]
call fcn.10043b30
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov edx, dword [ebp - 0x28]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003ec59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov ecx, esi
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003ec76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1003eea3
mov ecx, dword [edi]
push edi
jmp 0x1003ee9e
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.DisplayName
call fcn.10023fc0
mov edi, dword [ebp - 0x18]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xb
mov esi, esp
call fcn.10024750
add eax, 0x10
lea edx, [ebp - 0x78]
mov dword [esi], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.10045b00
add esp, 0x14
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.Group
call fcn.10023fc0
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xc
mov esi, esp
call fcn.10024750
add eax, 0x10
lea edx, [ebp - 0x64]
mov dword [esi], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.10045b00
add esp, 0x14
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.ErrorControl
call fcn.10023fc0
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xd
mov esi, esp
call fcn.10024750
add eax, 0x10
lea edx, [ebp - 0x58]
mov dword [esi], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.10045ce0
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
push eax
call fcn.100244b0
push 0
push 0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.ImagePath
call fcn.10023fc0
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xe
mov esi, esp
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.10045b00
mov eax, dword [ebp - 0x2c]
add esp, 0x10
add eax, 0xfffffff0
mov esi, esp
mov ecx, eax
mov dword [ebp - 0x38], eax
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x7c]
mov dword [esi], eax
call fcn.1003e0a0
mov eax, dword [ebp - 0x60]
test al, 0x30
jne 0x1003edb6
xor ecx, ecx
jmp 0x1003edbb
mov ecx, 1
push eax
push dword [ebp - 0x5c]
test ecx, ecx
mov eax, str.Win32
push dword [ebp - 0x70]
mov ecx, str.Kernel
cmove eax, ecx
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x30]
push str.EnumVirtServiceRegKeys:_service_found:__s__s:_s__start_d__type_d_
push eax
call fcn.10044f30
add esp, 0x1c
mov byte [ebp - 4], 0xf
mov ecx, str.VirtSvcUtils
mov edx, dword [ebp - 0x30]
call fcn.10043b30
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov edx, dword [ebp - 0x30]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003ee1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x68]
lea eax, [ebp - 0x34]
push dword [ebp - 0x6c]
push str.EnumVirtServiceRegKeys:_decomposed:_Exe_s__Args_s
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 0x10
mov ecx, str.VirtSvcUtils
mov edx, dword [ebp - 0x34]
call fcn.10043b30
mov byte [ebp - 4], 6
mov ecx, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003ee62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x54]
call fcn.1003f960
mov byte [ebp - 4], 5
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003ee88
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1003eea3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x7c]
call fcn.1003e7d0
inc dword [ebp - 0x20]
jmp 0x1003ea40
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003eed3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 4
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003eef0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x7c]
call fcn.1003e7d0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x54]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 8], eax
jmp 0x1003e9bd
push 0x80070057
call fcn.100223c0
int3