joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10de4a5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
xor esi, esi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x10de4d2
cmp eax, 5
je 0x10de4d2
cmp eax, 2
jne 0x10de578
push edi
cmp eax, 2
jne 0x10de571
lea eax, [ebp + 0xb]
push eax
push ebx
mov byte [ebp + 0xb], 0
call fcn.010d635b
mov esi, eax
mov edi, 0x1010cfc
test esi, esi
jge 0x10de523
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10de51d
test byte [eax + 0x1c], 1
je 0x10de51d
cmp byte [eax + 0x19], 3
jb 0x10de51d
push esi
push ebx
push edi
push 0x51
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov byte [ebp + 0xb], 0
xor esi, esi
cmp byte [ebp + 0xb], 0
jne 0x10de577
lea eax, [ebp - 1]
push eax
push ebx
mov byte [ebp - 1], 0
call fcn.010e59a8
mov esi, eax
test esi, esi
jge 0x10de56b
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10de565
test byte [eax + 0x1c], 1
je 0x10de565
cmp byte [eax + 0x19], 3
jb 0x10de565
push esi
push ebx
push edi
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov byte [ebp - 1], 1
xor esi, esi
cmp byte [ebp - 1], 0
je 0x10de577
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10de585
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov byte [ebp - 4], bl
mov byte [ebp - 3], bl
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov byte [ebp - 1], bl
mov byte [ebp - 2], bl
mov byte [eax], bl
cmp edi, ebx
je 0x10de5b3
mov byte [edi], bl
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x10de662
dec eax
je 0x10de5fe
dec eax
dec eax
jne 0x10de755
cmp edi, ebx
je 0x10de5d6
mov byte [edi], 1
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 3]
push eax
push dword [ebp + 8]
call fcn.010e719a
mov esi, eax
cmp esi, ebx
jl 0x10de727
cmp byte [ebp - 3], bl
je 0x10de71c
jmp 0x10de716
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.010f7d68
mov esi, eax
cmp esi, ebx
jl 0x10de727
cmp byte [ebp - 4], bl
je 0x10de71c
cmp edi, ebx
je 0x10de624
mov byte [edi], 1
lea eax, [ebp - 5]
push eax
push dword [ebp + 8]
call fcn.010f72d4
mov esi, eax
cmp esi, ebx
jge 0x10de654
cmp esi, 0x80780076
jne 0x10de71c
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
cmp edi, ebx
je 0x10de64d
mov byte [edi], bl
xor esi, esi
jmp 0x10de71c
cmp byte [ebp - 5], bl
jne 0x10de71c
jmp 0x10de716
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call fcn.010d635b
mov esi, eax
cmp esi, ebx
jge 0x10de6ae
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10de6a7
test byte [eax + 0x1c], 1
je 0x10de6a7
cmp byte [eax + 0x19], 3
jb 0x10de6a7
push esi
push dword [ebp + 8]
push 0x1010cfc
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
mov byte [ebp - 1], bl
xor esi, esi
jmp 0x10de6b3
mov eax, dword [0x111124c]
cmp byte [ebp - 1], bl
jne 0x10de721
lea eax, [ebp - 2]
push eax
push dword [ebp + 8]
call fcn.010e59a8
mov esi, eax
cmp esi, ebx
jge 0x10de705
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10de6fd
test byte [eax + 0x1c], 1
je 0x10de6fd
cmp byte [eax + 0x19], 3
jb 0x10de6fd
push esi
push dword [ebp + 8]
push 0x1010cfc
push 0x54
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
mov byte [ebp - 2], 1
xor esi, esi
jmp 0x10de70a
mov eax, dword [0x111124c]
cmp byte [ebp - 2], bl
je 0x10de721
cmp edi, ebx
je 0x10de716
mov byte [edi], 1
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [0x111124c]
cmp esi, ebx
jge 0x10de755
jmp 0x10de72c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10de755
test byte [eax + 0x1c], 1
je 0x10de755
cmp byte [eax + 0x19], 2
jb 0x10de755
push esi
push dword [ebp + 8]
push 0x1010cfc
push 0x55
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10f1d9d
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10f1e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f1e0c
test byte [eax + 0x1c], 1
je 0x10f1e0c
cmp byte [eax + 0x19], 2
jb 0x10f1e0c
push esi
push dword [ebp + 8]
push 0x10128f8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
cmp esi, ebx
jle 0x10f1e1c
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
jmp 0x10f1e37
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10f5f55
Capabilities:
Get common file path
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x630], edi
mov eax, dword [0x111124c]
mov ebx, 0x111124c
cmp eax, ebx
je 0x10f5fa1
test byte [eax + 0x1c], 1
je 0x10f5fa1
cmp byte [eax + 0x19], 4
jb 0x10f5fa1
push 0x1012aec
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push esi
mov esi, 0x100cbcc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x10f600e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10f5ff7
test byte [eax + 0x1c], 1
je 0x10f5ff7
cmp byte [eax + 0x19], 2
jb 0x10f5ff7
push esi
push 0x1012aec
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
test esi, esi
jle 0x10f6007
and esi, 0xffff
or esi, 0x80070000
mov ebx, esi
jmp 0x10f60fc
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x10f6055
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10f5ff7
test byte [eax + 0x1c], 1
je 0x10f5ff7
cmp byte [eax + 0x19], 2
jb 0x10f5ff7
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 0x1012aec
push 0xd
jmp 0x10f60a6
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10f60b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10f5ff7
test byte [eax + 0x1c], 1
je 0x10f5ff7
cmp byte [eax + 0x19], 2
jb 0x10f5ff7
push esi
lea ecx, [ebp - 0x414]
push ecx
push 0x1012aec
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10f5ff2
lea eax, [ebp - 0x61c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10f60bf
sub eax, edx
lea ecx, [ebp - 0x62c]
sar eax, 1
push ecx
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0107ddbe
mov ebx, eax
test ebx, ebx
jl 0x10f60f7
mov edi, dword [ebp - 0x630]
lea esi, [ebp - 0x62c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [0x111124c]
pop esi
cmp eax, 0x111124c
je 0x10f6122
test byte [eax + 0x1c], 1
je 0x10f6122
cmp byte [eax + 0x19], 4
jb 0x10f6122
push 0x1012aec
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 4
Function at 0x10f630f
Capabilities:
Enumerate disk volumes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x218], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], edi
mov byte [ebp - 0x20d], 0
mov byte [esi], 0
call fcn.0107db82
test al, al
je 0x10f63b1
lea eax, [ebp - 0x21c]
push eax
call fcn.01082b1d
cmp eax, edi
mov dword [ebp - 0x214], eax
jge 0x10f6395
cmp eax, 0xd0000452
je 0x10f638d
cmp eax, 0xd0000451
je 0x10f638d
cmp eax, 0xd000003a
jne 0x10f64b4
mov byte [esi], 0
jmp 0x10f64ae
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10f6469
jmp 0x10f6453
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
jne 0x10f641d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f6402
test byte [eax + 0x1c], 1
je 0x10f6402
cmp byte [eax + 0x19], 2
jb 0x10f6402
push esi
push 0x1012aec
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
test esi, esi
jle 0x10f6412
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x214], esi
jmp 0x10f64b4
push ebx
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
jmp 0x10f6444
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x10f645c
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10f6426
mov byte [ebp - 0x20d], 1
jmp 0x10f6469
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x10f6473
mov al, byte [ebp - 0x20d]
mov byte [esi], al
jmp 0x10f64b4
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f649e
test byte [eax + 0x1c], 1
je 0x10f649e
cmp byte [eax + 0x19], 2
jb 0x10f649e
push edi
push 0x1012aec
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
test edi, edi
jle 0x10f64ae
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x218], 0xffffffff
pop edi
pop esi
pop ebx
je 0x10f64d8
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp dword [ebp - 0x214], 0
jge 0x10f6517
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f6517
test byte [eax + 0x1c], 1
je 0x10f6517
cmp byte [eax + 0x19], 2
jb 0x10f6517
push dword [ebp - 0x214]
push dword [ebp - 0x220]
push 0x1012aec
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
call fcn.0106f5f8
leave
ret 0xc
Function at 0x10f6559
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], edi
mov dword [esi + 4], edi
call fcn.0107d073
mov ebx, eax
cmp ebx, edi
jl 0x10f6680
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x10f65f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f65df
test byte [eax + 0x1c], 1
je 0x10f65df
cmp byte [eax + 0x19], 2
jb 0x10f65df
push esi
push dword [ebp - 4]
push 0x1012aec
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
cmp esi, edi
jg 0x10f65ea
mov ebx, esi
jmp 0x10f6685
and esi, 0xffff
or esi, 0x80070000
jmp 0x10f65e3
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x7405c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10f666a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f6656
test byte [eax + 0x1c], 1
je 0x10f6656
cmp byte [eax + 0x19], 2
jb 0x10f6656
push esi
push dword [ebp - 4]
push 0x1012aec
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
cmp esi, edi
jle 0x10f6666
and esi, 0xffff
or esi, 0x80070000
mov ebx, esi
jmp 0x10f6675
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov eax, dword [0x111124c]
cmp dword [ebp - 4], edi
je 0x10f6698
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp ebx, edi
jge 0x10f66c8
cmp eax, 0x111124c
je 0x10f66c8
test dword [eax + 0x1c], 0x200
je 0x10f66c8
cmp byte [eax + 0x19], 2
jb 0x10f66c8
push ebx
push dword [ebp + 8]
push 0x1012aec
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x10f70d4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov dword [eax], esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10f7128
call ebx
cmp eax, 0xea
je 0x10f7128
cmp eax, esi
jg 0x10f711c
mov dword [ebp - 4], eax
jmp 0x10f71d9
and eax, 0xffff
or eax, 0x80070000
jmp 0x10f7114
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
add eax, eax
push eax
call esi
mov dword [ebp - 8], eax
test eax, eax
jne 0x10f7149
mov dword [ebp - 4], 0x8007000e
jmp 0x10f71ca
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10f716f
call ebx
test eax, eax
jle 0x10f716a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x10f71ca
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10f7175
sub eax, edx
sar eax, 1
mov ebx, eax
je 0x10f71ca
lea edi, [ebx + ebx]
lea eax, [edi + 2]
push eax
call esi
mov esi, eax
test esi, esi
jne 0x10f719f
mov dword [ebp - 4], 0x8007000e
jmp 0x10f71bf
push dword [ebp - 8]
inc ebx
push ebx
push esi
call fcn.01025872
mov dword [ebp - 4], eax
test eax, eax
jl 0x10f71bf
xor eax, eax
mov word [edi + esi - 2], ax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor esi, esi
test esi, esi
je 0x10f71ca
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 8], 0
je 0x10f71d9
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
jge 0x10f7212
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f7212
test byte [eax + 0x1c], 1
je 0x10f7212
cmp byte [eax + 0x19], 3
jb 0x10f7212
push dword [ebp - 4]
push dword [ebp + 8]
push 0x1012aec
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x10f72d4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp edi, ebx
jne 0x10f7305
push 0x1012ba0
push 0x2c5
push 0x1012afc
call fcn.0107b4be
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov byte [edi], bl
call fcn.0107cfe1
mov esi, eax
cmp esi, ebx
jl 0x10f74a5
xor ebx, ebx
inc ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp + 0xc], eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push eax
push eax
push eax
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x10f7452
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.010f6a76
test eax, eax
jge 0x10f7398
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x10f73fa
test byte [ecx + 0x1c], bl
je 0x10f73fa
cmp byte [ecx + 0x19], 3
jb 0x10f73fa
push eax
push dword [ebp + 8]
push 0x1012aec
push 0x1f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
jmp 0x10f73f4
mov eax, dword [ebp - 8]
shr eax, 0xb
test bl, al
je 0x10f73e3
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f73ce
test byte [eax + 0x1c], bl
je 0x10f73ce
cmp byte [eax + 0x19], 4
jb 0x10f73ce
push dword [ebp + 8]
push 0x1012aec
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push edi
push dword [ebp + 8]
call fcn.010f66d6
mov esi, eax
test esi, esi
jl 0x10f74a5
jmp 0x10f745c
cmp esi, 0x3ed
je 0x10f7413
cmp esi, ebx
je 0x10f7413
cmp esi, 0x57
je 0x10f7413
mov ecx, dword [0x111124c]
test esi, esi
jle 0x10f74ab
and esi, 0xffff
or esi, 0x80070000
jmp 0x10f74ab
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x10f744b
test dword [ecx + 0x1c], 0x200
je 0x10f744b
cmp byte [ecx + 0x19], 4
jb 0x10f744b
push dword [ebp + 8]
push 0x1012aec
push 0x21
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019680
mov ecx, dword [0x111124c]
mov esi, 0x80780076
jmp 0x10f74ab
mov eax, dword [ebp - 0xc]
shr eax, 0x13
and al, bl
mov byte [edi], al
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f749c
test dword [eax + 0x1c], 0x200
je 0x10f749c
cmp byte [eax + 0x19], 4
jb 0x10f749c
cmp byte [edi], 0
mov ecx, 0x10027a8
jne 0x10f7486
mov ecx, 0x1007690
push ecx
push dword [ebp + 8]
push 0x1012aec
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019979
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [0x111124c]
cmp dword [ebp - 4], 0
je 0x10f74c0
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x111124c]
test esi, esi
jge 0x10f74ee
cmp ecx, 0x111124c
je 0x10f74ee
test dword [ecx + 0x1c], 0x200
je 0x10f74ee
cmp byte [ecx + 0x19], 3
jb 0x10f74ee
push esi
push 0x1012aec
push 0x23
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189f6
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10f74fc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 0x2c]
xor esi, esi
push ecx
push eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
mov dword [ebx], esi
call fcn.0107cfe1
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x10f7662
push edi
push 8
pop ecx
push 0x10
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
pop edi
test eax, eax
jne 0x10f761b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x30]
call fcn.010f6a76
test eax, eax
jge 0x10f75c6
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x10f75ae
test byte [ecx + 0x1c], 1
je 0x10f75ae
cmp byte [ecx + 0x19], 3
jb 0x10f75ae
push eax
push dword [ebp - 0x30]
push 0x1012aec
push 0x2c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
mov ecx, dword [0x111124c]
test esi, esi
jle 0x10f75be
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x28], esi
jmp 0x10f7668
mov eax, dword [ebp - 0x34]
shr eax, 0xb
test al, 1
je 0x10f76c8
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f7604
test dword [eax + 0x1c], 0x200
je 0x10f7604
cmp byte [eax + 0x19], 4
jb 0x10f7604
push dword [ebp - 0x2c]
push 0x1012aec
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push 0x1002b60
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.01025872
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x10f7662
push 0
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0107c871
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x10f7662
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x10f7668
test dword [ecx + 0x1c], 0x200
je 0x10f7668
cmp byte [ecx + 0x19], 5
jb 0x10f7668
push dword [ebx]
push dword [ebp - 0x2c]
push 0x1012aec
push 0x2f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019979
mov ecx, dword [0x111124c]
xor esi, esi
cmp dword [ebp - 0x2c], esi
je 0x10f7681
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x111124c]
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x28], esi
pop esi
pop ebx
jge 0x10f76b7
cmp ecx, 0x111124c
je 0x10f76b7
test dword [ecx + 0x1c], 0x200
je 0x10f76b7
cmp byte [ecx + 0x19], 3
jb 0x10f76b7
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push 0x1012aec
push 0x30
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0106f5f8
leave
ret 8
cmp esi, 0x3ed
je 0x10f76de
cmp esi, 1
je 0x10f76de
cmp esi, 0x57
jne 0x10f75a8
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x10f7668
test dword [ecx + 0x1c], 0x200
je 0x10f7668
cmp byte [ecx + 0x19], 4
jb 0x10f7668
push dword [ebp - 0x2c]
push 0x1012aec
push 0x2e
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019680
jmp 0x10f7662