Function at 0x409c50
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411f10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x538
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.004054b0
mov dword [ebp - 0x28], eax
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0xf4]
push 1
push 0x104
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call fcn.0040c358
add esp, 8
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x409cc5
lea eax, [ebp - 0x30]
push 0x412c58
push eax
mov dword [ebp - 0x30], esi
call fcn.0040c613
lea ecx, [ebx + 0x8734]
lea edx, [ebx + 0x220]
push ecx
lea eax, [ebx + 0x8780]
push edx
push eax
lea ecx, [ebp - 0x544]
push str.SOFTWARE_s_s_sNon_Device_INF_Installer
push ecx
call fcn.0040badf
add esp, 0x14
lea edx, [ebp - 0x544]
push edx
push str.RegOpenKeyEx_:_szRegKey_____s_
push esi
push ebx
call fcn.00404400
add esp, 0x10
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x544]
push eax
push 0x20019
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409d35
lea edx, [ebp - 0x34]
push 0x412c58
push edx
mov dword [ebp - 0x34], esi
call fcn.0040c613
mov eax, dword [ebp + 8]
push str.ConditionalDel
push eax
call fcn.0040ff20
add esp, 8
test eax, eax
jne 0x409ee4
mov ecx, 0x41
lea edi, [ebp - 0x1f8]
rep stosd dword es:[edi], eax
mov ecx, ebx
call fcn.004065b0
cmp eax, esi
jne 0x409eb3
lea ecx, [ebp - 0x1f8]
push ecx
mov ecx, ebx
call fcn.00409a90
test al, al
je 0x409eb3
mov ecx, dword [ebp - 0x28]
mov eax, 0x3c
lea edx, [ebp - 0x1f8]
xor edi, edi
cmp ecx, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x64], str.open
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
jne 0x409de0
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1f8]
push eax
push ecx
mov ecx, ebx
call fcn.0040a3e0
lea edx, [ebp - 0x1f8]
mov esi, eax
push edx
push esi
push str.CreateProcessAsUserOnVista_with_return_value__d__non_zero_for_OK___exefile:__s_
push edi
push ebx
call fcn.00404400
add esp, 0x14
cmp esi, edi
jne 0x409e22
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x409e0c
lea ecx, [ebp - 0x1f8]
push ecx
push str.Program__s_has_been_executed_successfully.
push edi
push ebx
call fcn.00404400
mov edx, dword [ebp - 0x38]
add esp, 0x10
mov dword [ebp - 0x14], edx
jmp 0x409e22
lea eax, [ebp - 0x1f8]
push eax
push str._s_has_been_executed_with_an_error.
push edi
push ebx
call fcn.00404400
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x409eb3
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x409ea1
lea ecx, [ebp - 0x1f8]
push ecx
push str.Waiting_for_executed_process___s_
push 0
push ebx
call fcn.00404400
mov edx, dword [ebp - 0x14]
add esp, 0x10
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x409e87
je 0x409e7e
test eax, eax
je 0x409e75
cmp eax, 0x80
jne 0x409ea1
push str.Wait_for_executed_proecss___Abandoned__
push 0
jmp 0x409e98
push str.Process_was_terminated___
push 0
jmp 0x409e98
push str.Wait_for_executed_proecss___Wait_time_out__
push 0
jmp 0x409e98
cmp eax, 0xffffffff
jne 0x409ea1
push str.Wait_for_executed_process___Fail
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call fcn.00404400
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409eb3
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x409ec3
push eax
call fcn.0040c251
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409ed1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 8], esi
cmp dword [ebp - 0x24], esi
jne 0x409eb3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x238]
push eax
push str.EIU__d
push ecx
call fcn.0040badf
add esp, 0xc
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x1f8]
lea ecx, [ebp - 0x74]
push edx
push eax
mov eax, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x238]
push 0
push edx
push eax
mov dword [ebp - 0x2c], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x1f8]
lea edx, [ebp - 0x238]
push ecx
push edx
push str.RegQueryValueEx___szEntry_:___s_.....lResult_:___d_
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x24], esi
call fcn.00404400
add esp, 0x14
test esi, esi
jne 0x40a3c1
push str.if_lResult___ERROR_SUCCESS_
push esi
push ebx
call fcn.00404400
lea edi, [ebp - 0x1f8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x33c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1f8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [ebp - 0x33c]
mov edx, ecx
mov esi, edi
mov edi, dword [ebp - 0x18]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040c0e0
add esp, 8
test eax, eax
je 0x409ffe
lea ecx, [ebp - 0x33c]
push 0x2c
push ecx
call fcn.0040c0e0
mov edx, eax
mov edi, 0x421e60
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x33c]
push ecx
call fcn.004030c0
mov eax, dword [ebx + 0x877c]
add esp, 4
test eax, eax
je 0x40a030
lea edx, [ebx + 0x8567]
lea eax, [ebp - 0x1f8]
push edx
push eax
lea ecx, [ebx + 0x110]
call fcn.00403c60
mov ecx, dword [ebp - 0x18]
push 0x2c
push ecx
call fcn.0040c0e0
add esp, 8
test eax, eax
je 0x40a074
mov edx, dword [ebp - 0x18]
push 0x2c
push edx
call fcn.0040c0e0
mov edx, eax
mov edi, 0x421e60
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00409470
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xb4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xb4]
push ecx
call fcn.0040c0e0
add esp, 0xc
test eax, eax
je 0x40a0ec
lea edx, [ebp - 0xb4]
push 0x2c
push edx
call fcn.0040c0e0
mov edx, eax
mov edi, 0x418ea8
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1f8]
or ecx, 0xffffffff
xor eax, eax
push 0x2c
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x18]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040c0e0
add esp, 8
test eax, eax
je 0x40a155
mov eax, dword [ebp - 0x18]
push 0x2c
push eax
call fcn.0040c0e0
mov edi, eax
add esp, 8
inc edi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xf4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xb4]
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], eax
lea edi, [ebp - 0x33c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xf4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x64], str.open
mov al, byte [ebp + ecx - 0x33d]
mov dword [ebp - 0x5c], edx
cmp al, 0x5c
jne 0x40a1b7
lea edi, [ebp - 0x33c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp + ecx - 0x33d], al
lea edi, [ebp - 0x33c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x440]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x54], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x440]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x441], 0x5c
je 0x40a231
mov edi, 0x41449c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x440]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0xf4]
lea ecx, [ebp - 0xb4]
push eax
lea edx, [ebp - 0x440]
push ecx
push edx
lea eax, [ebp - 0x440]
push str._s_s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x440]
push ecx
push str.szApplicationName_is__s
push 0
push ebx
call fcn.00404400
mov eax, dword [ebp - 0x28]
add esp, 0x10
cmp eax, 0x3c
jl 0x40a2a4
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x440]
push edx
push eax
mov ecx, ebx
call fcn.0040a3e0
mov esi, eax
push esi
push str.CreateProcessAsUserOnVista_with_return_value__d__non_zero_for_OK_
push 0
push ebx
mov dword [ebp - 0x1c], esi
call fcn.00404400
add esp, 0x10
jmp 0x40a2e7
cmp eax, 0x32
jl 0x40a2e4
lea ecx, [ebp - 0x14]
lea edi, [ebp - 0x440]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x440]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebx
call fcn.0040aeb0
mov esi, eax
push esi
push str.RunWin32Process_with_return_value__d__non_zero_for_OK_
push 0
push ebx
mov dword [ebp - 0x1c], esi
call fcn.00404400
add esp, 0x10
jmp 0x40a2e7
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x40a32e
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40a317
lea ecx, [ebp - 0xb4]
push ecx
push str.Program__s_has_been_executed_successfully.
push esi
push ebx
call fcn.00404400
mov edx, dword [ebp - 0x38]
add esp, 0x10
mov dword [ebp - 0x14], edx
jmp 0x40a32e
lea eax, [ebp - 0xb4]
push eax
push str._s_has_been_executed_with_an_error.
push 0
push ebx
call fcn.00404400
add esp, 0x10
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a3c1
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40a3af
lea ecx, [ebp - 0xb4]
push ecx
push str.Waiting_for_executed_process___s_
push 0
push ebx
call fcn.00404400
mov edx, dword [ebp - 0x14]
add esp, 0x10
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x40a395
je 0x40a38c
test eax, eax
je 0x40a383
cmp eax, 0x80
jne 0x40a3af
push str.Wait_for_executed_proecss___Abandoned__
push 0
jmp 0x40a3a6
push str.Process_was_terminated___
push 0
jmp 0x40a3a6
push str.Wait_for_executed_proecss___Wait_time_out__
push 0
jmp 0x40a3a6
cmp eax, 0xffffffff
jne 0x40a3af
push str.Wait_for_executed_process___Fail
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call fcn.00404400
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a3c1
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
inc eax
xor esi, esi
mov dword [ebp + 8], eax
jmp 0x409ee7