joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042f0
Capabilities:
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x463748
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
jne case.default.0x404322
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 3
ja case.default.0x404322
jmp dword [eax*4 + 0x40447c]
push 0x5c
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x404405
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, eax
call fcn.0040d4f0
jmp 0x404407
push 0x60
call sub.MFC71.DLL_operator_new_1
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
mov dword [esp + 0x10], 1
je 0x404405
call sub.MFC71.DLL_AfxGetThread
mov eax, dword [eax + 0x30]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0040d2b0
jmp 0x404407
push 0x314
call sub.MFC71.DLL_operator_new_1
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov dword [esp + 0x10], 2
je 0x404405
call sub.MFC71.DLL_AfxGetThread
mov eax, dword [eax + 0x30]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.0040a370
jmp 0x404407
push 0xbc
call sub.MFC71.DLL_operator_new_1
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov dword [esp + 0x10], 3
je 0x404405
call sub.MFC71.DLL_AfxGetThread
mov edx, dword [eax + 0x30]
mov eax, dword [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.0040abd0
jmp 0x404407
xor eax, eax
test eax, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [edi], eax
je case.default.0x404322
push 0
push 0
mov dword [eax + 0x34], 0
mov ecx, dword [edi]
push 4
call sub.MFC71.DLL_CWinThread::CreateThread
test eax, eax
jne 0x40444d
mov ecx, dword [edi]
test ecx, ecx
je case.default.0x404322
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
mov eax, dword [edi]
mov ecx, dword [eax + 0x2c]
push 0xfffffffffffffff1
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [edi]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
Function at 0x404ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x463803
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 [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
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 0x406f60
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x463a59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea ecx, [esp + 4]
call dword [0x46e148]
mov eax, dword [str.cVer.bin]
push eax
mov ecx, 0x4b3a40
mov dword [esp + 0x14], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0xc]
push 0x46f7ec
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x80
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x46fd6c
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x407037
push 0
push 4
push esi
call dword [sym.imp.MSVCR71.dll_fseek]
push esi
push 1
lea edx, [esp + 0x2c]
push 4
push edx
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x1c
cmp eax, 1
push esi
je 0x40702e
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x407b90
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x463b24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4a32a0]
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x100], eax
call dword [0x46e148]
push str.BossRan_
lea eax, [esp + 0x18]
push 0x4b3a44
xor ebp, ebp
push eax
mov dword [esp + 0x118], ebp
call fcn.00401590
push 0x4b3a54
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x124], 1
call fcn.00402b10
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x46ff2c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x407c5d
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x407d69
push ebx
lea ecx, [esp + 0x1c]
call fcn.004071a0
mov edx, dword [esp + 0x118]
mov ebx, dword [sym.imp.MSVCR71.dll_fwrite]
push edi
push 1
lea eax, [esp + 0x24]
push 0xe8
push eax
mov dword [esp + 0xec], edx
call ebx
add esp, 0x10
cmp eax, 1
je 0x407cb7
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveDownList_File_Game_Version_Write_Failed_
call fcn.00417130
add esp, 8
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x407d68
mov eax, dword [esi + 0xa0]
cmp eax, ebp
jne 0x407cca
mov dword [esp + 0xdc], ebp
jmp 0x407cdc
mov ecx, dword [esi + 0xa4]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0xdc], ecx
push edi
push 1
lea edx, [esp + 0x24]
push 0xe8
push edx
call ebx
add esp, 0x10
cmp eax, 1
je 0x407d01
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveDownList_File_Size_Write_Failed_
jmp 0x407c9e
mov ecx, dword [esi + 0xa0]
test ecx, ecx
jne 0x407d0f
xor eax, eax
jmp 0x407d1a
mov eax, dword [esi + 0xa4]
sub eax, ecx
sar eax, 2
cmp ebp, eax
push edi
jge 0x407d50
mov eax, dword [esi + 0xa0]
lea eax, [eax + ebp*4]
mov eax, dword [eax]
push 1
push 0xe8
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x407d3f
inc ebp
jmp 0x407d01
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveDownList_File_Write_Failed_
jmp 0x407c9e
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x104]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xf8]
pop ebp
call fcn.00450c39
add esp, 0x104
ret 4
Function at 0x407d90
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x463b24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4a32a0]
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x100], eax
call dword [0x46e148]
push str.BossRan_
lea eax, [esp + 0x18]
push 0x4b3a44
xor ebp, ebp
push eax
mov dword [esp + 0x118], ebp
call fcn.00401590
push 0x4b3a58
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x124], 1
call fcn.00402b10
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x46ff2c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x407e5d
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x407f69
push ebx
lea ecx, [esp + 0x1c]
call fcn.004071a0
mov edx, dword [esp + 0x118]
mov ebx, dword [sym.imp.MSVCR71.dll_fwrite]
push edi
push 1
lea eax, [esp + 0x24]
push 0xe8
push eax
mov dword [esp + 0xec], edx
call ebx
add esp, 0x10
cmp eax, 1
je 0x407eb7
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveCopyList_File_Game_Version_Write_Failed_
call fcn.00417130
add esp, 8
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x407f68
mov eax, dword [esi + 0xbc]
cmp eax, ebp
jne 0x407eca
mov dword [esp + 0xdc], ebp
jmp 0x407edc
mov ecx, dword [esi + 0xc0]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0xdc], ecx
push edi
push 1
lea edx, [esp + 0x24]
push 0xe8
push edx
call ebx
add esp, 0x10
cmp eax, 1
je 0x407f01
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveCopyList_File_Size_Write_Failed_
jmp 0x407e9e
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jne 0x407f0f
xor eax, eax
jmp 0x407f1a
mov eax, dword [esi + 0xc0]
sub eax, ecx
sar eax, 2
cmp ebp, eax
push edi
jge 0x407f50
mov eax, dword [esi + 0xbc]
lea eax, [eax + ebp*4]
mov eax, dword [eax]
push 1
push 0xe8
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x407f3f
inc ebp
jmp 0x407f01
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveCopyList_File_Write_Failed_
jmp 0x407e9e
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x104]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xf8]
pop ebp
call fcn.00450c39
add esp, 0x104
ret 4
Function at 0x407f90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x463b54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x10]
call dword [0x46e148]
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], esi
call dword [0x46e148]
mov eax, dword [ebp + 0x90]
cmp eax, esi
mov byte [esp + 0x28], 1
jne 0x407fdb
xor edi, edi
jmp 0x407fe6
mov edi, dword [ebp + 0x94]
sub edi, eax
sar edi, 2
push str.packagedata.rpf
lea eax, [esp + 0x1c]
push 0x4b3a40
push eax
call fcn.00401590
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ebx, [ebp + 0xd4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, ebx
call fcn.0041b5d0
cmp edi, esi
jle 0x4080d2
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0x90]
mov eax, dword [eax + esi*4]
push eax
add eax, 0x40
push eax
mov ecx, 0x4b3a40
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x1c]
push str._s_s_s
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push 0x2e
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call ebx
inc esi
cmp esi, edi
jl 0x408046
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.0041b0b0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x408110
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x463b7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0xc]
call dword [0x46e148]
mov eax, dword [ebx + 0xa0]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], esi
jne 0x40814b
xor edi, edi
jmp 0x408156
mov edi, dword [ebx + 0xa4]
sub edi, eax
sar edi, 2
cmp edi, esi
jle 0x4081ae
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + esi*4]
push eax
mov ecx, 0x4b3a4c
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
push str.BossRan_
mov ecx, 0x4b3a44
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea eax, [esp + 0x20]
push str._s_s_s_s
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x18
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call ebp
inc esi
cmp esi, edi
jl 0x408161
pop ebp
push str.BossRan_
lea ecx, [esp + 0x18]
push 0x4b3a44
push ecx
call fcn.00401590
push 0x4b3a4c
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x38], 1
call fcn.00402b10
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40a9d0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x463f6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0xc]
call dword [0x46e148]
mov eax, dword [ebx + 0xa0]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], esi
jne 0x40aa0b
xor edi, edi
jmp 0x40aa16
mov edi, dword [ebx + 0xa4]
sub edi, eax
sar edi, 2
cmp edi, esi
jle 0x40aa6e
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + esi*4]
push eax
mov ecx, 0x4b3a4c
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
push str.BossRan_
mov ecx, 0x4b3a44
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea eax, [esp + 0x20]
push str._s_s_s_s
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x18
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call ebp
inc esi
cmp esi, edi
jl 0x40aa21
pop ebp
push str.BossRan_
lea ecx, [esp + 0x18]
push 0x4b3a44
push ecx
call fcn.00401590
push 0x4b3a4c
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x38], 1
call fcn.00402b10
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40ae10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x463fec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4a32a0]
push ebp
mov dword [esp + 0xc], ecx
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xfc], eax
call dword [0x46e148]
mov eax, dword [str.cFileList.bin]
xor ebp, ebp
push eax
mov ecx, 0x4b3a40
mov dword [esp + 0x10c], ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x10]
push 0x46f7ec
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x46f7e8
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x40aea5
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40afda
push ebx
lea ecx, [esp + 0x18]
call fcn.004071a0
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
push esi
push 1
lea edx, [esp + 0x20]
push 0xc4
push edx
call ebx
add esp, 0x10
cmp eax, 1
je 0x40aee7
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40afd9
mov eax, dword [esp + 0xd8]
dec eax
push edi
je 0x40af19
dec eax
je 0x40af12
push ebp
push ebp
push str._ERROR_:Filelist_is_different_
call sub.MFC71.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40afd8
mov edi, 0xe8
jmp 0x40af1e
mov edi, 0xc4
push 1
lea eax, [edi - 0xc4]
push eax
push esi
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
test eax, eax
push esi
jne 0x40af49
push 1
lea ecx, [esp + 0x24]
push edi
push ecx
call ebx
add esp, 0x10
cmp eax, 1
je 0x40af60
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40afd8
mov eax, dword [esp + 0xdc]
test eax, eax
jle 0x40afbf
jmp 0x40af70
push 0xe8
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40af8a
mov ecx, eax
call fcn.004071a0
jmp 0x40af8c
xor eax, eax
push esi
push 1
push edi
push eax
mov dword [esp + 0x24], eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x40af48
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
add ecx, 0xac
call fcn.00408930
mov eax, dword [esp + 0xdc]
inc ebp
cmp ebp, eax
jl 0x40af70
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x100]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xf8]
pop ebp
call fcn.00450c39
add esp, 0x104
ret
Function at 0x40b960
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4640bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1dc
mov eax, dword [0x4a32a0]
push ebp
mov dword [esp + 8], ecx
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x1e0], eax
call dword [0x46e148]
mov eax, dword [str.cFileList.bin]
xor ebp, ebp
push eax
mov ecx, 0x4b3a40
mov dword [esp + 0x1f0], ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x10]
push 0x46f7ec
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x46f7e8
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x40b9f5
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40bb1d
push ebx
lea ecx, [esp + 0x14]
call fcn.004071a0
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
push esi
push 1
lea edx, [esp + 0x1c]
push 0xc4
push edx
call ebx
add esp, 0x10
cmp eax, 1
je 0x40ba37
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40bb1c
mov eax, dword [esp + 0xd4]
dec eax
push edi
je 0x40ba69
dec eax
je 0x40ba62
push ebp
push ebp
push str._ERROR_:Filelist_is_different_
call sub.MFC71.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40bb1b
mov edi, 0xe8
jmp 0x40ba6e
mov edi, 0xc4
push 1
lea eax, [edi - 0xc4]
push eax
push esi
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
test eax, eax
push esi
jne 0x40ba99
push 1
lea ecx, [esp + 0x20]
push edi
push ecx
call ebx
add esp, 0x10
cmp eax, 1
je 0x40bab0
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40bb1b
cmp dword [esp + 0xd8], ebp
jle 0x40bb02
lea esp, [esp]
lea ecx, [esp + 0x100]
call fcn.004071a0
push esi
push 1
lea edx, [esp + 0x108]
push edi
push edx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x40ba98
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x100]
push eax
add ecx, 0x6c
call fcn.0040d0f0
mov eax, dword [esp + 0xd8]
inc ebp
cmp ebp, eax
jl 0x40bac0
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x1e4]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1dc]
pop ebp
call fcn.00450c39
add esp, 0x1e8
ret