Function at 0x110efba0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x12c], edi
cmp ecx, edi
je 0x110efbfd
mov dword [ebp - 0x11c], ecx
jmp 0x110efc09
lea edx, [ebp - 0x178]
mov dword [ebp - 0x11c], edx
cmp eax, edi
je 0x110efc17
mov esi, eax
mov dword [ebp - 0x124], esi
jmp 0x110efc25
lea eax, [ebp - 0x1bc]
mov dword [ebp - 0x124], eax
mov esi, eax
push 0x114
lea ecx, [ebp - 0x118]
push edi
push ecx
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x130], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x110efd4d
lea eax, [ebp - 0x12c]
push eax
push ebx
call fcn.110ef6e0
add esp, 8
test eax, eax
je 0x110efce2
push 0x60000
push edi
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov ebx, eax
mov dword [ebp - 0x138], ebx
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov esi, eax
push ebx
mov dword [ebp - 0x130], esi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x110efce2
push 0x60081
push edi
push edi
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov edi, eax
mov dword [ebp - 0x140], edi
test edi, edi
jne 0x110efcf5
push esi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push ebx
call dword [sym.imp.USER32.dll_CloseWindowStation]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 1
push 1
push edi
call esi
mov dword [ebp - 0x128], eax
test eax, eax
je 0x110efedc
push 1
push 1
push ebx
call esi
mov dword [ebp - 0x128], eax
test eax, eax
je 0x110efedc
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x12c]
push ecx
push 1
push edx
push edi
push ebx
call fcn.110ef950
mov ebx, dword [ebp - 0x134]
mov esi, dword [ebp - 0x124]
add esp, 0x14
xor edi, edi
push 0x44
lea eax, [ebp - 0x1bc]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], 0x44
cmp dword [esi + 8], edi
jne 0x110efd71
mov dword [esi + 8], str.Winsta0Default
push str.userenv
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x110efdd2
push str.CreateEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x110efdd2
push 0
push ebx
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
je 0x110efdc8
mov edx, dword [ebp - 0x120]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x110efdc8
or dword [ebp + 0x20], 0x400
mov dword [ebp - 0x13c], 1
jmp 0x110efdd2
mov dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x120]
push eax
mov eax, dword [ebp + 0x20]
push esi
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp - 0x144]
push eax
push ecx
push 0
push 0
push edx
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x13c], 0
mov esi, eax
mov dword [ebp - 0x128], esi
je 0x110efe2e
push str.DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x110efe2e
mov ecx, dword [ebp - 0x120]
push ecx
call eax
test edi, edi
je 0x110efe39
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x110efedc
cmp dword [ebp + 0x14], 0
je 0x110efebc
mov edx, dword [ebp - 0x11c]
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0x4ff
push 0xffffffffffffffff
push 0
push edx
push 1
call ebx
test eax, eax
je 0x110efebc
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x168]
push eax
call esi
test eax, eax
je 0x110efea4
lea ecx, [ebp - 0x168]
push ecx
call edi
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x168]
push edx
call esi
test eax, eax
jne 0x110efe86
mov eax, dword [ebp - 0x11c]
push 0x4ff
push 0xffffffffffffffff
push 0
push eax
push 1
call ebx
test eax, eax
jne 0x110efe71
cmp dword [ebp - 0x14c], 0
jne 0x110efedc
mov edi, dword [ebp - 0x11c]
mov ecx, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [edi]
push edx
call esi
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x110efef6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x140]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x110eff21
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
test eax, eax
jne 0x110eff21
call esi
push eax
push str.Error_closing_desktop__e_d_n
call fcn.111bd7b0
add esp, 8
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x110eff32
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x110eff57
push eax
call dword [sym.imp.USER32.dll_CloseWindowStation]
test eax, eax
jne 0x110eff57
call esi
push eax
push str.Error_closing_winsta__e_d_n
call fcn.111bd7b0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.111d9022
mov esp, ebp
pop ebp
ret