Function at 0x4032c0
Capabilities:
Acquire debug privileges
Create a process with modified i/o handles and window
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28c4
call fcn.00412c70
mov eax, dword [0x41a034]
xor eax, ebp
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x28c4], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 1
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x34]
mov dword [ebp - 0x18], edx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0x415948
mov ecx, dword [ebp - 0x28c4]
call fcn.004036a0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x403391
xor ecx, ecx
mov word [ebp - 0x8c0], cx
push 0x7fe
push 0
lea edx, [ebp - 0x8be]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winlogonPid__0_err__d
lea eax, [ebp - 0x8c0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x8c0]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x403681
mov dword [ebp - 8], 0x30
push 0x44
push 0
lea edx, [ebp - 0x98]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x98], 0x44
mov dword [ebp - 0x90], str.winsta0default
cmp dword [ebp + 0x10], 0
jne 0x4033e0
xor ecx, ecx
mov word [ebp - 0x68], cx
mov dword [ebp - 0x6c], 0x101
mov dword [ebp - 0xa4], 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x403486
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x38]
push edx
push 0xf00ff
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x403473
xor ecx, ecx
mov word [ebp - 0x10c0], cx
push 0x7fe
push 0
lea edx, [ebp - 0x10be]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process_token_open_Error:__u_n
lea eax, [ebp - 0x10c0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x10c0]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x38], 0
jne 0x403484
push str.Process_tokenError:__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40348c
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0xa4]
push eax
push 4
lea ecx, [ebp - 0x4c]
push ecx
push 0x13
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4034b7
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xbc], eax
jmp 0x403560
lea ecx, [ebp - 0xa0]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x403517
xor edx, edx
mov word [ebp - 0x18c0], dx
push 0x7fe
push 0
lea eax, [ebp - 0x18be]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Lookup_Privilege_value_Error:__u_n
lea ecx, [ebp - 0x18c0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x18c0]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0xbc]
push eax
push 1
push 1
push 0
push 0x2000000
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x403560
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DuplicateTokenEx_Error:__u_n
lea edx, [ebp - 0x20c0]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x50], 0
push 1
mov ecx, dword [ebp - 0xbc]
push ecx
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40358b
mov eax, dword [ebp - 8]
or eax, 0x400
mov dword [ebp - 8], eax
jmp 0x40359d
push str.CreateEnvironmentBlock_Failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x98]
push edx
push 0
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x40361b
xor eax, eax
mov word [ebp - 0x28c0], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x28be]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser_Error:__u_n
lea edx, [ebp - 0x28c0]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x28c0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x48], 0
je 0x40362b
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x44], 0
je 0x40363b
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x40364b
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xbc], 0
je 0x403661
mov ecx, dword [ebp - 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], 0
je 0x403671
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 0
je 0x403681
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [ebp - 0xa8]
xor ecx, ebp
call fcn.004122f0
mov esp, ebp
pop ebp
ret 0xc