Function at 0x1243c70
Capabilities:
Contain obfuscated stackstrings
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x124acf4
mov eax, dword fs:[0]
push eax
sub esp, 0xcac
mov eax, dword [0x1251e38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x115], 0
mov dword [ebp - 0x11c], 0
jmp 0x1243cbd
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x10
jge 0x124407b
movzx ecx, byte [ebp - 0x115]
test ecx, ecx
jne 0x124407b
mov dword [ebp - 0x134], 0
push 0x100
push 0
lea edx, [ebp - 0x114]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0x130], 0x4b
mov byte [ebp - 0x12f], 0x4b
mov byte [ebp - 0x12e], 0x39
mov byte [ebp - 0x12d], 0x4b
mov byte [ebp - 0x12c], 0x47
mov byte [ebp - 0x12b], 0x7f
mov byte [ebp - 0x12a], 0x6e
mov byte [ebp - 0x129], 0x64
mov byte [ebp - 0x128], 0x7e
mov byte [ebp - 0x127], 0x74
mov byte [ebp - 0x126], 0x76
mov byte [ebp - 0x125], 0x7b
mov byte [ebp - 0x124], 0x53
mov byte [ebp - 0x123], 0x65
mov byte [ebp - 0x122], 0x7e
mov byte [ebp - 0x121], 0x61
mov byte [ebp - 0x120], 0x72
mov byte [ebp - 0x11f], 0x32
mov byte [ebp - 0x11e], 0x73
mov byte [ebp - 0x11d], 0
push 0x17
push 0x13
lea eax, [ebp - 0x130]
push eax
call fcn.0125e424
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x130]
push edx
push 0xffffffffffffffff
push 0xff
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCR90.dll__snprintf_s]
add esp, 0x14
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x1243dea
jmp 0x1244076
mov dword [ebp - 0x948], 0
push 0xc
push 0
lea edx, [ebp - 0x140]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
push 0x800
push 0
lea eax, [ebp - 0x944]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 0x948]
push ecx
push 0x800
lea edx, [ebp - 0x944]
push edx
push 0xc
lea eax, [ebp - 0x140]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1244063
lea edx, [ebp - 0x944]
mov dword [ebp - 0x94c], edx
cmp dword [ebp - 0x94c], 0
je 0x1244061
mov byte [ebp - 0xc4c], 0
push 0xff
push 0
lea eax, [ebp - 0xc4b]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0xb4c], 0
push 0xff
push 0
lea ecx, [ebp - 0xb4b]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0xa4c], 0
push 0xff
push 0
lea edx, [ebp - 0xa4b]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb4c]
push eax
push 0
mov ecx, dword [ebp - 0x94c]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [ebp - 0x944]
push eax
call fcn.01242b80
add esp, 0x10
lea ecx, [ebp - 0xa4c]
push ecx
push 0
mov edx, dword [ebp - 0x94c]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [ebp - 0x944]
push ecx
call fcn.01242b80
add esp, 0x10
lea edx, [ebp - 0xc4c]
push edx
push 1
mov eax, dword [ebp - 0x94c]
mov ecx, dword [eax + 0x18]
push ecx
lea edx, [ebp - 0x944]
push edx
call fcn.01242b80
add esp, 0x10
movsx eax, byte [ebp - 0xc4c]
push eax
call dword [sym.imp.MSVCR90.dll_isalnum]
add esp, 4
test eax, eax
jne 0x1243f6d
movsx ecx, byte [ebp - 0xc39]
push ecx
call dword [sym.imp.MSVCR90.dll_isalnum]
add esp, 4
test eax, eax
je 0x1244061
lea edx, [ebp - 0xc4c]
push edx
lea ecx, [ebp - 0xc68]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 0xca4], eax
mov eax, dword [ebp - 0xca4]
mov dword [ebp - 0xca8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xca8]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc68]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [ebp - 0xb4c]
push edx
lea ecx, [ebp - 0xc84]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 0xcac], eax
mov eax, dword [ebp - 0xcac]
mov dword [ebp - 0xcb0], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xcb0]
push ecx
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc84]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [ebp - 0xa4c]
push edx
lea ecx, [ebp - 0xca0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 0xcb4], eax
mov eax, dword [ebp - 0xcb4]
mov dword [ebp - 0xcb8], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0xcb8]
push ecx
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xca0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 0x115], 1
jmp 0x1244069
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1243cae
mov al, byte [ebp - 0x115]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01247fee
mov esp, ebp
pop ebp
ret