joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67907dd5
Capabilities:
Set registry value

Disassembly:
mov eax, dword [sym.MfcHlpr520.dll_class_CString_CMHPRegistryManager::m_strINIFileName]
push esi
mov esi, ecx
push edi
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x67907e48
mov ecx, esi
call sym.MfcHlpr520.dll_private:_int___thiscall_CMHPRegistryManager::GetProfileInfo_void_
test eax, eax
jne 0x67907df0
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
push 0x2001f
push eax
mov ecx, esi
call dword [edx + 8]
mov edi, eax
test edi, edi
jne 0x67907e0c
pop edi
pop esi
ret 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 4
push ecx
push 4
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov dword [esi + 0x10], eax
push edi
je 0x67907e38
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
ret 0xc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPRegistryManager::WriteProfileInt_char_const___char_const___int_
pop edi
pop esi
ret 0xc
Function at 0x67907e8f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6798dcf8
push eax
mov eax, dword [sym.MfcHlpr520.dll_class_CString_CMHPRegistryManager::m_strINIFileName]
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax - 8]
push edi
test ecx, ecx
jne 0x67907f28
mov ecx, esi
call sym.MfcHlpr520.dll_private:_int___thiscall_CMHPRegistryManager::GetProfileInfo_void_
test eax, eax
je 0x67907f8f
mov eax, dword [esp + 0x28]
mov edx, dword [esi]
push 0x20019
push eax
mov ecx, esi
call dword [edx + 8]
mov edi, eax
test edi, edi
je 0x67907f8f
mov ebx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push edx
push 0
push ebx
push edi
call ebp
test eax, eax
mov dword [esi + 0x10], eax
je 0x67907ef9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x67907f8f
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push ebx
push edi
call ebp
test eax, eax
mov dword [esi + 0x10], eax
push edi
je 0x67907f20
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x67907f8f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x67907f8a
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
push 0
push edi
lea eax, [esp + 0x34]
push ebx
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CString___thiscall_CMHPRegistryManager::GetProfileStringA_char_const___char_const___char_const__
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], 0
mov eax, dword [ecx - 8]
test eax, eax
jne 0x67907f68
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x67907f8f
push 0
push edi
push ebx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_int___thiscall_CMHPRegistryManager::GetProfileIntA_char_const___char_const___int_
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
mov dword [edx], eax
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x67908110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6798dd4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
push sym.MfcHlpr520.dll____C__00A___AA_
lea ecx, [esi + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPSizeIcon::constructor_void_
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x74], 0x679acfe4
mov dword [esi + 0x78], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], edi
mov dword [esi], sym.MfcHlpr520.dll_const_CMHPResize::vftable
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x67908794
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x7c]
test eax, eax
jle 0x6790888b
push eax
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x7c]
xor edi, edi
test eax, eax
jle 0x6790884f
push ebp
mov eax, dword [esi + 0x78]
mov ecx, dword [eax + edi*4]
lea eax, [eax + edi*4]
add ecx, 0x14
mov ebx, dword [ecx]
mov ebp, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ecx, dword [eax]
lea edx, [esp + 0x14]
add ecx, 0x14
push edx
call sym.MfcHlpr520.dll_public:_class_CMHPResizeRect____thiscall_CMHPResizeRect::operator_struct_tagRECT_const__
mov eax, dword [esi + 0x78]
push 1
push 1
mov ecx, dword [eax + edi*4]
mov dword [ecx + 0xc], 1
mov eax, dword [esi + 0x78]
mov edx, dword [esi]
mov ecx, dword [eax + edi*4]
lea eax, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [esi + 0x78]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx + edi*4]
mov ecx, dword [esp + 0x30]
add edx, 0x14
inc edi
mov dword [edx], ebx
mov dword [edx + 4], ebp
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 0x7c]
cmp edi, eax
jl 0x679087bc
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
mov eax, dword [esi + 0x7c]
xor edi, edi
test eax, eax
jle 0x6790888b
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x78]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x67908883
mov ecx, dword [eax + 0x10]
push 1
push 0
mov edx, dword [ecx + 0x20]
push edx
call ebx
mov eax, dword [esi + 0x7c]
inc edi
cmp edi, eax
jl 0x67908869
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8
Function at 0x6790c210
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x6798e1f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPListBase::constructor_void_
lea edi, [esi + 0xfc]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPShellPidl::constructor_void_
lea ecx, [esi + 0x114]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString_4
mov dword [esi + 0x118], ebp
lea ebp, [esi + 0x11c]
mov ecx, ebp
mov byte [esp + 0x18], 2
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPShellSettings::constructor_void_
mov eax, dword [ebp]
mov dword [esi], sym.MfcHlpr520.dll_const_CMHPShellListBase::vftablefor__CMHPListBase
test al, 1
mov dword [edi], sym.MfcHlpr520.dll_const_CMHPShellListBase::vftablefor__CMHPShellPidl
mov dword [esi + 0x10c], 1
mov dword [esi + 0x108], 0x60
je 0x6790c2a7
shr eax, 3
test al, 1
jne 0x6790c2a7
mov dword [esi + 0x108], 0xe0
lea edi, [esi + 0x110]
push edi
push 1
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x6790c2c2
mov dword [edi], 0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x104], 0x96
mov dword [esi + 0x120], 0
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x6790c460
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6798e26b
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov eax, dword [esi + 0xf8]
push 0
push 0
push 0xb
mov eax, dword [eax + 0x20]
push eax
call ebp
mov eax, dword [esi + 0xf8]
push 0
push 0
push 0x1009
mov ecx, dword [eax + 0x20]
push ecx
call ebp
mov eax, dword [esi + 0x120]
test eax, eax
je 0x6790c4c8
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 0x120], 0
mov edi, dword [esp + 0x12c]
mov ebx, dword [esp + 0x128]
mov eax, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [eax + 0x94]
test eax, eax
je 0x6790c609
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jle 0x6790c4f9
xor ecx, ecx
mov cl, byte [esi + 0x15]
jmp 0x6790c4fe
mov ecx, 1
xor edx, edx
cmp eax, 0xffffffff
setle dl
dec edx
push ecx
and eax, edx
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [esi + 0x118]
test eax, eax
jne 0x6790c558
push 0
push 4
push 0
push 0xfffffffffffffffe
push sym.MfcHlpr520.dll_struct_CRuntimeClass_const_CMHPDirWatcher::classCMHPDirWatcher
call sub.MFC42.DLL_AfxBeginThread
mov ecx, dword [esi + 0xf8]
push ebx
push ecx
mov ecx, eax
mov dword [esi + 0x118], eax
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPDirWatcher::SetFolderData_class_CWnd___struct_MHP_TVITEMDATA__
mov edx, dword [esi + 0x118]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x6790c5e4
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x6790c5e4
mov ecx, dword [esi + 0x118]
lea eax, [esp + 0x10]
push eax
call sym.MfcHlpr520.dll_public:_class_CString___thiscall_CMHPDirWatcher::GetFolderPath_void_
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x128], 0
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x6790c5d0
mov eax, dword [esi + 0x118]
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [esi + 0xf8]
push ebx
push ecx
mov ecx, dword [esi + 0x118]
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPDirWatcher::SetFolderData_class_CWnd___struct_MHP_TVITEMDATA__
mov eax, dword [esi + 0x118]
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov dword [esi + 0x120], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0xf8]
push 0
push 1
push 0xb
mov edx, dword [ecx + 0x20]
push edx
call ebp
mov eax, 1
jmp 0x6790c61d
mov eax, dword [esi + 0xf8]
push 0
push 1
push 0xb
mov ecx, dword [eax + 0x20]
push ecx
call ebp
xor eax, eax
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 8
Function at 0x6790ce60
Capabilities:
Access peb ldr_data
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x6798e2f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [esp + 0x34]
push 2
push eax
push 0x12
push 0x400
mov dword [esp + 0x6c], 0
mov dword [esp + 0x2c], 0
call esi
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + 0x34]
push ecx
call edi
add esp, 4
lea edx, [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 3
push 4
push edx
push 0xe
push 0x400
call esi
lea ecx, [esp + 0x14]
push 4
push ecx
lea eax, [esp + 0x14]
push 0xf
push 0x400
mov dword [esp + 0x38], eax
call esi
lea eax, [esp + 0x34]
push 2
push eax
lea edx, [esp + 0x1c]
push 0x1010
push 0x400
mov dword [esp + 0x3c], edx
call esi
lea ecx, [esp + 0x34]
push ecx
call edi
mov edx, dword [esp + 0x6c]
add esp, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
push edx
push eax
lea ecx, [esp + 0x10]
push str._I64d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x18]
add esp, 0x10
lea eax, [esp + 0x1c]
push edx
push esi
push eax
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea ecx, [esp + 8]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret 0x10

Function at 0x6790d270
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
push esi
mov esi, ecx
test dword [ebx], 0x32000000
jne 0x6790d2fa
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xf8]
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0xc
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_AfxGetModuleState
mov edx, dword [eax + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
push eax
push ecx
lea ecx, [esi + 0xfc]
mov dword [esp + 0x34], edx
call sym.MfcHlpr520.dll_public:_struct__ITEMIDLIST____thiscall_CMHPShellPidl::GetFullyQualPidl_struct_IShellFolder___struct__ITEMIDLIST__
lea edx, [esp + 0xc]
mov dword [esp + 0x30], eax
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
je 0x6790d2fa
pop esi
mov al, 1
pop ebx
add esp, 0x3c
ret 4
pop esi
xor al, al
pop ebx
add esp, 0x3c
ret 4
Function at 0x6790d780
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6798e378
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x3c]
mov eax, dword [esi + 0xc]
test eax, eax
jl 0x6790d7d5
call sym.MfcHlpr520.dll_public:_class_CMHPFlatHeaderCtrl____thiscall_CMHPListBase::GetFlatHeaderCtrl_void_const
mov ebp, eax
test ebp, ebp
je 0x6790d7d5
push 0
mov ecx, ebp
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPHeaderCtrl::GetSortedCol_int__
test eax, eax
jge 0x6790d7d5
mov eax, edi
mov ecx, ebp
and eax, 0xff
push eax
push ebx
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPHeaderCtrl::SetSortImage_int__int_
test ebx, ebx
jne 0x6790d802
mov esi, dword [esi + 0xf8]
and edi, 0xff
push sym.MfcHlpr520.dll_public:_static_int___stdcall_CMHPShellPidl::ListViewCompareProc_long_int__long_int__long_int_
push edi
mov ecx, dword [esi + 0x20]
push 0x1030
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
dec eax
neg eax
sbb eax, eax
inc eax
jmp 0x6790d85a
mov edx, dword [esi + 0xf8]
mov eax, 2
push ebx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 3
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPSortClass::constructor_class_CListCtrl___int_
mov eax, dword [esp + ebx*4 + 0x18]
lea ecx, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x38], 0
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPSortClass::Sort_bool__enum_MHPSortType_
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPSortClass::destructor_void_
mov al, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x6790ed90
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6798e5c8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push esi
mov dword [esi], edi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jge 0x6790edc3
mov dword [esi], edi
jmp 0x6790ee5a
mov ebx, dword [esp + 0x24]
cmp ebx, edi
je 0x6790ee5a
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x6790ede6
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x6790ee36
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edi
push ecx
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x6790ee36
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push 0x679bc25c
push edi
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x6790ee36
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esi]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi], eax
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x6790ee5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x6790f9b0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x160
lea ecx, [esp]
push eax
push 0x160
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 4]
add esp, 0x160
ret 8
Function at 0x6790f9e0
Capabilities:
Get disk information
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x6798e6f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esp + 0xc], 0x43
mov esi, dword [esp + 0xc]
push 1
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push 0x67a76570
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x18c], 0
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call edi
cmp eax, 3
lea ecx, [esp + 0x18]
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x184], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x6790fa8a
mov al, byte [esp + 0xc]
inc al
cmp al, 0x5a
mov byte [esp + 0xc], al
jle 0x6790fa09
xor eax, eax
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x17c
ret 4
push 1
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
push 0x67a7656c
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x190], 1
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x18c]
mov eax, dword [eax]
or dh, 0x40
lea ecx, [esp + 0x1c]
push edx
push 0x160
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea ecx, [esp + 0xc]
mov esi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x184], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x6790fa70
Function at 0x679101b0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x6798e78b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2cc
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
mov ebp, ecx
push eax
mov dword [esp + 0x14], 0xffff0000
mov dword [esp + 0xc], esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x679101f0
mov dword [esp + 8], esi
mov eax, dword [esp + 8]
mov dword [esp + 0x2dc], esi
cmp eax, esi
jne 0x67910206
xor eax, eax
jmp 0x6791036f
mov edx, dword [esp + 0x2e4]
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x6791022b
mov dword [esp + 0xc], esi
jmp 0x67910352
mov edx, dword [esp + 0xc]
cmp edx, esi
je 0x67910352
push ebx
push edi
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x78]
push 0xa08
rep stosd dword es:[edi], eax
lea eax, [esp + 0x7c]
push 0x160
push eax
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0xc
mov dword [esp + 0x20], 0x27
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x67910339
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x8c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea edi, [ebp + 0x3c]
push edx
push eax
mov ecx, edi
call sym.MfcHlpr520.dll_public:_struct__ITEMIDLIST____thiscall_CMHPShellPidl::DuplicateItem_struct_IMalloc___struct__ITEMIDLIST__
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push esi
push edx
mov ecx, edi
call sym.MfcHlpr520.dll_public:_struct__ITEMIDLIST____thiscall_CMHPShellPidl::ConcatPidls_struct_IMalloc___struct__ITEMIDLIST_const___struct__ITEMIDLIST_const__
mov dword [ebx + 4], eax
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1d8]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [ebp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x40], ebx
and ecx, 3
mov dword [esp + 0x30], 0x104
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1d8]
lea esi, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, 0xa
lea edi, [esp + 0x4c]
mov eax, 0xffff0000
lea edx, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x20]
push edx
push 0
push 0x1100
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x18], eax
xor esi, esi
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, esi
pop ebx
je 0x67910352
mov eax, dword [esp + 8]
cmp eax, esi
je 0x67910356
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 8]
cmp eax, esi
mov dword [esp + 0x2dc], 0xffffffff
je 0x6791036b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2d4]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2d8
ret 4