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

Disassembly:
push 0xffffffffffffffff
push 0x452011
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push ebp
push esi
push edi
mov eax, dword [0x4663d8]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
lea eax, [esp + 0x54]
push eax
call fcn.00402440
xor edi, edi
mov dword [esp + 0x130], edi
mov dword [esp + 0x14], edi
push 0x44
lea ecx, [esp + 0xe0]
push edi
push ecx
mov byte [esp + 0x13c], 1
call fcn.004434e0
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [0x468b50]
mov esi, 8
add esp, 0xc
mov dword [esp + 0xdc], 0x44
cmp dword [eax + 0xaec], esi
jb 0x40cae5
mov eax, dword [eax + 0xad8]
jmp 0x40caea
add eax, 0xad8
push 0x456b2c
push ecx
push eax
lea edx, [esp + 0x68]
push edx
call fcn.00404f70
add esp, 0xc
push eax
call fcn.00404f70
lea eax, [esp + 0x64]
push str.x64Drv64.exe
push eax
call fcn.00404f70
mov ecx, dword [0x468cf4]
add esp, 0x10
push ecx
push ecx
lea edx, [esp + 0x64]
push str.__hwnd
push edx
call fcn.00404f70
add esp, 0xc
push eax
call fcn.0040cd30
mov eax, dword [esp + 0x138]
push 0x457ee4
push ecx
push eax
push ecx
lea ecx, [esp + 0x6c]
push str.__rdev__
push ecx
call fcn.00404f70
add esp, 0xc
push eax
call fcn.00404f70
add esp, 0xc
push eax
call fcn.00404f70
add esp, 8
lea ecx, [esp + 0x38]
lea eax, [esp + 0x54]
call fcn.00402580
mov byte [esp + 0x130], 2
cmp dword [eax + 0x18], esi
jb 0x40cb88
mov eax, dword [eax + 4]
jmp 0x40cb8b
add eax, 4
push eax
push str.Execute_command:__s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 0xc
mov byte [esp + 0x130], 1
cmp dword [esp + 0x50], esi
jb 0x40cbbb
mov edx, dword [esp + 0x3c]
push edx
call fcn.00439935
add esp, 4
lea ecx, [esp + 0x38]
lea eax, [esp + 0x54]
call fcn.00402580
cmp dword [eax + 0x18], esi
jb 0x40cbd2
mov eax, dword [eax + 4]
jmp 0x40cbd5
add eax, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xe0]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [esp + 0x50], esi
jb 0x40cc03
mov eax, dword [esp + 0x3c]
push eax
call fcn.00439935
add esp, 4
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40cc35
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push edi
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov dword [esp + 0x30], eax
jne 0x40ccc8
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
push edi
push edi
push str.Code
push ecx
call esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
push edi
push edi
push str.Reboot
push ecx
call esi
mov eax, dword [esp + 0x13c]
xor edx, edx
cmp dword [esp + 0x2c], 1
sete dl
mov dword [eax], edx
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ccb4
push eax
call ebp
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x1c], edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ccd3
push eax
call ebp
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x130], 0xffffffff
call fcn.004024e0
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.004375db
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x124
ret 8