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

Disassembly:
push 0xffffffffffffffff
push 0x457411
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push ebx
push ebp
push esi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
lea eax, [esp + 0x54]
push eax
call fcn.004024c0
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.00448fa0
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 [0x470c20]
mov esi, 8
add esp, 0xc
mov dword [esp + 0xdc], 0x44
cmp dword [eax + 0xce0], esi
jb 0x40ce75
mov eax, dword [eax + 0xccc]
jmp 0x40ce7a
add eax, 0xccc
push 0x45cbdc
push ecx
push eax
lea edx, [esp + 0x68]
push edx
call fcn.00405020
add esp, 0xc
push eax
call fcn.00405020
lea eax, [esp + 0x64]
push str.x64Drv64.exe
push eax
call fcn.00405020
mov ecx, dword [0x470dc4]
add esp, 0x10
push ecx
push ecx
lea edx, [esp + 0x64]
push str.__hwnd
push edx
call fcn.00405020
add esp, 0xc
push eax
call fcn.0040d470
mov eax, dword [esp + 0x138]
push 0x45e064
push ecx
push eax
push ecx
lea ecx, [esp + 0x6c]
push str.__rdev__
push ecx
call fcn.00405020
add esp, 0xc
push eax
call fcn.00405020
add esp, 0xc
push eax
call fcn.00405020
add esp, 8
lea ecx, [esp + 0x38]
lea eax, [esp + 0x54]
call fcn.00402600
mov byte [esp + 0x130], 2
cmp dword [eax + 0x18], esi
jb 0x40cf18
mov eax, dword [eax + 4]
jmp 0x40cf1b
add eax, 4
push eax
push str.Execute_command:__s
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
mov byte [esp + 0x130], 1
cmp dword [esp + 0x50], esi
jb 0x40cf4b
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043e965
add esp, 4
lea ecx, [esp + 0x38]
lea eax, [esp + 0x54]
call fcn.00402600
cmp dword [eax + 0x18], esi
jb 0x40cf62
mov eax, dword [eax + 4]
jmp 0x40cf65
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 0x40cf93
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043e965
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 0x40cfc5
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebp
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
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 0x40d068
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 0x40d054
push eax
call ebx
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], ebp
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40d073
push eax
call ebx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x130], 0xffffffff
call fcn.00402560
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.0043c576
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