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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4121e0
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.00405590
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.0040c608
add esp, 8
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x40a035
lea eax, [ebp - 0x30]
push 0x413c58
push eax
mov dword [ebp - 0x30], esi
call fcn.0040c8c3
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.0040bd8f
add esp, 0x14
lea edx, [ebp - 0x544]
push edx
push str.RegOpenKeyEx_:_szRegKey_____s_
push esi
push ebx
call fcn.004044c0
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 0x40a0a5
lea edx, [ebp - 0x34]
push 0x413c58
push edx
mov dword [ebp - 0x34], esi
call fcn.0040c8c3
mov eax, dword [ebp + 8]
push str.ConditionalDel
push eax
call fcn.004101d0
add esp, 8
test eax, eax
jne 0x40a254
mov ecx, 0x41
lea edi, [ebp - 0x1f8]
rep stosd dword es:[edi], eax
mov ecx, ebx
call fcn.004066a0
cmp eax, esi
jne 0x40a223
lea ecx, [ebp - 0x1f8]
push ecx
mov ecx, ebx
call fcn.00409e00
test al, al
je 0x40a223
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 0x40a150
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1f8]
push eax
push ecx
mov ecx, ebx
call fcn.0040a750
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.004044c0
add esp, 0x14
cmp esi, edi
jne 0x40a192
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40a17c
lea ecx, [ebp - 0x1f8]
push ecx
push str.Program__s_has_been_executed_successfully.
push edi
push ebx
call fcn.004044c0
mov edx, dword [ebp - 0x38]
add esp, 0x10
mov dword [ebp - 0x14], edx
jmp 0x40a192
lea eax, [ebp - 0x1f8]
push eax
push str._s_has_been_executed_with_an_error.
push edi
push ebx
call fcn.004044c0
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x40a223
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40a211
lea ecx, [ebp - 0x1f8]
push ecx
push str.Waiting_for_executed_process___s_
push 0
push ebx
call fcn.004044c0
mov edx, dword [ebp - 0x14]
add esp, 0x10
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x40a1f7
je 0x40a1ee
test eax, eax
je 0x40a1e5
cmp eax, 0x80
jne 0x40a211
push str.Wait_for_executed_proecss___Abandoned__
push 0
jmp 0x40a208
push str.Process_was_terminated___
push 0
jmp 0x40a208
push str.Wait_for_executed_proecss___Wait_time_out__
push 0
jmp 0x40a208
cmp eax, 0xffffffff
jne 0x40a211
push str.Wait_for_executed_process___Fail
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call fcn.004044c0
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a223
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40a233
push eax
call fcn.0040c501
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40a241
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 0x40a223
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x238]
push eax
push str.EIU__d
push ecx
call fcn.0040bd8f
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.004044c0
add esp, 0x14
test esi, esi
jne 0x40a731
push str.if_lResult___ERROR_SUCCESS_
push esi
push ebx
call fcn.004044c0
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.0040c390
add esp, 8
test eax, eax
je 0x40a36e
lea ecx, [ebp - 0x33c]
push 0x2c
push ecx
call fcn.0040c390
mov edx, eax
mov edi, 0x422fe4
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.00403180
mov eax, dword [ebx + 0x877c]
add esp, 4
test eax, eax
je 0x40a3a0
lea edx, [ebx + 0x8567]
lea eax, [ebp - 0x1f8]
push edx
push eax
lea ecx, [ebx + 0x110]
call fcn.00403d20
mov ecx, dword [ebp - 0x18]
push 0x2c
push ecx
call fcn.0040c390
add esp, 8
test eax, eax
je 0x40a3e4
mov edx, dword [ebp - 0x18]
push 0x2c
push edx
call fcn.0040c390
mov edx, eax
mov edi, 0x422fe4
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.004097e0
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.0040c390
add esp, 0xc
test eax, eax
je 0x40a45c
lea edx, [ebp - 0xb4]
push 0x2c
push edx
call fcn.0040c390
mov edx, eax
mov edi, 0x419f28
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.0040c390
add esp, 8
test eax, eax
je 0x40a4c5
mov eax, dword [ebp - 0x18]
push 0x2c
push eax
call fcn.0040c390
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 0x40a527
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 0x40a5a1
mov edi, 0x41549c
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.004044c0
mov eax, dword [ebp - 0x28]
add esp, 0x10
cmp eax, 0x3c
jl 0x40a614
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x440]
push edx
push eax
mov ecx, ebx
call fcn.0040a750
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.004044c0
add esp, 0x10
jmp 0x40a657
cmp eax, 0x32
jl 0x40a654
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.0040b160
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.004044c0
add esp, 0x10
jmp 0x40a657
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x40a69e
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40a687
lea ecx, [ebp - 0xb4]
push ecx
push str.Program__s_has_been_executed_successfully.
push esi
push ebx
call fcn.004044c0
mov edx, dword [ebp - 0x38]
add esp, 0x10
mov dword [ebp - 0x14], edx
jmp 0x40a69e
lea eax, [ebp - 0xb4]
push eax
push str._s_has_been_executed_with_an_error.
push 0
push ebx
call fcn.004044c0
add esp, 0x10
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a731
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40a71f
lea ecx, [ebp - 0xb4]
push ecx
push str.Waiting_for_executed_process___s_
push 0
push ebx
call fcn.004044c0
mov edx, dword [ebp - 0x14]
add esp, 0x10
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x40a705
je 0x40a6fc
test eax, eax
je 0x40a6f3
cmp eax, 0x80
jne 0x40a71f
push str.Wait_for_executed_proecss___Abandoned__
push 0
jmp 0x40a716
push str.Process_was_terminated___
push 0
jmp 0x40a716
push str.Wait_for_executed_proecss___Wait_time_out__
push 0
jmp 0x40a716
cmp eax, 0xffffffff
jne 0x40a71f
push str.Wait_for_executed_process___Fail
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call fcn.004044c0
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a731
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 0x40a257