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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.0040ce40
push ebx
push esi
mov esi, 0x401
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x428]
push ebx
push eax
mov dword [ebp - 0xc], 0x80000001
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x82c]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x11
lea eax, [ebp - 0x24]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x24
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409734
push esi
lea eax, [ebp - 0x428]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x82c]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x11
lea eax, [ebp - 0x24]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x40faa4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.grpid
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x11
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x40fa5c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], ebx
je 0x409742
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0x80000001
jne 0x40977b
lea eax, [ebp - 0x428]
push eax
call edi
test eax, eax
jne 0x40977b
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
jne 0x40977b
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
jne 0x40977b
mov dword [ebp - 0xc], 0x80000002
jmp 0x409687
push 0x825
lea eax, [ebp - 0x1054]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1054]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1054]
push 0x40f654
push eax
call esi
lea eax, [ebp - 0x24]
push eax
call edi
mov ebx, eax
lea eax, [ebp - 0x82c]
push eax
call edi
add ebx, eax
lea eax, [ebp - 0x428]
push eax
call edi
lea eax, [ebx + eax + 0x17]
lea ebx, [eax + eax]
inc eax
push eax
mov dword [ebp + 0xc], eax
call sub.MSVCRT.dll_malloc
mov edi, eax
lea eax, [ebx + 1]
push eax
call sub.MSVCRT.dll_malloc
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
push 0
push edi
call sub.MSVCRT.dll_memset
lea eax, [ebx + 1]
push eax
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0x20
push str.installdt
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
push str.nums
push edi
call esi
lea eax, [ebp - 0x428]
push eax
push edi
call esi
push 0x40f5b4
push edi
call esi
lea eax, [ebp - 0x82c]
push eax
push edi
call esi
push ebx
push dword [ebp + 8]
push edi
call fcn.004076d7
add esp, 0xc
lea eax, [ebp - 0x1054]
push dword [ebp + 8]
push eax
call esi
push edi
call sub.MSVCRT.dll_free
push dword [ebp + 8]
call sub.MSVCRT.dll_free
pop ecx
xor eax, eax
pop ecx
push 1
push eax
lea ecx, [ebp - 0x1054]
push eax
push ecx
push 0x40f264
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret