joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401820
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x407e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 0
lea edi, [esi + 0xf0]
mov dword [esp + 0x10], edi
lea ecx, [edi + 0x34]
mov byte [esp + 0x24], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x30]
mov byte [esp + 0x24], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x1c]
mov byte [esp + 0x24], 0xa
call fcn.0040762c
lea ebp, [edi + 8]
mov dword [esp + 0x18], ebp
mov dword [ebp], 0x409490
mov edi, dword [ebp + 4]
mov byte [esp + 0x24], 0xd
test edi, edi
je 0x4018d5
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edi
mov ecx, eax
dec eax
test ecx, ecx
je 0x4018c9
lea ebx, [eax + 1]
lea ecx, [edi + 4]
mov byte [esp + 0x24], 0xe
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov byte [esp + 0x24], 0xd
call sub.MFC42.DLL_CString::CString
add edi, 8
dec ebx
mov dword [esp + 0x10], edi
jne 0x4018a6
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esi + 0xe8]
mov dword [ebp], 0x40947c
mov byte [esp + 0x24], 8
call fcn.00407626
lea ecx, [esi + 0xa0]
mov byte [esp + 0x24], 7
call sub.MFC42.DLL_CAnimateCtrl::CAnimateCtrl
lea ecx, [esi + 0x9c]
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x88]
mov byte [esp + 0x24], 5
call fcn.0040762c
lea ebp, [esi + 0x74]
mov dword [esp + 0x18], ebp
mov dword [ebp], 0x409490
mov edi, dword [ebp + 4]
mov byte [esp + 0x24], 0xf
test edi, edi
je 0x401976
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edi
mov edx, eax
dec eax
test edx, edx
je 0x40196a
lea ebx, [eax + 1]
lea ecx, [edi + 4]
mov byte [esp + 0x24], 0x10
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov byte [esp + 0x24], 0xf
call sub.MFC42.DLL_CString::CString
add edi, 8
dec ebx
mov dword [esp + 0x10], edi
jne 0x401947
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esi + 0x6c]
mov dword [ebp], 0x40947c
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x68]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x64]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov dword [esp + 0x24], 0xffffffff
call fcn.0040761a
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4019e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x407e51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 0
call fcn.0040762c
lea edi, [esi + 8]
mov dword [esp + 0xc], edi
mov dword [edi], 0x409490
mov esi, dword [edi + 4]
mov dword [esp + 0x18], 3
test esi, esi
je 0x401a88
mov eax, dword [edi + 8]
mov dword [esp + 8], esi
mov ecx, eax
dec eax
test ecx, ecx
je 0x401a7c
push ebp
lea ebp, [eax + 1]
lea ecx, [esi + 4]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
add esi, 8
dec ebp
mov dword [esp + 0xc], esi
jne 0x401a58
pop ebp
mov edx, dword [edi + 4]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [edi], 0x40947c
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x403800
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40828f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
add ecx, 0x6c
push str.LiveUpdate.ini
lea eax, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_operator
mov cl, byte [0x40b4ec]
xor eax, eax
mov byte [esp + 0x10], cl
mov ecx, 7
lea edi, [esp + 0x11]
mov edx, dword [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x14]
push 0x20
push eax
push str.0.0.0.0
push str.Version
push str.Common
mov dword [esp + 0x50], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 4

Function at 0x4046b0
Capabilities:
Copy file
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x408560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004075fc
mov edi, dword [esp + 0x48]
push 0
push 0x5c
mov ecx, edi
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jl 0x4047b2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x48]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
push str..
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 2
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40477f
mov eax, dword [esp + 0x10]
push 0
push eax
call ebp
test eax, eax
je 0x4047a4
inc esi
mov ecx, edi
push esi
push 0x5c
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x3c], 0
call fcn.004075f0
test esi, esi
jge 0x4046fc
jmp 0x4047b2
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call fcn.004075f0
mov ecx, dword [esp + 0x44]
mov edi, dword [edi]
push 0
push edi
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x404830
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 8]
test ebx, ebx
jne 0x40485f
xor edi, edi
jmp 0x40488f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004078e0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 8]
push 0
push edi
push 0
call sub.urlmon.dll_IsValidURL
test eax, eax
je 0x4048a7
mov eax, 1
jmp 0x404938
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00401000
lea edx, [ebp - 0x124]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esi + 0x10c]
lea eax, [ebp - 0x124]
push edi
push 0
push 0x40b1c8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
neg eax
sbb eax, eax
lea edx, [ebp - 0x20]
and eax, edx
push eax
push 0
push edi
push ebx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40491e
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00401040
mov eax, 2
jmp 0x404938
neg eax
sbb eax, eax
lea ecx, [ebp - 0x20]
and eax, 3
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00401040
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x130]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401210
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40128b
lea edx, [esp + 8]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401250
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
add esp, 0x14
ret
mov edx, dword [esp]
push 0
push 0
lea ecx, [esp + 0xc]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40128b
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
add esp, 0x14
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
add esp, 0x14
ret

Function at 0x4020d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
or eax, 0xffffffff
mov ecx, dword [ecx]
test edx, edx
je 0x402105
push ebx
push esi
lea esi, [edx]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40851c]
xor eax, edx
inc ecx
dec esi
jne 0x4020e5
pop esi
pop ebx
not eax
ret 8

Function at 0x402110
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x40851c
mov eax, edx
mov esi, 8
test al, 1
je 0x40212c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40212e
shr eax, 1
dec esi
jne 0x40211f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x40891c
jl 0x402118
pop esi
ret

Function at 0x402380
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023ab
mov esi, dword [esp + 4]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push str.AllowProtectedRenames
push esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x4023d5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x4023e0
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x405730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x2c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::operator_1
push 0x4081b8
push 0x4081b4
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Replace
push 0x4081b8
push 0x4081b0
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xc]
push ecx
push str.__
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.00404e56
lea eax, [esp + 4]
push eax
push str.Backup_
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Folder
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00401820
push eax
lea edx, [esp + 0x20]
push str.__
push edx
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_operator_2
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 6
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call fcn.00404e56
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 5
call fcn.00404e56
mov byte [esp + 0x24], 4
lea ecx, [esp + 0x14]
call fcn.00404e56
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.00404e56
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x2c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.00404e56
lea ecx, [esp + 4]
mov byte [esp + 0x24], 0
call fcn.00404e56
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00404e56
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x403580
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x40590f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x250], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x250], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 2
call sub.MFC42.DLL_CString::CString
push edi
push 2
mov byte [esp + 0x258], 3
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
lea ecx, [esp + 0x258]
mov ebx, eax
mov dword [esp + 0x1c], 0x128
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0x258]
push 0x5c
lea ecx, [esp + 0x25c]
mov esi, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea ecx, [esp + 0xc]
dec esi
push esi
push ecx
lea ecx, [esp + 0x260]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x254], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x250], 3
call fcn.00404e56
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeUpper
lea edx, [esp + 0x1c]
push edx
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x403756
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x403742
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
mov byte [esp + 0x254], 5
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
lea ecx, [esp + 0x148]
push 0x104
mov esi, eax
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea edx, [esp + 0x148]
lea eax, [esp + 0x10]
push edx
push 0x4080b0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x25c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40372a
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x403728
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, 1
jmp 0x40372a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x254], 3
call fcn.00404e56
lea eax, [esp + 0x20]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40366b
pop ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 2
call fcn.00404e56
lea ecx, [esp + 0x10]
mov byte [esp + 0x250], 1
call fcn.00404e56
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 0
call fcn.00404e56
lea ecx, [esp + 0x258]
mov dword [esp + 0x250], 0xffffffff
call fcn.00404e56
mov ecx, dword [esp + 0x248]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x248
ret 4
Function at 0x403da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x405a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CStdioFile::CStdioFile
push 0
push 0x3001
push ecx
mov dword [esp + 0x54], 0
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x408090
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00401820
mov ecx, eax
mov byte [esp + 0x50], 1
call fcn.004042c0
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CStdioFile::Open
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0
call fcn.00404e56
push 2
lea ecx, [esp + 0x2c]
add esi, 0x68
push 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::GetItemText
mov edi, eax
push 1
lea edx, [esp + 0x28]
push 0
push edx
mov ecx, esi
mov byte [esp + 0x54], 2
call sub.MFC42.DLL_CListCtrl::GetItemText
mov ebp, eax
push 0
lea eax, [esp + 0x24]
push 0
push eax
mov ecx, esi
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CListCtrl::GetItemText
push 0x4083fc
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x54], 4
call sub.MFC42.DLL_operator
push ebp
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x54], 5
call sub.MFC42.DLL_operator_1
push 0x4083fc
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x50], 6
push eax
call sub.MFC42.DLL_operator
push edi
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x50], 7
push ecx
call sub.MFC42.DLL_operator_1
push 0x4083f8
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x54], 8
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0x10
call fcn.00404e56
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0xf
call fcn.00404e56
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xe
call fcn.00404e56
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 0xd
call fcn.00404e56
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 0xc
call fcn.00404e56
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0xb
call fcn.00404e56
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0xa
call fcn.00404e56
mov eax, dword [esp + 0x2c]
push 2
push 0
lea ecx, [esp + 0x34]
call dword [eax + 0x30]
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 0
call fcn.00404e56
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00405078
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x40
ret
Function at 0x404050
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x405aa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x48]
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40413f
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov bl, 2
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call dword [edx + 0x40]
test eax, eax
je 0x404129
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x404129
lea eax, [esp + 0x10]
push 0x408288
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.00404050
mov eax, dword [esp + 0x10]
push 0x80
push eax
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call fcn.00404e56
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call fcn.00404e56
test esi, esi
jne 0x4040a4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call fcn.0040502a
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.00404e56
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 4
Function at 0x4043e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x405aeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x134]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], edi
push ecx
push 0x2001f
push edi
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x404458
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edi
je 0x404448
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40446a
jmp 0x40445c
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x404505
push ecx
jmp 0x4044ff
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push edi
push edi
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4044d0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.004043e0
mov ebx, eax
cmp ebx, edi
jne 0x404521
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x404492
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4044e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x134]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x404505
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x404530
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404507
Function at 0x404760
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x405b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ebp, ecx
push ebx
push 0x96
lea edi, [ebp + 0x60]
push ebx
push 0x408418
push ebx
mov ecx, edi
xor esi, esi
call sub.MFC42.DLL_CListCtrl::InsertColumn
push ebx
push 0x50
push ebx
push 0x408410
push 1
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::InsertColumn
mov eax, dword [ebp + 0x80]
push 0x25
push ebx
push 0x1036
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0x13], 0x41
mov ebp, 0x41
mov cl, byte [esp + 0x13]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], bl
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 3
je 0x4047f9
cmp eax, 2
jne 0x404899
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_CString::CString
push ebp
lea eax, [esp + 0x20]
push 0x4082d8
push eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push 0x40840c
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 1
call fcn.00404e56
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push eax
push esi
push 1
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::InsertItem
push 0x408404
push 1
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x18]
inc esi
mov byte [esp + 0x2c], bl
call fcn.00404e56
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00404e56
mov al, byte [esp + 0x13]
inc al
inc ebp
cmp al, 0x5a
mov byte [esp + 0x13], al
jle 0x4047ca
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret