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

Disassembly:
sub esp, 0x634
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push ebp
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x2a]
mov ebx, ecx
push edi
push eax
mov dword [esp + 0x20], ebx
xor ebp, ebp
mov word [esp + 0x30], di
call fcn.1003d360
push 0x206
lea ecx, [esp + 0x446]
push edi
push ecx
mov word [esp + 0x44c], di
call fcn.1003d360
push 0x206
lea edx, [esp + 0x24a]
push edi
push edx
mov word [esp + 0x250], di
call fcn.1003d360
add esp, 0x24
push edi
push 0x10057090
mov ecx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
call fcn.10001bf0
cmp dword [esi + 0x18], edi
je 0x10025361
cmp dword [esi + 0x1c], 8
jb 0x1002535c
mov ebx, dword [esi + 8]
jmp 0x100253d4
lea ebx, [esi + 8]
jmp 0x100253d4
cmp dword [esi + 0x34], edi
je 0x10025376
cmp dword [esi + 0x38], 8
jb 0x10025371
mov ebx, dword [esi + 0x24]
jmp 0x100253d4
lea ebx, [esi + 0x24]
jmp 0x100253d4
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
push eax
push ecx
call fcn.10024f60
movzx ebp, ax
cmp bp, 0x2e
jne 0x100253ad
mov dword [esi + 0x50], 0x10000101
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.1003c13d
add esp, 0x634
ret
movzx edx, bp
push edx
push str._c:_
lea eax, [esp + 0x2c]
push 0x104
push eax
mov dword [esp + 0x1c], 1
call fcn.1003cd26
add esp, 0x10
lea ebx, [esp + 0x24]
push 0x104
lea ecx, [esp + 0x438]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0x104
lea edx, [esp + 0x244]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x10025415
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
cmp dword [esp + 0xc], edi
je 0x10025444
movzx eax, bp
push eax
push 0x10058458
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.1003cd26
add esp, 0x10
push edi
lea edx, [esp + 0x28]
push edx
push 3
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
cmp dword [esp + 0x10], edi
je 0x10025393
lea eax, [esp + 0x22c]
push eax
push ebx
push str.Volume_Name_for__s:__s
call fcn.10030090
push eax
call fcn.1002f970
lea eax, [esp + 0x23c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10025474
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x230]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.10001bf0
mov ecx, dword [esp + 0x63c]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1003c13d
add esp, 0x634
ret
Function at 0x100254c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x634
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push ebp
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x2a]
mov ebx, ecx
push edi
push eax
mov dword [esp + 0x20], ebx
xor ebp, ebp
mov word [esp + 0x30], di
call fcn.1003d360
push 0x206
lea ecx, [esp + 0x446]
push edi
push ecx
mov word [esp + 0x44c], di
call fcn.1003d360
push 0x206
lea edx, [esp + 0x24a]
push edi
push edx
mov word [esp + 0x250], di
call fcn.1003d360
add esp, 0x24
push edi
push 0x10057090
mov ecx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
call fcn.10001bf0
cmp dword [esi + 0x18], edi
je 0x10025561
cmp dword [esi + 0x1c], 8
jb 0x1002555c
mov ebx, dword [esi + 8]
jmp 0x100255d4
lea ebx, [esi + 8]
jmp 0x100255d4
cmp dword [esi + 0x34], edi
je 0x10025576
cmp dword [esi + 0x38], 8
jb 0x10025571
mov ebx, dword [esi + 0x24]
jmp 0x100255d4
lea ebx, [esi + 0x24]
jmp 0x100255d4
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
push eax
push ecx
call fcn.10024f60
movzx ebp, ax
cmp bp, 0x2e
jne 0x100255ad
mov dword [esi + 0x50], 0x10000101
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.1003c13d
add esp, 0x634
ret
movzx edx, bp
push edx
push str._c:_
lea eax, [esp + 0x2c]
push 0x104
push eax
mov dword [esp + 0x1c], 1
call fcn.1003cd26
add esp, 0x10
lea ebx, [esp + 0x24]
push 0x104
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0x104
lea edx, [esp + 0x44c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x10025615
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
cmp dword [esp + 0xc], edi
je 0x10025644
movzx eax, bp
push eax
push 0x10058458
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.1003cd26
add esp, 0x10
push edi
lea edx, [esp + 0x28]
push edx
push 3
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
cmp dword [esp + 0x10], edi
je 0x10025593
lea eax, [esp + 0x22c]
push eax
push ebx
push str.File_System_for__s:__s
call fcn.10030090
push eax
call fcn.1002f970
lea eax, [esp + 0x23c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10025674
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x230]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.10001bf0
mov ecx, dword [esp + 0x63c]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1003c13d
add esp, 0x634
ret
Function at 0x10025b80
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x36]
push edi
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
xor ebx, ebx
mov word [esp + 0x3c], di
call fcn.1003d360
add esp, 0xc
cmp dword [esi + 0x18], edi
mov dword [esp + 0xc], edi
je 0x10025be9
cmp dword [esi + 0x1c], 8
jb 0x10025be4
mov eax, dword [esi + 8]
jmp 0x10025c5a
lea eax, [esi + 8]
jmp 0x10025c5a
cmp dword [esi + 0x34], edi
je 0x10025bfe
cmp dword [esi + 0x38], 8
jb 0x10025bf9
mov eax, dword [esi + 0x24]
jmp 0x10025c5a
lea eax, [esi + 0x24]
jmp 0x10025c5a
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
push ecx
push edx
call fcn.10024f60
movzx ebx, ax
cmp bx, 0x2e
jne 0x10025c33
mov dword [esi + 0x50], 0x10000101
xor eax, eax
xor edx, edx
pop edi
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
movzx eax, bx
push eax
push str._c:_
lea ecx, [esp + 0x38]
push 0x104
push ecx
mov dword [esp + 0x1c], 1
call fcn.1003cd26
add esp, 0x10
lea eax, [esp + 0x30]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, edi
mov dword [esp + 0x24], eax
jne 0x10025c81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
cmp dword [esp + 0xc], edi
je 0x10025cb0
movzx eax, bx
push eax
push 0x10058458
lea ecx, [esp + 0x38]
push 0x104
push ecx
call fcn.1003cd26
add esp, 0x10
push edi
lea edx, [esp + 0x34]
push edx
push 3
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
cmp dword [esp + 0x24], edi
je 0x10025c1b
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sbb edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x23c]
mov dword [esi + 0x50], edi
pop edi
pop ebx
xor ecx, esp
call fcn.1003c13d
mov esp, ebp
pop ebp
ret
Function at 0x10027280
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call fcn.1003d360
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002732e
push edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x400
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x1002732e
mov eax, dword [esp + 0x44]
movzx eax, word [esp + eax + 0xc]
cmp eax, 0x14c
je 0x1002732e
xor ecx, ecx
cmp eax, 0x8664
sete cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.1003c13d
add esp, 0x408
ret
mov ecx, dword [esp + 0x408]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1003c13d
add esp, 0x408
ret

Function at 0x10027350
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push 0x206
lea eax, [esp + 0x1e]
push 0
push eax
mov word [esp + 0x24], 0
call fcn.1003d360
movzx ecx, word [esp + 0x234]
push ecx
push str.._c:
xor eax, eax
lea edx, [esp + 0x2c]
push 0x104
push edx
or ebx, 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.1003cd26
add esp, 0x1c
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002740c
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xc
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10027405
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x220]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1003c13d
add esp, 0x21c
ret 4
Function at 0x10027590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ec60
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10063790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [esi + 0x50], 0xffffffff
jne 0x100275d0
push 0x10000101
jmp 0x1002775d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x100275e1
push 0x10000003
jmp 0x1002775d
mov edi, dword [ebp + 0xc]
test edi, edi
jl 0x10027758
mov ebx, dword [ebp + 8]
jg 0x100275f9
test ebx, ebx
jb 0x10027758
cmp edi, dword [esi + 0x24]
jg 0x10027758
jl 0x1002760d
cmp ebx, dword [esi + 0x20]
ja 0x10027758
mov eax, dword [esi + 0x38]
imul eax, ecx
push eax
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x1002762c
push 0x10000004
jmp 0x1002775d
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0x3c]
xor eax, eax
push eax
mov eax, dword [esi + 0x38]
push ecx
push edx
push eax
call fcn.1003db20
add eax, ebx
adc edx, edi
cmp edx, dword [esi + 0x24]
jb 0x10027658
ja 0x10027758
cmp eax, dword [esi + 0x20]
ja 0x10027758
mov edx, dword [esi + 0x50]
push 0
lea ecx, [ebp - 0x28]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10027748
mov eax, dword [esi + 0x38]
xor edi, edi
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call fcn.1003bdcc
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [ebp - 4], 0xffffffff
je 0x10027754
xor eax, eax
mov dword [ebp - 0x18], edi
jl 0x10027710
jg 0x100276a8
cmp dword [ebp + 0x10], eax
jbe 0x10027710
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x50]
push 0
lea ecx, [ebp + 0xc]
push ecx
push edx
push ebx
push eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002773f
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, dword [esi + 0x38]
jne 0x1002773f
cmp ecx, dword [esi + 0x3c]
jne 0x1002773f
mov ecx, dword [esi + 0x38]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x20]
push ecx
add edx, eax
push ebx
push edx
call fcn.1003d7b0
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
add esp, 0xc
add dword [ebp - 0x18], 1
adc edi, 0
add dword [ebp - 0x20], ecx
adc dword [ebp - 0x1c], edx
xor eax, eax
cmp edi, eax
jl 0x100276a8
jg 0x10027710
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x18], eax
jb 0x100276a8
push ebx
call fcn.1003c1aa
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
call fcn.1003c1aa
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x1002775d
push 8
jmp 0x1002775d
push 0x10000002
lea ecx, [esi + 0x74]
call fcn.1002f510
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10028af0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1004ede6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10063790]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esi], vtable.stlib::CSTDisk.0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
lea ecx, [esi + 0x74]
mov dword [esp + 0x18], edi
call fcn.1002f490
push 1
push str.SeBackupPrivilege
mov byte [esp + 0x20], 1
call fcn.10032020
push 1
push str.SeRestorePrivilege
call fcn.10032020
push 1
push str.SeSecurityPrivilege
call fcn.10032020
add esp, 0x18
mov dword [esi + 0x54], edi
mov dword [esi + 8], edi
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x58], edi
mov dword [esi + 0x70], 1
mov dword [esi + 0x5c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1002a010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1004eedb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10063790]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x30]
mov dword [esi], vtable.stlib::CSTPartition.0
call fcn.1002a350
xor ebx, ebx
lea ecx, [esi + 0x8c8]
mov dword [esp + 0x18], ebx
call fcn.1002f490
or eax, 0xffffffff
push 0x208
mov dword [esi + 0x488], eax
mov dword [esi + 0x8c4], eax
lea eax, [esi + 0x48c]
push ebx
push eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x89c], bl
mov dword [esi + 0x8a0], ebx
mov dword [esi + 0x8a4], ebx
mov dword [esi + 0x8a8], ebx
mov dword [esi + 0x8b0], ebx
mov dword [esi + 0x8b4], ebx
mov dword [esi + 0x8b8], ebx
mov dword [esi + 8], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x28], 0x200
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x8bc], 0x10
mov dword [esi + 0x8ac], ebx
mov dword [esi + 0x8c0], ebx
call fcn.1003d360
push 0x208
lea ecx, [esi + 0x694]
push ebx
push ecx
call fcn.1003d360
add esp, 0x18
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x1002a110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1004ef0b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10063790]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.stlib::CSTPartition.0
lea ecx, [esi + 0x8c8]
mov dword [esp + 0x14], 0
call fcn.1002f500
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0xffffffff
call fcn.1002a3c0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x1002a2e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1004ef49
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10063790]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x30]
mov dword [esi], vtable.stlib::CSTPartition.0
call fcn.1002a350
lea ecx, [esi + 0x8c8]
mov dword [esp + 0x14], 0
call fcn.1002f490
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x18], 1
call fcn.1002a180
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x1002a470
Capabilities:
Get disk information

Disassembly:
sub esp, 0x218
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
push 0x206
lea eax, [esp + 0x1e]
push 0
push eax
mov esi, ecx
mov word [esp + 0x24], 0
call fcn.1003d360
mov ebp, dword [esp + 0x238]
add esp, 0xc
lea ecx, [ebp + ebp]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x1002a4d9
push 0x10000002
lea ecx, [esi + 0x42c]
call fcn.1002f510
xor eax, eax
jmp 0x1002a58e
mov word [ebx], 0
cmp dword [esi + 0x428], 0
push edi
lea edi, [esi + 4]
je 0x1002a50a
cmp word [edi], 0
jne 0x1002a520
cmp word [esi + 0x20c], 0
lea edi, [esi + 0x20c]
je 0x1002a57b
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
jmp 0x1002a520
cmp word [edi], 0
jne 0x1002a520
cmp word [esi + 0x20c], 0
lea edi, [esi + 0x20c]
je 0x1002a57b
push 0x104
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1002a55f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esi + 0x42c]
call fcn.1002f510
mov word [ebx], 0
jmp 0x1002a58b
push ebx
push edi
push str.Volume_Name_for__s:__s
call fcn.10030090
push eax
call fcn.1002f970
add esp, 0x10
mov eax, 1
jmp 0x1002a58d
push 0x10000101
lea ecx, [esi + 0x42c]
call fcn.1002f510
xor eax, eax
pop edi
mov ecx, dword [esp + 0x220]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003c13d
add esp, 0x218
ret 8
Function at 0x1002a5b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x218
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
push 0x206
lea eax, [esp + 0x1e]
push 0
push eax
mov esi, ecx
mov word [esp + 0x24], 0
call fcn.1003d360
mov ebp, dword [esp + 0x238]
add esp, 0xc
lea ecx, [ebp + ebp]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x1002a619
push 0x10000002
lea ecx, [esi + 0x42c]
call fcn.1002f510
xor eax, eax
jmp 0x1002a6ce
mov word [ebx], 0
cmp dword [esi + 0x428], 0
push edi
lea edi, [esi + 4]
je 0x1002a64a
cmp word [edi], 0
jne 0x1002a660
cmp word [esi + 0x20c], 0
lea edi, [esi + 0x20c]
je 0x1002a6bb
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
jmp 0x1002a660
cmp word [edi], 0
jne 0x1002a660
cmp word [esi + 0x20c], 0
lea edi, [esi + 0x20c]
je 0x1002a6bb
push ebp
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x104
lea edx, [esp + 0x34]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1002a69f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esi + 0x42c]
call fcn.1002f510
mov word [ebx], 0
jmp 0x1002a6cb
push ebx
push edi
push str.File_System_for__s:__s
call fcn.10030090
push eax
call fcn.1002f970
add esp, 0x10
mov eax, 1
jmp 0x1002a6cd
push 0x10000101
lea ecx, [esi + 0x42c]
call fcn.1002f510
xor eax, eax
pop edi
mov ecx, dword [esp + 0x220]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003c13d
add esp, 0x218
ret 8

Function at 0x1002a850
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea esi, [ebx + 0x43]
lea ebx, [ebx]
test ebx, ebx
jne 0x1002a8ee
movzx eax, si
push eax
push str._c:_
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.10003980
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call edi
cmp eax, 3
je 0x1002a8b7
lea eax, [esp + 0x10]
push eax
call edi
cmp eax, 2
jne 0x1002a8dd
push esi
call fcn.10031e80
add esp, 4
cmp eax, dword [esp + 0x220]
jne 0x1002a8dd
push esi
call fcn.10031f40
add esp, 4
cmp eax, ebp
jne 0x1002a8dd
mov ebx, 1
jmp 0x1002a8e0
add esi, 1
cmp si, 0x5a
jbe 0x1002a880
test ebx, ebx
mov ax, 0x2e
je 0x1002a8f1
mov ax, si
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003c13d
add esp, 0x20c
ret 8
Function at 0x1002ae20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x1004efa8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10063790]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
push str.TCHAR_CSTVolume::GetFreeVolume__
mov edi, 0x43
call fcn.10030090
push eax
call fcn.10030100
add esp, 8
mov ebp, 7
xor esi, esi
lea ebx, [edi - 0x3b]
jmp 0x1002ae80
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
push edi
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], esi
call fcn.1002ad70
push 2
push 0x1005b6ec
lea ecx, [esp + 0x1c]
call fcn.100019e0
cmp dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x18]
jae 0x1002aebb
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
mov dword [esp + 0x3c], 0xffffffff
je 0x1002aefc
add edi, 1
cmp dword [esp + 0x2c], ebx
jb 0x1002aee5
mov eax, dword [esp + 0x18]
push eax
call fcn.1003c1aa
add esp, 4
cmp di, 0x5a
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
jbe 0x1002ae80
push 0x2e
jmp 0x1002af1d
cmp dword [esp + 0x2c], ebx
jb 0x1002af0f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1003c1aa
add esp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
push edi
call fcn.10030090
mov ecx, eax
call fcn.1002fdd0
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1003c13d
add esp, 0x2c
ret
Function at 0x1002bfb0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, 0x43
lea esp, [esp]
movzx eax, si
push eax
push str._c:_
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.10003980
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 1
je 0x1002c017
add esi, 1
cmp si, 0x5a
jbe 0x1002bfe0
mov eax, 0x80070003
jmp 0x1002c058
lea esi, [esp + 0xc]
mov edx, 0x104
mov eax, ebx
sub esi, ebx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1002c04a
movzx ecx, word [esi + eax]
test cx, cx
je 0x1002c04a
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1002c024
sub eax, 2
mov word [eax], dx
jmp 0x1002c056
test edx, edx
jne 0x1002c051
sub eax, 2
mov word [eax], 0
xor eax, eax
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c13d
add esp, 0x20c
ret 8

Function at 0x1002cb20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1004f7ab
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10063790]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esi], vtable.stlib::CSTVdsDisk.0
call fcn.1002f490
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0xffffffff
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret