Function at 0x407030
Capabilities:
Acquire debug privileges
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x471078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x9c], edx
push edi
push 0x48
lea eax, [ebp - 0x68]
mov dword [ebp - 0x94], ecx
push esi
push eax
xor bl, bl
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], esi
call fcn.00438180
add esp, 0xc
mov dword [ebp - 0x68], 0x48
xorps xmm0, xmm0
movups xmmword [ebp - 0x90], xmm0
push 0x46620c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4072a0
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x4072a0
lea eax, [ebp - 0x6c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4072a0
mov edi, dword [ebp - 0x6c]
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4072a0
mov eax, dword [ebp - 0xc]
push esi
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4072a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x4072a0
mov edi, dword [ebp - 0x6c]
lea eax, [ebp - 0xc]
push eax
push str.SeImpersonatePrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4072a0
mov eax, dword [ebp - 0xc]
push esi
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4072a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x4072a0
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
jne 0x4071a8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
test eax, eax
je 0x4072a0
lea ecx, [ebp - 0x80]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4072a0
push dword [ebp - 0x80]
push 0
push 0x480
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4072a0
lea eax, [ebp - 0x7c]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4072a0
lea eax, [ebp - 0x78]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4072a0
push 0
lea eax, [ebp - 0x74]
push eax
push 0
push 0x20000
push 2
call dword [sym.imp.ADVAPI32.dll_SaferCreateLevel]
test eax, eax
je 0x4072a0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_SaferComputeTokenFromLevel]
test eax, eax
je 0x4072a0
mov edi, dword [ebp - 0x98]
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
push 0
push 0
push 4
push dword [ebp - 0x94]
push 0
push 1
push dword [ebp - 0x70]
call dword [0x4572d8]
call edi
test eax, eax
je 0x4072a0
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [ebp - 0x9c]
mov bl, 1
test edi, edi
je 0x4072a0
push 0xffffffffffffffff
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x4072b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x4072c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4072d0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4072de
push eax
call dword [sym.imp.ADVAPI32.dll_SaferCloseLevel]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x4072ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4072fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x407305
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x407313
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e04a
mov esp, ebp
pop ebp
ret