joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476089
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x478f10
call fcn.004767c8
push 1
call fcn.0047632c
pop ecx
test al, al
jne 0x475f32
push 7
call fcn.00476593
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004762f7
mov byte [ebp - 0x24], al
mov eax, dword [0x49dd84]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x475f2b
test eax, eax
jne 0x475f9c
mov dword [0x49dd84], ecx
push 0x4783d8
push 0x4783c8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x475f7f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x476083
push 0x4783c4
push 0x4783bc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x49dd84], 2
jmp 0x475fa1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00476489
pop ecx
call fcn.00476587
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x475fd1
push esi
call fcn.004763fc
pop ecx
test al, al
je 0x475fd1
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004767c2
call esi
call fcn.0047658d
mov esi, eax
cmp dword [esi], edi
je 0x475fef
push esi
call fcn.004763fc
pop ecx
test al, al
je 0x475fef
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.004766a8
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004766db
test al, al
jne 0x476028
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x476031
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004764a6
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x476083
call fcn.0047680e
ret
call fcn.00475da3
jmp 0x475f13

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x42fe5bec
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x6eb9541b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40f150
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475d09
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.mfc90u.dll_CDC::FromHandle
mov ecx, dword [esi - 0x34]
push 0
push 0
push 0x31
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.mfc90u.dll_CGdiObject::FromHandle
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
mov edx, dword [esi - 0x34]
lea ecx, [esp + 0x14]
push ecx
push edx
mov ebx, eax
call dword [sym.imp.USER32.dll_GetClientRect]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
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 ecx, [esp + 0x10]
push ecx
lea ecx, [esi - 0x54]
mov dword [esp + 0x4c], 0
call sub.mfc90u.dll_CWnd::GetWindowTextW
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x24]
lea ecx, [esi + 0x30]
push edx
mov edx, dword [ebp + 8]
push edx
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
push ebx
mov ecx, edi
call eax
mov ecx, dword [edi + 4]
mov edx, dword [esi - 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
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, dword [ebp + 8]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410c00
Capabilities:
Get disk information
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x478069
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov ebx, edx
mov dword [ebx + 0x314], eax
mov dword [ebx + 0x318], ecx
call fcn.00410d80
cmp dword [ebx + 0x314], 0
je 0x410d4f
push 0x415
mov ecx, ebx
call sub.mfc90u.dll_CWnd::GetDlgItem
test eax, eax
je 0x410d4f
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 + 0x318]
mov eax, dword [ebx + 0x314]
lea edx, [esp + 0x10]
push edx
call fcn.00427890
test eax, eax
je 0x410d45
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 0x410d03
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 0x410cf0
push 1
jmp 0x410cf2
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 0x410d45
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 0x410d32
push 1
jmp 0x410d34
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 ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047397a
add esp, 0x34
ret 4
Function at 0x419c30
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x19c
fldz
mov eax, dword [0x497f10]
push esi
fstp qword [esp + 4]
push edi
test eax, eax
jne 0x419c72
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x497f10], eax
test eax, eax
jne 0x419c72
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 0x419c67
push eax
push 0x20
lea edx, [esp + 0x20]
push edx
push 3
call dword [0x497f10]
test eax, eax
jne 0x419c67
push eax
push 0x138
lea eax, [esp + 0x70]
push eax
push 2
call dword [0x497f10]
test eax, eax
jne 0x419c67
mov ecx, dword [0x497f18]
mov edx, ecx
or edx, dword [0x497f1c]
je 0x419d86
fild dword [esp + 0x24]
mov eax, dword [esp + 0x20]
fld qword [0x488630]
fmul st(1), st(0)
fild dword [esp + 0x20]
test eax, eax
jge 0x419ce0
fadd qword [0x488630]
mov edx, dword [0x497f20]
faddp st(2)
fild dword [0x497f24]
fmul st(1)
fild dword [0x497f20]
test edx, edx
jge 0x419d00
fadd qword [0x488630]
faddp st(1)
fsubp st(2)
fldz
fld st(0)
fucomp st(3)
fnstsw ax
test ah, 0x44
jnp 0x419d4f
mov eax, dword [esp + 0x68]
fstp st(0)
fild dword [esp + 0x6c]
fmul st(1)
fild dword [esp + 0x68]
test eax, eax
jge 0x419d2b
fadd qword [0x488630]
faddp st(1)
mov dword [esp + 8], ecx
fild dword [0x497f1c]
fmulp st(2)
fild dword [esp + 8]
test ecx, ecx
jge 0x419d47
fadd qword [0x488630]
faddp st(2)
fsubrp st(1)
fdivrp st(1)
jmp 0x419d53
fstp st(1)
fstp st(1)
mov al, byte [esp + 0x64]
test al, al
je 0x419d7a
fld qword [0x488628]
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 [0x488620]
jmp 0x419d82
fstp st(0)
fld qword [0x488628]
fstp qword [esp + 8]
mov edx, dword [0x497f28]
or edx, dword [0x497f2c]
jne 0x419dbb
push 0x497f28
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x497f30
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fld qword [esp + 8]
pop edi
pop esi
add esp, 0x19c
jmp fcn.004749f0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 0x10]
mov eax, dword [0x497f2c]
mov edi, dword [esp + 0x14]
push eax
mov eax, dword [0x497f28]
mov ecx, esi
sub ecx, dword [0x497f30]
mov edx, edi
sbb edx, dword [0x497f34]
push eax
push edx
push ecx
call fcn.004747a0
or eax, edx
je 0x419e28
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
mov dword [0x497f18], ecx
mov ecx, dword [esp + 0x24]
mov dword [0x497f1c], edx
mov dword [0x497f20], eax
mov dword [0x497f24], ecx
mov dword [0x497f30], esi
mov dword [0x497f34], edi
fld qword [esp + 8]
pop edi
pop esi
add esp, 0x19c
jmp fcn.004749f0
Function at 0x41a880
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [esi + 0xe8], 0
jne 0x41a8b6
push 0x480720
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xe8], eax
test eax, eax
jne 0x41a8a3
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 0x41a8c0
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [esi + 0xe8], 0
jne 0x41a8f6
push str.E0A52416_D56A_4c3d_BFC7_3F40E77C718E
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xe8], eax
test eax, eax
jne 0x41a8e3
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 0x41a970
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x476a99
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x496028]
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 0x41aa5c
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 0x41aa0d
push 0x48095c
jmp 0x41aa12
push 0x47d4d8
call dword [0x47c850]
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 0x41aa62
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
jmp 0x41aa62
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push 2
call sub.BottDefrag.dll_SetDefragModel
add esp, 4
call fcn.0041dc80
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 0x41aac1
lea ecx, [esi + 0x41]
movzx edi, cx
mov ecx, edi
call fcn.0043ab70
test eax, eax
jne 0x41aac1
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 0x41aa8e
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 0x41ab00
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x496028]
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 0x41ab4f
push eax
call sub.mfc90u.dll_CImageList::FromHandle
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.0047397a
add esp, 0x2b8
ret
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
xor eax, eax
call fcn.0047397a
add esp, 0x2b8
ret

Function at 0x41ab70
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x496028]
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 0x41abc0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.0047397a
add esp, 0x2b8
ret
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
or eax, 0xffffffff
call fcn.0047397a
add esp, 0x2b8
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475109
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
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_class]
lea eax, [esp + 8]
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 + 8]
mov edx, dword [eax - 0xc]
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
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 + 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]
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b600
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 0x41b624
pop ebp
pop ebx
add esp, 0x1c
ret
push esi
push 0x34
push 0x480b24
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x41b649
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 0x41b6ad
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x41b6d9
test ebp, ebp
jne 0x41b6ad
lea ecx, [esp + 0x10]
push ecx
mov ebp, 1
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41b6ad
lea edx, [esp + 0x10]
push edx
push esi
call edi
cmp eax, ebp
jne 0x41b6ad
jmp 0x41b690
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], ebp
je 0x41b6c3
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
cmp eax, ebp
je 0x41b690
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 0x41b6ad
test ebp, ebp
je 0x41b6ad
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x41b6ad
lea edx, [esp + 0x10]
push edx
push esi
call edi
cmp eax, 1
jne 0x41b6ad
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x28]
push eax
call ebp
cmp dword [esp + 0x14], 4
je 0x41b721
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
cmp eax, 1
je 0x41b704
jmp 0x41b6ad
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 0x41dc80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
call fcn.00419910
mov ecx, dword [0x47d684]
and ebx, eax
mov eax, dword [0x47d680]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
xor edi, edi
jmp 0x41dcc0
mov esi, 1
mov ecx, edi
shl esi, cl
test ebx, esi
je 0x41dcee
lea eax, [esp + 0xc]
lea edx, [edi + 0x41]
push eax
mov word [esp + 0x10], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x41dcee
cmp eax, 2
je 0x41dcee
not esi
and ebx, esi
inc edi
cmp edi, 0x20
jl 0x41dcc0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0047397a
mov esp, ebp
pop ebp
ret
Function at 0x41df30
Capabilities:
Access peb ldr_data
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x475069
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [0x47d684]
mov eax, dword [0x47d680]
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 0x41e01d
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 0x41e01d
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 0x41e01d
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 0x41e029
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.0047397a
add esp, 0x24
ret
Function at 0x41e050
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x475029
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x496028]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ecx, dword [0x47d684]
mov eax, dword [0x47d680]
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 0x41e115
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
mov ecx, str.DiskDefragSSD
mov dword [esp + 0x14], 0
call fcn.0044e7a0
add esp, 8
lea ecx, [esp + 8]
test eax, eax
jne 0x41e119
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 0x41e121
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.0047397a
add esp, 0x20
ret

Function at 0x41e230
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
push esi
lea eax, [esp + 4]
push eax
push 0x28
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41e258
xor eax, eax
pop esi
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41e251
test edi, edi
je 0x41e2a5
cmp edi, esi
jne 0x41e2a5
mov esi, 2
push 0x80020003
or esi, 4
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 0x18
ret