joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4091d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x409252
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x409252
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4091fb
and al, 0x10
sub al, 0x10
neg al
pop edi
sbb eax, eax
inc eax
ret
push esi
push edi
call dword [sym.imp.MSVCR71.dll__strdup]
mov esi, eax
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 0xc
test eax, eax
je 0x40924a
push esi
mov byte [eax], 0
call fcn.004091d0
add esp, 4
test eax, eax
push esi
jne 0x409234
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
pop esi
xor eax, eax
pop edi
ret
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40922f
pop esi
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x409300
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x4cbba0]
xor eax, ebp
push edi
mov dword [esp + 0x22c], eax
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0x3f
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x128], 0
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp + 8]
stosb byte es:[edi], al
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [esp + 0x28]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x409358
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [esp + 0x128]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x409372
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 8]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x128]
push eax
mov dword [esp + 0x10], 2
mov word [esp + 0x1c], 0x14
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
lea ecx, [ebp + 8]
jne 0x4093fa
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.004a17d1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x22c]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004a17d1
mov esp, ebp
pop ebp
ret
Function at 0x409420
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2e8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
mov eax, dword [0x4cbba0]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
push edi
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
call fcn.004a117a
mov edi, dword [sym.imp.MSVCR71.dll_sprintf]
push esi
lea eax, [ebp - 0x21c]
push str._s.
push eax
mov dword [ebp - 4], 0
call edi
add esp, 0xc
push 0
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 1
call sub.MFC71.DLL_CFileFind::FindFile
mov ebx, eax
jmp 0x4094a0
test ebx, ebx
lea ecx, [ebp - 0x440]
je 0x409557
call sub.MFC71.DLL_CFileFind::FindNextFileA
lea ecx, [ebp - 0x440]
mov ebx, eax
call sub.MFC71.DLL_CFileFind::IsDots
test eax, eax
jne 0x4094a0
lea edx, [ebp - 0x428]
push edx
lea ecx, [ebp - 0x440]
call sub.MFC71.DLL_CFileFind::GetFileName
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [ebp - 0x118]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4094e4
lea ecx, [ebp - 0x428]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x440]
push 0x10
lea ecx, [ebp - 0x440]
call dword [eax + 0x40]
test eax, eax
lea ecx, [ebp - 0x118]
push ecx
push esi
push 0x4ac6a0
je 0x409539
lea edx, [ebp - 0x320]
push edx
call edi
lea eax, [ebp - 0x320]
push eax
call fcn.00409420
add esp, 0x14
jmp 0x4094a0
lea edx, [ebp - 0x424]
push edx
call edi
add esp, 0x10
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4094a0
call sub.MFC71.DLL_CFileFind::Close
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0xffffffff
je 0x409593
call sub.MFC71.DLL_CFileFind::CFileFind
mov eax, 1
jmp 0x40959a
call sub.MFC71.DLL_CFileFind::CFileFind
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a17d1
mov esp, ebp
pop ebp
ret
Function at 0x409600
Capabilities:
Check os version
Shutdown system

Disassembly:
sub esp, 0xb4
mov eax, dword [0x4cbba0]
xor eax, esp
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409652
mov eax, dword [esp + 0x18]
cmp eax, 4
jne 0x409669
mov eax, dword [esp + 0x1c]
cmp eax, 0xa
je 0x409726
cmp eax, 0x5a
je 0x409726
test eax, eax
je 0x409726
xor eax, eax
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004a17d1
add esp, 0xb4
ret
cmp eax, 3
jne 0x409690
cmp dword [esp + 0x1c], 0x33
je 0x409726
xor eax, eax
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004a17d1
add esp, 0xb4
ret
cmp eax, 5
jne 0x4096be
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4096d0
cmp eax, 1
je 0x4096d0
cmp eax, 2
je 0x4096d0
xor eax, eax
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004a17d1
add esp, 0xb4
ret
cmp eax, 6
jne 0x409652
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4096d0
cmp eax, 1
jne 0x409652
lea ecx, [esp]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp]
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0xb0]
neg eax
sbb eax, eax
xor ecx, esp
neg eax
call fcn.004a17d1
add esp, 0xb4
ret

Function at 0x409750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a2ea9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x409d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a2f23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x4ab968]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x409e30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a2f42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push str.error_cah.log
lea eax, [esp + 0xc]
push 0x4cbdc0
push eax
mov dword [esp + 0x28], 0
call fcn.004010a0
add esp, 0xc
push 0x4adad0
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
lea ecx, [esp + 8]
mov ebp, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test ebp, ebp
je 0x409f6c
push ebx
push esi
push edi
push 0
call dword [sym.imp.MSVCR71.dll__time64]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov esi, dword [sym.imp.MSVCR71.dll__localtime64]
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x2c], 1
call esi
add esp, 4
or edi, 0xffffffff
test eax, eax
je 0x409ed7
mov edx, dword [eax]
mov dword [esp + 0x14], edx
jmp 0x409edb
mov dword [esp + 0x14], edi
lea eax, [esp + 0x18]
push eax
call esi
add esp, 4
test eax, eax
je 0x409eee
mov ebx, dword [eax + 4]
jmp 0x409ef0
mov ebx, edi
lea ecx, [esp + 0x18]
push ecx
call esi
add esp, 4
test eax, eax
je 0x409f01
mov edi, dword [eax + 8]
lea edx, [esp + 0x18]
push edx
call esi
add esp, 4
test eax, eax
je 0x409f14
mov eax, dword [eax + 0xc]
jmp 0x409f16
xor eax, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebx
push edi
push eax
lea eax, [esp + 0x24]
push str._time:_d__d:_d:_d__t_s_r_n
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x1c
push ebp
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
push 1
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
push ebp
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
pop esi
pop ebx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x14]
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40b4a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4cbba0]
push esi
xor eax, ebp
mov esi, ecx
push edi
mov ecx, 0x4cc840
mov dword [esp + 0x22c], eax
call fcn.0042c9f0
test eax, eax
je 0x40b4e7
mov eax, dword [str.PVOD]
mov cl, byte [0x4ac1f0]
mov dword [esp + 0x1f8], eax
mov byte [esp + 0x1fc], cl
jmp 0x40b500
mov edx, dword [str.PIPI]
mov al, byte [0x4ad18c]
mov dword [esp + 0x1f8], edx
mov byte [esp + 0x1fc], al
mov edx, dword [esi + 0x15c]
xor eax, eax
mov ecx, 0x7a
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x20]
push str.config_menu.ini
lea eax, [esp + 0x10]
push 0x4cbdc0
push eax
mov dword [esp + 0x1bc], 3
mov dword [esp + 0x1c], 0x1e8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x3f4
mov dword [esp + 0x28], 7
mov dword [esp + 0x2c], 0x466
mov dword [esp + 0x30], edx
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x80
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x204]
push edx
push str.abouttitle
push str.LIBMENU
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x10]
push eax
push 0
mov byte [esp + 0xb8], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov ecx, dword [esp + 0x22c]
pop edi
xor ecx, ebp
pop esi
call fcn.004a17d1
mov esp, ebp
pop ebp
ret
Function at 0x40b5c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f8
mov eax, dword [0x4cbba0]
xor eax, ebp
push esi
mov esi, dword [0x4cc954]
mov dword [esp + 0x1f8], eax
mov edx, ecx
xor eax, eax
push edi
mov ecx, 0x7a
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [esp + 0x1b0], 3
mov dword [esp + 0x10], 0x1e8
mov dword [esp + 0x18], 0x3f4
je 0x40b63e
test esi, esi
je 0x40b63e
mov dword [esp + 0x1c], 0x17
mov dword [esp + 0x1f4], 1
mov dword [esp + 0x1b0], 0xa
jmp 0x40b646
mov dword [esp + 0x1c], 7
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [esp + 0x20], 0x466
jne 0x40b65b
mov ecx, dword [edx + 0x15c]
test eax, eax
mov dword [esp + 0x24], ecx
je 0x40b6fc
test esi, esi
je 0x40b6fc
push str.config_menu.ini
lea edx, [esp + 0x10]
push 0x4cbdc0
push edx
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x40
lea eax, [esp + 0x1bc]
push eax
push str.PIPI
push str.abouttitle
push str.LIBMENU
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40b6ef
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40b6c4
sub ecx, esi
mov dword [esp + 0xc], ecx
je 0x40b6ef
lea edx, [esp + 0xb0]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b6e0
jmp 0x40b785
mov byte [esp + 0xb0], 0
jmp 0x40b785
mov eax, dword [ebp + 0xc]
test eax, eax
mov byte [esp + 0xb0], 0
mov byte [esp + 0x1b4], 0
je 0x40b73c
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40b718
sub ecx, esi
mov dword [esp + 0xc], ecx
je 0x40b73c
lea edx, [esp + 0x28]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b730
jmp 0x40b785
push str.config_menu.ini
lea ecx, [esp + 0x10]
push 0x4cbdc0
push ecx
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x80
lea edx, [esp + 0x30]
push edx
push str.PIPI
push str.abouttitle
push str.LIBMENU
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x10]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov ecx, dword [esp + 0x1fc]
pop edi
xor ecx, ebp
pop esi
call fcn.004a17d1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c160
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a3384
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x154]
mov ecx, esi
mov dword [esp + 0x20], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x40c269
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
push 2
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40c21d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
mov ebp, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push ebp
lea ecx, [esp + 0x10]
push str.Call_SetFileAttributes_Error:_d
push ecx
mov byte [esp + 0x2c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 8
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
call fcn.00409e30
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SAVEDPATH
mov byte [esp + 0x2c], 2
call dword [0x4ab700]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4ac6b4
mov byte [esp + 0x30], 3
call dword [0x4ab700]
lea ecx, [edi + 0x158]
mov byte [esp + 0x2c], 0
call fcn.0042c7a0
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x18
ret 4

Function at 0x40cb20
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
push str.configconfig.ini
lea eax, [esp + 8]
push 0x4cbdc0
push eax
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0
push str.EXPERIENCE
push 0x4ac6b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 4]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x40cb70
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0040cb20
test eax, eax
je 0x40cb82
xor eax, eax
pop esi
pop ecx
ret
mov ecx, esi
call fcn.00408c60
test eax, eax
jne 0x40cba8
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x409fe0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x418800
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x3a4]
test eax, eax
jg 0x418813
xor eax, eax
pop ebx
ret 0xc
push ebp
lea ebp, [eax - 1]
test ebp, ebp
push esi
push edi
jl 0x418877
lea ecx, [ecx]
test ebp, ebp
jl 0x4188d8
cmp ebp, dword [ebx + 0x3a4]
jge 0x4188d8
mov eax, dword [ebx + 0x3a0]
mov edi, dword [eax + ebp*4]
test edi, edi
je 0x418874
mov esi, dword [esp + 0x14]
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41886b
test cl, cl
je 0x418867
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41886b
add eax, 2
add esi, 2
test cl, cl
jne 0x418847
xor eax, eax
jmp 0x418870
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418880
dec ebp
jns 0x418820
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [edi + 0x238]
test eax, eax
je 0x418877
mov ecx, dword [ebx + 0x160]
test ecx, ecx
je 0x41889a
push edi
call fcn.00404cf0
lea esi, [edi + 0x128]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
mov edx, esi
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4188b0
mov eax, dword [esp + 0x1c]
push edi
mov ecx, ebx
mov dword [edi + 0x27c], eax
call fcn.00417560
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
call fcn.004a11bc
int3

Function at 0x4188e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ecx + 0x3a4]
test eax, eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
jle 0x418a13
xor edx, edx
test eax, eax
mov dword [esp + 0x14], edx
jle 0x418a13
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test edx, edx
jl 0x418a1b
cmp edx, dword [ecx + 0x3a4]
jge 0x418a1b
mov eax, dword [ecx + 0x3a0]
mov eax, dword [eax + edx*4]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x418a00
mov esi, dword [eax + 0x274]
test esi, esi
je 0x418a00
mov eax, dword [eax + 0x268]
test eax, eax
jle 0x418a00
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.0044b080
add esp, 8
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
call fcn.00407bc0
push 0
call dword [sym.imp.MSVCR71.dll__time64]
mov ebx, dword [esp + 0x24]
mov esi, eax
push str.configconfig.ini
mov edi, edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push 0x4cbdc0
sub esi, ebx
push eax
sbb edi, edx
call fcn.004010a0
add esp, 0x10
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0xf
push str.PushFileSaveDays
push 0x4ac6b4
call ebp
lea ecx, [esp + 0x18]
mov ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 0x15180
push edi
push esi
call fcn.004a18c0
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
cmp ecx, edx
jl 0x4189f8
jg 0x4189e7
cmp esi, eax
jb 0x4189f8
mov ecx, dword [esp + 0x1c]
add ecx, 0x28
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00418470
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x3a4]
inc edx
cmp edx, eax
mov dword [esp + 0x14], edx
jl 0x418913
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.004a11bc
Function at 0x41b640
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a4501
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x4cbba0]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
cmp esi, ebp
mov dword [esp + 0x20], 1
je 0x41b6a1
lea ebx, [ebx]
push esi
lea ecx, [esp + 0x38]
call fcn.0041b190
add esi, 0x1c
cmp esi, ebp
jne 0x41b690
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], edx
lea ecx, [esp + 0x34]
mov dword [esp + 0xc], 1
mov byte [esp + 0x20], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc]
pop ebp
xor ecx, esp
call fcn.004a17d1
add esp, 0x18
ret