Function at 0x1003c322
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call fcn.1003dab9
test al, al
je 0x1003c356
pop esp
pop ecx
pop eax
push edi
pop ebx
pop edx
pop ebp
pop eax
push ebx
push edi
push ebx
push eax
pop ebp
push esi
push eax
push edi
pop ebx
pop esp
pop edi
pop edx
pop eax
xor ebx, ebx
call fcn.1003d510
test al, al
je 0x1003c379
push ebp
pop edx
pop esp
pop esp
pop ecx
push esp
push ecx
push ebx
pop esp
push eax
push eax
push eax
pop ecx
pop ebp
pop esi
push edx
push ebx
push ebx
push edi
pop eax
pop eax
push eax
push eax
push ebp
pop eax
push esp
lea eax, [ebp - 0xc]
mov esi, 0xf01ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1003c4ad
lea eax, [ebp - 0x14]
push eax
push 1
push 1
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1003c4ad
push str.Kernel32.dll
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1003c3fc
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003c3f5
call eax
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1003c4b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.1003d669
test al, al
je 0x1003c423
pop ecx
pop esi
push esp
pop ebx
pop ebx
pop esp
pop ecx
push edi
pop edx
push esp
push esi
pop ebp
push eax
pop ecx
pop ebp
pop eax
pop edi
push esp
pop esi
pop ecx
push esi
push ebp
push esi
push esi
pop edx
push ecx
push ebx
pop esi
pop ecx
push edx
call fcn.1003dab9
test al, al
je 0x1003c43d
push ebx
push ebx
pop ebx
pop ebx
push esp
pop edx
pop eax
push esi
push esi
push eax
pop ebx
push ebx
pop edi
pop ebx
push edx
pop ebp
push edi
call fcn.1003da74
test al, al
je 0x1003c45b
pop edx
push edi
pop eax
pop edx
push edi
pop edx
pop edx
pop ebp
pop ecx
pop eax
pop edx
push edx
pop ebp
push edx
push ecx
pop edx
push ecx
push esi
pop eax
pop esp
push edx
xor ebx, ebx
push str.Wtsapi32.dll
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1003c5e1
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003c50b
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push ecx
push dword [ebp - 0x18]
call eax
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
push dword [ebp - 0x10]
test eax, eax
jne 0x1003c505
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
call fcn.1003d59a
test al, al
je 0x1003c4d5
push edi
pop ecx
push eax
pop eax
pop edx
push esi
push edi
push esi
pop ebp
push eax
pop ebx
pop eax
push ebp
push esp
push esp
pop esp
pop esp
pop esi
pop esi
push ebx
push edi
pop edx
pop esi
pop esi
push edx
pop ecx
push ebp
push edx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003c4e8
cmp eax, 0xffffffff
je 0x1003c4e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1003c4fb
cmp ecx, 0xffffffff
je 0x1003c4fb
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1003d77d
test al, al
je 0x1003c529
pop edx
pop ebx
push edx
push eax
push eax
push edi
push ebp
push ecx
pop esi
push esp
push esp
push edx
push esi
push ecx
pop ebp
push edi
pop ecx
pop esi
pop esi
xor ebx, ebx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.10054b20
push 0x10
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.10054b20
add esp, 0x18
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], str.WinSta0Default
mov dword [ebp - 0x40], 1
push 5
pop eax
mov word [ebp - 0x3c], ax
call fcn.1003dab9
test al, al
je 0x1003c57e
pop esp
pop ecx
pop eax
push edi
pop ebx
pop edx
pop ebp
pop eax
push ebx
push edi
push ebx
push eax
pop ebp
push esi
push eax
push edi
pop ebx
pop esp
pop edi
pop edx
pop eax
xor ebx, ebx
call fcn.1003d510
test al, al
je 0x1003c5a1
push ebp
pop edx
pop esp
pop esp
pop ecx
push esp
push ecx
push ebx
pop esp
push eax
push eax
push eax
pop ecx
pop ebp
pop esi
push edx
push ebx
push ebx
push edi
pop eax
pop eax
push eax
push eax
push ebp
pop eax
push esp
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push dword [ebp - 8]
push 0x430
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1003c4ad
cmp dword [ebp - 8], 0
je 0x1003c5d8
push dword [ebp - 8]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov byte [ebp - 4], 1
jmp 0x1003c4b0
push ebx
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x1003c50b
push dword [ebp - 0xc]
jmp 0x1003c4a7