joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c10
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebp
push esi
push edi
call fcn.00424920
mov dword [esp + 0x14], eax
call fcn.0040a5f0
mov ecx, dword [0x4451ac]
xor ebp, ebp
push 0x2b0
mov dword [esp + 0x20], eax
mov eax, dword [0x4451a8]
lea edx, [esp + 0x28]
push ebp
push edx
mov dword [esp + 0x2e8], eax
mov dword [esp + 0x2ec], ecx
mov dword [esp + 0x2c], ebp
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00408e20
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
mov ecx, ebp
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x1c]
test ecx, eax
je 0x401d47
mov edx, dword [esp + 0x14]
test edx, eax
jne 0x401d43
push 0x200
push 0x2b4
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x2ec]
lea eax, [ebp + 0x41]
push edx
mov word [esp + 0x2f0], ax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x401d43
mov eax, dword [ebx + 0x13c]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x2dc]
push ecx
mov edi, eax
call fcn.00407fc0
add esp, 4
push 0
push eax
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push edi
lea esi, [ebx + 0x11c]
push 3
mov ecx, esi
call sub.mfc90u.dll_CListCtrl::InsertItem
mov edi, eax
cmp edi, 0xffffffff
je 0x401d43
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push edi
mov ecx, esi
call sub.mfc90u.dll_CListCtrl::SetItem
mov ecx, dword [esp + 0x10]
mov edx, 1
shl edx, cl
mov ecx, esi
and edx, dword [esp + 0x18]
push edx
push edi
call sub.mfc90u.dll_CListCtrl::SetCheck
inc dword [esp + 0x10]
inc ebp
cmp ebp, 0x20
jl 0x401c78
lea ecx, [ebx + 0x11c]
call sub.mfc90u.dll_CListCtrl::GetHeaderCtrl
cmp dword [0x45647c], 6
push 0
jae 0x401d74
mov eax, dword [eax + 0x20]
push 0
push 0x1214
push eax
jmp 0x401d7f
mov ecx, dword [eax + 0x20]
push 4
push 0x1214
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2e4]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0043ec6a
add esp, 0x2e0
ret
Function at 0x4030f0
Capabilities:
Get disk information
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4420b9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
push ebx
mov dword [ebx + 0x170], eax
mov dword [ebx + 0x174], ecx
call fcn.00403270
cmp dword [ebx + 0x170], 0
je 0x40323e
push 0x415
mov ecx, ebx
call sub.mfc90u.dll_CWnd::GetDlgItem
test eax, eax
je 0x40323e
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov dword [esp + 0x3c], 0
mov edi, dword [ebx + 0x174]
mov esi, dword [ebx + 0x170]
lea edx, [esp + 0x10]
push edx
call fcn.004126e0
test eax, eax
je 0x403234
mov edx, dword [esp + 0x10]
xor eax, eax
push 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
push eax
push eax
push edx
mov word [esp + 0x34], ax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov word [esp + 0x4a], ax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4031f2
lea eax, [esp + 0x14]
push str.NTFS
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
mov ecx, ebx
test eax, eax
jne 0x4031df
push 1
jmp 0x4031e1
push 0
push 0x415
call sub.mfc90u.dll_CWnd::GetDlgItem
mov ecx, eax
call sub.mfc90u.dll_CWnd::ShowWindow
push 0xc
lea ecx, [esp + 0x18]
push ecx
push str._HOMEDRIVE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x403234
push 0
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
mov ecx, ebx
cmp word [esp + 0x14], ax
jne 0x403221
push 1
jmp 0x403223
push 0
push 0x416
call sub.mfc90u.dll_CWnd::GetDlgItem
mov ecx, eax
call sub.mfc90u.dll_CWnd::ShowWindow
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x34
ret 4
Function at 0x4073c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x19c
fldz
mov eax, dword [0x455ea4]
push esi
fstp qword [esp + 4]
push edi
test eax, eax
jne 0x407402
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x455ea4], eax
test eax, eax
jne 0x407402
xor eax, eax
pop edi
pop esi
add esp, 0x19c
ret
push 0
push 0x2c
lea ecx, [esp + 0x44]
push ecx
push 0
call eax
test eax, eax
jne 0x4073f7
push eax
push 0x20
lea edx, [esp + 0x20]
push edx
push 3
call dword [0x455ea4]
test eax, eax
jne 0x4073f7
push eax
push 0x138
lea eax, [esp + 0x70]
push eax
push 2
call dword [0x455ea4]
test eax, eax
jne 0x4073f7
mov ecx, dword [0x455ea8]
mov edx, ecx
or edx, dword [0x455eac]
je 0x407516
fild dword [esp + 0x24]
mov eax, dword [esp + 0x20]
fld qword [0x44c3a8]
fmul st(1), st(0)
fild dword [esp + 0x20]
test eax, eax
jge 0x407470
fadd qword [0x44c3a8]
mov edx, dword [0x455eb0]
faddp st(2)
fild dword [0x455eb4]
fmul st(1)
fild dword [0x455eb0]
test edx, edx
jge 0x407490
fadd qword [0x44c3a8]
faddp st(1)
fsubp st(2)
fldz
fld st(0)
fucomp st(3)
fnstsw ax
test ah, 0x44
jnp 0x4074df
mov eax, dword [esp + 0x68]
fstp st(0)
fild dword [esp + 0x6c]
fmul st(1)
fild dword [esp + 0x68]
test eax, eax
jge 0x4074bb
fadd qword [0x44c3a8]
faddp st(1)
mov dword [esp + 8], ecx
fild dword [0x455eac]
fmulp st(2)
fild dword [esp + 8]
test ecx, ecx
jge 0x4074d7
fadd qword [0x44c3a8]
faddp st(2)
fsubrp st(1)
fdivrp st(1)
jmp 0x4074e3
fstp st(1)
fstp st(1)
mov al, byte [esp + 0x64]
test al, al
je 0x40750a
fld qword [0x44c3a0]
movzx ecx, al
fmul st(1), st(0)
mov dword [esp + 8], ecx
fild dword [esp + 8]
fdivp st(2)
fsubrp st(1)
fadd qword [0x44c388]
jmp 0x407512
fstp st(0)
fld qword [0x44c3a0]
fstp qword [esp + 8]
mov edx, dword [0x455eb8]
or edx, dword [0x455ebc]
jne 0x40754b
push 0x455eb8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x455ec0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fld qword [esp + 8]
pop edi
pop esi
add esp, 0x19c
jmp fcn.0043f810
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 0x10]
mov eax, dword [0x455ebc]
mov edi, dword [esp + 0x14]
push eax
mov eax, dword [0x455eb8]
mov ecx, esi
sub ecx, dword [0x455ec0]
mov edx, edi
sbb edx, dword [0x455ec4]
push eax
push edx
push ecx
call fcn.0043f760
or eax, edx
je 0x4075b8
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
mov dword [0x455ea8], ecx
mov ecx, dword [esp + 0x24]
mov dword [0x455eac], edx
mov dword [0x455eb0], eax
mov dword [0x455eb4], ecx
mov dword [0x455ec0], esi
mov dword [0x455ec4], edi
fld qword [esp + 8]
pop edi
pop esi
add esp, 0x19c
jmp fcn.0043f810
Function at 0x407cd0
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [esi + 0xb0], 0
jne 0x407d06
push 0x446ba8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xb0], eax
test eax, eax
jne 0x407cf3
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov eax, ecx
ret
mov eax, 1
ret

Function at 0x407d10
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [esi + 0xb0], 0
jne 0x407d46
push str.708AEA18_A008_421b_9D09_49C0A46F6DE2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xb0], eax
test eax, eax
jne 0x407d33
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov eax, ecx
ret
mov eax, 1
ret
Function at 0x407dc0
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x440d59
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 7
push 3
call sub.BottDefrag.dll_SetTimeInterval
push 5
call sub.BottDefrag.dll_SetLogNumber
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov ebx, 1
push ebx
push 0x1a
xor esi, esi
push 0x104
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
test eax, eax
je 0x407eac
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
lea ecx, [esp + 0x14]
cmp ax, 0x5c
je 0x407e5d
push 0x446d0c
jmp 0x407e62
push 0x446d24
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
call sub.BottDefrag.dll_SetLogPath
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407eb2
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
jmp 0x407eb2
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push 2
call sub.BottDefrag.dll_SetDefragModel
add esp, 4
call fcn.0040a5f0
xor ecx, ecx
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov edx, ebx
mov ecx, esi
shl edx, cl
test eax, edx
je 0x407f11
lea ecx, [esi + 0x41]
movzx edi, cx
mov ecx, edi
call fcn.004249b0
test eax, eax
jne 0x407f11
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x20], di
call sub.BottDefrag.dll_SetVolumeSettings
add esp, 4
mov ebp, ebx
add esi, ebx
cmp esi, 0x20
jl 0x407ede
push 0
call sub.BottDefrag.dll_SetStatus
add esp, 4
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x407f50
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x2b4], eax
push 0x4011
push 0x2b4
lea eax, [esp + 8]
push eax
push 0x40
push str._SystemRoot_
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x407f9f
push eax
call sub.mfc90u.dll_CImageList::FromHandle
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x2b8
ret
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
xor eax, eax
call fcn.0043ec6a
add esp, 0x2b8
ret

Function at 0x407fc0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x2b4], eax
mov eax, dword [esp + 0x2bc]
push 0x4001
push 0x2b4
lea ecx, [esp + 8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x408010
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x2b8
ret
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
or eax, 0xffffffff
call fcn.0043ec6a
add esp, 0x2b8
ret

Function at 0x408030
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4411d9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x24], 0
call sub.mfc90u.dll_CWnd::GetWindowTextW
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.mfc90u.dll_CDC::FromHandle
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x31
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.mfc90u.dll_CGdiObject::FromHandle
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax - 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x14]
mov dword [ebx], ecx
mov ecx, dword [edi + 0x20]
push eax
push ecx
mov dword [ebx + 4], edx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
Function at 0x408790
Capabilities:
Query service status
Start service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4087b4
pop ebp
pop ebx
add esp, 0x1c
ret
push esi
push 0x34
push 0x446eec
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4087d9
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x40883d
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x408869
test ebp, ebp
jne 0x40883d
lea ecx, [esp + 0x10]
push ecx
mov ebp, 1
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40883d
lea edx, [esp + 0x10]
push edx
push esi
call edi
cmp eax, ebp
jne 0x40883d
jmp 0x408820
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], ebp
je 0x408853
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
cmp eax, ebp
je 0x408820
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret
cmp eax, 1
jne 0x40883d
test ebp, ebp
je 0x40883d
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40883d
lea edx, [esp + 0x10]
push edx
push esi
call edi
cmp eax, 1
jne 0x40883d
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x28]
push eax
call ebp
cmp dword [esp + 0x14], 4
je 0x4088b1
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
cmp eax, 1
je 0x408894
jmp 0x40883d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x40a5f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x14
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [0x4451ac]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
mov eax, dword [0x4451a8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
xor edi, edi
mov esi, 1
mov ecx, edi
shl esi, cl
test ebx, esi
je 0x40a64a
lea eax, [esp + 0x14]
lea edx, [edi + 0x41]
push eax
mov word [esp + 0x18], dx
call ebp
cmp eax, 3
je 0x40a64a
not esi
and ebx, esi
inc edi
cmp edi, 0x20
jl 0x40a625
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0043ec6a
add esp, 0x14
ret

Function at 0x40a890
Capabilities:
Access peb ldr_data
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x43fd59
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [0x4451ac]
mov eax, dword [0x4451a8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
lea ecx, [esp + 8]
mov word [esp + 0x14], dx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
je 0x40a97d
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push str.DiskDefragSSD
push reloc.Config.dll_Ordinal_1
mov dword [esp + 0x1c], ecx
call dword [sym.imp.Config.dll_Ordinal_3]
add esp, 0xc
test eax, eax
jne 0x40a97d
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push esi
push ecx
call dword [sym.imp.Config.dll_Ordinal_12]
mov edx, dword [esp + 0x24]
push edx
mov esi, eax
call dword [sym.imp.Config.dll_Ordinal_1]
add esp, 0x1c
test esi, esi
jne 0x40a97d
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [esi + 1]
jmp 0x40a989
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x24
ret
Function at 0x40a9b0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x43fd19
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ecx, dword [0x4451ac]
mov eax, dword [0x4451a8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
mov word [esp + 0x10], dx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
je 0x40aa75
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
mov ecx, str.DiskDefragSSD
mov dword [esp + 0x14], 0
call fcn.0042fd80
add esp, 8
lea ecx, [esp + 8]
test eax, eax
jne 0x40aa79
mov eax, dword [esp + 0xc]
mov dword [edi], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
jmp 0x40aa81
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043ec6a
add esp, 0x20
ret
Function at 0x4113c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441068
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], 0
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov ecx, ebx
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x20
jae 0x41144b
cmp edi, ebx
jbe 0x41141b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
push ebx
push eax
lea eax, [esp + 0x40]
push eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, 0x20
sub edx, ecx
push edx
push esi
call fcn.004115f0
jmp 0x4114bb
jbe 0x4114bb
cmp edi, ebx
jbe 0x411457
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x20], eax
cmp ebp, dword [esi + 0x10]
jbe 0x41146b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
test edi, edi
jne 0x411494
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
add ebp, 0x300
cmp ebp, dword [eax + 0x10]
ja 0x41149f
test edi, edi
je 0x411498
mov edi, dword [edi]
jmp 0x41149a
mov eax, dword [edi]
jmp 0x411481
xor edi, edi
cmp ebp, dword [edi + 0xc]
jae 0x4114a5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ebx
push ecx
push ebp
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00411510
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x18