Function at 0x403320
Capabilities:
Get disk information via ioctl
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4154e0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x41c490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x50], eax
xor eax, eax
push 0x80
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], 0x80
mov dword [ebp - 4], ebx
call fcn.00404a46
add esp, 4
mov esi, eax
push 0x48
mov dword [ebp - 0x44], esi
call fcn.00404a46
add esp, 4
cmp eax, ebx
je 0x40339d
push 0x48
push ebx
push eax
call fcn.0040bcf0
add esp, 0xc
push 0x208
call fcn.00404a46
add esp, 4
push 0x208
mov dword [ebp - 0x48], eax
call fcn.00404a46
mov ecx, dword [ebp - 0x40]
add esp, 4
push ecx
mov edi, eax
push ebx
push esi
mov dword [ebp - 0x4c], edi
call fcn.0040bcf0
mov eax, dword [ebp - 0x40]
add esp, 0xc
lea edx, [ebp - 0x40]
push edx
push eax
push esi
push 0x62
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esi + 0x18]
push ecx
push str.._s
push edi
call ebx
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call fcn.004058e7
push 0x10
mov dword [ebp - 0x40], 0x10
call fcn.00404a46
mov edx, dword [ebp - 0x40]
add esp, 8
mov esi, eax
mov dword [ebp - 0x44], esi
push edx
push 0
push esi
call fcn.0040bcf0
mov ecx, dword [ebp - 0x40]
add esp, 0xc
push 0
lea eax, [ebp - 0x54]
push eax
push ecx
push esi
push 0
push 0
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x403476
add dword [ebp - 0x40], 0x10
push esi
call fcn.004058e7
mov edx, dword [ebp - 0x40]
push edx
call fcn.00404a46
mov esi, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
add esp, 8
push eax
jmp 0x40342b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 8]
mov edi, dword [ebp - 0x48]
push ecx
push str..PhysicalDrive_d
push edi
call ebx
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call fcn.004058e7
push 0x10
mov dword [ebp - 0x40], 0x10
call fcn.00404a46
mov ebx, eax
add esp, 8
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x40]
push 0
lea edx, [ebp - 0x54]
push edx
push eax
push ebx
push 0
push 0
push 0x70050
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40350e
add dword [ebp - 0x40], 0x10
push ebx
call fcn.004058e7
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00404a46
mov edx, dword [ebp - 0x40]
add esp, 8
push edx
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x44], eax
call fcn.0040bcf0
add esp, 0xc
jmp 0x4034c3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp edi, dword [ebx + 4]
jae 0x4035df
cmp dword [ebx], 1
jne 0x4035d9
lea edx, [edi + edi*8]
add edx, edx
mov eax, 0x10
mov ecx, 0x41d450
lea edx, [ebx + edx*8 + 0x50]
lea esp, [esp]
cmp eax, 4
jb 0x40355a
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4035d9
sub eax, 4
add ecx, 4
add edx, 4
jmp 0x403540
lea eax, [edi + edi*8]
shl eax, 4
mov ecx, dword [eax + ebx + 0x60]
mov edx, dword [eax + ebx + 0x64]
add eax, ebx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x6c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x54]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + 0x58]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
xor eax, eax
cmp eax, 0x10
jae 0x4035a6
mov cl, byte [ebp + eax - 0x3c]
xor byte [ebp + eax - 0x2c], cl
inc eax
jmp 0x403596
xor esi, esi
cmp esi, 0x10
jae 0x4035d9
movzx edx, byte [ebp + esi - 0x2c]
push edx
lea eax, [ebp - 0x1c]
push str._02x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
lea ecx, [ebp - 0x1c]
push ecx
push 0x24
push eax
call fcn.00406b52
add esp, 0x18
inc esi
jmp 0x4035a8
inc edi
jmp 0x403517
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004058e7
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004058e7
push ebx
call fcn.004058e7
add esp, 0xc
xor eax, eax
jmp 0x403642
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405675
mov esp, ebp
pop ebp
ret