Function at 0x409860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x10
mov dword [ebp - 0x14], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
mov dword [ebp - 0x68], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
pop edi
push edi
push str.SeTcbPrivilege
call fcn.00409688
push edi
push str.SeChangeNotifyPrivilege
call fcn.00409688
push edi
push str.SeIncreaseQuotaPrivilege
call fcn.00409688
push edi
push str.SeAssignPrimaryTokenPrivilege
call fcn.00409688
mov eax, dword [ebp + 0x1c]
add esp, 0x20
cmp eax, 0xffffffff
jne 0x4098d7
call fcn.00409652
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x4098e2
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x18], ebx
je 0x409904
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x409904
push dword [ebp - 0xc]
push dword [ebp + 0x18]
call fcn.004096f1
pop ecx
mov dword [ebp - 4], eax
pop ecx
cmp dword [ebp - 4], ebx
jne 0x40995b
lea eax, [ebp - 4]
push eax
push 0xf01ff
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40994d
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
push 0x2000000
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x40994d
lea eax, [ebp - 0xc]
push 4
push eax
push 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x40995b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x409a80
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x60], str.WinSta0Default
je 0x40997b
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov esi, eax
pop ecx
inc esi
inc esi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x409990
cmp esi, ebx
je 0x409987
inc esi
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add esi, eax
inc esi
push esi
call sub.MFC42.DLL_operatornew
push esi
push ebx
push eax
mov dword [ebp + 0x18], eax
call sub.MSVCRT.dll_memset
add esp, 0x10
cmp dword [ebp + 8], ebx
je 0x4099db
cmp edi, ebx
je 0x4099c5
push edi
push dword [ebp + 8]
push str.__s___s
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4099e6
push dword [ebp + 8]
push str.__s_
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4099e6
push edi
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x4099f0
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp + 0x10]
push ebx
push 0x30
push ebx
push ebx
push ebx
push dword [ebp + 0x18]
push ebx
push eax
call esi
test eax, eax
jne 0x409a52
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x57
mov dword [ebp - 8], eax
jne 0x409a72
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], ebx
cmp eax, ebx
jne 0x409a2f
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp + 0x10]
push ebx
push 0x30
push ebx
push ebx
push ebx
push dword [ebp + 0x18]
push ebx
push eax
call esi
test eax, eax
jne 0x409a52
call edi
mov dword [ebp - 8], eax
jmp 0x409a72
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x409a62
lea esi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x409a72
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
cmp dword [ebp + 0x18], ebx
je 0x409a80
push dword [ebp + 0x18]
call sub.MFC42.DLL_operatordelete
pop ecx
cmp dword [ebp - 4], ebx
je 0x409a8e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x409a9c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
pop edi
pop esi
pop ebx
je 0x409aad
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
leave
ret