joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496215
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x4f7600
call fcn.00475fe0
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x144]
push ebx
mov ecx, edi
call dword [sym.imp.BasicCtrlDll.dll_public:_void___thiscall_CTimerEvent::SetEnabled_int_]
xor ecx, ecx
mov eax, 0x49726e
push ecx
push eax
push esi
mov ecx, edi
call fcn.004974c4
cmp dword [ebp + 8], ebx
je 0x496379
mov dword [ebp + 8], ebx
push 0x556990
mov dword [ebp - 4], ebx
call fcn.00496914
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 0x49627e
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.004995c5
pop ecx
mov dword [ebp + 0xc], eax
pop ecx
push 0x50229c
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 0x55696c
push eax
call sub.MFC42.DLL_CString::Format
push dword [ebp - 0x10]
call fcn.00496914
add esp, 0x14
cmp dword [ebp + 0xc], ebx
je 0x496352
mov eax, dword [esi + 0xd4]
test al, 2
je 0x4962e8
push dword [ebp + 8]
mov eax, dword [esi + 0xd8]
push eax
call fcn.00496659
pop ecx
pop ecx
jmp 0x4962f0
or al, 2
mov dword [esi + 0xd4], eax
lea edi, [esi + 0xd8]
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.00419121
push dword [edi]
call fcn.0049a374
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.0049730b
cmp dword [ebp - 0x18], ebx
je 0x49633f
lea ecx, [ebp - 0x18]
call fcn.0049730b
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 0x49635b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x49635b
push ebx
lea ecx, [ebp + 8]
call fcn.004acbcd
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 0x496384
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x496384
push 0x55693c
call fcn.00496914
pop ecx
mov ecx, esi
call fcn.004952f6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x49639c
Capabilities:
Move file

Disassembly:
mov eax, 0x4f7624
call fcn.00475fe0
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0xdc]
lea ebx, [edi + 0xdc]
test eax, eax
je 0x496474
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.0049a1a2
push dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.00496914
pop ecx
mov esi, 0x50229c
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 0x496400
call fcn.0049ad31
push eax
push 0x556a00
jmp 0x49640b
call fcn.0049ad31
push eax
push 0x5569cc
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x10]
call fcn.00496914
cmp dword [ebp + 8], 0
pop ecx
je 0x49645b
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.0049a759
test eax, eax
jne 0x49644f
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.0049a200
pop esi
push 0
mov ecx, ebx
call fcn.004acbcd
push 1
lea ecx, [edi + 0xe0]
call dword [sym.imp.BasicCtrlDll.dll_public:_void___thiscall_CTimerEvent::SetEnabled_int_]
mov ecx, edi
call fcn.00494567
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x497778
Capabilities:
Move file

Disassembly:
mov eax, 0x4f7918
call fcn.00475fe0
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 0x4977b8
mov ecx, edi
call fcn.00497706
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00497755
push 0x550f80
mov ecx, edi
call fcn.00497755
lea esi, [edi + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
cmp eax, 0x18000
jbe 0x4978a4
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 fcn.00475a64
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 fcn.00475a64
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 0x497f8e
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x4f7aa8
call fcn.00475fe0
sub esp, 0x128
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x50229c
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.00497f73
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x49805c
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.00497e9c
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.00497ed6
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 0x498042
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 0x4980e6
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 0x118
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 0x4980d8
cmp dword [ebp - 0x128], 0xa
jge 0x4980d5
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 0x4980d8
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 0x4990d2
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x4f7ec0
call fcn.00475fe0
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 0x499265
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.004e6b28
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.00475cce
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 0x499231
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.004acbcd
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 0x49922c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
jmp 0x499265
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 0x499265
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 0x49a759
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x4f8240
call fcn.00475fe0
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push 0x50229c
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.0049a73e
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x49a80f
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 0x118
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 0x49a80f
cmp dword [ebp - 0x120], 0xa
jge 0x49a80c
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 0x49a80f
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 0x49c086
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 0x49c1a9
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x49c1a9
mov eax, dword [ebp + 8]
push ebx
cmp esi, 8
push edi
not eax
mov ecx, 0xff
jl 0x49c186
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 + 0x512a10]
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 + 0x512a10]
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 + 0x512a10]
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 + 0x512a10]
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 + 0x512a10]
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 + 0x512a10]
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 + 0x512a10]
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 + 0x512a10]
xor eax, esi
inc edx
dec edi
jne 0x49c0c4
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x49c1a3
movzx ebx, byte [edx]
mov edi, eax
and edi, ecx
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x512a10]
xor eax, edi
inc edx
dec esi
jne 0x49c18a
pop edi
pop ebx
not eax
jmp 0x49c1ac
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc
Function at 0x49e7ed
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4f8e42
call fcn.00475fe0
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 0x4a989b
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov eax, 0x4fa1e4
call fcn.00475fe0
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x808]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esi + 0x810]
push 0x5567bc
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 fcn.00475a8e
mov eax, dword [esi + 0x808]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4a995d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a995d
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 0x4a995d
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 sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4a9a12
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x58]
call fcn.00475a8e
mov eax, dword [esi + 0x808]
push ebx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4a99ec
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::CFile
mov esi, dword [esi + 0x808]
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 0x4a99ae
xor esi, esi
jmp 0x4a99b1
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.00475cfe
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4a9a12
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
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
Function at 0x4af7d7
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4fadcc
call fcn.00475fe0
sub esp, 0x18
push esi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x1c]
push edx
push 0x502a58
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x4af92a
push ebx
push edi
push str.SETUP_OPTION
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
mov dword [esp], str.SetupInfo.ini
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, str.SETUP_TYPE
push esi
push ebx
push dword [ebp - 0x14]
call edi
cmp eax, 1
mov dword [ebp - 0x24], eax
je 0x4af876
cmp eax, 2
jne 0x4af910
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
movzx esi, byte [eax + 0xce]
call sub.MFC42.DLL_AfxGetAppModuleState
imul esi, esi, 0x64
mov eax, dword [eax + 4]
push dword [ebp - 0x10]
movzx eax, byte [eax + 0xcf]
add esi, eax
push 0
mov dword [ebp - 0x20], esi
mov esi, str.SETUP_VERSION
push esi
push dword [ebp - 0x14]
call edi
test eax, eax
jle 0x4af8c4
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov edx, dword [ecx]
push eax
push 1
push 7
push ecx
call dword [edx + 0x1c]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x5506f0
push ebx
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_4
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push 0x55205c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
test eax, eax
pop esi
je 0x4af93c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4afa35
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4afa8e
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
jne 0x4afa8e
xor ax, ax
jmp 0x4afb32
mov eax, dword [ebp - 0x8c]
sub eax, 0
je 0x4afb2f
dec eax
je 0x4afadc
dec eax
je 0x4afaaa
xor eax, eax
jmp 0x4afb32
push 4
pop eax
cmp dword [ebp - 0x98], eax
ja 0x4afab9
push 1
jmp 0x4afb31
cmp dword [ebp - 0x98], 5
jne 0x4afb32
cmp dword [ebp - 0x94], 0
jne 0x4afacf
push 2
jmp 0x4afb31
cmp dword [ebp - 0x94], 1
jne 0x4afb32
push 3
jmp 0x4afb31
cmp dword [ebp - 0x98], 4
push 0xa
pop eax
jne 0x4afb32
cmp dword [ebp - 0x94], 0
jne 0x4afb0a
cmp byte [ebp - 0x87], 0x43
push 5
pop eax
je 0x4afb06
cmp byte [ebp - 0x87], 0x42
jne 0x4afb32
push 6
jmp 0x4afb31
cmp dword [ebp - 0x94], eax
jne 0x4afb22
cmp byte [ebp - 0x87], 0x41
push 7
pop eax
jne 0x4afb32
push 8
jmp 0x4afb31
cmp dword [ebp - 0x94], 0x5a
jne 0x4afb32
push 9
jmp 0x4afb31
push 0xb
pop eax
pop esi
leave
ret
Function at 0x4b06af
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 0x4b07d2
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x4b07d2
mov eax, dword [ebp + 8]
push ebx
cmp esi, 8
push edi
not eax
mov ecx, 0xff
jl 0x4b07af
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 + 0x514a3c]
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 + 0x514a3c]
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 + 0x514a3c]
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 + 0x514a3c]
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 + 0x514a3c]
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 + 0x514a3c]
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 + 0x514a3c]
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 + 0x514a3c]
xor eax, esi
inc edx
dec edi
jne 0x4b06ed
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4b07cc
movzx ebx, byte [edx]
mov edi, eax
and edi, ecx
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x514a3c]
xor eax, edi
inc edx
dec esi
jne 0x4b07b3
pop edi
pop ebx
not eax
jmp 0x4b07d5
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc