Function at 0x414f00
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464b90
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x483068]
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 dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 0x10]
or esi, 0xffffffff
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
push 0x20
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x414f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.OpenProcessToken_failed:
jmp 0x4150ad
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 1
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
test ebx, ebx
je 0x414fdf
mov edx, str.AdjustTokenPrivileges_failed:
mov ecx, 0x4858e0
call fcn.00407760
push ebx
mov ecx, eax
call fcn.00405610
xor bl, bl
jmp 0x4150eb
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
jne 0x414fff
mov edx, str.No_desktop_shell_is_present
mov ecx, 0x4858e0
call fcn.00407760
xor bl, bl
jmp 0x4150eb
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x415027
mov edx, str.Unable_to_get_PID_of_desktop_shell.
mov ecx, 0x4858e0
call fcn.00407760
xor bl, bl
jmp 0x4150eb
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x415047
call edi
mov edx, str.Cant_open_desktop_shell_process:
jmp 0x4150ad
lea eax, [ebp - 0x1c]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x415061
call edi
mov edx, str.Cant_get_process_token_of_desktop_shell:
jmp 0x4150ad
lea eax, [ebp - 0x14]
push eax
push 1
push 2
push 0
push 0x18b
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x415086
call edi
mov edx, str.Cant_get_primary_token:
jmp 0x4150ad
push dword [ebp - 0x38]
push 0
push 0
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x4150c5
call edi
mov edx, str.CreateProcessWithTokenW_failed:
mov ecx, 0x4858e0
mov edi, eax
call fcn.00407760
push edi
mov ecx, eax
call fcn.00405610
xor bl, bl
jmp 0x4150eb
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4150e9
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov bl, 1
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x415100
test eax, eax
je 0x415100
push eax
call edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0xffffffff
cmp eax, 0xffffffff
je 0x415116
test eax, eax
je 0x415116
push eax
call edi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0xffffffff
cmp eax, 0xffffffff
je 0x41512c
test eax, eax
je 0x41512c
push eax
call edi
mov dword [ebp - 0x1c], 0xffffffff
cmp esi, 0xffffffff
je 0x41513f
test esi, esi
je 0x41513f
push esi
call edi
mov al, bl
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.004290a8
mov esp, ebp
pop ebp
ret