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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e506
mov eax, dword fs:[0]
push eax
sub esp, 0x400
mov eax, dword [0x5d7f50]
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 - 0x3bc], ebx
call fcn.00543bb0
add esp, 0xc
mov dword [ebp - 0x324], 0x81
cmp esi, edi
jle 0x40e6bf
mov ecx, dword [str.USBKey1]
mov edx, dword [0x5aecd4]
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x318], edx
jmp 0x40e6d6
mov eax, dword [str.USBKey0]
mov ecx, dword [0x5aecdc]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], ecx
push 0x5ad324
lea ecx, [ebp - 0x3ac]
mov dword [ebp - 0x3b8], edi
call fcn.00402770
push 0x207
lea edx, [ebp - 0x21b]
push edi
mov dword [ebp - 4], edi
push edx
mov byte [ebp - 0x21c], 0
call fcn.00543bb0
add esp, 0xc
mov dword [ebp - 0x3d0], 0x208
mov dword [ebp - 0x3cc], edi
mov byte [ebp - 4], 1
call fcn.0044b779
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40e739
push 0x80004005
call fcn.00402bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3b4], eax
mov byte [ebp - 4], 2
cmp esi, edi
je 0x40e7b6
jle 0x40e763
cmp esi, 2
jg 0x40e763
push 0x28
push str.ETO_KEY_D0F3A24E_92E2_4eac_8D26_CSRCBANK
jmp 0x40e7bd
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e783
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3ac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40ea4e
push 0x2b
push str.GM_2ED977A08C35407fB498C5D8ECC6CD81_CSEbank
lea ecx, [ebp - 0x3b4]
call fcn.00402a20
push str.IsWow64Process
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 0x40e7fb
lea ecx, [ebp - 0x3b0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [ebp - 0x3ac]
cmp dword [ebp - 0x3b0], edi
je 0x40e812
push 0x40
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
jmp 0x40e819
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
call fcn.00402a20
mov esi, dword [ebp - 0x3b4]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x3ac]
call fcn.004078f0
mov edx, dword [ebp - 0x3ac]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40e85b
push edi
lea ecx, [ebp - 0x3ac]
call fcn.00402950
mov edx, dword [ebp - 0x3ac]
lea eax, [ebp - 0x3b8]
push eax
push 0x20019
push edi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x40e88f
push 0x5c9e00
lea ecx, [ebp - 0x3c4]
push ecx
mov dword [ebp - 0x3c4], eax
call fcn.00543f24
lea edx, [ebp - 0x3d0]
push edx
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x3cc]
push ecx
push edi
push str.UninstallString
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x40e8d2
mov dword [ebp - 0x3c8], eax
push 0x5c9e00
lea eax, [ebp - 0x3c8]
push eax
call fcn.00543f24
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x3c0]
call fcn.00402770
push 0x38
lea edx, [ebp - 0x408]
push edi
push edx
mov dword [ebp - 0x40c], 0x3c
call fcn.00543bb0
mov eax, dword [ebp - 0x3c0]
add esp, 0xc
lea ecx, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x408], 0x40
mov dword [ebp - 0x3f8], 0x5aed84
mov dword [ebp - 0x3f0], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40e949
mov dword [ebp - 0x320], 1
jmp 0x40e9a5
mov eax, dword [ebp - 0x3d4]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea edx, [ebp - 0x3b0]
push edx
push eax
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 0x40e997
mov edx, dword [ebp - 0x3d4]
lea ecx, [ebp - 0x3b0]
push ecx
push edx
call esi
push 0x1f4
call edi
jmp 0x40e976
mov ebx, dword [ebp - 0x3bc]
mov esi, dword [ebp - 0x3b4]
xor edi, edi
mov eax, dword [ebp - 0x3c0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40e9f7
mov eax, dword [ebp - 0x3b8]
cmp eax, edi
je 0x40ea08
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3b8], edi
cmp ebx, edi
je 0x40ea23
lea ecx, [ebp - 0x3a8]
push ecx
mov eax, ebx
call fcn.0041f520
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 0x40ea4c
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.0053c99c
mov esp, ebp
pop ebp
ret