joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067b0
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x40fc1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040ec60
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x130], ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x24]
xor edi, edi
test al, al
lea esi, [esp + 0x24]
mov bl, 0x44
je 0x406886
mov al, byte [esi]
cmp al, 0x43
je 0x406878
movsx ecx, al
push ecx
lea edx, [esp + 0x14]
push 0x4163fc
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x406878
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, 1
ja 0x406884
jb 0x406868
cmp ecx, 0x40000000
ja 0x406884
cmp eax, ebp
jb 0x406878
ja 0x406872
cmp ecx, edi
jbe 0x406878
mov bl, byte [esi]
mov edi, ecx
mov ebp, eax
mov al, byte [esi + 4]
add esi, 4
test al, al
jne 0x40680e
jmp 0x406886
mov bl, byte [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret

Function at 0x4068c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 4]
pop edi
add esp, 0x104
ret

Function at 0x4069d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x4069ec
xor al, al
add esp, 0x94
ret
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x406a11
mov al, 1
add esp, 0x94
ret
jne 0x406a37
mov eax, dword [esp + 8]
test eax, eax
jne 0x406a24
mov al, 2
add esp, 0x94
ret
cmp eax, 1
je 0x406a48
cmp eax, 2
jne 0x406a48
mov al, 4
add esp, 0x94
ret
cmp eax, 6
jb 0x406a48
call fcn.004069c0
add esp, 0x94
ret
mov al, 3
add esp, 0x94
ret
Function at 0x406cb0
Capabilities:
Copy file
Create process on windows
Get file attributes
Manipulate boot configuration
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40fc68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push str.C:_boot.ini
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp]
mov dword [esp + 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp]
lea ecx, [esp + 8]
push edx
call fcn.00408c70
push 0x416c74
push str.Default
lea eax, [esp + 0xc]
push str.boot_loader
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00408cf0
mov ecx, dword [esp + 4]
push str.C:_sbldr
push ecx
mov byte [esp + 0x20], 2
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x406c2d
push 0
push str.C:_boot.bak
push str.C:_boot.ini
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.C:_sbldr
push str.Default
push str.boot_loader
lea ecx, [esp + 0x14]
call fcn.00408e30
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.00408c60
lea ecx, [esp]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push 0
push 0
push str._bootsequence_cc7f891e_b014_45a3_a394_df75d832e97b
push str.BCDEDIT.EXE
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
ret
call fcn.004069d0
cmp al, 5
mov byte [0x416214], al
jne 0x406cc3
jmp 0x406c70
cmp al, 6
jne 0x406ccc
jmp fcn.00406ca0
jmp 0x406b70

Function at 0x406ce0
Capabilities:
Create process on windows
Manipulate boot configuration

Disassembly:
push 0xffffffffffffffff
push 0x40fc88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
lea ecx, [esp]
call fcn.0040ec60
mov eax, dword [esp + 0x14]
lea ecx, [esp]
push eax
push str._timeout__d
push ecx
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0xc]
add esp, 0xc
push 0
push 0
push edx
push str.BCDEDIT.EXE
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406d60
Capabilities:
Get file attributes
Manipulate boot configuration
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40fcb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push str.C:_boot.ini
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp]
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp]
lea ecx, [esp + 4]
push edx
call fcn.00408c70
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push eax
push str.timeout
push str.boot_loader
mov byte [esp + 0x20], 1
call fcn.00408da0
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00408c60
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x406e40
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40fccb
push eax
mov dword fs:[0], esp
sub esp, 0x204
mov ecx, 0x80
xor eax, eax
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call fcn.00405c50
add esp, 4
test eax, eax
pop edi
jne 0x406e91
call fcn.004062d0
test eax, eax
jne 0x406e91
lea ecx, [esp + 4]
push ecx
call fcn.004068f0
add esp, 4
lea ecx, [esp]
call fcn.0040ec60
movsx edx, byte [esp + 0x1e]
push edx
lea eax, [esp + 4]
push str._c:Ghost
push eax
mov dword [esp + 0x218], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x406ef5
mov edx, dword [esp]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp]
or al, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp]
mov dword [esp + 0x20c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
add esp, 0x210
ret
Function at 0x407050
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40fcf0
push eax
mov dword fs:[0], esp
sub esp, 8
push 0
push str.C:SOSGhostmbr1
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x40708e
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push str.C:SOSGhostXSBInst.exe
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp]
mov dword [esp + 0x10], 0
call fcn.0040ec60
mov eax, dword [esp + 0x18]
lea ecx, [esp]
push eax
push str.__hot_key0x8500___key_nameF11___time_out_d___boot_filesbldr___boot_prevmbr_first___saveC:SOSGhostmbrbk__hd0_
push ecx
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add esp, 0xc
push 0
push 0
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x407120
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40fd18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea eax, [esp]
push esi
push eax
call fcn.00405720
add esp, 4
push str.XSBInst.exe
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [sym.imp.MSVCRT.dll__access]
push 0
push str.C:SOSGhostmbrbk
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x4071b6
lea ecx, [esp + 8]
call fcn.0040ec60
lea ecx, [esp + 8]
push str.__restoreC:SOSGhostmbrbk__hd0_
push ecx
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push 0
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esp + 0x14], 0
lea ecx, [esp + 8]
jmp 0x407208
push 0
push str.C:SOSGhostmbr1
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x40720d
lea ecx, [esp + 8]
call fcn.0040ec60
lea ecx, [esp + 8]
push str.__restoreC:SOSGhostmbr1__hd0_
push ecx
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push 0
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esp + 0x14], 0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408cf0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41027f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call fcn.0040ec60
mov esi, dword [esi + 4]
lea ecx, [esp + 4]
push esi
push 0x400
push 0x400
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x409020
Capabilities:
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41035b
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov ecx, 0xd
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, str._USERPROFILE_
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x4091ae
mov ecx, 0x41
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [esp + 0x24]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x14]
cmp edx, esi
je 0x4091ae
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x18], 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
push esi
push str.ProfilesDirectory
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
call fcn.0040ec60
lea ecx, [esp + 0x128]
lea edx, [esp + 0x31]
movsx eax, bl
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._c:_s_s
push ecx
mov dword [esp + 0x248], esi
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xd]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x234], 0xffffffff
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x409580
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4103a0
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
push ebp
lea ebx, [esi + 0x70]
mov ecx, ebx
call fcn.0040ec5a
lea edi, [esi + 0x74]
push ebp
mov ecx, edi
call fcn.0040ec5a
push 1
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x20]
lea ebp, [esi + 0x98]
mov byte [eax], cl
push 5
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ShowWindow
push str..
lea edx, [esp + 0x24]
push ebx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov ecx, esi
push eax
mov dword [esp + 0x1c], 0
call fcn.00409ce0
lea ecx, [esp + 0x20]
mov edi, eax
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.0040ec60
mov eax, dword [ebx]
push edi
push eax
lea ecx, [esp + 0x2c]
push str.Dir:__s__Count:_d
push ecx
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xb8]
and edi, 0xffff
shl edi, 0x10
push edi
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov ecx, esi
mov dword [esi + 0x80], 0
call fcn.00409df0
push 0x416c74
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x4096b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4103b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x1c]
lea edx, [esp + 4]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov byte [eax], cl
push 0x80000001
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 0x18]
cmp eax, 5
ja case.default.0x40971a
jmp dword [eax*4 + 0x409908]
push 0x416970
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x416970
lea ecx, [esi + 0x94]
call fcn.0040ec5a
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov eax, dword [eax - 8]
inc eax
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 8]
push eax
push 2
push 0
push str.Personal
push ecx
jmp 0x4098ca
push 0x416960
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x416960
lea ecx, [esi + 0x94]
call fcn.0040ec5a
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov eax, dword [edx - 8]
inc eax
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0xc]
push 2
push 0
push str.Desktop
push eax
jmp 0x4098ca
push 0x416944
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x416944
lea ecx, [esi + 0x94]
call fcn.0040ec5a
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
inc eax
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 2
push 0
push str.Cache
jmp 0x4098c5
push 0x416930
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x416930
lea ecx, [esi + 0x94]
call fcn.0040ec5a
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov eax, dword [eax - 8]
inc eax
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 8]
push eax
push 2
push 0
push str.History
push ecx
jmp 0x4098ca
push 0x41691c
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x41691c
lea ecx, [esi + 0x94]
call fcn.0040ec5a
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov eax, dword [edx - 8]
inc eax
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0xc]
push 2
push 0
push str.Favorites
push eax
jmp 0x4098ca
push str.Moving_Recent
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push str.Moving_Recent
lea ecx, [esi + 0x94]
call fcn.0040ec5a
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
inc eax
push eax
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 2
push 0
push str.Recent
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi + 0x94]
mov ecx, esi
push eax
push 0x3f5
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x409aa0
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x968
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x97c]
lea eax, [esp + 0x18]
push eax
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x409cc6
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x770]
push edi
push ecx
call ebp
mov edx, dword [esp + 0x980]
lea eax, [esp + 0x568]
push edx
push eax
call ebp
mov edi, dword [sym.imp.MSVCRT.dll__mbsrchr]
lea ecx, [esp + 0x770]
push 0x5c
push ecx
call edi
lea edx, [esp + 0x570]
push 0x5c
push edx
mov byte [eax + 1], 0
call edi
mov byte [eax + 1], 0
add esp, 0xc
lea eax, [esp + 0x56c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00409f30
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
test byte [esp + 0x18], 0x10
je 0x409c24
lea ecx, [esp + 0x44]
push 0x4169b0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x409c91
lea edx, [esp + 0x44]
push 0x4169ac
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x409c91
lea eax, [esp + 0x770]
lea ecx, [esp + 0x360]
push eax
push ecx
call ebp
lea edx, [esp + 0x44]
lea eax, [esp + 0x360]
push edx
push eax
call edi
lea ecx, [esp + 0x360]
push str..
push ecx
call edi
lea edx, [esp + 0x568]
lea eax, [esp + 0x158]
push edx
push eax
call ebp
lea ecx, [esp + 0x44]
lea edx, [esp + 0x158]
push ecx
push edx
call edi
push ecx
lea eax, [esp + 0x15c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00409f30
test eax, eax
je 0x409bfc
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x158]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x158]
push str..
push eax
call edi
lea ecx, [esp + 0x158]
lea edx, [esp + 0x360]
push ecx
push edx
mov ecx, esi
call fcn.00409aa0
jmp 0x409c91
lea eax, [esp + 0x770]
lea ecx, [esp + 0x360]
push eax
push ecx
call ebp
lea edx, [esp + 0x44]
lea eax, [esp + 0x360]
push edx
push eax
call edi
lea ecx, [esp + 0x568]
lea edx, [esp + 0x158]
push ecx
push edx
call ebp
lea eax, [esp + 0x44]
lea ecx, [esp + 0x158]
push eax
push ecx
call edi
lea edx, [esp + 0x158]
push 0
lea eax, [esp + 0x364]
push edx
push eax
call ebx
mov edx, dword [esi + 0x80]
mov ecx, esi
inc edx
mov eax, edx
mov dword [esi + 0x80], edx
push eax
call fcn.00409ef0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409b3e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x968
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x968
ret 8
Function at 0x409ce0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x554
push ebp
push esi
mov esi, dword [esp + 0x560]
lea eax, [esp + 0xc]
push edi
push eax
mov ebp, ecx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x409de1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x35c]
push esi
push ecx
call ebx
lea edx, [esp + 0x35c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
mov byte [eax + 1], 0
test byte [esp + 0x14], 0x10
je 0x409dae
lea eax, [esp + 0x40]
push 0x4169b0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x409daf
lea ecx, [esp + 0x40]
push 0x4169ac
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x409daf
lea edx, [esp + 0x35c]
lea eax, [esp + 0x154]
push edx
push eax
call ebx
lea ecx, [esp + 0x40]
lea edx, [esp + 0x154]
push ecx
push edx
call esi
lea eax, [esp + 0x154]
push str..
push eax
call esi
lea ecx, [esp + 0x154]
push ecx
mov ecx, ebp
call fcn.00409ce0
add edi, eax
jmp 0x409daf
inc edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409d3c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x554
ret 4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x554
ret 4