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

Disassembly:
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.SeDebugPrivilege
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], 1
call fcn.004010b0
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 4
test eax, eax
jne 0x40126e
push str.EnableDebugPriv___failed__n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov dword [esp + 0x10], ebx
jmp 0x4016fb
push str.WINLOGON.EXE
call fcn.00401150
add esp, 4
cmp eax, ebx
jne 0x401296
push str.GetProcessId___failed__n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov dword [esp + 0x10], ebx
jmp 0x4016fb
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [esp + 0x4c], eax
jne 0x4012c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov dword [esp + 0x10], ebx
jmp 0x4016fb
lea ecx, [esp + 0x18]
push ecx
push 0x60000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4012fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov dword [esp + 0x10], ebx
jmp 0x4016fb
push ebx
push 1
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x70]
push 0xf01ff
lea edx, [esp + 0x74]
push str.Everyone
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4013d3
call edi
cmp eax, 0x7a
jne 0x4013b9
mov edx, dword [esp + 0x1c]
push edx
push 8
call ebp
push eax
call esi
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x40137f
push str.HeapAlloc_failed:_pSd__n
call dword [sym.imp.MSVCRT.dll_printf]
mov esi, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x10], ebx
jmp 0x4016a2
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x24]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
test eax, eax
jne 0x4013d3
call edi
push eax
push str.GetKernelObjectSecurity_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
mov esi, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x10], ebx
jmp 0x4016a2
call edi
push eax
push str.GetKernelObjectSecurity_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov dword [esp + 0x10], ebx
jmp 0x4016fb
lea ecx, [esp + 0x50]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x58]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x4013fb
call edi
push eax
push str.GetSecurityDescriptorDacl_____d_n
jmp 0x4013a3
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
je 0x401438
call edi
push eax
push str.SetEntriesInAcl_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
mov esi, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], ebx
jmp 0x4016a2
lea edx, [esp + 0x3c]
lea eax, [esp + 0x48]
push edx
push ebx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ebx
push ecx
lea edx, [esp + 0x58]
push ebx
push edx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x38]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x401559
call edi
cmp eax, 0x7a
jne 0x40154c
mov eax, dword [esp + 0x44]
push eax
push 8
call ebp
push eax
call esi
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
push ecx
push 8
call ebp
push eax
call esi
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
push edx
push 8
call ebp
push eax
call esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
push eax
push 8
call ebp
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
push ecx
push 8
call ebp
push eax
call esi
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401535
cmp dword [esp + 0x2c], ebx
je 0x401535
cmp dword [esp + 0x28], ebx
je 0x401535
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x401535
cmp esi, ebx
je 0x401535
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x58]
push edx
push ecx
lea edx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x44]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x40155d
call edi
push eax
push str.MakeAbsoluteSD_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov dword [esp + 0x10], ebx
jmp 0x4016a2
push str.HeapAlloc_SID_or_ACL_failed__n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov dword [esp + 0x10], ebx
jmp 0x4016a2
call edi
push eax
push str.MakeAbsoluteSD_____d_n
jmp 0x4013a3
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x401591
call edi
push eax
push str.SetSecurityDescriptorDacl_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov dword [esp + 0x10], ebx
jmp 0x4016a2
mov ecx, dword [esp + 0x18]
push esi
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
jne 0x4015bd
call edi
push eax
push str.SetKernelObjectSecurity_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov dword [esp + 0x10], ebx
jmp 0x4016a2
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x18]
push edx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4015f0
call edi
push eax
push str.OpenProcessToken_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov dword [esp + 0x10], ebx
jmp 0x4016a2
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
push 1
push 2
push ebx
push 0xf01ff
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x401625
call edi
push eax
push str.DuplicateTokenEx_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov dword [esp + 0x10], ebx
jmp 0x4016a2
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x88], 0x44
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x88]
mov eax, dword [esp + 0xd0]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.init__sdri
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x401695
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser_____d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov dword [esp + 0x10], ebx
jmp 0x4016a2
mov edx, dword [esp + 0x58]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4016b5
push eax
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, ebx
je 0x4016c8
push esi
push ebx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
jmp 0x4016ce
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4016dd
push eax
push ebx
call ebp
push eax
call esi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4016ec
push eax
push ebx
call ebp
push eax
call esi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4016fb
push eax
push ebx
call ebp
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40170e
push eax
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x5c]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x34]
push eax
call esi
mov ecx, dword [esp + 0x4c]
push ecx
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret