Function at 0x1003083
Capabilities:
Check os version
Create thread
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x598
mov eax, dword [0x1017484]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
xor esi, esi
push eax
push esi
mov dword [ebp - 0x524], esi
mov dword [ebp - 0x520], esi
call fcn.01007ce4
push 0x10015d8
push 0x10015bc
mov dword [ebp - 0x51c], eax
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x10030da
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x1003371
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
lea eax, [ebp - 0x518]
push eax
mov dword [ebp - 0x518], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100311c
cmp dword [ebp - 0x508], 2
jne 0x100311c
cmp dword [ebp - 0x514], 4
jbe 0x100311c
push 0x1001594
jmp 0x1003121
push 0x1001578
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x524], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x524], esi
je 0x10031ec
cmp eax, 0xb7
je 0x10031f5
push 0x100155c
mov dword [ebp - 0x528], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, esi
je 0x1003194
push 0x100154c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x1003194
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x1003194
cmp dword [ebp - 0x528], esi
jne 0x1003371
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x57c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x57c]
push eax
mov dword [ebp - 0x57c], 0x30
mov dword [ebp - 0x568], ebx
mov dword [ebp - 0x554], 0x10015bc
mov dword [ebp - 0x574], 0x1002ff9
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x1003286
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x520], eax
jmp 0x1003371
cmp eax, 5
jne 0x100314d
push 0xc8
push 0x40
mov dword [ebp - 0x530], esi
mov dword [ebp - 0x528], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push eax
push 0xc7
push ebx
mov dword [ebp - 0x528], eax
call edi
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0xc6
push ebx
call edi
lea eax, [ebp - 0x528]
push eax
push esi
lea eax, [ebp - 0x530]
push eax
push esi
push esi
lea eax, [ebp - 0x404]
push eax
push 0x2500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
push esi
push dword [ebp - 0x530]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x530]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
push dword [ebp - 0x528]
call edi
jmp 0x1003371
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x57c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x57c]
push eax
mov dword [ebp - 0x57c], 0x30
mov dword [ebp - 0x568], ebx
mov dword [ebp - 0x554], 0x100153c
mov dword [ebp - 0x574], 0x1003055
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x10031db
push esi
push ebx
push esi
push esi
push 0x12c
push 0x190
mov eax, 0x80000000
push eax
push eax
push 0xcf0000
push 0x10015d8
push 0x10015bc
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, esi
je 0x10031db
push 0x10176ac
mov dword [ebp - 0x53c], eax
mov eax, dword [ebp - 0x51c]
push esi
mov dword [ebp - 0x534], eax
lea eax, [ebp - 0x53c]
push eax
push 0x1002ec5
push esi
push esi
mov dword [ebp - 0x538], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x10176a8], eax
je 0x10031db
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1003361
lea eax, [ebp - 0x598]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x598]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x598]
push esi
push eax
call edi
test eax, eax
jne 0x1003347
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x524], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1003393
push dword [ebp - 0x524]
call ebx
cmp dword [ebp - 0x51c], esi
je 0x10033a7
push dword [ebp - 0x51c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x10176a4], esi
je 0x100343c
lea eax, [ebp - 0x51c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100344c
lea eax, [ebp - 0x52c]
push eax
push 0x1001514
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1003432
mov eax, dword [ebp - 0x52c]
push 2
pop edi
push esi
mov dword [ebp - 0x548], eax
mov eax, dword [ebp - 0x528]
push esi
push esi
mov dword [ebp - 0x544], eax
lea eax, [ebp - 0x54c]
push eax
push esi
push dword [ebp - 0x51c]
mov dword [ebp - 0x54c], 1
mov dword [ebp - 0x540], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1003432
push esi
push edi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push dword [ebp - 0x51c]
call ebx
jmp 0x100344c
cmp dword [0x10176a0], esi
je 0x100344c
push esi
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x520]
pop edi
pop esi
pop ebx
call fcn.01012bde
leave
ret 0x10