joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000be20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100203d0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100032a0
mov dword [esi], vtable.boost::thread_resource_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x1000beb1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000c730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100203d0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100032a0
mov dword [esi], vtable.boost::lock_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x1000c7c1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100203d0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100032a0
mov dword [esi], vtable.boost::thread_exception.0
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x1000c9e1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_exception_.1.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::thread_exception_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10010020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100206f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100032a0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10010400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100206f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100032a0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x100104c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100206f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100032a0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_exception_.1.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::thread_exception_.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10012280
Capabilities:
Create thread

Disassembly:
push esi
push 0x18
mov esi, ecx
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x100122b9
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], 0
jmp 0x100122bb
xor eax, eax
push eax
push 0
push 0x10012250
call dword [sym.imp.MSVCR110.dll__beginthread]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x100122de
push 0x10032acc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, esi
pop esi
ret

Function at 0x10012680
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10030034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100126e6
cmp dword [ebp - 0x114], 6
jb 0x100126e6
cmp dword [ebp - 0x110], 0
je 0x100126e6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b732
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.1001b732
mov esp, ebp
pop ebp
ret
Function at 0x10015e20
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x10030034]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax*2 + 0x208]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001b722
mov edi, eax
add esp, 4
test edi, edi
je 0x10016008
push ebx
push 0
push edi
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], ax
mov eax, dword [esi]
push 0x208
mov dword [esp + 0x80], eax
push edi
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10015ffe
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xorps xmm0, xmm0
movq qword [esp + 0x20], xmm0
lea eax, [esp + 0x74]
push 0x34
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
movq qword [esp + 0x2c], xmm0
push 0
mov dword [esp + 0x38], 0
push eax
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0xc0000001
mov dword [esp + 0x48], 0
call sub.MSVCR110.dll_memset
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x1c]
add esp, 0xc
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x20]
push 0
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x48]
push eax
push 0x38
push eax
mov eax, dword [esp + 0x30]
push 0x221004
push dword [eax + 4]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x80
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
test esi, esi
jne 0x10015fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10016013
mov eax, dword [esp + 0x3c]
test eax, eax
jns 0x10015fde
push eax
jmp 0x1001600d
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 0x20
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push 0xc000009a
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x1001601f
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10016040
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x10030034]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax*2 + 0x208]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001b722
mov edi, eax
add esp, 4
test edi, edi
je 0x10016204
push ebx
push 0
push edi
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x6c], eax
mov word [esp + 0x70], ax
mov eax, dword [esi]
push 0x208
mov dword [esp + 0x70], eax
push edi
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100161fa
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xorps xmm0, xmm0
movq qword [esp + 0x20], xmm0
lea eax, [esp + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x44], eax
movq qword [esp + 0x48], xmm0
lea eax, [esp + 0x1c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x14]
push 0
movq qword [esp + 0x54], xmm0
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x40]
push eax
push 0x28
push eax
mov eax, dword [esp + 0x30]
push 0x221008
push dword [eax + 4]
movq qword [esp + 0x48], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x3c], 0x18
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0xc0000001
mov dword [esp + 0x54], 0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
test esi, esi
jne 0x100161cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001620f
mov eax, dword [esp + 0x34]
test eax, eax
jns 0x100161da
push eax
jmp 0x10016209
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 0x14
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push 0xc000009a
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x1001621b
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10016450
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x10030034]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax*2 + 0x208]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001b722
mov edi, eax
add esp, 4
test edi, edi
je 0x100165bb
push ebx
push 0
push edi
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], ax
mov eax, dword [esi]
push 0x208
mov dword [esp + 0x40], eax
push edi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100165b1
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xorps xmm0, xmm0
movq qword [esp + 0x20], xmm0
lea eax, [esp + 0x34]
mov dword [esp + 0x24], eax
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push 8
push eax
mov eax, dword [esp + 0x30]
push 0x221014
push dword [eax + 4]
movq qword [esp + 0x48], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x3c], 0x18
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
test esi, esi
jne 0x10016590
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100165c6
mov eax, dword [esp + 0xc]
test eax, eax
jns 0x1001659b
push eax
jmp 0x100165c0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push 0xc000009a
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x100165d2
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 4
Function at 0x100165f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x10030034]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax*2 + 0x208]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001b722
mov edi, eax
add esp, 4
test edi, edi
je 0x1001675b
push ebx
push 0
push edi
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], ax
mov eax, dword [esi]
push 0x208
mov dword [esp + 0x40], eax
push edi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10016751
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xorps xmm0, xmm0
movq qword [esp + 0x20], xmm0
lea eax, [esp + 0x34]
mov dword [esp + 0x24], eax
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push 8
push eax
mov eax, dword [esp + 0x30]
push 0x221018
push dword [eax + 4]
movq qword [esp + 0x48], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x3c], 0x18
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
test esi, esi
jne 0x10016730
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10016766
mov eax, dword [esp + 0xc]
test eax, eax
jns 0x1001673b
push eax
jmp 0x10016760
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push 0xc000009a
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x10016772
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 4
Function at 0x10016810
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x10030034]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax*2 + 0x208]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001b722
mov edi, eax
add esp, 4
test edi, edi
je 0x1001697b
push ebx
push 0
push edi
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], ax
mov eax, dword [esi]
push 0x208
mov dword [esp + 0x40], eax
push edi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10016971
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xorps xmm0, xmm0
movq qword [esp + 0x20], xmm0
lea eax, [esp + 0x34]
mov dword [esp + 0x24], eax
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push 8
push eax
mov eax, dword [esp + 0x30]
push 0x221010
push dword [eax + 4]
movq qword [esp + 0x48], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x3c], 0x18
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
test esi, esi
jne 0x10016950
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10016986
mov eax, dword [esp + 0xc]
test eax, eax
jns 0x1001695b
push eax
jmp 0x10016980
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push 0xc000009a
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x10016992
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 4