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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x5ef111
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00407340
mov eax, dword [ebp + 0x14]
call fcn.00407340
mov eax, dword [ebp + 0x10]
call fcn.00407340
mov eax, dword [ebp + 0xc]
call fcn.00407340
xor eax, eax
push ebp
push 0x5ef583
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x5ef515
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x2000000
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5ef4b8
lea eax, [ebp - 0x18]
push eax
push 0x201eb
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x5ef47c
lea eax, [ebp - 0x14]
push eax
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
jne 0x5ef1ec
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x90]
call fcn.00429534
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov edx, 0x5ef5a4
call fcn.00408320
mov eax, dword [ebp - 0x8c]
call fcn.005edc8c
push 4
lea eax, [ebp - 4]
push eax
push 0xc
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_SetTokenInformation
test eax, eax
jne 0x5ef232
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x98]
call fcn.00429534
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x5ef5dc
call fcn.00408320
mov eax, dword [ebp - 0x94]
call fcn.005edc8c
mov edx, 0x5ef618
mov eax, dword [ebp - 0x14]
call fcn.005ee958
mov dword [ebp - 0x24], 0x30
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.userenv_CreateEnvironmentBlock
test eax, eax
je 0x5ef262
mov dword [ebp - 0x24], 0x430
jmp 0x5ef298
xor eax, eax
mov dword [ebp - 0x20], eax
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xa0]
call fcn.00429534
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
mov edx, 0x5ef648
call fcn.00408320
mov eax, dword [ebp - 0x9c]
call fcn.005edc8c
cmp dword [ebp + 0xc], 0
jne 0x5ef2a5
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x5ef2b0
mov eax, dword [ebp + 0xc]
call fcn.004080c4
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x14], 0
jne 0x5ef2c3
mov eax, dword [ebp + 0x10]
call fcn.004080c4
mov dword [ebp - 0x2c], eax
jmp 0x5ef2f1
push 0x5ef68c
push dword [ebp + 0x14]
push 0x5ef69c
push dword [ebp + 0x10]
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.004083a8
mov eax, dword [ebp - 0xa4]
call fcn.004080c4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 0x10
call fcn.00405008
lea eax, [ebp - 0x70]
xor ecx, ecx
mov edx, 0x44
call fcn.00405008
mov dword [ebp - 0x70], 0x44
mov eax, dword [ebp - 8]
call fcn.004080c4
mov dword [ebp - 0x68], eax
xor eax, eax
push ebp
push 0x5ef429
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CreateProcessAsUserW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x5ef3af
push 0x5ef6b0
push dword [ebp + 0x14]
push 0x5ef6e8
push dword [ebp + 0x10]
push 0x5ef6f8
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xac]
call fcn.00429534
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov edx, 6
call fcn.004083a8
mov eax, dword [ebp - 0xa8]
call fcn.005edc8c
jmp 0x5ef3f5
push 0x5ef718
push dword [ebp + 0x14]
push 0x5ef6e8
push dword [ebp + 0x10]
push 0x5ef758
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xb4]
call fcn.00429534
push dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
mov edx, 6
call fcn.004083a8
mov eax, dword [ebp - 0xb0]
call fcn.005edc8c
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x5ef408
mov eax, 0x5ef76c
call fcn.005edc8c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ef468
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x5ef4ad
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xc4]
call fcn.00429534
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
mov edx, 0x5ef7e0
call fcn.00408320
mov eax, dword [ebp - 0xc0]
call fcn.005edc8c
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x5ef50b
push 0x5ef820
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xcc]
call fcn.00423880
push dword [ebp - 0xcc]
push 0x5ef854
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xd0]
call fcn.00429534
push dword [ebp - 0xd0]
lea eax, [ebp - 0xc8]
mov edx, 4
call fcn.004083a8
mov eax, dword [ebp - 0xc8]
call fcn.005edc8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ef550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ef58a
lea eax, [ebp - 0xd8]
mov edx, 0x14
call fcn.004072bc
lea eax, [ebp - 8]
call fcn.0040725c
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.004072bc
ret