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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5bc
push ebx
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
push esi
push edi
mov eax, 0x80004005
jne 0x408a11
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x408d76
cmp dword [ebp + 0x14], ebx
je 0x408a39
push eax
lea eax, [ebp - 0x5bc]
push str.CoCreateInstance_failed_with_error_0x_lx__try_a_second_approach.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x5bc]
push eax
push dword [ebp + 0x18]
call dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jne 0x408a6a
xor eax, eax
jmp 0x408a8c
push dword [ebp - 0x10]
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041e1c0
mov eax, esp
push ebx
push edi
push dword [ebp - 0x10]
push eax
call fcn.00408d83
push eax
lea eax, [ebp - 0xb8]
push str.CLSID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 0x1c], ebx
push eax
push 0x20019
lea eax, [ebp - 0xb8]
push ebx
push eax
push 0x80000000
mov dword [ebp + 8], ebx
call edi
cmp eax, ebx
jne 0x408adc
lea ecx, [ebp + 0x1c]
call fcn.00408daa
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp + 0x1c], ecx
je 0x408aee
lea ecx, [ebp + 0x1c]
call fcn.00408daa
mov esi, 0x80040154
jmp 0x408d6b
lea eax, [ebp + 8]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push str.LocalServer32
push ecx
mov dword [ebp + 8], ebx
call edi
cmp eax, ebx
jne 0x408b1c
lea ecx, [ebp - 4]
call fcn.00408daa
mov edx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 4], edx
je 0x408b26
lea ecx, [ebp - 4]
call fcn.00408daa
jmp 0x408adc
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x1bb]
mov byte [ebp - 0x1bc], bl
mov dword [ebp - 0xc], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x434e70
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [ebp - 0x1bc]
push str.__ForceROT
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp - 0x14]
mov dword [ebp + 8], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 8], ebx
jne 0x408baa
xor eax, eax
jmp 0x408bcc
push dword [ebp + 8]
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041e1c0
mov eax, esp
push ebx
push edi
push dword [ebp + 8]
push eax
call fcn.00408d83
push eax
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x78], 0x44
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1bc]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408c2e
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 4]
call fcn.00408daa
lea ecx, [ebp + 0x1c]
call fcn.00408daa
mov esi, 0x80070002
jmp 0x408d6b
cmp dword [ebp + 0x14], ebx
je 0x408c81
cmp dword [ebp + 8], ebx
jne 0x408c3c
xor eax, eax
jmp 0x408c5e
push dword [ebp + 8]
call esi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0041e1c0
mov eax, esp
push ebx
push esi
push dword [ebp + 8]
push eax
call fcn.00408d83
push eax
lea eax, [ebp - 0x5bc]
push str.Forcing_item_moniker__s_into_ROT...
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x5bc]
push eax
push dword [ebp + 0x18]
call dword [ebp + 0x14]
push 0x4e20
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
push 0x64
xor eax, eax
pop esi
mov dword [ebp - 8], eax
mov edi, 0x80004005
mov ecx, esi
dec esi
test ecx, ecx
je 0x408d22
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push eax
push dword [ebp + 8]
push 0x4303f0
call dword [sym.imp.ole32.dll_CreateItemMoniker]
mov edi, eax
cmp edi, ebx
jl 0x408d0e
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], ebx
push eax
push ebx
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
mov edi, eax
mov eax, dword [ebp + 0x18]
cmp edi, ebx
jl 0x408d04
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push dword [ebp + 0x14]
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp + 0x18]
cmp edi, ebx
cmp eax, ebx
je 0x408d0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x408d1b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp edi, ebx
jl 0x408cac
cmp edi, ebx
jl 0x408d36
push dword [ebp + 0x10]
mov ecx, dword [eax]
push dword [ebp + 0xc]
push eax
call dword [ecx]
mov edi, eax
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x408d40
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x408d5c
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x1c], ebx
je 0x408d69
push dword [ebp + 0x1c]
call esi
mov dword [ebp + 0x1c], ebx
mov esi, edi
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
lea esp, [ebp - 0x5c8]
pop edi
pop esi
pop ebx
leave
ret 0x18