joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a460
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
push str.EdpSecDisk___ClearEdpMountDisk___ENTER___r_n
push 0
mov esi, ecx
push 0x989
push str.CEdpDiskControl::ClearEdpMountDisk
mov ecx, str..ClassEdpDiskControlEdpDiskControl.cpp
call fcn.10010760
push 0x103
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call fcn.10037cf0
push 0x103
lea ecx, [esp + 0x139]
push 0
push ecx
mov byte [esp + 0x140], 0
call fcn.10037cf0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x28
lea ebp, [esi + 0x1a44]
push ebp
push 0x104
lea edx, [esp + 0x1c]
push edx
push 0x1005571a
push str.EDPMountDisk
push str.INFOMATION
lea ebx, [esp + 0x130]
call edi
cmp byte [esp + 0x14], 0
je 0x1001a576
push str.EdpSecDisk___ClearEdpMountDisk___if_m_OldDisk_0___1___r_n
push 0
push 0x992
push str.CEdpDiskControl::ClearEdpMountDisk
mov ecx, str..ClassEdpDiskControlEdpDiskControl.cpp
call fcn.10010760
lea eax, [esp + 0x24]
add esp, 0x10
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001a527
sub eax, esi
je 0x1001a55d
mov al, byte [esp + edx + 0x14]
cmp al, byte [esp + 0x224]
je 0x1001a542
mov byte [ebx], al
inc ebx
lea eax, [esp + 0x14]
inc edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001a550
sub eax, esi
cmp edx, eax
jb 0x1001a532
push ebp
lea eax, [esp + 0x11c]
push eax
push str.EDPMountDisk
push str.INFOMATION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebp
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0x1005571a
push str.USBOnlyReadDisk
push str.INFOMATION
call edi
cmp byte [esp + 0x14], 0
je 0x1001a60e
push str.EdpSecDisk___ClearEdpMountDisk___if_m_OldDisk_0___2___r_n
push 0
push 0x9a2
push str.CEdpDiskControl::ClearEdpMountDisk
mov ecx, str..ClassEdpDiskControlEdpDiskControl.cpp
call fcn.10010760
lea eax, [esp + 0x24]
add esp, 0x10
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001a5c0
sub eax, esi
je 0x1001a5f5
jmp 0x1001a5d0
mov al, byte [esp + edx + 0x14]
cmp al, byte [esp + 0x224]
je 0x1001a5e0
mov byte [ebx], al
inc ebx
lea eax, [esp + 0x14]
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001a5e8
sub eax, esi
cmp edx, eax
jb 0x1001a5d0
push ebp
lea edx, [esp + 0x11c]
push edx
push str.USBOnlyReadDisk
push str.INFOMATION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str.EdpSecDisk___ClearEdpMountDisk___End___r_n
push 0
push 0x9ae
push str.CEdpDiskControl::ClearEdpMountDisk
mov ecx, str..ClassEdpDiskControlEdpDiskControl.cpp
call fcn.10010760
mov ecx, dword [esp + 0x22c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10032551
add esp, 0x210
ret 4
Function at 0x1001aae0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call fcn.10037cf0
mov dl, byte [esp + 0x120]
lea eax, [esp + 0x10]
xor ecx, ecx
push 3
push eax
mov word [esp + 0x19], cx
mov byte [esp + 0x18], dl
call fcn.10032996
add esp, 0x14
add esi, 0x1a44
push esi
push 0x104
lea ecx, [esp + 0x10]
push ecx
push 0x1005571a
push str.DisableCreateDiskInfo
push str.INFOMATION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 8], 0
je 0x1001ab9f
lea edx, [esp + 8]
push 0x104
push edx
call fcn.10032996
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.10033870
add esp, 0x10
test eax, eax
jne 0x1001abb5
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.10032a15
add esp, 0xc
push esi
lea ecx, [esp + 0xc]
push ecx
jmp 0x1001aba5
push esi
lea edx, [esp + 8]
push edx
push str.DisableCreateDiskInfo
push str.INFOMATION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.10032551
add esp, 0x10c
ret 4
Function at 0x1001abd0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x45]
push ebx
push eax
mov byte [esp + 0x4c], bl
call fcn.10037cf0
push 0x103
lea ecx, [esp + 0x159]
push ebx
push ecx
mov byte [esp + 0x160], bl
call fcn.10037cf0
add esp, 0x18
push 0x104
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
cmp esi, ebx
jne 0x1001ac59
lea eax, [esp + 0x148]
push eax
push str._s_vrvpolicy.xml
lea ecx, [esp + 0x48]
push 0x104
push ecx
call fcn.10032b06
add esp, 0x10
jmp 0x1001ac79
push esi
lea edx, [esp + 0x14c]
push edx
push str._s_vrvpolicy__0_d.xml
lea eax, [esp + 0x4c]
push 0x104
push eax
call fcn.10032b06
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.100359f0
add esp, 8
test eax, eax
jne 0x1001acaa
test dword [esp + 0x16], 0x8000
je 0x1001acaa
lea eax, [esp + 0x40]
call fcn.1001c560
test eax, eax
jne 0x1001ad5a
inc esi
cmp esi, 0xa
jl 0x1001ac34
lea eax, [esp + 0x40]
xor esi, esi
mov dword [esp + 0xc], 0x104
test eax, eax
je 0x1001ad5c
lea ecx, [esp + 8]
push ecx
push 0x20019
push ebx
push str.SOFTWAREEDPCenterEDPUDisk
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001ad5c
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push str.PolicyPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001ad08
lea esi, [eax + 1]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x1001ad5c
lea eax, [esp + 0x40]
push str.vrvpolicy.xml
push eax
call fcn.10033870
add esp, 8
test eax, eax
je 0x1001ad5c
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.100359f0
add esp, 8
test eax, eax
jne 0x1001ad5c
test dword [esp + 0x16], 0x8000
je 0x1001ad5c
lea eax, [esp + 0x40]
call fcn.1001c560
test eax, eax
je 0x1001ad5c
mov bl, 1
mov ecx, dword [esp + 0x254]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.10032551
mov esp, ebp
pop ebp
ret
Function at 0x1001c560
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov dword [esp], 0
test eax, eax
jne 0x1001c572
add esp, 8
ret
push esi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001c597
xor eax, eax
pop esi
add esp, 8
ret
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
ja 0x1001c5b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
push ebx
push edi
lea edi, [ebp + 1]
push edi
call fcn.10033bdd
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001c5db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
lea ecx, [edi + 1]
mov eax, edi
mov edx, ebx
mov dword [esp + 0x14], 0
call fcn.10011710
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.UDISK_ACTION_CONTROL
push ebx
call fcn.10033870
add esp, 8
test eax, eax
je 0x1001c67a
jmp 0x1001c620
push str.StartPolicy
push eax
call fcn.10033870
mov esi, eax
add esp, 8
test esi, esi
je 0x1001c64b
push 3
lea ecx, [esi + 0xc]
push 0x1005a2bc
push ecx
call fcn.100340ff
add esp, 0xc
test eax, eax
je 0x1001c672
push str.UDISK_ACTION_CONTROL
push esi
call fcn.10033870
add esp, 8
test eax, eax
jne 0x1001c620
push ebx
call fcn.100332f0
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop ebx
pop ebp
pop esi
add esp, 8
ret
mov dword [esp + 0x10], 1
push ebx
call fcn.100332f0
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop ebx
pop ebp
pop esi
add esp, 8
ret

Function at 0x1001d0b0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1004d188
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10025867
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1001d0f4
push 0x80004005
call fcn.10002d80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push str.GlobalName_File_Mapping_SafeUDsik_REG_Log
push esi
lea ecx, [esp + 0x10]
push str.OpenFileMapping_Fail_LastError
push ecx
mov dword [esp + 0x24], 0
call fcn.100027b0
mov esi, dword [esp + 0x18]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001d153
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x1001d170
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x1004d158
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
push 0x100000
push 0
push 0
push 6
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x1001d24e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10025867
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1001d1d9
push 0x80004005
call fcn.10002d80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push str.GlobalName_File_Mapping_SafeUDsik_REG_Log
push esi
lea ecx, [esp + 0x14]
push str.MapViewOfFile_Fail_LastError
push ecx
mov dword [esp + 0x28], 0
call fcn.100027b0
mov esi, dword [esp + 0x1c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
xor bl, bl
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001d266
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
mov byte [eax], 0
mov ecx, dword [esi + 8]
mov byte [ecx + 1], 0
mov edx, dword [esi + 8]
mov byte [edx + 2], 0
mov eax, dword [esi + 8]
mov byte [eax + 3], 0
mov al, bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x1001d280
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1004d188
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x1001d346
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
test eax, eax
jne 0x1001d346
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10025867
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1001d2e7
push 0x80004005
call fcn.10002d80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push str.GlobalName_File_Mapping_SafeUDsik_REG_Log
push esi
lea ecx, [esp + 0x10]
push str.UnmapViewOfFile_Fail_LastError
push ecx
mov dword [esp + 0x24], 0
call fcn.100027b0
mov esi, dword [esp + 0x18]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001d346
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x1001d360
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1004d188
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x1001d426
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
test eax, eax
jne 0x1001d426
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10025867
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1001d3c7
push 0x80004005
call fcn.10002d80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push str.GlobalName_File_Mapping_SafeUDsik_REG_Log
push esi
lea ecx, [esp + 0x10]
push str.CloseHandle_Fail_LastError
push ecx
mov dword [esp + 0x24], 0
call fcn.100027b0
mov esi, dword [esp + 0x18]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001d426
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x1001d660
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1004e0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor bl, bl
xor esi, esi
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], vtable.CSafeUDiskRegLogFileMapping.0
mov dword [esp + 0x20], esi
push str.GlobalName_File_Mapping_SafeUDsik_REG_Log
push esi
push 6
mov dword [esp + 0x38], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esp + 0x1c], eax
cmp eax, esi
jne 0x1001d6d0
call fcn.1001d0b0
test al, al
jne 0x1001d6d0
push str.RegLog_FileMapping_Initialize_Fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001d79a
lea ecx, [esp + 0x18]
call fcn.1001d170
test al, al
jne 0x1001d6ed
push str.RegLog_FileMapping_Initialize_Fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001d79a
mov ebp, dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push str.GlobalName_Semaphore_Reg_Log_Arrive
push esi
push 0x100002
call ebp
mov edi, eax
test edi, edi
jne 0x1001d71c
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.RegLog_FileMapping_Initialize_Sucess
call ebp
push str.Open_SemaphoreDataArrive_Fail
call ebp
jmp 0x1001d79a
push str.GlobalName_Semaphore_Reg_Log_FileMapping_Mutex
push 0
push 0x100002
call ebp
mov esi, eax
push str.RegLog_FileMapping_Initialize_Sucess
test esi, esi
jne 0x1001d74d
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call ebp
push str.Open_SemaphoreDataArrive_Success
call ebp
push str.Open_SemaphoreMutex_Fail
call ebp
jmp 0x1001d79a
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call ebx
push str.Open_SemaphoreDataArrive_Success
call ebx
push str.Open_SemaphoreMutex_Success
call ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x34]
lea ebx, [esp + 0x18]
call fcn.1001d440
test al, al
je 0x1001d782
mov byte [esp + 0x17], 1
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
push 1
push esi
call ebx
push 0
push 1
push edi
call ebx
mov bl, byte [esp + 0x17]
lea ecx, [esp + 0x18]
call fcn.1001d280
lea ecx, [esp + 0x18]
call fcn.1001d360
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1001d7b9
push edi
call ebp
test esi, esi
je 0x1001d7c0
push esi
call ebp
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x1001d870
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x214
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x1ff
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.10037cf0
movsx ecx, byte [esp + 0x228]
push ecx
push 0x1005a504
lea edx, [esp + 0x28]
push 0x200
push edx
call fcn.10032b06
add esp, 0x1c
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001d8f4
or eax, eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10032551
add esp, 0x214
ret
push 0
lea ecx, [esp + 8]
push ecx
push 0xc
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 0xc]
pop esi
xor ecx, esp
call fcn.10032551
add esp, 0x214
ret

Function at 0x1001d9f0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x78
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push esi
xor ebx, ebx
push 0x63
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.10037cf0
movsx ecx, byte [esp + 0x90]
push ecx
push 0x1005a528
lea edx, [esp + 0x2c]
push 0x64
push edx
call fcn.10032b06
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001daac
push edi
push 0x227
call fcn.10024af0
add esp, 4
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x227
mov edi, eax
push edi
push 0xc
lea edx, [esp + 0x24]
push edx
push 0x2d1400
push esi
mov dword [edi + 4], 0x227
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001da9b
cmp dword [edi + 0x1c], 7
jne 0x1001da9b
mov ebx, 1
push edi
call fcn.10024afb
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x7c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10032551
add esp, 0x78
ret

Function at 0x1001db10
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1001db62
cmp dword [esp + 0x10], 2
jne 0x1001db62
cmp dword [esp + 4], 6
jb 0x1001db62
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.10032551
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.10032551
add esp, 0x98
ret
Function at 0x1001dc60
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push 0x103
mov esi, eax
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.10037cf0
push esi
push 0x1005a54c
lea edx, [esp + 0x18]
call fcn.1000a700
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, 0x804
je 0x1001dce3
cmp esi, 0xc04
je 0x1001dce3
cmp esi, 0x404
je 0x1001dce3
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10032551
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.10032551
add esp, 0x108
ret
Function at 0x1001df80
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push edi
push str.EdpSecDisk___BroadcastDeviceChange_enter_r_n
call ebp
mov ebx, dword [esp + 0x30]
xor eax, eax
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
cmp ebx, 0x8000
jne 0x1001dfbf
mov esi, 0x100
jmp 0x1001dfcc
cmp ebx, 0x8004
jne 0x1001dfcc
mov esi, 0x80
mov ecx, dword [esp + 0x34]
mov edi, 1
push str.EdpSecDisk___BroadcastDeviceChange__11_r_n
shl edi, cl
call ebp
test esi, esi
je 0x1001e023
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
test edi, eax
je 0x1001e019
push 0
lea edx, [esp + 0x14]
push edx
mov cl, bl
push 1
add cl, 0x41
push esi
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], 0x3a
mov byte [esp + 0x22], 0x5c
mov byte [esp + 0x23], 0
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
inc ebx
cmp ebx, 0x1a
jl 0x1001dfe4
mov ebx, dword [esp + 0x30]
push str.EdpSecDisk___BroadcastDeviceChange__22_r_n
call ebp
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea ecx, [esp + 0x14]
push ecx
push 0x64
xor eax, eax
push eax
lea edx, [esp + 0x24]
push edx
push ebx
push 0x219
push 0xffff
mov dword [esp + 0x34], 0x14
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], edi
mov word [esp + 0x44], ax
call esi
push str.EdpSecDisk___BroadcastDeviceChange__33_r_n
call ebp
cmp ebx, 0x8000
jne 0x1001e097
lea eax, [esp + 0x14]
push eax
push 0x64
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x219
push 0xffff
call esi
push str.EdpSecDisk___BroadcastDeviceChange__44_r_n
call ebp
push str.EdpSecDisk:BroadcastDeviceChange_leave
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x1001e0b0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x2c
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x28], eax
mov al, byte [esp + 0x30]
push ebx
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x28], 0x5c3a41
xor ebx, ebx
lea edx, [esp + 0x14]
mov byte [esp + 0x28], al
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x38], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
cmp eax, ebx
je 0x1001e114
mov edx, dword [esp + 8]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x2c]
pop ebx
xor ecx, esp
call fcn.10032551
add esp, 0x2c
ret