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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fd3d
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x34], esi
mov edi, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x104], 0x457580
mov dword [ebp - 0xf4], 0x457588
mov dword [ebp - 0xa4], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea ecx, [ebp - 0xec]
push ecx
lea edx, [ebp - 0x104]
mov dword [ebp - 4], esi
mov ebx, 1
push edx
mov dword [ebp - 0x34], ebx
call fcn.00403390
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0xec]
push edx
mov dword [ebp + ecx - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.004035a0
mov dword [ebp - 0xec], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 4], 3
mov dword [ebp - 0x3c], esi
push 0x44
lea eax, [ebp - 0x14c]
push esi
push eax
mov byte [ebp - 4], 4
call fcn.004440d0
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov eax, dword [0x46bd98]
add eax, 0xcd0
mov ebx, 8
add esp, 0xc
mov dword [ebp - 0x14c], 0x44
cmp dword [eax + 0x14], ebx
jb 0x40c14e
mov eax, dword [eax]
push 0x4576d8
push ecx
push eax
push ecx
lea ecx, [ebp - 0xf4]
push 0x458f30
push ecx
call fcn.00404630
add esp, 0xc
push eax
call fcn.00404630
add esp, 0xc
push eax
call fcn.00404630
lea edx, [ebp - 0xf4]
push str.x64Drv64.exe_
push edx
call fcn.00404630
mov eax, dword [0x46bf58]
add esp, 0x10
push eax
push ecx
lea ecx, [ebp - 0xf4]
push str.__hwnd
push ecx
call fcn.00404630
add esp, 0xc
push eax
call fcn.0040c360
push 0x458f30
push ecx
push edi
push ecx
lea edx, [ebp - 0xf4]
push str.__rdev__
push edx
call fcn.00404630
add esp, 0xc
push eax
call fcn.00404630
add esp, 0xc
push eax
call fcn.00404630
add esp, 8
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x104]
call fcn.004027b0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], ebx
jb 0x40c1f5
mov eax, dword [eax]
push eax
push str.Execute_command:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], ebx
jb 0x40c21f
mov eax, dword [ebp - 0x30]
push eax
call fcn.004396db
add esp, 4
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x104]
call fcn.004027b0
cmp dword [eax + 0x14], ebx
jb 0x40c234
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x14c]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x1c], ebx
jb 0x40c25e
mov eax, dword [ebp - 0x30]
push eax
call fcn.004396db
add esp, 4
mov ecx, dword [ebp - 0x4c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 0x48]
push eax
call edi
mov eax, dword [ebp - 0x3c]
cmp eax, esi
je 0x40c28a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x3c]
push ecx
push 0xf003f
push esi
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x54], eax
cmp eax, esi
jne 0x40c31b
mov ecx, dword [ebp - 0x3c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push str.Code
mov ebx, 4
push ecx
mov dword [ebp - 0x34], ebx
call edi
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x50]
push eax
push esi
push esi
push str.Reboot
push ecx
mov dword [ebp - 0x34], ebx
call edi
mov eax, dword [ebp - 0x58]
xor edx, edx
cmp dword [ebp - 0x50], 1
sete dl
mov dword [eax], edx
mov eax, dword [ebp - 0x3c]
cmp eax, esi
je 0x40c308
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x3c], esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp - 0x3c]
cmp eax, esi
je 0x40c329
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 0xffffffff
call fcn.00401bf0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret 4