Function at 0x40c480
Capabilities:
Create process on windows
Delete registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4515b1
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push ebx
push ebp
push esi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
lea eax, [esp + 0x54]
push eax
call fcn.00402450
xor ebp, ebp
mov dword [esp + 0x130], ebp
mov dword [esp + 0x14], ebp
push 0x44
lea ecx, [esp + 0xe0]
push ebp
push ecx
mov byte [esp + 0x13c], 1
call fcn.00443300
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [0x468b8c]
mov esi, 8
add esp, 0xc
mov dword [esp + 0xdc], 0x44
cmp dword [eax + 0xce0], esi
jb 0x40c515
mov eax, dword [eax + 0xccc]
jmp 0x40c51a
add eax, 0xccc
push 0x456b1c
push ecx
push eax
lea edx, [esp + 0x68]
push edx
call fcn.00405010
add esp, 0xc
push eax
call fcn.00405010
lea eax, [esp + 0x64]
push str.x64Drv64.exe
push eax
call fcn.00405010
mov ecx, dword [0x468d34]
add esp, 0x10
push ecx
push ecx
lea edx, [esp + 0x64]
push str.__hwnd
push edx
call fcn.00405010
add esp, 0xc
push eax
call fcn.0040cb10
mov eax, dword [esp + 0x138]
push 0x457fc4
push ecx
push eax
push ecx
lea ecx, [esp + 0x6c]
push str.__rdev__
push ecx
call fcn.00405010
add esp, 0xc
push eax
call fcn.00405010
add esp, 0xc
push eax
call fcn.00405010
add esp, 8
lea ecx, [esp + 0x38]
lea eax, [esp + 0x54]
call fcn.00402590
mov byte [esp + 0x130], 2
cmp dword [eax + 0x18], esi
jb 0x40c5b8
mov eax, dword [eax + 4]
jmp 0x40c5bb
add eax, 4
push eax
push str.Execute_command:__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
mov byte [esp + 0x130], 1
cmp dword [esp + 0x50], esi
jb 0x40c5eb
mov edx, dword [esp + 0x3c]
push edx
call fcn.00439059
add esp, 4
lea ecx, [esp + 0x38]
lea eax, [esp + 0x54]
call fcn.00402590
cmp dword [eax + 0x18], esi
jb 0x40c602
mov eax, dword [eax + 4]
jmp 0x40c605
add eax, 4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xe0]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [esp + 0x50], esi
jb 0x40c633
mov eax, dword [esp + 0x3c]
push eax
call fcn.00439059
add esp, 4
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40c665
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebp
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
mov dword [esp + 0x34], eax
jne 0x40c708
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
push ebp
push ebp
push str.Code
push ecx
mov dword [esp + 0x34], 4
call esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push ebp
push ebp
push str.Reboot
push ecx
mov dword [esp + 0x34], 4
call esi
mov eax, dword [esp + 0x13c]
xor edx, edx
cmp dword [esp + 0x30], 1
sete dl
mov dword [eax], edx
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40c6f4
push eax
call ebx
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x1c], ebp
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40c713
push eax
call ebx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x130], 0xffffffff
call fcn.004024f0
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.00436cf8
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 8