Function at 0x405d20
Capabilities:
Access peb ldr_data
Get kernel32 base address
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
push str.advapi32.dll
mov dword [ebp - 0x1c], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi], eax
jne 0x405dba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push 0x436848
lea eax, [ebp - 0x14]
push eax
call fcn.0041347e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetTokenInformation
push eax
call edi
mov ecx, dword [esi]
push 0x42f9f4
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push 0x42f9ec
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.InitializeSecurityDescriptor
push eax
call edi
mov ecx, dword [esi]
push str.GetSecurityDescriptorDacl
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi]
push str.SetSecurityDescriptorDacl
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
push str.GetAclInformation
push eax
call edi
mov ecx, dword [esi]
push str.InitializeAcl
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi]
push str.GetAce
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi]
push str.AddAce
push eax
call edi
mov ecx, dword [esi]
push str.AddAccessAllowedAce
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi]
push str.OpenProcessToken
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi]
push str.ImpersonateLoggedOnUser
push eax
call edi
mov ecx, dword [esi]
push str.RevertToSelf
push ecx
mov dword [esi + 0x38], eax
call edi
push 0x42f8f8
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x405ea3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x436848
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], eax
call fcn.0041347e
mov eax, 0x405f23
ret
push str.GetUserObjectSecurity
push eax
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 4]
push str.SetUserObjectSecurity
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenWindowStationW
push ecx
mov dword [esi + 0x44], eax
call edi
mov edx, dword [esi + 4]
push str.CloseWindowStation
push edx
mov dword [esi + 0x48], eax
call edi
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 4]
push str.OpenDesktopW
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseDesktop
push ecx
mov dword [esi + 0x50], eax
call edi
mov edx, dword [esi + 4]
push str.GetProcessWindowStation
push edx
mov dword [esi + 0x54], eax
call edi
mov dword [esi + 0x58], eax
mov eax, dword [esi + 4]
push str.SetProcessWindowStation
push eax
call edi
mov dword [esi + 0x5c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret