joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4265c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4b5208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
call sub.MFC42u.DLL_AfxGetModuleState
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
and edx, 0xffff
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [esp + 0x10], ebp
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebx
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 1
push ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4266b3
mov edi, dword [esp + 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4266a5
lea edx, [esp + 0x28]
mov dword [esi], 0x4bc4d0
push edx
push edi
mov dword [esp + 0x30], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStreamICM
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4266c9
mov eax, dword [esp + 0x10]
xor esi, esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4266c9
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4274d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b54d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push str.c:windows_system_sys_syscon_
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42u.DLL_CString::CString_2
push 0
push str.c:windows_system_
mov dword [esp + 0x220], 1
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
test eax, eax
je 0x42756b
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
pop edi
jl 0x42756b
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call fcn.004b0454
push str._system_sys_syscon_
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x224]
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x21c], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret

Function at 0x4275b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b550d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov eax, dword [0x1404c10]
mov ebx, 1
push 0x4e28c0
push eax
mov dword [esp + 0x228], ebx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, esi
je 0x42763b
mov esi, dword [esp + 0x228]
push 0x1404c10
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x22c]
mov byte [esp + 0x220], 0
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
add esp, 0x21c
ret
push edi
push 0x4e28c0
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_2
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 2
push ecx
push esi
push esi
push 0x1c
push esi
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
call fcn.004b0454
push str.TempLow_
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::operator_1
mov esi, dword [esp + 0x22c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x224], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x230]
mov byte [esp + 0x224], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x427b30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b55b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x810
push esi
push edi
push 0x1404c10
lea ecx, [esp + 0xc]
mov word [esp + 0x12], 0
mov word [esp + 0x10], 0x2c
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x828]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x824], 0
call sub.MFC42u.DLL_CString::operator_1
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x82c]
push ecx
push 0x400
push edx
push 0x4e28c0
push eax
push str.HEADER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [esp + 0x18]
push ecx
call esi
add esp, 4
test eax, eax
jbe 0x427c03
lea edx, [esp + 0x18]
push edx
call esi
add esp, 4
cmp eax, 0x3fc
jae 0x427c03
lea eax, [esp + 0x18]
push eax
call esi
add esp, 4
cmp word [esp + eax*2 + 0x16], 0x2c
je 0x427c03
lea ecx, [esp + 0x18]
push 0x4d00d8
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov edx, dword [esp + 0x830]
lea eax, [esp + 0xc]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x830], 1
call sub.MFC42u.DLL_CString::CString_2
mov byte [esp + 0x82c], 0
call fcn.004226d0
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x820], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x818]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x81c
ret
Function at 0x428050
Capabilities:
Check os version
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b56f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push esi
push edi
xor esi, esi
push 0x4e28c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], esi
call sub.MFC42u.DLL_CString::CString_2
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x340], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x18], 6
jb 0x4280c6
push str.C:ProgramDataEAMDATA_
lea ecx, [esp + 0xc]
call fcn.004b0454
jmp 0x42816e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x132]
mov word [esp + 0x130], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x130]
push 0x4d3928
push ecx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea edx, [esp + 0x130]
push edx
push esi
push esi
push 0x19
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x42811e
lea eax, [esp + 0x130]
lea ecx, [esp + 8]
push eax
call fcn.004b0454
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::Left
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
mov byte [esp + 0x344], 2
call sub.MFC42u.DLL_CString::operator_2
push str.EAMDATA_
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x340], 1
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x348]
lea eax, [esp + 8]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x340], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x338]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x33c
ret
Function at 0x4284b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b57a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [esp + 0x24]
push 0xffffffffffffffff
push 0
mov ecx, esi
mov dword [esp + 0x20], 0
call sub.MFC42u.DLL_CStringArray::SetSize
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x28]
push ecx
call fcn.00427c70
add esp, 8
push esi
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov byte [esp + 0x24], 1
mov word [esp + 0x12], 0
mov word [esp + 0x10], 1
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x28], 2
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x24], 1
call fcn.004224e0
mov eax, dword [esi + 8]
mov ecx, 3
cdq
idiv ecx
add esp, 0xc
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x24]
test edx, edx
jne 0x428586
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
xor al, al
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret
Function at 0x428f00
Capabilities:
Get disk information
Get process image filename

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x218
push ebx
push ebp
push esi
push edi
push 0x4e28c0
call fcn.004b0454
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
push 0x105
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x230]
stosw word es:[edi], ax
lea eax, [esp + 0x20]
push eax
push ecx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x42907e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call ebx
mov esi, eax
test esi, esi
je 0x42907e
lea edi, [esi + 1]
lea edx, [edi + edi]
push edx
call sub.MFC42u.DLL_operatornew
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov dword [esp + 0x20], ebp
call ebx
test eax, eax
jne 0x428fa1
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov eax, dword [0x4d39a8]
mov cx, word [0x4d39ac]
push 0x208
mov dword [esp + 0x14], eax
mov word [esp + 0x18], cx
call sub.MFC42u.DLL_operatornew
mov edi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
add esp, 4
mov esi, eax
mov dx, word [edi]
push 0x104
lea eax, [esp + 0x14]
push esi
push eax
mov word [esp + 0x1c], dx
call ebp
test eax, eax
jne 0x429011
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42906b
push esi
call sub.MFC42u.DLL_operatordelete
push 2
call sub.MFC42u.DLL_operatornew
add esp, 8
mov esi, eax
lea ecx, [esp + 0x10]
push 1
push esi
push ecx
call ebp
test eax, eax
je 0x42906b
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, eax
lea edx, [esp + 0x20]
push ebx
push esi
push edx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x42904c
mov ax, word [edi]
add edi, 2
test ax, ax
je 0x429044
mov cx, word [edi]
add edi, 2
test cx, cx
jne 0x429039
cmp word [edi], 0
je 0x42906b
jmp 0x428fcd
mov ecx, dword [esp + 0x230]
lea edx, [esp + ebx*2 + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0x4d072c
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov edx, dword [esp + 0x18]
push edx
call sub.MFC42u.DLL_operatordelete
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x429230
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
xor eax, eax
push ebx
push ebp
mov dword [esp + 0x14], eax
push esi
push edi
mov dword [esp + 0x20], eax
mov ebp, 0x100
push 0x200
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebp
call sub.MFC42u.DLL_operatornew
mov edx, dword [esp + 0x30]
add esp, 4
lea ecx, [esp + 0x18]
mov esi, eax
push 0
push ecx
push edx
call sub.SETUPAPI.dll_CM_Enumerate_Classes
mov ebx, dword [esp + 0x38]
cmp eax, 0x1f
mov dword [ebx], 0
jne 0x42929b
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp eax, 0x25
jne 0x4292b4
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
test eax, eax
je 0x4292ce
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiClassNameFromGuidW]
lea eax, [esp + 0x10]
lea edx, [esp + 0x18]
push eax
push ecx
push esi
push edx
call edi
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x429318
push esi
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
call sub.MFC42u.DLL_operatornew
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
push esi
push ecx
call edi
push 2
push 0
lea edx, [esp + 0x20]
push 0
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x429357
mov eax, dword [esp + 0x30]
push esi
push eax
mov dword [ebx], 0
call dword [sym.imp.MSVCRT.dll_wcscpy]
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0
push 0
push 1
lea ecx, [esp + 0x24]
push 0x2000000
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKeyExW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x429399
mov edx, dword [esp + 0x30]
push esi
push edx
mov dword [ebx], 0
call dword [sym.imp.MSVCRT.dll_wcscpy]
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x2c]
push eax
push ebp
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ebx, dword [sym.imp.MSVCRT.dll_wcscpy]
test eax, eax
je 0x4293c5
push 0x4e28c0
push ebp
call ebx
add esp, 8
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [esp + 0x30]
push esi
push edx
call ebx
mov eax, dword [esp + 0x40]
add esp, 8
push edi
mov dword [eax], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x42bab0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b5c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push str._s_u_netcfgx.dll
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push 0
push eax
push str.regsvr32.exe
push 0
push 0
mov dword [esp + 0x28], 0
call esi
push str._s_u_netshell.dll
lea ecx, [esp + 8]
call fcn.004b0454
mov ecx, dword [esp + 4]
push 1
push 0
push ecx
push str.regsvr32.exe
push 0
push 0
call esi
push str._s_u_netman.dll
lea ecx, [esp + 8]
call fcn.004b0454
mov edx, dword [esp + 4]
push 1
push 0
push edx
push str.regsvr32.exe
push 0
push 0
call esi
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x42bb60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b5c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push str.netcfgx.dll__s
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push 0
push eax
push str.regsvr32.exe
push 0
push 0
mov dword [esp + 0x28], 0
call esi
push str.netshell.dll__s
lea ecx, [esp + 8]
call fcn.004b0454
mov ecx, dword [esp + 4]
push 1
push 0
push ecx
push str.regsvr32.exe
push 0
push 0
call esi
push str.netman.dll__s
lea ecx, [esp + 8]
call fcn.004b0454
mov edx, dword [esp + 4]
push 1
push 0
push edx
push str.regsvr32.exe
push 0
push 0
call esi
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x42cbc0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4b5ea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], ebx
call sub.MFC42u.DLL_CString::CString_1
mov byte [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, ebx
je 0x42cc07
shr eax, 1
jne 0x42cc03
mov ebp, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call ebp
mov edi, eax
lea eax, [edi + edi]
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
call ebp
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp eax, ebx
jle 0x42cc95
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esp + 0x14], eax
mov ebp, 0x3a
mov cx, word [esi]
lea edx, [esp + 0x1c]
mov word [esp + 0x1c], cx
mov word [esp + 0x20], bx
push edx
lea ecx, [esp + 0x14]
mov word [esp + 0x22], bp
mov word [esp + 0x24], bx
call fcn.004b0454
push esi
call edi
cmp eax, 3
je 0x42cc75
cmp eax, 2
jne 0x42cc87
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx + 8]
push eax
call sub.MFC42u.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x14]
add esi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x42cc43
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x42ccd0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4b5ec6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x320
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x122]
mov word [esp + 0x120], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x124]
mov dword [esp + 0x10], 0x41
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x42ce68
push ebp
mov ebp, dword [esp + 0x33c]
push esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_2
lea edx, [esp + 0x128]
mov dword [esp + 0x338], ebx
push edx
mov dword [esp + 0x20], ebx
call fcn.00428bd0
mov esi, eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
call fcn.0042cb60
push esi
call fcn.00428c40
or esi, 0xffffffff
lea edi, [esp + 0x38]
mov ecx, esi
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42cdc2
mov al, byte [esp + 0x24]
cmp al, 0x41
jl 0x42cdc2
cmp al, 0x5a
jg 0x42cdc2
mov ecx, dword [esp + 0x14]
movsx edx, al
and ecx, 0xffff
cmp edx, ecx
jle 0x42cdc2
movsx dx, al
mov word [esp + 0x14], dx
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edx, eax
lea edi, [esp + 0x24]
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42ce1c
cmp edx, 3
jne 0x42ce1c
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00428ae0
add esp, 8
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x340], 1
call sub.MFC42u.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x20]
mov byte [esp + 0x338], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x128]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x12c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
mov dword [esp + 0x338], esi
lea ecx, [esp + 0x10]
je 0x42ce5d
call sub.MFC42u.DLL_CString::CString
jmp 0x42cd39
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x18]
pop esi
pop ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, dword [esp + 0x328]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x32c
ret
Function at 0x42cea0
Capabilities:
Access peb ldr_data
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x4b5ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov ecx, dword [esp + 0x30]
push ebp
push esi
push edi
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
xor esi, esi
push str..PhysicalDrive_u
push ecx
mov dword [esp + 0x3c], esi
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0xc
push esi
push esi
push 3
push esi
push 3
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
or edi, 0xffffffff
cmp ebp, edi
jne 0x42cf10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42cf65
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
push esi
mov dword [esp + 0x24], eax
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], eax
push 8
push edx
lea eax, [esp + 0x2c]
push 0xc
push eax
push 0x2d1400
push ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x42cf86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], edi
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
call sub.MFC42u.DLL_operatornew
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push ebx
push esi
push 0xc
push ecx
push 0x2d1400
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
pop ebx
jne 0x42d008
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov edi, dword [esi + 0x18]
test edi, edi
je 0x42d047
call sub.MFC42u.DLL_AfxGetEmptyString
mov edx, dword [eax]
add edi, esi
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edx
call fcn.004b03dc
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x34], 1
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call sub.MFC42u.DLL_CString::CString
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret