Function at 0x449380
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1318
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov byte [ebp - 0x39], bl
mov eax, ecx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4493c4
call fcn.00449d00
mov dword [ebp - 0x14], eax
mov edx, str.explorer.exe
test bl, bl
mov ecx, str.winlogon.exe
cmove ecx, edx
mov edx, eax
call fcn.004491b0
mov ebx, eax
test ebx, ebx
jne 0x449455
cmp byte [ebp - 0x39], bl
lea ecx, [ebp - 0xf8]
mov eax, str.user
mov esi, str.system
cmove esi, eax
sub esp, 8
call fcn.00403750
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x44], str.GetUserToken
mov edx, str.GetProcessPid_for
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xe8]
call fcn.00407bd0
mov edx, esi
lea ecx, [ebp - 0xe8]
call fcn.00407bd0
mov edx, str._failed
lea ecx, [ebp - 0xe8]
call fcn.00407bd0
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.00402230
xor eax, eax
jmp 0x449797
push ebx
push 0
push 0x2000000
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
jne 0x4494eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0xf8]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x44], str.GetUserToken
mov dword [ebp - 4], 1
mov edx, str.OpenProcess_pid
lea ecx, [ebp - 0xe8]
call fcn.00407bd0
push ebx
lea ecx, [ebp - 0xe8]
call fcn.0041fd70
mov edx, str._failed_err_
lea ecx, [ebp - 0xe8]
call fcn.00407bd0
lea ecx, [ebp - 0xe8]
push esi
call fcn.0041fd70
lea ecx, [ebp - 0xf8]
jmp 0x449771
lea eax, [ebp - 0x38]
push eax
push 0x201eb
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x449534
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0xf8]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x44], str.GetUserToken
mov dword [ebp - 4], 2
mov edx, str.OpenProcessToken_pid
jmp 0x4494ad
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x44957e
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0xf8]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x44], str.GetUserToken
mov dword [ebp - 4], 3
mov edx, str.LookupPrivilegeValue_failed_err_
jmp 0x4494c9
cmp byte [ebp - 0x39], 0
jne 0x44960a
mov ecx, dword [ebp - 0x38]
call fcn.00449c20
test al, al
je 0x44960a
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push 0x13
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x449783
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0xf8]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x44], str.GetUserToken
mov edx, 0x4b2000
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xe8]
call fcn.00408070
lea ecx, [ebp - 0xe8]
push esi
call fcn.0041fd70
lea ecx, [ebp - 0xf8]
jmp 0x449771
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x38]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x44968f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0xf8]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x44], str.GetUserToken
mov edx, str.DuplicateTokenEx_failed_err_
mov dword [ebp - 4], 5
lea ecx, [ebp - 0xf8]
call fcn.00406e30
push esi
lea ecx, [eax + 0x10]
call fcn.0041fd70
lea ecx, [ebp - 0xf8]
jmp 0x449771
push 4
lea eax, [ebp - 0x14]
push eax
push 0xc
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4496fc
push dword [ebp - 0x34]
call esi
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0xf8]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x44], str.GetUserToken
mov edx, str.SetTokenInformation_failed_err_
mov dword [ebp - 4], 6
lea ecx, [ebp - 0xf8]
call fcn.00406e30
push esi
lea ecx, [eax + 0x10]
call fcn.0041fd70
lea ecx, [ebp - 0xf8]
jmp 0x449771
push 0
push 0
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x449783
push dword [ebp - 0x34]
call esi
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x1b0]
mov esi, eax
call fcn.00403750
mov dword [ebp - 0x100], 4
mov dword [ebp - 0xfc], str.GetUserToken
mov edx, str.AdjustTokenPrivileges_failed_err_
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x1b0]
call fcn.00406e30
push esi
lea ecx, [eax + 0x10]
call fcn.0041fd70
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 4], 0xffffffff
call fcn.00402230
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x44978d
push eax
call esi
test edi, edi
je 0x449794
push edi
call esi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret