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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557b26
mov eax, dword fs:[0]
push eax
sub esp, 0x400
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 eax, dword [ebp + 8]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
push 0x18c
xor edi, edi
lea eax, [ebp - 0x3a8]
push edi
push eax
mov dword [ebp - 0x3c0], ebx
call fcn.005344b0
add esp, 0xc
mov dword [ebp - 0x324], 0x81
cmp esi, edi
jle 0x40d74f
mov ecx, dword [str.USBKey1]
mov edx, dword [0x58729c]
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x318], edx
jmp 0x40d766
mov eax, dword [str.USBKey0]
mov ecx, dword [0x5872a4]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], ecx
push 0x586bff
lea ecx, [ebp - 0x3ac]
mov dword [ebp - 0x3b4], edi
call fcn.00405fd0
push 0x207
lea edx, [ebp - 0x21b]
push edi
mov dword [ebp - 4], edi
push edx
mov byte [ebp - 0x21c], 0
call fcn.005344b0
add esp, 0xc
push str.ETO_KEY_D0F3A24E_92E2_4eac_8D26_CNSRCB
lea ecx, [ebp - 0x3bc]
mov dword [ebp - 0x3d0], 0x208
mov dword [ebp - 0x3cc], edi
mov byte [ebp - 4], 1
call fcn.00405fd0
push str.IsWow64Process
mov byte [ebp - 4], 2
push str.kernel32
mov dword [ebp - 0x3b0], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x40d7f6
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [ebp - 0x3ac]
cmp dword [ebp - 0x3b0], edi
je 0x40d80d
push 0x40
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
jmp 0x40d814
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
call fcn.00406280
mov eax, dword [ebp - 0x3bc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x3ac]
call fcn.00405be0
mov edx, dword [ebp - 0x3ac]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40d856
push edi
lea ecx, [ebp - 0x3ac]
call fcn.004061b0
mov edx, dword [ebp - 0x3ac]
lea ecx, [ebp - 0x3b4]
push ecx
push 0x20019
push edi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x40d88a
push 0x5a0810
lea edx, [ebp - 0x3c4]
push edx
mov dword [ebp - 0x3c4], eax
call fcn.00534862
lea eax, [ebp - 0x3d0]
push eax
mov eax, dword [ebp - 0x3b4]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x3cc]
push edx
push edi
push str.UninstallString
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x40d8cd
push 0x5a0810
lea ecx, [ebp - 0x3c8]
push ecx
mov dword [ebp - 0x3c8], eax
call fcn.00534862
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x3b8]
call fcn.00405fd0
push 0x38
lea eax, [ebp - 0x408]
push edi
push eax
mov dword [ebp - 0x40c], 0x3c
call fcn.005344b0
mov ecx, dword [ebp - 0x3b8]
add esp, 0xc
lea edx, [ebp - 0x40c]
push edx
mov dword [ebp - 0x3fc], ecx
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x408], 0x40
mov dword [ebp - 0x3f8], 0x587300
mov dword [ebp - 0x3f0], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40d944
mov dword [ebp - 0x320], 1
jmp 0x40d99a
mov ecx, dword [ebp - 0x3d4]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x3b0]
push eax
push ecx
mov dword [ebp - 0x320], edi
mov dword [ebp - 0x3b0], edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x103
cmp dword [ebp - 0x3b0], ebx
jne 0x40d992
mov eax, dword [ebp - 0x3d4]
lea edx, [ebp - 0x3b0]
push edx
push eax
call esi
push 0x1f4
call edi
jmp 0x40d971
mov ebx, dword [ebp - 0x3c0]
xor edi, edi
mov eax, dword [ebp - 0x3b8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9bc
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 - 0x3bc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40d9f2
mov eax, dword [ebp - 0x3b4]
cmp eax, edi
je 0x40da03
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3b4], edi
cmp ebx, edi
je 0x40da1e
lea ecx, [ebp - 0x3a8]
push ecx
mov eax, ebx
call fcn.00417780
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3ac]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40da47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, 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