Function at 0x1001f580
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1204
call fcn.10021990
mov eax, dword [0x100290c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x90
xor edi, edi
lea eax, [ebp - 0x1ec]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x118], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1f0], 0x94
lea eax, [ebp - 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1e0], 2
jne 0x1001fa12
push dword [esi]
lea eax, [ebp - 0x108]
push str..PhysicalDrive_d
push eax
call fcn.10001e10
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp eax, 0xffffffff
je 0x1001f752
push edi
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x110], edi
push ecx
push 0x18
lea ecx, [ebp - 0x130]
xorps xmm0, xmm0
push ecx
push edi
push edi
push 0x74080
push eax
movups xmmword [ebp - 0x130], xmm0
movq qword [ebp - 0x120], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001f745
mov bl, byte [ebp - 0x12d]
test bl, bl
je 0x1001f745
push 0x210
xorps xmm0, xmm0
mov byte [ebp - 0x149], 0
lea eax, [ebp - 0x408]
movlpd qword [ebp - 0x147], xmm0
push edi
push eax
movlpd qword [ebp - 0x13f], xmm0
mov dword [ebp - 0x137], edi
call sub.VCRUNTIME140.dll_memset
mov cl, byte [esi]
add esp, 0xc
mov al, cl
shr bl, cl
and al, 1
mov dword [ebp - 0x150], 0x10100
or al, 0xfa
mov byte [ebp - 0x14c], 0
shl al, 4
and bl, 0x10
push edi
mov byte [ebp - 0x14b], al
neg bl
lea eax, [ebp - 0x110]
mov byte [ebp - 0x148], cl
push eax
push 0x210
sbb bl, bl
mov dword [ebp - 0x154], 0x200
lea eax, [ebp - 0x408]
and bl, 0xb5
push eax
push 0x20
lea eax, [ebp - 0x154]
add bl, 0xec
push eax
mov byte [ebp - 0x14a], bl
mov ebx, dword [ebp - 0x10c]
push 0x7c088
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001f74b
xor ecx, ecx
lea edx, [esi + 4]
nop dword [eax]
movzx eax, word [ebp + ecx*2 - 0x3f8]
lea edx, [edx + 4]
inc ecx
mov dword [edx - 4], eax
cmp ecx, 0x100
jl 0x1001f720
mov ecx, esi
call fcn.1001f070
mov edi, 1
jmp 0x1001f74b
mov ebx, dword [ebp - 0x10c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1001fb73
xor ebx, ebx
mov dword [ebp - 0x10c], ebx
mov ecx, 0x36
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x10026454]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x124], al
and ecx, 0x800000ff
jns 0x1001f790
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xb
jl 0x1001f770
push ebx
lea eax, [ebp - 0x124]
mov byte [ebp - 0x119], 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10001e10
add esp, 0xc
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x108]
xorps xmm0, xmm0
movq qword [ebp - 0x124], xmm0
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
cmp eax, 0xffffffff
je 0x1001f8de
xor ebx, ebx
nop word [eax + eax]
push 0x22d
lea eax, [ebp - 0x428]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x428], 0x1c
lea eax, [ebp - 0x424]
mov dword [ebp - 0x41c], 0x2710
mov dword [ebp - 0x410], 0x211
mov dword [ebp - 0x418], 0x1b0501
push 8
push str.SCSIDISK
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [ebp - 0x402], 0xec
lea eax, [ebp - 0x118]
mov byte [ebp - 0x400], bl
push 0
push eax
push 0x22d
lea eax, [ebp - 0x428]
push eax
push 0x3c
push eax
push 0x4d008
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001f8c2
cmp byte [ebp - 0x3c6], 0
je 0x1001f8c2
xor eax, eax
lea edx, [esi + 4]
nop dword [eax]
movzx ecx, word [ebp + eax*2 - 0x3fc]
lea edx, [edx + 4]
inc eax
mov dword [edx - 4], ecx
cmp eax, 0x100
jl 0x1001f8a0
mov ecx, esi
call fcn.1001f070
mov edi, 1
inc ebx
cmp ebx, 2
jl 0x1001f800
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10c]
inc ebx
mov dword [ebp - 0x10c], ebx
cmp ebx, 0x10
jl 0x1001f762
test edi, edi
jne 0x1001fb73
mov ecx, esi
call fcn.1001f290
test eax, eax
jne 0x1001fb75
push dword [esi]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x108]
push str..PhysicalDrive_d
push eax
call fcn.10001e10
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 3
push edi
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001f9fb
push edi
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], edi
push eax
push 0x18
lea eax, [ebp - 0x130]
xorps xmm0, xmm0
push eax
push edi
push edi
push 0x74080
push ebx
movups xmmword [ebp - 0x130], xmm0
movq qword [ebp - 0x120], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001f9fb
push 0x221
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x114]
push 0
push eax
push 0x221
push edi
push 0x21
push edi
push 0x7c088
mov byte [edi + 0xa], 0xec
push ebx
mov dword [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001f9ea
xor ecx, ecx
lea edx, [esi + 4]
movzx eax, word [edi + ecx*2 + 0x10]
lea edx, [edx + 4]
inc ecx
mov dword [edx - 4], eax
cmp ecx, 0x100
jl 0x1001f9c5
mov ecx, esi
call fcn.1001f070
mov dword [ebp - 0x110], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp - 0x110]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020ae5
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov dword [ebp - 0x10c], edi
nop
test edi, edi
jne 0x1001fb73
push pe_nt_image_headers32
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
push 0x100c
lea eax, [ebp - 0x1200]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x6a
xor edx, edx
nop
mov al, byte [edx + str.67B15CCADDX__]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x12c], al
and ecx, 0x800000ff
jns 0x1001fa80
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x1001fa60
push 0
push 0x4000000
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x12c]
mov byte [ebp - 0x11c], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov byte [ebp - 0x11c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x12c], xmm0
cmp ebx, 0xffffffff
je 0x1001fae9
push 0
lea eax, [ebp - 0x114]
push eax
push 4
lea eax, [ebp - 0x1200]
push eax
push 0
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001fb4c
xor edi, edi
lea ebx, [ebp - 0x11f4]
cmp byte [ebp + edi - 0x11fc], 0
je 0x1001fb3a
mov eax, edi
shr eax, 1
cmp byte [ebp + eax - 0x1200], 0
je 0x1001fb3a
lea ecx, [esi + 4]
mov edx, ebx
mov esi, pe_nt_image_headers32
movzx eax, word [edx]
lea edx, [edx + 2]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x1001fb13
mov esi, dword [ebp - 0x118]
mov ecx, esi
call fcn.1001f070
mov dword [ebp - 0x110], 1
inc edi
add ebx, 0x200
cmp edi, 8
jb 0x1001faf1
mov edi, dword [ebp - 0x110]
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call ebx
mov eax, dword [ebp - 0x10c]
inc eax
mov dword [ebp - 0x10c], eax
cmp eax, 0xa
jl 0x1001fa20
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10020ae5
mov esp, ebp
pop ebp
ret