joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446400
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4ac4d0
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 0x446510
push str..
mov ecx, esi
call fcn.004a62ac
mov eax, dword [esi]
push 0
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CFileFind::FindFile
cmp eax, 1
jne 0x4464e3
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 0x4464dd
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 0x4464b5
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
call fcn.00446400
jmp 0x4464cf
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.0042fdd0
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
call sub.MFC42u.DLL_CString::CString
cmp ebp, 1
je 0x446468
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 0x446505
cmp word [esi + 2], 0x3a
jne 0x446510
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.004a64d4
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 0x44a0b0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4acc8d
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], 0x4b6db8
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 0x44a129
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 0x44a19a
mov ecx, edi
call sub.MFC42u.DLL_CString::CString
add edi, 4
cmp edi, ebp
jne 0x44a18c
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.004a6276
lea ecx, [esi + 0x3a0]
mov byte [esp + 0x20], 0xd
call fcn.004a6276
lea ecx, [esi + 0x360]
mov byte [esp + 0x20], 0xc
call fcn.004a6276
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.004a6276
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x20], 5
call fcn.004a6276
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.004a6276
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], 0x4b2d44
call fcn.004a6198
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x44cb90
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 0x44cc45
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 0x44cc45
mov eax, dword [esp + 0xc]
xor ecx, ecx
xor edx, edx
push 0x4cc0dc
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 0x44cc45
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 0x44cc45
pop edi
xor eax, eax
pop esi
add esp, 0x214
ret
mov eax, edi
pop edi
pop esi
add esp, 0x214
ret
Function at 0x45cac0
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 0x45cb19
xor edi, edi
xor edx, edx
mov di, word [ecx + 6]
test edi, edi
jbe 0x45cb19
lea ecx, [ebp + 0xc]
mov esi, dword [ecx]
cmp ebx, esi
jb 0x45cb03
mov eax, dword [ecx - 4]
add eax, esi
cmp ebx, eax
jb 0x45cb12
inc edx
add ecx, 0x28
cmp edx, edi
jb 0x45caf4
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 0x45d530
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4ade5f
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], 0x4b79c0
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 0x45d5a8
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.00415020
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], 0x4b2d44
call fcn.004a6198
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x45fcc2
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 0x45fa90
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 0x45fcfe
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x45fd26
mov eax, dword [0x545f7c]
push ebx
mov ecx, dword [eax*4 + 0x4ef770]
mov edx, dword [eax*4 + 0x4ef764]
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 0x4669e0
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 0x46a350
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 0x46a400
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x46a3c5
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf0]
test al, al
jne 0x46a3c5
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 0x46a3c5
cmp eax, 0x103
jae 0x46a3c5
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4cb1f8
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 0x46a400
cmp eax, 0x103
jae 0x46a400
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4cb1f8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4
Function at 0x46f740
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4aed7b
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], 0x4b9238
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 0x46f7b8
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.00466e40
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.00415020
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.004a6276
lea ecx, [esi + 0x220]
mov byte [esp + 0x1c], 7
call fcn.004a6276
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.004a6276
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi], 0x4b2d44
call fcn.004a6198
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x474e50
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 0x474f00
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x474ec5
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf0]
test al, al
jne 0x474ec5
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 0x474ec5
cmp eax, 0x103
jae 0x474ec5
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4cb1f8
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 0x474f00
cmp eax, 0x103
jae 0x474f00
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4cb1f8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4

Function at 0x475f50
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 0x476058
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 0x47604d
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 0x476043
call fcn.004795a0
jmp 0x476048
call fcn.00477010
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 0x476070
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 0x4760df
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 0x476135
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 0x47612b
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 0x477320
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 0x47738f
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 0x4773e5
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 0x4773db
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 0x47c460
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 0x47bdb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xe0], eax
jne 0x47c4a6
mov ecx, dword [0x545f7c]
push eax
push eax
mov edx, dword [ecx*4 + 0x5137e8]
mov ecx, esi
push edx
call sub.MFC42u.DLL_CWnd::MessageBoxW
pop esi
pop ecx
ret

Function at 0x47edd0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4af78b
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.00460810
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 0x47eeb7
lea ecx, [esp + 0x24]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47eeb0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.00483120
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 0x47eeb0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.00483120
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 0x47ee7b
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 0x47ef00
mov edx, dword [esp + 0x1c]
mov edi, ecx
mov ebx, eax
cmp byte [edi], 0
jne 0x47eef7
cmp ebp, edx
mov ecx, 1
mov eax, ebp
je 0x47eef5
mov esi, dword [edi + 8]
cmp esi, dword [eax]
je 0x47eef3
add eax, 4
cmp eax, edx
jne 0x47eee6
jmp 0x47eef5
xor ecx, ecx
mov byte [edi], cl
add edi, 0x210
dec ebx
jne 0x47eed3
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
Function at 0x483489
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4aff10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
lea ebx, [esi + 0x60]
mov ecx, ebx
call fcn.00415760
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xd0]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.0042f2b0
add esp, 0xc
cmp al, 1
jne 0x4835d4
push ebp
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x28], esi
mov ebp, dword [eax]
lea edi, [eax + 4]
cmp ebp, esi
jbe 0x4835b3
push 0
push 0
push 0
push 0
push edi
push esi
push 1
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::InsertItem
lea eax, [edi + 0x28]
mov ecx, ebx
push eax
push 1
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x234]
lea edx, [esp + 0x10]
push ecx
push str.0x_04X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 2
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x238]
lea edx, [esp + 0x10]
push ecx
push str.0x_08X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 3
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x230]
lea edx, [esp + 0x10]
push ecx
push 0x4cdac8
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 4
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x23c]
lea edx, [esp + 0x10]
push ecx
push 0x4cdac8
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 5
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc esi
add edi, 0x240
cmp esi, ebp
jb 0x4834df
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x1c]
pop edi
pop ebp
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_5
mov ecx, dword [esi + 0x80]
push 0
push 0
push 0x1004
push ecx
mov dword [esp + 0x30], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x545f7c]
mov ecx, dword [esi + 0xcc]
push eax
mov eax, dword [edx*4 + 0x514610]
lea edx, [esp + 0x10]
push eax
push ecx
push str.__s__s__d_
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x14
mov ecx, esi
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
push 0
mov ecx, ebx
call fcn.00415b50
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret