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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56edd7
mov eax, dword fs:[0]
push eax
sub esp, 0x288
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 dword [ebp - 0x24c], eax
mov eax, dword [eax + 4]
xor edi, edi
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x228], edi
call fcn.0044b779
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40bc75
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 - 0x224], eax
mov dword [ebp - 4], edi
call fcn.0044b779
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40bca4
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 - 0x22c], eax
push 0x207
lea ecx, [ebp - 0x21b]
push edi
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x244], str.UninstallString
mov byte [ebp - 0x21c], 0
call fcn.00543bb0
add esp, 0xc
mov dword [ebp - 0x240], 0x208
mov dword [ebp - 0x23c], edi
call fcn.0044b779
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40bd0a
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 - 0x234], eax
push str.IsWow64Process
mov byte [ebp - 4], 2
push str.kernel32
mov dword [ebp - 0x220], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x40bd53
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0x34
lea ecx, [ebp - 0x22c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
call fcn.00402a20
cmp dword [ebp - 0x220], edi
jne 0x40bd7e
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40bff1
push 0x18
mov bl, 3
push 0x5ad080
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.00402a20
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.004150e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.00402ac0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bde7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x224]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40be0f
push 0
lea ecx, [ebp - 0x224]
call fcn.00402950
mov esi, dword [ebp - 0x224]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x228]
push ecx
push 1
xor ebx, ebx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebx
je 0x40be86
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40be4e
push ebx
lea ecx, [ebp - 0x224]
call fcn.00402950
mov esi, dword [ebp - 0x224]
lea edx, [ebp - 0x228]
push edx
push 0x101
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov esi, eax
cmp esi, ebx
je 0x40be86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5c9e00
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0x250], esi
call fcn.00543f24
lea ecx, [ebp - 0x240]
push ecx
mov ecx, dword [ebp - 0x228]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x23c]
push eax
push ebx
push str.UninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40bec9
push 0x5c9e00
lea edx, [ebp - 0x254]
push edx
mov dword [ebp - 0x254], eax
call fcn.00543f24
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402770
push 0x38
lea ecx, [ebp - 0x290]
push ebx
push ecx
mov dword [ebp - 0x294], 0x3c
call fcn.00543bb0
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x238]
add esp, 0xc
lea ecx, [ebp - 0x294]
push ecx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x290], 0x40
mov dword [ebp - 0x280], str.__SP____VERYSILENT__norestart
mov dword [ebp - 0x278], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40bf85
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x220]
push edx
push eax
mov dword [ebp - 0x220], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
cmp dword [ebp - 0x220], 0x103
jne 0x40bf8b
mov edx, dword [ebp - 0x25c]
lea ecx, [ebp - 0x220]
push ecx
push edx
call esi
push 0x1f4
call edi
jmp 0x40bf60
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 2
jmp 0x40bfcf
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x40bfe0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x7d0
mov dword [ebp - 0x228], 0
call edi
push 0x1c
mov bl, 6
push 0x5aea94
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.00402a20
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.004150e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
call fcn.00402ac0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c05a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x224]
mov ecx, dword [ebx - 8]
mov eax, 1
sub eax, dword [ebx - 4]
or ecx, eax
jge 0x40c082
push 0
lea ecx, [ebp - 0x224]
call fcn.00402950
mov ebx, dword [ebp - 0x224]
lea ecx, [ebp - 0x228]
push ecx
push 0x20019
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c0b7
push 0x5c9e00
lea edx, [ebp - 0x258]
push edx
mov dword [ebp - 0x258], eax
call fcn.00543f24
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0x228]
lea edx, [ebp - 0x23c]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40c0fd
push 0x5c9e00
lea edx, [ebp - 0x248]
push edx
mov dword [ebp - 0x248], eax
call fcn.00543f24
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402770
push 0x38
lea ecx, [ebp - 0x290]
push 0
push ecx
mov dword [ebp - 0x294], 0x3c
call fcn.00543bb0
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x238]
add esp, 0xc
lea ecx, [ebp - 0x294]
push ecx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x290], 0x40
mov dword [ebp - 0x280], str.__SP____VERYSILENT__norestart
mov dword [ebp - 0x278], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40c1b5
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x220]
push edx
push eax
mov dword [ebp - 0x220], 0
call esi
lea ecx, [ecx]
cmp dword [ebp - 0x220], 0x103
jne 0x40c1b5
mov edx, dword [ebp - 0x25c]
lea ecx, [ebp - 0x220]
push ecx
push edx
call esi
push 0x1f4
call edi
jmp 0x40c190
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 2
jmp 0x40c1f9
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x40c20a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1f4
mov dword [ebp - 0x228], 0
call edi
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.0040b420
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c250
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c276
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c299
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