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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47eb25
mov eax, dword fs:[0]
push eax
mov eax, 0x107c
call fcn.0046b070
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x1cc]
cmp eax, 7
mov dword [ebp - 0x103c], ebx
je 0x40a797
cmp eax, 8
je 0x40a797
xor edi, edi
jmp 0x40abfd
mov esi, 0x7fe
xor edi, edi
push esi
lea eax, [ebp - 0x80e]
push edi
push eax
mov word [ebp - 0x810], di
call fcn.0045c920
push esi
lea eax, [ebp - 0x100e]
push edi
push eax
mov word [ebp - 0x1010], di
call fcn.0045c920
add esp, 0x18
lea eax, [ebp - 0x1028]
push eax
push 0x20019
push edi
push 0x488be8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40abfd
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1014]
push eax
push edi
lea eax, [ebp - 0x1018]
push eax
push edi
push 0x488c20
push dword [ebp - 0x1028]
mov dword [ebp - 0x1018], edi
mov dword [ebp - 0x1014], edi
call esi
xor ebx, ebx
inc ebx
cmp eax, edi
mov dword [ebp - 0x101c], eax
jne 0x40a870
cmp dword [ebp - 0x1018], ebx
jne 0x40a870
cmp dword [ebp - 0x1014], 2
jb 0x40a870
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1018]
push eax
push edi
push 0x488c20
push dword [ebp - 0x1028]
mov dword [ebp - 0x1014], 0x400
call esi
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x1014]
push eax
push edi
lea eax, [ebp - 0x1018]
push eax
push edi
push 0x488c38
push dword [ebp - 0x1028]
call esi
cmp eax, edi
mov dword [ebp - 0x1020], eax
jne 0x40a8db
cmp dword [ebp - 0x1018], ebx
jne 0x40a8db
cmp dword [ebp - 0x1014], 2
jb 0x40a8db
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1018]
push eax
push edi
push 0x488c38
push dword [ebp - 0x1028]
mov dword [ebp - 0x1014], 0x400
call esi
mov dword [ebp - 0x1020], eax
push dword [ebp - 0x1028]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], edi
jne 0x40a90a
push 5
push edi
push 0x488c50
lea eax, [ebp - 0x810]
push eax
push 0x488994
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x1020], edi
jne 0x40abf7
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x101c]
push eax
call fcn.004045f7
lea eax, [ebp - 0x101c]
push eax
mov dword [ebp - 4], edi
call fcn.00434e43
pop ecx
mov esi, 0x488c74
push esi
lea eax, [ebp - 0x1020]
push eax
call fcn.004045f7
lea eax, [ebp - 0x1024]
push 0x488c90
push eax
lea ecx, [ebp - 0x101c]
mov byte [ebp - 4], bl
call fcn.0040af97
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x1020]
call fcn.0040b6dc
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1024]
add eax, 0xfffffff0
call fcn.00401144
push esi
lea eax, [ebp - 0x1014]
push eax
call fcn.004045f7
lea eax, [ebp - 0x1024]
push 0x488cc0
push eax
lea ecx, [ebp - 0x101c]
mov byte [ebp - 4], 3
call fcn.0040af97
pop ecx
pop ecx
mov byte [ebp - 4], 4
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x1014]
call fcn.0040b6dc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1024]
add eax, 0xfffffff0
call fcn.00401144
push esi
lea eax, [ebp - 0x1018]
push eax
call fcn.004045f7
lea eax, [ebp - 0x1024]
push 0x488cfc
push eax
lea ecx, [ebp - 0x101c]
mov byte [ebp - 4], 5
call fcn.0040af97
pop ecx
pop ecx
mov byte [ebp - 4], 6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x1018]
call fcn.0040b6dc
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1024]
add eax, 0xfffffff0
call fcn.00401144
push 0x44
lea eax, [ebp - 0x1088]
push edi
push eax
call fcn.0045c920
push 0x10
lea eax, [ebp - 0x1038]
push edi
push eax
mov dword [ebp - 0x105c], ebx
mov word [ebp - 0x1058], di
call fcn.0045c920
mov eax, dword [ebp - 0x1020]
add esp, 0x18
cmp dword [eax - 4], ebx
jle 0x40aa7d
push dword [eax - 0xc]
lea eax, [ebp - 0x1020]
push eax
call fcn.00401bad
mov eax, dword [ebp - 0x1020]
lea ecx, [ebp - 0x1038]
push ecx
lea ecx, [ebp - 0x1088]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40aac1
push 0xffffffffffffffff
push dword [ebp - 0x1038]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1038]
call esi
push dword [ebp - 0x1034]
call esi
push 0x44
lea eax, [ebp - 0x1088]
push edi
push eax
call fcn.0045c920
push 0x10
lea eax, [ebp - 0x1038]
push edi
push eax
call fcn.0045c920
mov eax, dword [ebp - 0x1014]
add esp, 0x18
cmp dword [eax - 4], ebx
jle 0x40ab02
push dword [eax - 0xc]
lea eax, [ebp - 0x1014]
push eax
call fcn.00401bad
mov eax, dword [ebp - 0x1014]
lea ecx, [ebp - 0x1038]
push ecx
lea ecx, [ebp - 0x1088]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40ab40
push 0xffffffffffffffff
push dword [ebp - 0x1038]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1038]
call esi
push dword [ebp - 0x1034]
call esi
push 0x44
lea eax, [ebp - 0x1088]
push edi
push eax
call fcn.0045c920
push 0x10
lea eax, [ebp - 0x1038]
push edi
push eax
call fcn.0045c920
mov eax, dword [ebp - 0x1018]
add esp, 0x18
cmp dword [eax - 4], ebx
jle 0x40ab81
push dword [eax - 0xc]
lea eax, [ebp - 0x1018]
push eax
call fcn.00401bad
mov eax, dword [ebp - 0x1018]
lea ecx, [ebp - 0x1038]
push ecx
lea ecx, [ebp - 0x1088]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40abbf
push 0xffffffffffffffff
push dword [ebp - 0x1038]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1038]
call esi
push dword [ebp - 0x1034]
call esi
mov eax, dword [ebp - 0x1018]
add eax, 0xfffffff0
call fcn.00401144
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
call fcn.00401144
mov eax, dword [ebp - 0x1020]
add eax, 0xfffffff0
call fcn.00401144
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
call fcn.00401144
mov ebx, dword [ebp - 0x103c]
push edi
push edi
push 0x12
push dword [ebx + 0x1c4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045c29b
leave
ret