joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402580
Capabilities:
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x408deb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
push ebx
push esi
push edi
push 0x40e3b4
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 0x402636
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 0x40e3a8
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 0x4026a1
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.004034d0
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 0x4026d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408e08
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
call fcn.00403390
cmp al, 5
mov byte [0x40e040], al
je 0x4027bd
cmp al, 6
je 0x4027bd
lea ecx, [esp + 8]
call fcn.00408566
push 0x40e350
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 0x402799
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.00402380
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.004024a0
add esp, 0xc
mov edi, eax
push 0xc8
call esi
call fcn.004022d0
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x403020
Capabilities:
Get disk information via ioctl
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x408ec8
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.00408566
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
movsx eax, bl
push eax
xor esi, esi
push 0x40e378
push ecx
mov dword [esp + 0x38], esi
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
je 0x4030cc
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push esi
push esi
push 0x2d1080
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4030b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4030cc
cmp dword [esp + 0x14], 0xc
je 0x4030c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4030cc
cmp dword [esp + 0x18], 7
je 0x4030ee
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 esi, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov dword [esi], edx
mov dword [ebp], eax
mov ecx, dword [esi]
push ecx
call fcn.00402130
push ebx
call fcn.00401fb0
mov edx, dword [esi]
push edx
push eax
call fcn.004020c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x403131
push 0x40e640
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp], esi
push edi
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 0x403170
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x408eeb
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.00408566
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 0x403246
mov al, byte [esi]
cmp al, 0x43
je 0x403238
movsx ecx, al
push ecx
lea edx, [esp + 0x14]
push 0x40e654
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 0x403238
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 0x403244
jb 0x403228
cmp ecx, 0x40000000
ja 0x403244
cmp eax, ebp
jb 0x403238
ja 0x403232
cmp ecx, edi
jbe 0x403238
mov bl, byte [esi]
mov edi, ecx
mov ebp, eax
mov al, byte [esi + 4]
add esi, 4
test al, al
jne 0x4031ce
jmp 0x403246
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 0x403280
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 0x403390
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x4033ac
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 0x4033d1
mov al, 1
add esp, 0x94
ret
jne 0x4033f7
mov eax, dword [esp + 8]
test eax, eax
jne 0x4033e4
mov al, 2
add esp, 0x94
ret
cmp eax, 1
je 0x403408
cmp eax, 2
jne 0x403408
mov al, 4
add esp, 0x94
ret
cmp eax, 6
jb 0x403408
call fcn.00403380
add esp, 0x94
ret
mov al, 3
add esp, 0x94
ret
Function at 0x403430
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 0x40e658
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 0x403495
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 0x403510
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x408f0b
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 0x4036a1
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 0x40ed1c
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 0x40e678
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4035f5
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 0x40ed1c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
jmp 0x403686
push str.www.
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40363e
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 0x40ed1c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
jmp 0x403686
push str.about:wz
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40368c
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 0x40ed1c
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 0x4050c0
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc

Function at 0x4050e0
Capabilities:
Read .ini file

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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40936b
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, 0x40ea58
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x40559e
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 0x40ea1c
push 0x80000002
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x14]
cmp edx, esi
je 0x40559e
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 0x40ea08
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
call fcn.00408566
lea ecx, [esp + 0x128]
lea edx, [esp + 0x31]
movsx eax, bl
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x40e9fc
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 0x40e9f4
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 0x4059c0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4093b0
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 0x40eaf4
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.004060f0
lea ecx, [esp + 0x20]
mov edi, eax
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00408566
mov eax, dword [ebx]
push edi
push eax
lea ecx, [esp + 0x2c]
push 0x40eae0
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.00406200
push 0x40ed1c
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 0x405af0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4093c8
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 0x40e268
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.0x405b5a
jmp dword [eax*4 + 0x405d48]
push 0x40eb68
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x40eb68
lea ecx, [esi + 0x94]
call sub.MFC42.DLL_CString::operator_1
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 0x40eac4
push ecx
jmp 0x405d0a
push 0x40eb58
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x40eb58
lea ecx, [esi + 0x94]
call sub.MFC42.DLL_CString::operator_1
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 0x40e260
push eax
jmp 0x405d0a
push 0x40eb3c
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x40eb3c
lea ecx, [esi + 0x94]
call sub.MFC42.DLL_CString::operator_1
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 0x40eaa8
jmp 0x405d05
push 0x40eb28
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x40eb28
lea ecx, [esi + 0x94]
call sub.MFC42.DLL_CString::operator_1
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 0x40ea8c
push ecx
jmp 0x405d0a
push 0x40eb14
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x40eb14
lea ecx, [esi + 0x94]
call sub.MFC42.DLL_CString::operator_1
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 0x40ea74
push eax
jmp 0x405d0a
push 0x40eb04
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0x40eb04
lea ecx, [esi + 0x94]
call sub.MFC42.DLL_CString::operator_1
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 0x40eafc
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 0x405eb0
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 0x4060d6
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.00406340
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
test byte [esp + 0x18], 0x10
je 0x406034
lea ecx, [esp + 0x44]
push 0x40eba8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4060a1
lea edx, [esp + 0x44]
push 0x40eba4
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4060a1
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 0x40eaf4
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.00406340
test eax, eax
je 0x40600c
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 0x40eaf4
push eax
call edi
lea ecx, [esp + 0x158]
lea edx, [esp + 0x360]
push ecx
push edx
mov ecx, esi
call fcn.00405eb0
jmp 0x4060a1
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.00406300
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405f4e
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 0x4060f0
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 0x4061f1
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 0x4061be
lea eax, [esp + 0x40]
push 0x40eba8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4061bf
lea ecx, [esp + 0x40]
push 0x40eba4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4061bf
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 0x40eaf4
push eax
call esi
lea ecx, [esp + 0x154]
push ecx
mov ecx, ebp
call fcn.004060f0
add edi, eax
jmp 0x4061bf
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 0x40614c
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