joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004700
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
test byte [0x10012028], 8
jne 0x10004790
test ebx, ebx
je 0x100047dd
mov dword [esp + 4], 0xc
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [ebx], eax
sub esp, 8
test eax, eax
je 0x100047e4
lea eax, [ebp - 8]
mov dword [esp + 4], 4
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
sub esp, 8
test al, al
je 0x100047c8
mov eax, dword [ebp - 8]
mov dword [esp + 8], str.rad_05X.tmp
mov dword [esp + 4], 0xd
and eax, 0xfffff
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._swprintf
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 8
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], str._p___p._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.filesys_GetTempName
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004713
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
mov eax, 0x80004005
sub esp, 4
jmp 0x10004780
mov eax, 0x80004003
jmp 0x10004780
mov eax, 0x8007000e
jmp 0x10004780

Function at 0x100047f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test byte [0x10012028], 8
jne 0x100048a0
test esi, esi
je 0x100048df
xor edx, edx
mov word [esi], dx
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_SysStringLen]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x10004840
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
movzx eax, word [edi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towupper]
lea edx, [eax - 0x41]
cmp dx, 0x19
ja 0x1000482b
cmp ebx, 1
je 0x10004870
cmp word [edi + 2], 0x3a
jne 0x1000482b
cmp ebx, 2
je 0x10004870
cmp word [edi + 4], 0x5c
jne 0x1000482b
lea esi, [esi]
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x12], 0x5c003a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub esp, 4
cmp eax, 1
seta al
movzx eax, al
neg eax
mov word [esi], ax
jmp 0x1000482b
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._p__s__p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.filesys_DriveExists
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000480c
mov eax, 0x80004003
jmp 0x1000482d
Function at 0x100048f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x18
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test byte [0x10012028], 8
jne 0x10004960
add esi, 8
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub esp, 4
cmp eax, 6
ja case.0x1000491f.0
jmp dword [eax*4 + 0x10014e34]
mov eax, 2
mov dword [ebx], eax
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 8
mov eax, 1
mov dword [ebx], eax
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 8
lea eax, [esi - 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.drive_get_DriveType
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004907
mov eax, 5
mov dword [ebx], eax
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 8
mov eax, 3
mov dword [ebx], eax
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 8
mov eax, 4
mov dword [ebx], eax
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 8
xor eax, eax
mov dword [ebx], eax
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 8

Function at 0x100049f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x22c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x10012028], 8
jne 0x10004a80
test esi, esi
je 0x10004abf
lea edi, [ebp - 0x216]
add ebx, 8
mov dword [esi], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x105
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
je 0x10004ab8
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esi], eax
sub esp, 4
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea eax, [ebx - 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.drive_get_VolumeName
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004a0b
mov eax, 0x80004005
jmp 0x10004a76
mov eax, 0x80004003
jmp 0x10004a76
Function at 0x10004ad0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x22c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x10012028], 8
jne 0x10004b60
test esi, esi
je 0x10004b9f
lea edi, [ebp - 0x216]
add ebx, 8
mov dword [esi], 0
mov dword [esp + 0x1c], 0x105
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
je 0x10004b98
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esi], eax
sub esp, 4
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea eax, [ebx - 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.drive_get_FileSystem
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004aeb
mov eax, 0x80004005
jmp 0x10004b56
mov eax, 0x80004003
jmp 0x10004b56

Function at 0x10004bb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x10012028], 8
jne 0x10004c28
test esi, esi
je 0x10004c5c
add ebx, 8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
cmp eax, 1
sbb eax, eax
and eax, 0x80004005
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
lea eax, [ebx - 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.drive_get_SerialNumber
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004bc7
mov eax, 0x80004003
jmp 0x10004c1c

Function at 0x10004c70
Capabilities:
Get disk size

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x24
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test byte [0x10012028], 8
jne 0x10004cd8
test esi, esi
je 0x10004d09
lea eax, [ebp - 0x18]
add ebx, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
neg eax
sbb ax, ax
mov word [esi], ax
xor eax, eax
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
lea eax, [ebx - 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.drive_get_IsReady
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004c91
mov eax, 0x80004003
jmp 0x10004cc5
Function at 0x10005460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test byte [0x10012028], 8
jne 0x100054b0
test ebx, ebx
je 0x100054ec
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor edx, edx
sub esp, 4
cmp eax, 0xffffffff
je 0x1000549b
shr eax, 4
xor eax, 1
and eax, 1
neg eax
mov edx, eax
mov word [ebx], dx
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._p__s__p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.filesys_FileExists
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10005477
mov eax, 0x80004003
jmp 0x100054a0

Function at 0x10005500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test byte [0x10012028], 8
jne 0x10005550
test ebx, ebx
je 0x1000558c
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor edx, edx
sub esp, 4
cmp eax, 0xffffffff
je 0x10005538
shr eax, 4
and eax, 1
neg eax
mov edx, eax
mov word [ebx], dx
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._p__s__p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.filesys_FolderExists
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10005517
mov eax, 0x80004003
jmp 0x1000553d
Function at 0x10005870
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x474
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x10012028], 8
jne 0x10005930
test esi, esi
je 0x1000598a
mov dword [esi], 0
mov eax, dword [ebx + 8]
lea edi, [ebp - 0x25c]
lea ebx, [ebp - 0x464]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp], ebx
mov dword [esp + 4], 0x10014ea6
call dword [sym.imp.ucrtbase.dll_wcscat]
mov dword [esp], ebx
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov ebx, eax
cmp eax, 0xffffffff
je 0x10005968
lea esi, [esi]
test byte [ebp - 0x25c], 0x10
jne 0x100058f4
add dword [esi], 1
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x100058e8
mov dword [ebp - 0x468], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindClose]
mov edx, dword [ebp - 0x468]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea eax, [ebx - 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.filecoll_get_Count
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000588f
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovg edx, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret 8
mov edx, 0x80004003
jmp 0x10005920

Function at 0x10005ca0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test byte [0x10012028], 8
jne 0x10005d00
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x10005d40
mov dword [esi], 0
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
je 0x10005d52
mov eax, dword [eax + 0x34]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovg eax, edx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x10014eac
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.filesys_CreateFolder
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10005cb7
mov edx, esi
mov eax, ebx
call sym._create_folder
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, 0x800a003a
jmp 0x10005cf5
Function at 0x10005d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test byte [0x10012028], 8
jne 0x10005db0
test ebx, ebx
je 0x10005dfe
mov dword [ebx], 0
test esi, esi
je 0x10005df7
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x10005df0
test al, 0x10
je 0x10005df0
mov edx, ebx
mov eax, esi
call sym._create_folder
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._p__s__p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.filesys_GetFolder
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10005d77
mov eax, 0x800a004c
jmp 0x10005da7
mov eax, 0x80070057
jmp 0x10005da7
mov eax, 0x80004003
jmp 0x10005da7

Function at 0x10005e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x224
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test byte [0x10012028], 8
jne 0x10005ee0
test esi, esi
je 0x10005f8a
mov dword [esi], 0
cmp ebx, 1
je 0x10005f40
cmp ebx, 2
je 0x10005e90
test ebx, ebx
jne 0x10005f20
lea ebx, [ebp - 0x210]
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
sub esp, 8
test eax, eax
jne 0x10005ec6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovg eax, edx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
lea ebx, [ebp - 0x210]
mov dword [esp], 0x104
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
test eax, eax
je 0x10005e70
cmp word [ebp + eax*2 - 0x212], 0x5c
lea edx, [eax - 1]
jne 0x10005ec6
xor eax, eax
mov word [ebp + edx*2 - 0x210], ax
mov edx, esi
mov eax, ebx
call sym._create_folder
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._p__d__p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.filesys_GetSpecialFolder
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10005e2e
test byte [0x10012028], 1
jne 0x10005f60
lea esp, [ebp - 8]
mov eax, 0x80070057
pop ebx
pop esi
pop ebp
ret 0xc
lea ebx, [ebp - 0x210]
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
jmp 0x10005e6c
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.unknown_special_folder_type___d_n
mov dword [esp + 8], str.filesys_GetSpecialFolder
mov dword [esp + 4], 0x10012028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x10005f29
mov eax, 0x80004003
jmp 0x10005e87
Function at 0x10006390
Capabilities:
Get file version info

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x64
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
test byte [0x10012028], 8
jne 0x100064e8
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
sub esp, 8
test eax, eax
jne 0x10006400
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovg eax, edx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp], eax
mov dword [ebp - 0x58], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x58]
mov ebx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], edi
call dword [sym.imp.version.dll_GetFileVersionInfoW]
sub esp, 0x10
test eax, eax
je 0x10006528
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10014dcc
mov dword [esp], ebx
call dword [sym.imp.version.dll_VerQueryValueW]
sub esp, 0x10
test eax, eax
je 0x10006528
mov eax, dword [ebp - 0x50]
lea edi, [ebp - 0x4c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
movzx eax, word [eax + 0xc]
mov dword [esp + 0x18], eax
mov eax, edx
shrd eax, ecx, 0x10
mov dword [ebp - 0x58], edx
movzx eax, ax
mov dword [ebp - 0x54], ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x54]
mov dword [esp + 8], str._d._d._d._d
movzx eax, cx
mov dword [esp + 4], 0x1e
mov dword [esp + 0x10], eax
mov eax, ecx
shr eax, 0x10
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._swprintf
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esi], eax
sub esp, 4
test byte [0x10012028], 8
jne 0x10006540
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str._p__s__p_n
mov dword [esp + 8], str.filesys_GetFileVersion
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100063b9
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x100063d1
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.version_s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.filesys_GetFileVersion
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
xor eax, eax
jmp 0x100064d4
Function at 0x10009540
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x474
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test byte [0x10012028], 8
jne 0x10009648
test ebx, ebx
je 0x100096a2
mov dword [ebx], 0
mov eax, dword [esi + 8]
lea edi, [ebp - 0x464]
lea esi, [ebp - 0x25c]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp], edi
mov dword [esp + 4], 0x10014ea6
call dword [sym.imp.ucrtbase.dll_wcscat]
mov dword [esp], edi
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
jne 0x100095d4
jmp 0x10009680
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x10009620
test byte [ebp - 0x25c], 0x10
je 0x100095c0
lea eax, [ebp - 0x230]
mov dword [esp + 4], 0x10014dd4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x100095c0
lea eax, [ebp - 0x230]
mov dword [esp + 4], 0x10014dda
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x100095c0
add dword [ebx], 1
jmp 0x100095c0
mov dword [ebp - 0x468], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindClose]
mov edx, dword [ebp - 0x468]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea eax, [esi - 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.foldercoll_get_Count
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000955f
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovg edx, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret 8
mov edx, 0x80004003
jmp 0x10009638
Function at 0x100099c0
Capabilities:
Get disk size

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x24
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
test byte [0x10012028], 8
jne 0x10009a80
test ebx, ebx
je 0x10009abf
lea eax, [ebp - 0x18]
add esi, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test eax, eax
je 0x10009ab8
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x10009a48
mov eax, dword [ebp - 0x18]
test eax, eax
js 0x10009a48
mov edx, 3
mov dword [ebx + 8], eax
xor eax, eax
mov word [ebx], dx
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
mov ecx, 5
add ebx, 8
mov word [ebx - 8], cx
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.oleaut32.dll_VarR8FromUI8]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
lea eax, [esi - 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.drive_get_AvailableSpace
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100099e5
mov eax, 0x80004005
jmp 0x10009a6e
mov eax, 0x80004003
jmp 0x10009a6e

Function at 0x10009ad0
Capabilities:
Get disk size

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x24
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
test byte [0x10012028], 8
jne 0x10009b90
test ebx, ebx
je 0x10009bcf
lea eax, [ebp - 0x18]
add esi, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test eax, eax
je 0x10009bc8
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x10009b58
mov eax, dword [ebp - 0x18]
test eax, eax
js 0x10009b58
mov edx, 3
mov dword [ebx + 8], eax
xor eax, eax
mov word [ebx], dx
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
mov ecx, 5
add ebx, 8
mov word [ebx - 8], cx
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.oleaut32.dll_VarR8FromUI8]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
lea eax, [esi - 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10014e28
mov dword [esp + 8], str.drive_get_FreeSpace
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10009af5
mov eax, 0x80004005
jmp 0x10009b7e
mov eax, 0x80004003
jmp 0x10009b7e