Function at 0x100042f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x874
mov eax, dword [0x10143328]
xor eax, esp
mov dword [esp + 0x86c], eax
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x10004317
xor eax, eax
jmp 0x10004528
push 0x7fe
lea eax, [esp + 0x7e]
push ebx
push eax
xor edi, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x84], bx
call fcn.10015360
lea edx, [esp + 0x84]
add esp, 0xc
mov eax, esi
sub edx, esi
jmp 0x10004350
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x10004350
mov edx, str.EXPLORER.EXE
call fcn.10004550
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
cmp ebp, ebx
je 0x100044f9
lea ecx, [esp + 0x18]
push ecx
push 0xf01ff
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100044e3
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
mov edi, 1
push edi
push edi
push ebx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x100044d5
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x10004415
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1000440e
call eax
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x20]
push ecx
push 0xc
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1000440e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetTokenInformation_error
jmp 0x100044ef
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.10015360
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
xor eax, eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x44], str.WinSta0Default
mov word [esp + 0x6c], 5
mov dword [esp + 0x68], edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x10004479
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEnvironmentBlock_error
jmp 0x100044ef
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push edx
push 0x430
push ebx
push ebx
push ebx
lea eax, [esp + 0x98]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x100044c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x7c]
push edx
push 0x1013dca8
call fcn.10004c40
add esp, 0xc
jmp 0x100044f7
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100044f9
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x100044f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DuplicateTokenEx_error
jmp 0x100044ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannot_get_administror
call fcn.10004c40
add esp, 8
xor edi, edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1000450f
cmp eax, 0xffffffff
je 0x1000450f
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1000451f
cmp eax, 0xffffffff
je 0x1000451f
push eax
call esi
cmp ebp, ebx
jne 0x10004526
push ebx
call esi
mov eax, edi
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000efa1
add esp, 0x874
ret