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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43863b
mov eax, dword fs:[0]
push eax
sub esp, 0xa5c
mov eax, dword [0x449080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa34], 0
lea ecx, [ebp - 0xa64]
call fcn.0040a6b0
mov dword [ebp - 4], 0
mov dword [ebp - 0xa30], 0
lea eax, [ebp - 0xa30]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa2c], eax
cmp dword [ebp - 0xa2c], 0
je 0x403faa
push 0x43b4b0
push 0x44a2b8
call fcn.00405eb0
add esp, 8
push str.Failed_to_open_Services_key:
push eax
call fcn.00405eb0
add esp, 8
mov dword [ebp - 0xa44], eax
mov ecx, dword [ebp - 0xa2c]
push ecx
mov ecx, dword [ebp - 0xa44]
call fcn.0040c460
push 0x43b460
push eax
call fcn.00405eb0
add esp, 8
mov dword [ebp - 0xa48], eax
push 0x250
mov ecx, dword [ebp - 0xa48]
call fcn.0040c250
push 0x43b45c
push eax
call fcn.00405eb0
add esp, 8
mov dword [ebp - 0xa4c], eax
push 0x4093e0
mov ecx, dword [ebp - 0xa4c]
call fcn.0040c800
lea edx, [ebp - 0xa64]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040a5e0
mov eax, dword [ebp - 0xa34]
or eax, 1
mov dword [ebp - 0xa34], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa64]
call fcn.0040bbe0
mov eax, dword [ebp + 8]
jmp 0x4041b6
mov dword [ebp - 0xa3c], 0
mov dword [ebp - 0xa40], 0x100
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xa40]
push ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0xa3c]
push eax
mov ecx, dword [ebp - 0xa30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x404176
mov dword [ebp - 0xa38], 0
lea edx, [ebp - 0xa38]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0xa30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa2c], eax
cmp dword [ebp - 0xa2c], 0
jne 0x404158
mov dword [ebp - 0xa50], 0x800
lea edx, [ebp - 0xa50]
push edx
lea eax, [ebp - 0xa10]
push eax
lea ecx, [ebp - 0xa68]
push ecx
push 0
push str.ImagePath
mov edx, dword [ebp - 0xa38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40414a
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa10]
push ecx
call fcn.00414300
add esp, 8
test eax, eax
je 0x40414a
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0xa28]
call fcn.0040a0c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa28]
push eax
lea ecx, [ebp - 0xa64]
call fcn.00413750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa28]
call fcn.0040baa0
nop
push 0x43b4f8
push 0x44a1f8
call fcn.00405eb0
add esp, 8
push str.Found_service:
push eax
call fcn.00405eb0
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
push eax
call fcn.00405eb0
add esp, 8
mov dword [ebp - 0xa54], eax
push 0x4093e0
mov ecx, dword [ebp - 0xa54]
call fcn.0040c800
push 0x43b520
push 0x44a1f8
call fcn.00405eb0
add esp, 8
push str.ImagePath:
push eax
call fcn.00405eb0
add esp, 8
lea edx, [ebp - 0xa10]
push edx
push eax
call fcn.00405eb0
add esp, 8
mov dword [ebp - 0xa58], eax
push 0x4093e0
mov ecx, dword [ebp - 0xa58]
call fcn.0040c800
nop
mov eax, dword [ebp - 0xa38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov ecx, dword [ebp - 0xa3c]
add ecx, 1
mov dword [ebp - 0xa3c], ecx
mov dword [ebp - 0xa40], 0x100
jmp 0x403fbe
mov edx, dword [ebp - 0xa30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa64]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040a5e0
mov ecx, dword [ebp - 0xa34]
or ecx, 1
mov dword [ebp - 0xa34], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa64]
call fcn.0040bbe0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004173a4
mov esp, ebp
pop ebp
ret