Function at 0x40e8a0
Capabilities:
Create process on windows
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557aa6
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
push 0x586bff
lea ecx, [ebp - 0x32c]
mov dword [ebp - 0x338], ebx
call fcn.00405fd0
push 0x207
lea eax, [ebp - 0x21f]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x220], bl
call fcn.005344b0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x328]
push ebx
push ecx
mov dword [ebp - 0x34c], 0x208
mov dword [ebp - 0x348], ebx
call fcn.005344b0
add esp, 0xc
lea ecx, [ebp - 0x328]
call fcn.004178d0
lea eax, [ebp - 0x328]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40e940
mov edx, dword [0x585730]
mov ecx, dword [0x585734]
mov dword [eax], edx
mov edx, dword [0x585738]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [ebp - 0x328]
push eax
call fcn.004179d0
push 0x586bff
lea ecx, [ebp - 0x334]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00405fd0
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x40e9c2
jle 0x40e993
cmp esi, 2
jle 0x40e9c2
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x334]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ec09
push 0x26
push str.ETO_KEY_D0F3A24E_92E2_4eac_8D26_CNSRCB
lea ecx, [ebp - 0x334]
call fcn.00406280
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x330], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40ea07
lea ecx, [ebp - 0x330]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [ebp - 0x32c]
cmp dword [ebp - 0x330], ebx
je 0x40ea1e
push 0x40
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
jmp 0x40ea25
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
call fcn.00406280
mov eax, dword [ebp - 0x334]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x32c]
call fcn.00405be0
mov edx, dword [ebp - 0x32c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40ea67
push ebx
lea ecx, [ebp - 0x32c]
call fcn.004061b0
mov edx, dword [ebp - 0x32c]
lea eax, [ebp - 0x338]
push eax
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40ea9b
push 0x5a0810
lea ecx, [ebp - 0x340]
push ecx
mov dword [ebp - 0x340], eax
call fcn.00534862
lea edx, [ebp - 0x34c]
push edx
mov edx, dword [ebp - 0x338]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x348]
push ecx
push ebx
push str.UninstallString
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40eade
mov dword [ebp - 0x344], eax
push 0x5a0810
lea eax, [ebp - 0x344]
push eax
call fcn.00534862
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x33c]
call fcn.00405fd0
push 0x38
lea edx, [ebp - 0x384]
push ebx
push edx
mov dword [ebp - 0x388], 0x3c
call fcn.005344b0
mov eax, dword [ebp - 0x33c]
add esp, 0xc
lea ecx, [ebp - 0x388]
push ecx
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x380], edi
mov dword [ebp - 0x384], 0x40
mov dword [ebp - 0x374], 0x587300
mov dword [ebp - 0x36c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40eb95
mov eax, dword [ebp - 0x350]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea edx, [ebp - 0x330]
push edx
push eax
mov dword [ebp - 0x330], ebx
call esi
mov edi, 0x103
lea ebx, [ebx]
cmp dword [ebp - 0x330], edi
jne 0x40eb95
mov edx, dword [ebp - 0x350]
lea ecx, [ebp - 0x330]
push ecx
push edx
call esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40eb70
mov eax, dword [ebp - 0x33c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ebb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x334]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ebe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ebe7
mov eax, dword [ebp - 0x338]
cmp eax, ebx
je 0x40ebf8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x7d0
mov dword [ebp - 0x338], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x32c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret