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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407608
xor eax, eax
push ebp
push 0x4966fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dword [ebp - 0x10], 5
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040826c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004080d8
push eax
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
call sub.kernel32.dll_GetVolumePathNamesForVolumeNameW
test eax, eax
jne 0x496634
call sub.kernel32.dll_GetLastError_3
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xea
jne 0x4965e8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040826c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004080d8
push eax
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
call sub.kernel32.dll_GetVolumePathNamesForVolumeNameW
test eax, eax
je 0x4965e8
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x496634
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0x11
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.00486c30
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x496714
call fcn.0041d8ac
mov eax, dword [ebp - 0x2c]
call fcn.004869d8
jmp 0x4966c0
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0xc]
call fcn.00407adc
mov edx, dword [ebp - 0x1c]
lea eax, [eax + edx*2 - 2]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00408140
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x49666f
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
inc eax
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x49668d
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x4966a9
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
call fcn.0048ceb8
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00407a14
cmp eax, dword [ebp - 0x1c]
jle 0x4966c0
cmp dword [ebp - 0x14], 0
jne 0x49663b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496702
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00407584
lea eax, [ebp - 0x2c]
call fcn.00407524
lea eax, [ebp - 0x14]
call fcn.00407524
lea eax, [ebp - 0xc]
call fcn.00407524
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x49679c
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4968bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dword [ebp - 0x10], 0x104
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040826c
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004080d8
push eax
call sub.kernel32.dll_FindFirstVolumeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4967f9
cmp dword [ebp - 0x14], 0xffffffff
jne 0x496806
call sub.kernel32.dll_GetLastError_3
mov dword [ebp - 8], eax
jmp 0x496898
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
call fcn.004080d8
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00408140
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040826c
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004080d8
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindNextVolumeW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x496879
call sub.kernel32.dll_GetLastError_3
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x12
jne 0x496871
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindVolumeClose
jmp 0x496898
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
jmp 0x496898
mov eax, dword [ebp - 0xc]
call fcn.004080d8
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.00408140
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x496828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4968c2
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00407584
lea eax, [ebp - 0xc]
call fcn.00407524
ret
Function at 0x4968cc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407608
xor eax, eax
push ebp
push 0x4969f1
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov eax, 0x496a08
call fcn.0048cd54
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.0040794c
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, 0x496a18
call fcn.0048ce08
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.0040794c
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x496943
mov eax, dword [ebp - 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x496981
mov eax, 0x496a24
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov ax, word [eax]
mov edx, dword [ebp - 0x10]
cmp ax, 0xff
ja 0x496968
and eax, 0xff
bt dword [edx], eax
setb al
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
je 0x496981
lea eax, [ebp - 4]
mov edx, 0x496a50
call fcn.004082ec
mov eax, dword [ebp - 8]
mov edx, 0x104
call fcn.0040826c
push 0x104
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004080d8
push eax
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
call sub.kernel32.dll_QueryDosDeviceW_1
test eax, eax
je 0x4969c6
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004080d8
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00408140
jmp 0x4969ce
mov eax, dword [ebp - 8]
call fcn.00407524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4969f8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00407584
lea eax, [ebp - 4]
call fcn.00407524
ret

Function at 0x496a54
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407608
xor eax, eax
push ebp
push 0x496afc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, 0x104
call fcn.0040826c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0048d1fc
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0040794c
push 0x104
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004080d8
push eax
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
call sub.kernel32.dll_GetVolumeNameForVolumeMountPointW
test eax, eax
je 0x496ad6
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004080d8
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00408140
jmp 0x496ade
mov eax, dword [ebp - 8]
call fcn.00407524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496b03
lea eax, [ebp - 0xc]
call fcn.00407524
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x49b2e8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b3e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x416fac]
call fcn.0040949c
add esp, 4
call fcn.00426860
push eax
push 1
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4386bc]
call fcn.00444950
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x49b3c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x10000
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x20], eax
cmp byte [ebp - 0xd], 0
jne 0x49b390
cmp dword [ebp - 0x20], 0xea
je 0x49b390
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
call fcn.0049afbc
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.00443c28
cmp byte [ebp - 0xd], 0
je 0x49b34c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00444be0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b3cc
mov eax, dword [ebp - 0x14]
call fcn.00405890
ret

Function at 0x49b534
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b5d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
mov edx, 0xa
call fcn.0040826c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49b578
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
push 0xc8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
mov eax, dword [ebp - 0xc]
call fcn.004080d8
push eax
push 0x22
push 0x49b5e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004080d8
push eax
call sub.kernel32.dll_CallNamedPipeW
test eax, eax
je 0x49b5bf
mov eax, dword [ebp - 0xc]
mov edx, 0x49b614
call fcn.0040847c
jne 0x49b5bf
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b5dc
lea eax, [ebp - 0xc]
call fcn.00407524
ret
Function at 0x49b62c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00407608
xor eax, eax
push ebp
push 0x49b718
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0049b068
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x49b66e
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0049afbc
xor eax, eax
push ebp
push 0x49b6fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 2
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetNamedPipeHandleState
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x49b6ab
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, eax
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
call fcn.00407adc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
call fcn.00424e04
mov ecx, dword [ebp - 0xc]
mov edx, 0x10000
mov eax, dword [ebp - 0x10]
call fcn.0049b2e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b702
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x49f2b8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.00407608
xor eax, eax
push ebp
push 0x49f49a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00407524
cmp dword [ebp - 8], 0
jne 0x49f307
lea edx, [ebp - 8]
xor eax, eax
call fcn.0040499c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004080d8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x49f46f
mov eax, dword [ebp - 0xc]
call fcn.00404560
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x49f468
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004080d8
push eax
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x49f4a8
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
call fcn.0041c234
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
call fcn.004082ec
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
push dword [eax]
push 0x49f4b8
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 8]
call fcn.0041c234
push dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.004083cc
cmp byte [ebp - 1], 0
je 0x49f3f2
mov eax, dword [ebp + 8]
push dword [eax]
push 0x49f4b8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
call fcn.0041c234
push dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.004083cc
cmp byte [ebp - 2], 0
je 0x49f432
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xc]
call fcn.0041c234
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x49f4c8
call fcn.0041d8ac
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
call fcn.004082ec
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x1c]
and eax, dword [edx + 0x1c]
test al, 1
je 0x49f452
mov eax, dword [ebp + 8]
mov edx, 0x49f4dc
call fcn.004082ec
mov eax, dword [ebp + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f46f
mov eax, dword [ebp - 0x14]
call fcn.0040457c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f4a1
lea eax, [ebp - 0x38]
call fcn.00407524
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00407584
lea eax, [ebp - 8]
call fcn.00407524
ret
Function at 0x49f748
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov byte [0x4f6715], 0
push 0x49f834
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 4], eax
push 0x49f850
mov eax, dword [ebp - 4]
push eax
call fcn.0040c8f8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49f7eb
lea eax, [ebp - 0x34]
push eax
call dword [ebp - 8]
push 0x49f878
mov eax, dword [ebp - 4]
push eax
call fcn.0040c8f8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49f7f4
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x49f7f4
cmp dword [ebp - 0x10], 0
je 0x49f7f4
call fcn.0049f734
test al, al
je 0x49f7f4
push 0x49f898
mov eax, dword [ebp - 4]
push eax
call fcn.0040c8f8
test eax, eax
je 0x49f7f4
push 0x49f8cc
push 0x49f8ec
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040c8f8
test eax, eax
je 0x49f7f4
mov byte [0x4f6715], 1
jmp 0x49f7f4
lea eax, [ebp - 0x34]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov ax, word [ebp - 0x34]
sub ax, 1
jb 0x49f80c
sub ax, 5
je 0x49f815
sub ax, 3
je 0x49f81e
jmp 0x49f827
mov byte [0x4f01b4], 1
jmp 0x49f82e
mov byte [0x4f01b4], 3
jmp 0x49f82e
mov byte [0x4f01b4], 2
jmp 0x49f82e
mov byte [0x4f01b4], 0
mov esp, ebp
pop ebp
ret
Function at 0x4a2064
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407608
xor eax, eax
push ebp
push 0x4a223c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004a2024
mov edx, 0x4a2258
call fcn.0049d060
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x4a221f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4a20c1
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
cmp word [eax + edx*2 - 2], 0x5c
jne 0x4a20f2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4a20e6
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
dec edx
lea eax, [ebp - 4]
call fcn.0040826c
push 1
lea eax, [ebp - 0x270]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
mov dword [ebp - 0x25c], 0xc
lea eax, [ebp - 0x270]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 0xffffffff
push 0
push 0x80
push 3
lea eax, [ebp - 0x25c]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4a2155
call fcn.00406cf0
jmp 0x4a2226
xor eax, eax
push ebp
push 0x4a21fb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0xc
call fcn.00404f10
lea eax, [ebp - 0x250]
xor ecx, ecx
mov edx, 0x224
call fcn.00404f10
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24c], 0x224
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24c]
push eax
lea eax, [ebp - 0x250]
push eax
push 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x2d1400
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_DeviceIoControl
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4a21d5
call fcn.00406cf0
call fcn.00406cf0
jmp 0x4a2226
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x234]
mov dword [eax], edx
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2202
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2243
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x4a2c04
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407608
xor eax, eax
push ebp
push 0x4a2d61
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 4]
mov eax, 0x4a2d7c
call fcn.0048cd54
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.0040794c
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
mov byte [ebp - 9], 0
push 1
lea eax, [ebp - 0x38]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
mov dword [ebp - 0x24], 0xc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0xffffffff
push 0
push 0x80
push 3
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4a2d3b
xor eax, eax
push ebp
push 0x4a2d34
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4a2cf1
call fcn.00406cf0
jmp 0x4a2d3b
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004968cc
mov eax, dword [ebp - 0x18]
call fcn.004a2b78
test al, al
jne 0x4a2d14
mov eax, dword [ebp - 4]
call fcn.00496b08
test al, al
je 0x4a2d1d
mov eax, dword [ebp - 8]
mov dword [eax], 0x9c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2d3b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2d68
lea eax, [ebp - 0x3c]
call fcn.00407524
lea eax, [ebp - 0x18]
call fcn.00407524
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x4a2d80
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a2f7a
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004a2024
mov edx, 0x4a2f98
call fcn.0049d060
xor eax, eax
push ebp
push 0x4a2f58
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.004080d8
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00408140
lea eax, [ebp - 0x10]
mov edx, 0x104
call fcn.0040826c
mov cl, 1
mov dl, 1
mov eax, dword [0x44fd54]
call fcn.004502a8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a2f24
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a2e11
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004080d8
push eax
call sub.kernel32.dll_FindFirstVolumeW
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a2f13
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x4a2e50
mov ecx, 0x4a2fdc
mov dl, 1
mov eax, dword [0x4174a8]
call fcn.00422c7c
call fcn.00406bfc
mov eax, dword [ebp - 0x10]
call fcn.004080d8
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00408140
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.004a2c04
mov dl, 1
mov eax, dword [0x4a0a68]
call fcn.00405860
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov edx, dword [ebp - 0xc]
call fcn.00407904
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.0043f374
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
call fcn.00407a14
push eax
mov eax, dword [ebp - 0x10]
call fcn.004080d8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextVolumeW
test eax, eax
jne 0x4a2e50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2f1a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindVolumeClose
test eax, eax
jne 0x4a2f12
mov ecx, 0x4a3068
mov dl, 1
mov eax, dword [0x4174a8]
call fcn.00422c7c
call fcn.00406bfc
ret