Function at 0x481f8c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff58
mov edi, edx
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.00481f04
mov eax, edi
call fcn.00481dbc
cmp eax, 0xffffffff
je 0x4822e5
push eax
push 0
push 0x400
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x4822e5
push esp
push 0x60000
push ebx
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4822e5
lea eax, [esp + 0x40]
mov edx, 0x14
call fcn.00407be8
push 0
push 1
push 0xf00ff
push 0x4823c0
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 0x4820af
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x4822e5
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
je 0x4822e5
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
je 0x4822e5
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
je 0x4822e5
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 0x4820f5
xor eax, eax
mov dword [esp + 0xc], eax
jmp 0x4822e5
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 0x482230
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x4822e5
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 0x4822e5
cmp dword [esp + 0x18], 0
je 0x4822e5
cmp dword [esp + 0x1c], 0
je 0x4822e5
cmp dword [esp + 0x20], 0
je 0x4822e5
cmp dword [esp + 0x3c], 0
je 0x4822e5
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
je 0x4822e5
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
je 0x4822e5
mov eax, dword [esp + 0x3c]
push eax
push 4
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_SetKernelObjectSecurity
test eax, eax
je 0x4822e5
push esp
push 0xf00ff
push ebx
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4822e5
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
je 0x4822e5
lea eax, [esp + 0x54]
mov edx, 0x44
call fcn.00407be8
mov dword [esp + 0x54], 0x44
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_ImpersonateLoggedOnUser
mov eax, 0x4823cc
mov dword [esp + 0x5c], eax
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
cmp dword [esp + 0x38], 0
jne 0x4822fe
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 0x482317
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 0x482330
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 0x482349
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 0x482362
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 0x48237b
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
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp + 0x9c]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp + 0xa0]
add esp, 0xa8
pop edi
pop esi
pop ebx
ret