Function at 0x10023e90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10095260
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov edi, ecx
xor esi, esi
push 0x40
lea eax, [esp + 0x34]
push esi
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], esi
call fcn.1007dcf0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.10023cc0
test eax, eax
je 0x10023f01
call fcn.10023b60
mov esi, eax
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x34], str.WinSta0Default
test esi, esi
je 0x10023fcc
push 0
push esi
lea ecx, [esp + 0x18]
push ecx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x100240cd
cmp dword [esp + 0x10], 0
je 0x100240cd
mov edx, dword [0x100d9234]
mov eax, dword [str.v_ds_dr_dd_d]
push ebx
push 0
push 0x1c2
push edx
push eax
xor ecx, ecx
call fcn.1002d3f0
mov eax, dword [ebp + 0xc]
add esp, 0x14
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
push 0x400
push 1
push 0
push 0
push edi
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x10023fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x100d9234]
push ebx
mov edi, eax
mov eax, dword [str.v_ds_dr_dd_d]
push edi
push 0x1c3
push edx
push eax
xor ecx, ecx
call fcn.1002d3f0
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ecx
call sub.USERENV.dll_DestroyEnvironmentBlock
jmp 0x100240d1
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push ecx
call sub.USERENV.dll_DestroyEnvironmentBlock
jmp 0x100240d1
mov edx, dword [0x100d9234]
mov eax, dword [str.v_ds_dr_dd_d]
push ebx
push 0
push 0x1c4
push edx
push eax
xor ecx, ecx
call fcn.1002d3f0
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.10013050
mov esi, eax
mov dword [esp + 0x80], 0
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
call fcn.10013050
mov byte [esp + 0x80], 1
mov esi, dword [esi]
mov eax, dword [eax]
push 0
push esi
push eax
push str.open
push 0
xor edi, edi
call fcn.1000dc10
add esp, 0x14
mov esi, eax
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x14]
call fcn.10013100
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.10013100
mov eax, dword [0x100d9234]
mov ecx, dword [str.v_ds_dr_dd_d]
push ebx
push esi
push 0x1c5
push eax
push ecx
xor ecx, ecx
call fcn.1002d3f0
add esp, 0x14
test esi, esi
je 0x10024092
xor esi, esi
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x100d9234]
push ebx
mov esi, eax
mov eax, dword [str.v_ds_dr_dd_d]
push esi
push 0x1c6
push edx
push eax
xor ecx, ecx
call fcn.1002d3f0
add esp, 0x14
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100240e5
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100240f0
push eax
call esi
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret