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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0xc12]
push ebx
sub esp, 0xcec
mov ebx, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 8], eax
mov eax, dword [0x4117cc]
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x8059
mov dword [esp], eax
call ebx
lea eax, [ebp - 0xa14]
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [0x4117cc]
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x805f
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x816]
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [0x4117cc]
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x805e
mov dword [esp], eax
call ebx
mov eax, dword [0x411850]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1004
mov dword [esp], eax
call esi
mov dword [ebp - 0xcbc], eax
sub esp, 0x10
test eax, eax
je 0x40c5a1
lea ebx, [ebp - 0xc94]
xor edi, edi
jmp 0x40c2d9
inc edi
cmp dword [ebp - 0xcbc], edi
je 0x40c327
mov eax, dword [0x411850]
mov dword [ebp - 0xc90], edi
mov dword [ebp - 0xc94], 8
mov dword [ebp - 0xc84], 2
mov dword [ebp - 0xc8c], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x104b
mov dword [esp], eax
call esi
sub esp, 0x10
test byte [ebp - 0xc88], 2
je 0x40c2d0
mov eax, dword [0x411850]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1032
mov dword [esp], eax
call esi
sub esp, 0x10
mov ebx, eax
mov dword [esp], edi
call sym._PerfDataGetProcessId
mov esi, eax
cmp ebx, 1
jne 0x40c551
test eax, eax
je 0x40c551
lea eax, [ebp - 0xc12]
mov dword [esp + 0xc], 0x34
mov ebx, dword [sym.imp.user32.dll_MessageBoxW]
mov dword [esp + 8], eax
lea eax, [ebp - 0x816]
mov dword [esp + 4], eax
mov eax, dword [0x4117d0]
mov dword [esp], eax
call ebx
sub esp, 0x10
cmp eax, 6
jne 0x40c560
lea eax, [ebp - 0xcac]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionAeDebug
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x40c560
lea eax, [ebp - 0xca8]
lea edi, [ebp - 0x218]
mov dword [ebp - 0xca8], 0x104
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xcac]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4163f4
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0xcc0], eax
sub esp, 0x18
test eax, eax
jne 0x40c5a8
mov eax, dword [ebp - 0xcac]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [ebp - 0xcbc], eax
sub esp, 0x10
test eax, eax
je 0x40c560
mov eax, dword [ebp - 0xcbc]
mov dword [esp + 8], esi
lea esi, [ebp - 0x418]
mov dword [esp + 4], edi
lea edi, [ebp - 0xc54]
mov dword [esp + 0xc], eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0xcc0]
mov ecx, 0x10
lea edx, [ebp - 0xc58]
mov dword [ebp - 0xca4], 0
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xca4]
mov dword [ebp - 0xca0], 0
mov dword [ebp - 0xc9c], 0
mov dword [ebp - 0xc98], 0
mov dword [ebp - 0xc58], 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x40c5f8
mov eax, dword [ebp - 0xcbc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ebp - 0x618]
mov dword [esp + 4], 0x100
mov dword [esp], esi
call sym._GetLastErrorText
lea eax, [ebp - 0xa14]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [0x4117d0]
mov dword [esp + 0xc], 0x10
mov dword [esp], eax
call ebx
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
jmp 0x40c327
lea esi, [ebp - 0x618]
mov dword [esp + 4], 0x100
mov dword [esp], esi
call sym._GetLastErrorText
lea eax, [ebp - 0xa14]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [0x4117d0]
mov dword [esp + 0xc], 0x10
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0xcac]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40c551
lea esi, [ebp - 0x618]
mov dword [esp + 4], 0x100
mov dword [esp], esi
call sym._GetLastErrorText
lea eax, [ebp - 0xa14]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [0x4117d0]
mov dword [esp + 0xc], 0x10
mov dword [esp], eax
call ebx
sub esp, 0x10
jmp 0x40c53f