joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a6ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + 0x180]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 4
push 0x110a
push ecx
mov dword [esp + 0x38], 0
call edi
mov esi, eax
test esi, esi
je 0x440743
push ebp
lea ebp, [ebx + 0x160]
push esi
mov ecx, ebp
call sub.MFC42u.DLL_CTreeCtrl::GetItemData
cmp eax, 2
jne 0x440712
lea edx, [esp + 0x1c]
push esi
push edx
mov ecx, ebp
call sub.MFC42u.DLL_CTreeCtrl::GetItemText
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call sub.MFC42u.DLL_CString::CString
lea edi, [ebx + 0x1d0]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00445560
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
mov ecx, edi
call fcn.00445510
mov ebp, eax
mov eax, dword [esp + 0x14]
cmp ebp, eax
mov dword [esp + 0x18], ebp
je 0x4406fa
lea ecx, [esp + 0x18]
call fcn.0040dab0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, edx
jne 0x4406e5
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ebp
push ecx
mov ecx, edi
call fcn.00410ba0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebx + 0x180]
push esi
push 0
push 0x1101
push edx
call edi
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx + 0x180]
push eax
push 4
push 0x110a
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x440674
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x441680
Capabilities:
Check os version

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
mov eax, dword [edi]
push 1
push 0
push 2
mov eax, dword [eax - 8]
push 0x40000000
push eax
mov ecx, edi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x441752
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov ebx, 4
jne 0x4416d2
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x4416d2
mov ebx, 8
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push edx
call fcn.0042da40
add esp, 4
test al, al
jne 0x4416fc
push ebx
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x14], eax
jmp 0x441700
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x441732
push 3
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x44172b
or esi, 0xffffffff
mov edx, dword [esp + 0x14]
push edx
call ebx
mov eax, dword [edi]
push 4
push 0
mov ecx, edi
mov eax, dword [eax - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp esi, 0xffffffff
je 0x441752
push esi
call ebx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4419e0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x441a30
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push str.AllowProtectedRenames
push edx
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x443270
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4a6fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [esp + 4], ecx
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 8], 0
call sub.MFC42u.DLL_CFileFind::CFileFind
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x34], 0
mov eax, dword [esi]
mov edi, dword [eax - 8]
test edi, edi
jbe 0x443380
push str..
mov ecx, esi
call fcn.004a1128
mov eax, dword [esi]
push 0
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CFileFind::FindFile
cmp eax, 1
jne 0x443353
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFileFind::FindNextFileW
lea ecx, [esp + 0x14]
mov ebp, eax
call sub.MFC42u.DLL_CFileFind::IsDots
test eax, eax
jne 0x44334d
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CFileFind::GetFilePath
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call dword [edx + 0x40]
cmp eax, 1
jne 0x443325
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
call fcn.00443270
jmp 0x44333f
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x40]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call fcn.0042cf40
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
call sub.MFC42u.DLL_CString::CString
cmp ebp, 1
je 0x4432d8
pop ebp
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CFileFind::Close
push 4
push edi
mov ecx, esi
call sub.MFC42u.DLL_CString::Delete
mov esi, dword [esi]
cmp dword [esi - 8], 2
jne 0x443375
cmp word [esi + 2], 0x3a
jne 0x443380
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.004a1374
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x446e80
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4a779d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x4b1bc0
lea edi, [esi + 0x4cc]
mov dword [esp + 0x20], 0x14
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0x4c8]
cmp eax, ebx
je 0x446ef9
push ebx
mov eax, dword [esi + 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov ecx, dword [esi + 0x4c8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x4c8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c8], ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x51c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x518]
mov byte [esp + 0x20], 0x13
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esi + 0x4fc]
push eax
mov dword [esp + 0x18], eax
call sub.MFC42u.DLL_operatordelete
mov dword [esi + 0x4fc], ebx
mov dword [esi + 0x500], ebx
mov dword [esi + 0x504], ebx
mov ebp, dword [esi + 0x4f0]
mov edi, dword [esi + 0x4ec]
add esp, 4
cmp edi, ebp
mov byte [esp + 0x20], 0x11
je 0x446f6a
mov ecx, edi
call sub.MFC42u.DLL_CString::CString
add edi, 4
cmp edi, ebp
jne 0x446f5c
mov eax, dword [esi + 0x4ec]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esi + 0x4a0]
mov dword [esi + 0x4ec], ebx
mov dword [esi + 0x4f0], ebx
mov dword [esi + 0x4f4], ebx
mov byte [esp + 0x20], 0x10
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x420]
mov byte [esp + 0x20], 0xf
call fcn.00402d10
lea ecx, [esi + 0x3e0]
mov byte [esp + 0x20], 0xe
call fcn.004a117c
lea ecx, [esi + 0x3a0]
mov byte [esp + 0x20], 0xd
call fcn.004a117c
lea ecx, [esi + 0x360]
mov byte [esp + 0x20], 0xc
call fcn.004a117c
lea ecx, [esi + 0x320]
mov byte [esp + 0x20], 0xb
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x2e0]
mov byte [esp + 0x20], 0xa
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x2a0]
mov byte [esp + 0x20], 9
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x260]
mov byte [esp + 0x20], 8
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x220]
mov byte [esp + 0x20], 7
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x1e0]
mov byte [esp + 0x20], 6
call fcn.004a117c
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x20], 5
call fcn.004a117c
lea ecx, [esi + 0x160]
mov byte [esp + 0x20], 4
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x120]
mov byte [esp + 0x20], 3
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0xe0]
mov byte [esp + 0x20], 2
call fcn.004a117c
lea ecx, [esi + 0xa0]
mov byte [esp + 0x20], 1
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x60]
mov byte [esp + 0x20], bl
call sub.MFC42u.DLL_CButton::CButton
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
mov dword [esi], 0x4add30
call fcn.004a1038
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4499a0
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
sub esp, 0x214
push esi
mov esi, dword [esp + 0x220]
push edi
push esi
push eax
push 0
push ecx
mov edi, 1
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x449a55
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x449a55
mov eax, dword [esp + 0xc]
xor ecx, ecx
xor edx, edx
push 0x4c6494
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea eax, [esp + 0x24]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x18
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x449a55
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ecx
push str.Microsoft_Corporation
push edx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x449a55
pop edi
xor eax, eax
pop esi
add esp, 0x214
ret
mov eax, edi
pop edi
pop esi
add esp, 0x214
ret
Function at 0x4599d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 0x3c]
xor eax, eax
add ecx, edx
xor edx, edx
push esi
push edi
mov dx, word [ecx + 0x14]
lea ebp, [edx + ecx + 0x18]
mov edx, dword [esp + 0x18]
cmp ebx, edx
jae 0x459a29
xor edi, edi
xor edx, edx
mov di, word [ecx + 6]
test edi, edi
jbe 0x459a29
lea ecx, [ebp + 0xc]
mov esi, dword [ecx]
cmp ebx, esi
jb 0x459a13
mov eax, dword [ecx - 4]
add eax, esi
cmp ebx, eax
jb 0x459a22
inc edx
add ecx, 0x28
cmp edx, edi
jb 0x459a04
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
lea ecx, [edx + edx*4]
lea eax, [ebp + ecx*8]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x45a440
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4a896f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4b2828
lea edi, [esi + 0x14c]
mov dword [esp + 0x14], 3
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x45a4b8
push 0
mov eax, dword [esi + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov ecx, dword [esi + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x164], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x174]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xe0]
mov byte [esp + 0x14], 2
call fcn.004122f0
lea ecx, [esi + 0xa0]
mov byte [esp + 0x14], 1
call sub.MFC42u.DLL_CListCtrl::CListCtrl
lea ecx, [esi + 0x60]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CStatic::CStatic
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], 0x4add30
call fcn.004a1038
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x45cbd2
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x14c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0xc]
push eax
push ebx
push esi
push 0x45c9a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x164], eax
mov eax, dword [esi + 0x164]
test eax, eax
je 0x45cc0e
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x45cc36
mov eax, dword [0x5401c4]
push ebx
mov ecx, dword [eax*4 + 0x4e9bf0]
mov edx, dword [eax*4 + 0x4e9be4]
push ecx
push edx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MessageBoxW
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x463820
Capabilities:
Hash data with md5

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x16
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
pop edi
ret
Function at 0x467190
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x467240
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x467205
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf8]
test al, al
jne 0x467205
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x467205
cmp eax, 0x103
jae 0x467205
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4c61d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x467240
cmp eax, 0x103
jae 0x467240
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4c61d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4
Function at 0x46c1e0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4a981b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4b40e0
lea edi, [esi + 0x360]
mov dword [esp + 0x1c], 0xd
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0x35c]
cmp eax, ebx
je 0x46c258
push ebx
mov eax, dword [esi + 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov ecx, dword [esi + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x35c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x35c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call edi
lea eax, [esi + 0x388]
push eax
call edi
call fcn.00463c80
lea ecx, [esi + 0x3b8]
mov byte [esp + 0x1c], 0xc
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esi + 0x37c]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esi + 0x2e0]
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], ebx
mov dword [esi + 0x384], ebx
mov byte [esp + 0x1c], 0xa
call fcn.004122f0
lea ecx, [esi + 0x2a0]
mov byte [esp + 0x1c], 9
call sub.MFC42u.DLL_CStatic::CStatic
lea ecx, [esi + 0x260]
mov byte [esp + 0x1c], 8
call fcn.004a117c
lea ecx, [esi + 0x220]
mov byte [esp + 0x1c], 7
call fcn.004a117c
lea ecx, [esi + 0x1e0]
mov byte [esp + 0x1c], 6
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x1c], 5
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x160]
mov byte [esp + 0x1c], 4
call sub.MFC42u.DLL_CStatic::CStatic
lea ecx, [esi + 0x120]
mov byte [esp + 0x1c], 3
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0xe0]
mov byte [esp + 0x1c], 2
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0xa0]
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CStatic::CStatic
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], bl
call fcn.004a117c
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi], 0x4add30
call fcn.004a1038
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x471810
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4718c0
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x471885
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf8]
test al, al
jne 0x471885
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x471885
cmp eax, 0x103
jae 0x471885
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4c61d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x4718c0
cmp eax, 0x103
jae 0x4718c0
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4c61d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4

Function at 0x472920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2ac
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x2c4]
xor ebx, ebx
mov ax, word [esi]
push edi
mov dword [esp + 0x1c], 0x3a0000
mov word [esp + 0x1c], ax
push ebx
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x28]
push ebx
push 3
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2d0]
mov ecx, dword [esp + 0x2d8]
push ebx
push 3
lea edx, [esp + 0x28]
push 0x80000000
push edx
mov dword [esp + 0x30], 0x5c005c
mov dword [esp + 0x34], 0x5c002e
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
mov dword [esp + 0x24], eax
je 0x472a28
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0xc4]
push 0x200
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 0x200
jne 0x472a1d
lea eax, [esp + 0xbf]
push 8
push eax
push str.NTFS
call dword [sym.imp.MSVCRT.dll_strncmp]
mov ecx, dword [esp + 0x2d8]
add esp, 0xc
test eax, eax
push ecx
push ebp
push edi
lea edx, [esp + 0x30]
push esi
lea eax, [esp + 0xcc]
push edx
push eax
jne 0x472a13
call fcn.00475f70
jmp 0x472a18
call fcn.004739e0
add esp, 0x18
mov ebx, eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x2ac
ret
Function at 0x472a40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
xor eax, eax
push ebx
push ebp
mov dword [esp + 8], eax
push esi
mov ebp, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
lea eax, [ecx - 1]
test ebp, eax
jne 0x472aaf
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [edi]
push ecx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
cmp ecx, ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0x14
ret
lea esi, [ecx + ebp]
not eax
and esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x472b05
mov eax, dword [edi]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x2c], esi
jne 0x472afb
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x2c], ebp
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
cmp ecx, ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0x14
ret

Function at 0x473cf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
xor eax, eax
push ebx
push ebp
mov dword [esp + 8], eax
push esi
mov ebp, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
lea eax, [ecx - 1]
test ebp, eax
jne 0x473d5f
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [edi]
push ecx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
cmp ecx, ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0x14
ret
lea esi, [ecx + ebp]
not eax
and esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x473db5
mov eax, dword [edi]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x2c], esi
jne 0x473dab
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x2c], ebp
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
cmp ecx, ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0x14
ret
Function at 0x478e30
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esi + 0xfc], 0
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x478780
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xe0], eax
jne 0x478e76
mov ecx, dword [0x5401c4]
push eax
push eax
mov edx, dword [ecx*4 + 0x50dae8]
mov ecx, esi
push edx
call sub.MFC42u.DLL_CWnd::MessageBoxW
pop esi
pop ecx
ret

Function at 0x47b7c0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4aa22b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov al, byte [esp + 3]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov byte [esp + 0x14], al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x260], ebx
call fcn.0045d720
mov ebp, 0x22c
push ebx
push 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x47b8a7
lea ecx, [esp + 0x24]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47b8a0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.0047f950
mov ecx, 0x8b
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x47b8a0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.0047f950
mov ecx, 0x8b
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47b86b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x260]
mov ebp, dword [esp + 0x18]
mov eax, dword [ecx]
add ecx, 4
cmp eax, ebx
jbe 0x47b8f0
mov edx, dword [esp + 0x1c]
mov edi, ecx
mov ebx, eax
cmp byte [edi], 0
jne 0x47b8e7
cmp ebp, edx
mov ecx, 1
mov eax, ebp
je 0x47b8e5
mov esi, dword [edi + 8]
cmp esi, dword [eax]
je 0x47b8e3
add eax, 4
cmp eax, edx
jne 0x47b8d6
jmp 0x47b8e5
xor ecx, ecx
mov byte [edi], cl
add edi, 0x210
dec ebx
jne 0x47b8c3
push ebp
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x254]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret 4