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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0xc06]
push ebx
sub esp, 0xcc4
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 - 0xa08]
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 - 0x80a]
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 - 0xca4], eax
sub esp, 0x10
test eax, eax
je 0x40c491
lea ebx, [ebp - 0xc88]
xor edi, edi
jmp 0x40c1c9
inc edi
cmp dword [ebp - 0xca4], edi
je 0x40c217
mov eax, dword [0x411850]
mov dword [ebp - 0xc84], edi
mov dword [ebp - 0xc88], 8
mov dword [ebp - 0xc78], 2
mov dword [ebp - 0xc80], 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 - 0xc7c], 2
je 0x40c1c0
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 0x40c441
test eax, eax
je 0x40c441
lea eax, [ebp - 0xc06]
mov dword [esp + 0xc], 0x34
mov ebx, dword [sym.imp.user32.dll_MessageBoxW]
mov dword [esp + 8], eax
lea eax, [ebp - 0x80a]
mov dword [esp + 4], eax
mov eax, dword [0x4117d0]
mov dword [esp], eax
call ebx
sub esp, 0x10
cmp eax, 6
jne 0x40c450
lea eax, [ebp - 0xca0]
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 0x40c450
lea eax, [ebp - 0xc9c]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0xc9c], 0x104
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xca0]
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 - 0xca8], eax
sub esp, 0x18
test eax, eax
jne 0x40c498
mov eax, dword [ebp - 0xca0]
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 - 0xca4], eax
sub esp, 0x10
test eax, eax
je 0x40c450
mov eax, dword [ebp - 0xca4]
mov dword [esp + 8], esi
lea esi, [ebp - 0x40c]
mov dword [esp + 4], edi
lea edi, [ebp - 0xc48]
mov dword [esp + 0xc], eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0xca8]
mov ecx, 0x10
lea edx, [ebp - 0xc4c]
mov dword [ebp - 0xc98], 0
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc98]
mov dword [ebp - 0xc94], 0
mov dword [ebp - 0xc90], 0
mov dword [ebp - 0xc8c], 0
mov dword [ebp - 0xc4c], 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 0x40c4e8
mov eax, dword [ebp - 0xca4]
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 - 0x60c]
mov dword [esp + 4], 0x100
mov dword [esp], esi
call sym._GetLastErrorText
lea eax, [ebp - 0xa08]
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 0x40c217
lea esi, [ebp - 0x60c]
mov dword [esp + 4], 0x100
mov dword [esp], esi
call sym._GetLastErrorText
lea eax, [ebp - 0xa08]
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 - 0xca0]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40c441
lea esi, [ebp - 0x60c]
mov dword [esp + 4], 0x100
mov dword [esp], esi
call sym._GetLastErrorText
lea eax, [ebp - 0xa08]
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 0x40c42f