joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024f0
Capabilities:
Create service
Get common file path
Start service

Disassembly:
push 0xffffffffffffffff
push 0x408b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push str.Drivers_sioctl.sys
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0
call sub.MFC42.DLL_CString::operator
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4025e2
mov edx, dword [esp + 8]
push 0
push 0
push 0x40eb2c
push 0
push 0
push edx
push 1
push 3
push 1
push 0xf01ff
push str.SIoctl
push str.SIoctl
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x4025e2
push ebx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x4026f0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x408bbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
push ebx
push esi
push edi
push str.C:OKGFileOKGUP.OKD
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
mov dword [esp + 0x33c], 0
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4027a6
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::operator_1
push str.OKGUP.OKD
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0xc]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402811
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x118]
lea edx, [esp + 0x118]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x328]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x118]
push ecx
call fcn.00403670
add esp, 4
lea edx, [esp + 0x10]
lea eax, [esp + 0x118]
push 0
push edx
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x320], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x318]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x318
ret
Function at 0x402840
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408bd8
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
call fcn.00403530
cmp al, 5
mov byte [0x40e0a8], al
je 0x40292d
cmp al, 6
je 0x40292d
lea ecx, [esp + 8]
call fcn.00408300
push str..PhysicalDrive0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402909
push 0
push 0
push 0x7000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
call fcn.004024f0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call esi
mov eax, dword [esp + 0x20]
push eax
push 1
push 0x38
call fcn.00402610
add esp, 0xc
mov edi, eax
push 0xc8
call esi
call fcn.00402440
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4030f0
Capabilities:
Get disk information via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x408c88
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 fcn.00408300
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
movsx eax, bl
push eax
xor edi, edi
push str.__c:
push ecx
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
je 0x40319c
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edi
push edi
push 0x2d1080
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x403185
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40319c
cmp dword [esp + 0x14], 0xc
je 0x403195
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40319c
cmp dword [esp + 0x18], 7
je 0x4031be
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebp
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov dword [edi], edx
push ebx
mov dword [ebp], eax
call fcn.004021c0
mov ecx, dword [edi]
push ecx
push eax
call fcn.004022d0
add esp, 0xc
test eax, eax
je 0x4031ec
mov dword [ebp], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x403220
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x408cab
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.00408300
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 0x4032f6
mov al, byte [esi]
cmp al, 0x43
je 0x4032e8
movsx ecx, al
push ecx
lea edx, [esp + 0x14]
push 0x40e5e8
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 0x4032e8
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 0x4032f4
jb 0x4032d8
cmp ecx, 0x40000000
ja 0x4032f4
cmp eax, ebp
jb 0x4032e8
ja 0x4032e2
cmp ecx, edi
jbe 0x4032e8
mov bl, byte [esi]
mov edi, ecx
mov ebp, eax
mov al, byte [esi + 4]
add esi, 4
test al, al
jne 0x40327e
jmp 0x4032f6
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 0x403330
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 0x403420
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408ccb
push eax
mov dword fs:[0], esp
sub esp, 0x208
mov ecx, 0x80
xor eax, eax
push esi
push edi
lea edi, [esp + 0x10]
push str..PhysicalDrive0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x4034f8
push 0
push 0
push 0x8000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x6c], 0x47
jne 0x4034f8
mov cl, byte [esp + 0x6e]
mov al, 0x52
cmp cl, al
jne 0x4034f8
cmp byte [esp + 0x70], 0x4c
jne 0x4034f8
cmp byte [esp + 0x72], 0x44
jne 0x4034f8
cmp byte [esp + 0x74], al
jne 0x4034f8
lea ecx, [esp + 8]
mov dword [esp + 0x218], edi
call sub.MFC42.DLL_CString::CString
pop edi
mov al, 6
pop esi
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
add esp, 0x214
ret
lea ecx, [esp + 8]
mov dword [esp + 0x218], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x210]
pop edi
mov al, 5
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret

Function at 0x403530
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x40354c
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 0x403571
mov al, 1
add esp, 0x94
ret
jne 0x403597
mov eax, dword [esp + 8]
test eax, eax
jne 0x403584
mov al, 2
add esp, 0x94
ret
cmp eax, 1
je 0x4035a8
cmp eax, 2
jne 0x4035a8
mov al, 4
add esp, 0x94
ret
cmp eax, 6
jb 0x4035a8
call fcn.00403420
add esp, 0x94
ret
mov al, 3
add esp, 0x94
ret

Function at 0x4035d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [esp + 0x14]
and eax, 0xffff
push str.SETUPFILES
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403635
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edx, [esp + 0xc]
push 0
push edx
push ebx
push eax
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, ebx
pop edi
pop esi
pop ebx
sete al
pop ecx
ret
Function at 0x4036b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x408ceb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0
push eax
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp]
test edx, edx
je 0x403841
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0x40eb2c
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0
call sub.MFC42.DLL_CString::MakeLower
push str.http:__
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x403795
lea eax, [esp + eax + 0x14]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
mov edx, dword [esp + 4]
mov word [eax], 0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
push 0x40eb2c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
jmp 0x403826
push str.www.
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4037de
lea ecx, [esp + eax + 0x14]
lea edi, [esp + 0x14]
xor eax, eax
lea edx, [esp + 0x14]
mov word [ecx], 0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x14]
push 0x40eb2c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
jmp 0x403826
push str.about:wz
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40382c
lea edx, [esp + eax + 0x14]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov word [edx], 0
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push 0
push 0x40eb2c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x405020
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40902f
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.00408300
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 0x405350
Capabilities:
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40910b
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 0x4054de
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 0x4054de
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.00408300
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 0x405900
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x409150
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 sub.MFC42.DLL_CString::operator_1
lea edi, [esi + 0x74]
push ebp
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
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.00406030
lea ecx, [esp + 0x20]
mov edi, eax
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00408300
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.00406140
push 0x40eb2c
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 0x405df0
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 0x406016
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.00406280
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
test byte [esp + 0x18], 0x10
je 0x405f74
lea ecx, [esp + 0x44]
push 0x40ea80
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405fe1
lea edx, [esp + 0x44]
push 0x40ea7c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405fe1
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.00406280
test eax, eax
je 0x405f4c
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.00405df0
jmp 0x405fe1
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.00406240
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405e8e
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 0x406030
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 0x406131
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 0x4060fe
lea eax, [esp + 0x40]
push 0x40ea80
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4060ff
lea ecx, [esp + 0x40]
push 0x40ea7c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4060ff
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.00406030
add edi, eax
jmp 0x4060ff
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 0x40608c
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