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

Disassembly:
sub esp, 0x80
mov eax, dword [0x100533e8]
push ebx
push ebp
mov ebp, dword [esp + 0x98]
push esi
xor ebx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x88], eax
push edi
mov dword [esp + 0x28], ecx
jne 0x10004004
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x10004004
mov edi, dword [esp + 0x14]
xor eax, eax
cmp edi, ebx
jbe 0x10003ffa
mov ecx, dword [esp + 0x10]
add ecx, 8
mov edx, dword [ecx]
cmp edx, ebx
je 0x10003ff0
cmp edx, 1
jne 0x10003fe6
mov ebp, dword [ecx - 8]
inc eax
add ecx, 0xc
cmp eax, edi
jb 0x10003fd8
jmp 0x10003ffa
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + edx*4]
mov ecx, dword [esp + 0x10]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
mov dword [esp + 0x30], 0x44
mov ecx, 0x10
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
cmp ebp, 0xffffffff
sete al
lea edx, [esp + 0x18]
push edx
mov esi, 1
mov dword [esp + 0x3c], str.WinSta0Default
mov word [esp + 0x64], si
mov dword [esp + 0x60], esi
dec eax
and eax, ebp
push eax
mov dword [esp + 0x20], ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x100041e8
mov edi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jbe 0x10004126
cmp dword [esp + 0x9c], ebx
je 0x10004126
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push 0x13
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1000409b
mov edi, eax
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x3000
push esi
lea edx, [esp + 0x9c]
push edx
mov byte [esp + 0xa0], 0
mov byte [esp + 0xa1], 0
mov byte [esp + 0xa2], 0
mov byte [esp + 0xa3], 0
mov byte [esp + 0xa4], 0
mov byte [esp + 0xa5], 0x10
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10004126
mov eax, dword [esp + 0x10]
push 8
lea ecx, [esp + 0x24]
push ecx
push 0x19
push edi
mov dword [esp + 0x34], 0x20
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
push edi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x100041d9
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x98]
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x34]
push edx
add esi, 0x220
push esi
push eax
push 0xc30
push ebx
push ebx
push ebx
push ebp
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push edi
call ebx
test eax, eax
jne 0x100041ac
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x98]
lea edx, [esp + 0x34]
push edx
push esi
push eax
push 0xc30
push 0
push 0
push 0
push ebp
push ecx
push edi
call ebx
mov ebx, eax
test ebx, ebx
jne 0x100041ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100041b1
mov ebx, 1
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test ebx, ebx
je 0x100041d9
mov eax, dword [esp + 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x7c]
push ecx
call esi
jmp 0x100041df
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, ebx
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.10036133
add esp, 0x80
ret 0x10