Function at 0x415580
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 8], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0x30
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00568440
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x60], str.winsta0default
lea edx, [ebp - 0xc]
push edx
push 0x201eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x415600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41574d
lea eax, [ebp - 0x74]
push eax
push 0x5fdf84
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x415623
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41574d
mov dword [ebp - 0x84], 1
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], 2
lea eax, [ebp - 0x6c]
push eax
push 1
push 1
push 0
push 0x2000000
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x41566b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41574d
push 4
lea edx, [ebp + 0xc]
push edx
push 0xc
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x41568f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41574d
push 0
push 0
push 0x10
lea ecx, [ebp - 0x84]
push ecx
push 0
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4156ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41574d
push 1
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4156dc
mov edx, dword [ebp - 4]
or edx, 0x400
mov dword [ebp - 4], edx
jmp 0x4156e3
mov dword [ebp - 0x20], 0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x4156f8
mov dword [ebp - 0x3c], 1
xor ecx, ecx
mov word [ebp - 0x38], cx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x68]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x415731
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41574d
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
jne 0x4155a5
cmp dword [ebp - 0x20], 0
je 0x41575d
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x6c], 0
je 0x41576d
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x41577d
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret