Function at 0x424050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [ebp + 8], 0
jne 0x424065
mov eax, 0x80070057
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push str.Kernel32
xor esi, esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x424096
push 0x43c180
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42408f
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x64]
push eax
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
test bl, bl
je 0x424297
push 0
mov ebx, 0x3000
push str.Progman
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4240ee
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
call fcn.00423f00
mov esi, eax
add esp, 8
test esi, esi
jl 0x4242fe
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00423f00
mov esi, eax
add esp, 8
test esi, esi
jl 0x4242fe
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x4242d4
cmp dword [ebp - 8], 0x2000
jne 0x424293
mov edx, dword [ebp - 4]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xc], ebx
je 0x424293
lea eax, [ebp - 0x14]
push eax
push 0x2000a
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x424270
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 1
push 2
push 0
push 0xf01ff
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4241ac
call edi
test eax, eax
jg 0x42419c
call edi
mov esi, eax
jmp 0x4241ac
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x42423e
push str.AdvApi32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x424215
push str.CreateProcessWithTokenW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424215
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x68]
push edx
mov edx, dword [ebp + 8]
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x10]
push edx
push 0
push ecx
call eax
test eax, eax
jne 0x42421a
call edi
test eax, eax
jg 0x424203
call edi
mov esi, eax
jmp 0x42421a
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x42421a
mov esi, 0x8000ffff
test ebx, ebx
je 0x424225
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42428c
call edi
test eax, eax
jg 0x424254
call edi
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42428c
call edi
mov esi, eax
mov eax, dword [ebp - 0x14]
and esi, 0xffff
push eax
or esi, 0x80070000
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42428c
call edi
test eax, eax
jg 0x42427c
call edi
mov esi, eax
jmp 0x42428c
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jl 0x4242fe
cmp dword [ebp - 0x1c], 0
jne 0x4242fe
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4242fe
call edi
test eax, eax
jg 0x4242ee
call edi
pop edi
mov esi, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x2000
jne 0x424293
cmp dword [ebp - 8], ebx
jne 0x424293
mov esi, 0x80070005
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret