Function at 0x420924
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xffffff58
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x3c], eax
call fcn.00422c28
mov eax, 0x420d9c
call fcn.004207f0
cmp eax, 0xffffffff
jne 0x42098c
or ebx, 0xffffffff
jmp 0x420cb2
push eax
push 0
push 0x400
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
jne 0x4209a7
or ebx, 0xffffffff
jmp 0x420cb2
push esp
push 0x60000
push ebx
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4209bf
or ebx, 0xffffffff
jmp 0x420cb2
lea eax, [esp + 0x40]
mov edx, 0x14
call fcn.00407668
push 0
push 1
push 0xf00ff
push 0x420dac
lea eax, [esp + 0x50]
push eax
call sub.ADVAPI32.DLL_BuildExplicitAccessWithNameA
lea eax, [esp + 0x34]
push eax
push 0
mov eax, dword [esp + 0x40]
push eax
push 4
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_GetKernelObjectSecurity
test eax, eax
jne 0x420a5f
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x420a57
mov eax, dword [esp + 0x34]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esp + 0x38], eax
cmp dword [esp + 0x38], 0
jne 0x420a30
or ebx, 0xffffffff
jmp 0x420cb2
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
push eax
push 4
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_GetKernelObjectSecurity
test eax, eax
jne 0x420a5f
or ebx, 0xffffffff
jmp 0x420cb2
or ebx, 0xffffffff
jmp 0x420cb2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x44]
push eax
call sub.advapi32.dll_GetSecurityDescriptorDacl
test eax, eax
jne 0x420a84
or ebx, 0xffffffff
jmp 0x420cb2
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
lea eax, [esp + 0x48]
push eax
push 1
call sub.ADVAPI32.DLL_SetEntriesInAclA
test eax, eax
je 0x420aac
xor eax, eax
mov dword [esp + 0xc], eax
or ebx, 0xffffffff
jmp 0x420cb2
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push eax
call sub.advapi32.dll_MakeAbsoluteSD
test eax, eax
jne 0x420be7
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x420bdf
mov eax, dword [esp + 0x24]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esp + 0x3c], eax
cmp dword [esp + 8], 0
je 0x420b8f
cmp dword [esp + 0x18], 0
je 0x420b8f
cmp dword [esp + 0x1c], 0
je 0x420b8f
cmp dword [esp + 0x20], 0
je 0x420b8f
cmp dword [esp + 0x3c], 0
jne 0x420b97
or ebx, 0xffffffff
jmp 0x420cb2
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push eax
call sub.advapi32.dll_MakeAbsoluteSD
test eax, eax
jne 0x420be7
or ebx, 0xffffffff
jmp 0x420cb2
or ebx, 0xffffffff
jmp 0x420cb2
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x48]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
test eax, eax
jne 0x420c0c
or ebx, 0xffffffff
jmp 0x420cb2
mov eax, dword [esp + 0x3c]
push eax
push 4
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_SetKernelObjectSecurity
test eax, eax
jne 0x420c29
or ebx, 0xffffffff
jmp 0x420cb2
push esp
push 0xf00ff
push ebx
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x420c3e
or ebx, 0xffffffff
jmp 0x420cb2
lea eax, [esp + 4]
push eax
push 1
push 2
push 0
push 0xf00ff
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
jne 0x420c61
or ebx, 0xffffffff
jmp 0x420cb2
lea eax, [esp + 0x54]
mov edx, 0x44
call fcn.00407668
mov dword [esp + 0x54], 0x44
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_ImpersonateLoggedOnUser
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
mov eax, dword [esp + 0x2c]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
test eax, eax
jne 0x420cb0
or ebx, 0xffffffff
jmp 0x420cb2
xor ebx, ebx
cmp dword [esp + 0x38], 0
jne 0x420ccb
mov eax, dword [esp + 0x38]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0x3c], 0
jne 0x420ce4
mov eax, dword [esp + 0x3c]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0x20], 0
jne 0x420cfd
mov eax, dword [esp + 0x20]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0x1c], 0
jne 0x420d16
mov eax, dword [esp + 0x1c]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0x18], 0
jne 0x420d2f
mov eax, dword [esp + 0x18]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [esp + 8], 0
jne 0x420d48
mov eax, dword [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [0x43f70c]
mov eax, dword [eax]
call eax
mov eax, dword [esp + 0x9c]
push eax
mov eax, dword [0x43f70c]
mov eax, dword [eax]
call eax
mov eax, dword [esp]
push eax
mov eax, dword [0x43f70c]
mov eax, dword [eax]
call eax
mov eax, dword [esp + 4]
push eax
mov eax, dword [0x43f70c]
mov eax, dword [eax]
call eax
test ebx, ebx
je 0x420d8d
xor eax, eax
jmp 0x420d90
or eax, 0xffffffff
add esp, 0xa8
pop esi
pop ebx
ret