Function at 0x59aa9c
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 0x59aaa5
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.004077dc
mov eax, dword [ebp + 0x14]
call fcn.004077dc
mov eax, dword [ebp + 0x10]
call fcn.004077dc
mov eax, dword [ebp + 0xc]
call fcn.004077dc
xor eax, eax
push ebp
push 0x59af17
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x59aea9
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 0x59ae4c
lea eax, [ebp - 0x18]
push eax
push 0x201eb
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x59ae10
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 0x59ab80
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x90]
call fcn.0042677c
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov edx, 0x59af38
call fcn.004085a0
mov eax, dword [ebp - 0x8c]
call fcn.00599620
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 0x59abc6
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x98]
call fcn.0042677c
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x59af70
call fcn.004085a0
mov eax, dword [ebp - 0x94]
call fcn.00599620
mov edx, 0x59afac
mov eax, dword [ebp - 0x14]
call fcn.0059a2ec
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 0x59abf6
mov dword [ebp - 0x24], 0x430
jmp 0x59ac2c
xor eax, eax
mov dword [ebp - 0x20], eax
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xa0]
call fcn.0042677c
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
mov edx, 0x59afdc
call fcn.004085a0
mov eax, dword [ebp - 0x9c]
call fcn.00599620
cmp dword [ebp + 0xc], 0
jne 0x59ac39
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x59ac44
mov eax, dword [ebp + 0xc]
call fcn.00408344
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x14], 0
jne 0x59ac57
mov eax, dword [ebp + 0x10]
call fcn.00408344
mov dword [ebp - 0x2c], eax
jmp 0x59ac85
push 0x59b020
push dword [ebp + 0x14]
push 0x59b030
push dword [ebp + 0x10]
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.00408628
mov eax, dword [ebp - 0xa4]
call fcn.00408344
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 0x10
call fcn.00405028
lea eax, [ebp - 0x70]
xor ecx, ecx
mov edx, 0x44
call fcn.00405028
mov dword [ebp - 0x70], 0x44
mov eax, dword [ebp - 8]
call fcn.00408344
mov dword [ebp - 0x68], eax
xor eax, eax
push ebp
push 0x59adbd
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 0x59ad43
push 0x59b044
push dword [ebp + 0x14]
push 0x59b07c
push dword [ebp + 0x10]
push 0x59b08c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xac]
call fcn.0042677c
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov edx, 6
call fcn.00408628
mov eax, dword [ebp - 0xa8]
call fcn.00599620
jmp 0x59ad89
push 0x59b0ac
push dword [ebp + 0x14]
push 0x59b07c
push dword [ebp + 0x10]
push 0x59b0ec
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xb4]
call fcn.0042677c
push dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
mov edx, 6
call fcn.00408628
mov eax, dword [ebp - 0xb0]
call fcn.00599620
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x59ad9c
mov eax, 0x59b100
call fcn.00599620
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 0x59adfc
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 0x59ae41
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xc4]
call fcn.0042677c
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
mov edx, 0x59b174
call fcn.004085a0
mov eax, dword [ebp - 0xc0]
call fcn.00599620
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x59ae9f
push 0x59b1b4
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xcc]
call fcn.00420c0c
push dword [ebp - 0xcc]
push 0x59b1e8
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0xd0]
call fcn.0042677c
push dword [ebp - 0xd0]
lea eax, [ebp - 0xc8]
mov edx, 4
call fcn.00408628
mov eax, dword [ebp - 0xc8]
call fcn.00599620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59aee4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59af1e
lea eax, [ebp - 0xd8]
mov edx, 0x14
call fcn.00407758
lea eax, [ebp - 8]
call fcn.004076f8
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.00407758
ret