joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48eddb
Capabilities:
Delete file

Disassembly:
mov eax, 0x4e8658
call fcn.00471450
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, 0x503748
call sub.MFC42.DLL_CRuntimeClass::CreateObject
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x48ee05
call sub.MFC42.DLL_AfxThrowMemoryException
push 0x503738
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::GetInterface
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_4
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
push 0x550ed8
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0x1001
push dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::CFile_1
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esi]
push dword [ebp + 0x10]
push dword [ebp - 0x34]
push esi
call dword [eax + 0xc]
test eax, eax
je 0x48ee7f
mov dword [ebp - 0x18], ebx
jmp 0x48ee88
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0047116c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
jmp 0x48eeb6
or dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x48f788
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
mov eax, 0x4e87f8
call fcn.00471450
push ecx
push ecx
push esi
mov esi, ecx
and dword [esi + 0x88], 0
cmp dword [esi + 0x90], 0
je 0x48f8b4
push ebx
push edi
mov edi, 0x55118c
lea ebx, [esi + 0x68]
push edi
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
and dword [ebp - 4], 0
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push edi
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.MFC42.DLL_operator_3
push dword [eax]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 0x550828
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_5
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
xor ebx, ebx
push ebx
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
cmp dword [esi + 0x7c], ebx
lea edi, [esi + 0x7c]
jne 0x48f89d
mov eax, dword [edi]
cmp eax, ebx
je 0x48f864
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
push edi
push 0x4f4a18
mov ecx, esi
call fcn.00490441
mov ebx, str.CeeH
mov ecx, esi
push ebx
call sub.MFC42.DLL_CCmdTarget::GetInterface
lea ecx, [esi + 0x80]
push ecx
push 0
push eax
push ebx
push dword [edi]
call sub.MFC42.DLL_AfxConnectionAdvise
push dword [esi + 0x90]
mov ecx, esi
call fcn.0048ed17
mov edi, dword [edi]
push 0
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [eax + 0x28]
pop edi
pop ebx
jmp 0x48f8c7
cmp byte [ebp + 8], 8
jne 0x48f8be
push 1
jmp 0x48f8c0
push 2
mov ecx, esi
call fcn.004904db
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x491241
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x4e8b20
call fcn.00471450
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x154]
push ebx
mov ecx, edi
call dword [sym.imp.BasicCtrlDll.dll_public:_void___thiscall_CTimerEvent::SetEnabled_int_]
xor ecx, ecx
mov eax, 0x49229a
push ecx
push eax
push esi
mov ecx, edi
call fcn.004924f3
cmp dword [ebp + 8], ebx
je 0x4913a5
mov dword [ebp + 8], ebx
push 0x5515d8
mov dword [ebp - 4], ebx
call fcn.00491940
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4912aa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004946d6
pop ecx
mov dword [ebp + 0xc], eax
pop ecx
push 0x4f423c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
call edi
sub eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push 0x5515b4
push eax
call sub.MFC42.DLL_CString::Format
push dword [ebp - 0x10]
call fcn.00491940
add esp, 0x14
cmp dword [ebp + 0xc], ebx
je 0x49137e
mov eax, dword [esi + 0xe4]
test al, 2
je 0x491314
push dword [ebp + 8]
mov eax, dword [esi + 0xe8]
push eax
call fcn.00491685
pop ecx
pop ecx
jmp 0x49131c
or al, 2
mov dword [esi + 0xe4], eax
lea edi, [esi + 0xe8]
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.00467430
push dword [edi]
call fcn.00495485
pop ecx
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xd4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0049233a
cmp dword [ebp - 0x18], ebx
je 0x49136b
lea ecx, [ebp - 0x18]
call fcn.0049233a
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x491387
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x491387
push ebx
lea ecx, [ebp + 8]
call fcn.00487de9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4913b0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4913b0
push 0x551584
call fcn.00491940
pop ecx
mov ecx, esi
call fcn.00490222
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4913c8
Capabilities:
Move file

Disassembly:
mov eax, 0x4e8b44
call fcn.00471450
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0xec]
lea ebx, [edi + 0xec]
test eax, eax
je 0x4914a0
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.004952b3
push dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.00491940
pop ecx
mov esi, 0x4f423c
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
je 0x49142c
call fcn.00495e42
push eax
push 0x551648
jmp 0x491437
call fcn.00495e42
push eax
push 0x551614
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x10]
call fcn.00491940
cmp dword [ebp + 8], 0
pop ecx
je 0x491487
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp + 8]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.0049586a
test eax, eax
jne 0x49147b
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00495311
pop esi
push 0
mov ecx, ebx
call fcn.00487de9
push 1
lea ecx, [edi + 0xf0]
call dword [sym.imp.BasicCtrlDll.dll_public:_void___thiscall_CTimerEvent::SetEnabled_int_]
mov ecx, edi
call fcn.0048f418
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4928bf
Capabilities:
Move file

Disassembly:
mov eax, 0x4e8e38
call fcn.00471450
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
push esi
push dword [edi + 0x1c]
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov dword [ebp - 4], esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CSingleLock::Lock
mov byte [ebp - 4], 1
cmp dword [ebp + 8], esi
je 0x4928ff
mov ecx, edi
call fcn.0049284d
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0049289c
push 0x54ccd4
mov ecx, edi
call fcn.0049289c
lea esi, [edi + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
cmp eax, 0x18000
jbe 0x4929eb
lea eax, [ebp - 0x20]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
lea ebx, [edi + 0x14]
push ebx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
push str._Y_m_d_H_M
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CTime::Format
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
add edi, 0x18
push edi
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
push edi
push ebx
lea eax, [ebp - 0x30]
push eax
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
push edi
push ebx
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov edx, dword [esi]
push 0
push 0x3021
push eax
mov ecx, esi
call dword [edx + 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CSingleLock::Unlock
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CSingleLock::Unlock
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4930d5
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x4e8fc8
call fcn.00471450
sub esp, 0x128
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x4f423c
lea ecx, [ebp - 0x10]
push esi
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.004930ba
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x4931a3
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
mov byte [ebp - 4], 1
call fcn.00492fe3
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.0049301d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 8], ebx
jne 0x493189
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x49322d
mov eax, dword [edi + 4]
push ecx
push str.strNameFile
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
pop ecx
push dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 4
push dword [eax]
push str._sAd_s
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push pe_nt_image_headers32
lea eax, [ebp - 0x134]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x134]
push ecx
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x49321f
cmp dword [ebp - 0x128], 0xa
jge 0x49321c
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x49321f
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4941e3
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x4e93e0
call fcn.00471450
sub esp, 0x30
push ebx
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
pop ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xd]
xor ebx, ebx
push ecx
mov eax, dword [esi]
push str.nCount
mov dword [ebp - 4], ebx
push esi
mov byte [ebp - 0xd], bl
call dword [eax + 0x70]
cmp byte [ebp - 0xd], bl
je 0x494376
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_CreateQQDataArray_struct_IQQDataArray___]
mov eax, dword [ebp - 0x14]
pop ecx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
lea ecx, [ebp - 0x3c]
call fcn.004d85a4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.0047113c
push dword [ebp - 0x24]
mov byte [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.ADgif4.0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_5
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
push 0x80
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x9002
push dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x494342
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CStdioFile::Write
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
push ebx
lea ecx, [ebp - 0x14]
call fcn.00487de9
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x49433d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
jmp 0x494376
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x494376
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x49586a
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x4e9760
call fcn.00471450
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push 0x4f423c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0049584f
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x495920
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
pop ecx
push dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 1
push dword [eax]
push str._sAD_s
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push pe_nt_image_headers32
lea eax, [ebp - 0x12c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x495920
cmp dword [ebp - 0x120], 0xa
jge 0x49591d
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x495920
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x497192
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
test edx, edx
je 0x4972b5
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x4972b5
mov eax, dword [ebp + 8]
push ebx
cmp esi, 8
push edi
not eax
mov ecx, 0xff
jl 0x497292
mov edi, esi
shr edi, 3
mov ebx, edi
neg ebx
lea esi, [esi + ebx*8]
mov dword [ebp + 0x10], esi
movzx ebx, byte [edx]
mov esi, eax
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x5038f8]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x5038f8]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x5038f8]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x5038f8]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x5038f8]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x5038f8]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x5038f8]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x5038f8]
xor eax, esi
inc edx
dec edi
jne 0x4971d0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4972af
movzx ebx, byte [edx]
mov edi, eax
and edi, ecx
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x5038f8]
xor eax, edi
inc edx
dec esi
jne 0x497296
pop edi
pop ebx
not eax
jmp 0x4972b8
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc
Function at 0x499894
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4ea322
call fcn.00471450
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::CString_4
xor edi, edi
lea ecx, [esi + 0x24]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_4
push 1
lea ecx, [esi + 0x28]
pop ebx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp - 0xc]
push 2
pop eax
mov byte [ebp - 4], 5
or dword [esi + 8], 0xffffffff
or dword [ebp - 4], 0xffffffff
mov word [esi + 4], di
mov dword [esi], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x4c], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x34], 0x196
mov dword [esi + 0x10], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4a8a1b
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov eax, 0x4ebed8
call fcn.00471450
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x704]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esi + 0x70c]
push 0x551404
lea eax, [ebp - 0x10]
push edi
push eax
call sub.MFC42.DLL_operator_3
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esi + 0x704]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4a8add
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a8add
push 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [edi]
add esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc
push eax
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4a8add
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00470ef6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4a8b92
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esi + 0x704]
push ebx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4a8b6c
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::CFile
mov esi, dword [esi + 0x704]
push ebx
push 0x1002
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x4a8b2e
xor esi, esi
jmp 0x4a8b31
push 1
pop esi
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0047116c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00470ef6
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00470ef6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4a8b92
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00470ef6
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00470ef6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret