joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x4cb030]
push esi
mov esi, ecx
mov dword [esp + 0x120], eax
mov al, byte [esi + 0xa8]
test al, al
push edi
je 0x403e70
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4807da
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov eax, dword [str.launcherpatch.exe.cab]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov dword [esp + 0x158], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x4807d8
mov byte [esp + 0x174], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esi + 0xa4]
push ecx
mov ecx, esi
mov dword [esp + 0x174], 0xffffffff
call fcn.00403210
test eax, eax
jne 0x403e70
mov eax, 0xfffffffd
jmp 0x403f1a
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
push 0
push 5
lea edx, [esp + 0x20]
stosw word es:[edi], ax
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 8]
call dword [0x47f138]
mov eax, dword [str.launcherpatch.exe.cab]
mov ecx, dword [0x4db7c4]
push eax
push str.Ran_IMBA_Season_2_
push ecx
lea edx, [esp + 0x14]
push str._s_s_s
push edx
mov dword [esp + 0x148], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
mov ecx, 0x4db7c0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call fcn.004488b0
add esp, 8
test eax, eax
jne 0x403f04
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 0xfffffffc
jmp 0x403f1a
mov ecx, esi
call fcn.00402440
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
call fcn.00462cf9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404340
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4757ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x4cb030]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x64
mov esi, ecx
mov dword [esp + 0x124], eax
mov eax, dword [esi + 0xf4]
push 0x402
push eax
call edi
mov ecx, dword [esi + 0x148]
push 0
push 0x64
push 0x402
push ecx
call edi
lea edi, [esi + 0x2b8]
test edi, edi
jne 0x4043aa
xor eax, eax
jmp 0x4043ad
mov eax, dword [edi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebx
lea eax, [esi + 0x30c]
test eax, eax
je 0x4043c5
mov eax, dword [eax + 0x20]
push 0
push eax
call ebx
push 1
mov ecx, edi
call sub.MFC71.DLL_CWnd::EnableWindow
push 1
lea ecx, [esi + 0x264]
call sub.MFC71.DLL_CWnd::EnableWindow
push 0
mov ecx, 0x4db7c0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call fcn.004480f0
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
mov ecx, 0x4db7c0
stosb byte es:[edi], al
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edi, 0x104
lea ecx, [esp + 0x10]
nop
mov dl, byte [eax]
test dl, dl
je 0x40442f
mov byte [ecx], dl
inc ecx
inc eax
dec edi
jne 0x404420
jmp 0x404433
test edi, edi
jne 0x404434
dec ecx
mov byte [ecx], 0
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x40444b
inc eax
dec ecx
jne 0x404440
jmp 0x40446d
test ecx, ecx
je 0x40446d
mov eax, 0x104
sub eax, ecx
push str.DataGUI_
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + eax + 0x18]
push eax
call fcn.00401e80
call fcn.0040f330
mov ecx, eax
call fcn.0040dd60
lea ecx, [esp + 0x10]
push ecx
call fcn.0040f330
mov ecx, eax
call fcn.004025d0
mov edx, dword [0x4c9d50]
push edx
mov ecx, 0x203c6bc
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call fcn.0040f330
mov ecx, eax
call fcn.0040f180
mov ecx, esi
call fcn.004037d0
push 0xc
push str.IDS_MESSAGE
call fcn.0040f390
add esp, 8
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x130], 0
call fcn.00402eb0
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
call fcn.00462cf9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404530
Capabilities:
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475828
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
jne case.default.0x404562
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 3
ja case.default.0x404562
jmp dword [eax*4 + 0x4046bc]
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 0x404645
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, eax
call fcn.0040dbd0
jmp 0x404647
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 0x404645
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.0040d990
jmp 0x404647
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 0x404645
call sub.MFC71.DLL_AfxGetThread
mov eax, dword [eax + 0x30]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.0040aa50
jmp 0x404647
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 0x404645
call sub.MFC71.DLL_AfxGetThread
mov edx, dword [eax + 0x30]
mov eax, dword [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.0040b2c0
jmp 0x404647
xor eax, eax
test eax, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [edi], eax
je case.default.0x404562
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 0x40468d
mov ecx, dword [edi]
test ecx, ecx
je case.default.0x404562
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 0x404f00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475903
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 0x407640
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x475b79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea ecx, [esp + 4]
call dword [0x47f138]
mov eax, dword [str.cVer.bin]
push eax
mov ecx, 0x4db7c0
mov dword [esp + 0x14], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0xc]
push 0x4807c8
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 0x480edc
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 0x407717
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 0x40770e
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 0x408240
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x475c44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4cb030]
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x100], eax
call dword [0x47f138]
push str.Ran_IMBA_Season_2_
lea eax, [esp + 0x18]
push 0x4db7c4
xor ebp, ebp
push eax
mov dword [esp + 0x118], ebp
call fcn.00401510
push 0x4db7d4
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x124], 1
call fcn.00402d20
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
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 0x481098
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 0x40830d
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x408419
push ebx
lea ecx, [esp + 0x1c]
call fcn.00407870
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 0x408367
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveDownList_File_Game_Version_Write_Failed_
call fcn.00417630
add esp, 8
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x408418
mov eax, dword [esi + 0xa0]
cmp eax, ebp
jne 0x40837a
mov dword [esp + 0xdc], ebp
jmp 0x40838c
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 0x4083b1
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveDownList_File_Size_Write_Failed_
jmp 0x40834e
mov ecx, dword [esi + 0xa0]
test ecx, ecx
jne 0x4083bf
xor eax, eax
jmp 0x4083ca
mov eax, dword [esi + 0xa4]
sub eax, ecx
sar eax, 2
cmp ebp, eax
push edi
jge 0x408400
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 0x4083ef
inc ebp
jmp 0x4083b1
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveDownList_File_Write_Failed_
jmp 0x40834e
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.00462cf9
add esp, 0x104
ret 4
Function at 0x408440
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x475c44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4cb030]
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x100], eax
call dword [0x47f138]
push str.Ran_IMBA_Season_2_
lea eax, [esp + 0x18]
push 0x4db7c4
xor ebp, ebp
push eax
mov dword [esp + 0x118], ebp
call fcn.00401510
push 0x4db7d8
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x124], 1
call fcn.00402d20
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x110], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
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 0x481098
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 0x40850d
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x408619
push ebx
lea ecx, [esp + 0x1c]
call fcn.00407870
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 0x408567
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveCopyList_File_Game_Version_Write_Failed_
call fcn.00417630
add esp, 8
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x408618
mov eax, dword [esi + 0xbc]
cmp eax, ebp
jne 0x40857a
mov dword [esp + 0xdc], ebp
jmp 0x40858c
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 0x4085b1
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveCopyList_File_Size_Write_Failed_
jmp 0x40854e
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jne 0x4085bf
xor eax, eax
jmp 0x4085ca
mov eax, dword [esi + 0xc0]
sub eax, ecx
sar eax, 2
cmp ebp, eax
push edi
jge 0x408600
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 0x4085ef
inc ebp
jmp 0x4085b1
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveCopyList_File_Write_Failed_
jmp 0x40854e
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.00462cf9
add esp, 0x104
ret 4
Function at 0x408640
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x475c74
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 [0x47f138]
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], esi
call dword [0x47f138]
mov eax, dword [ebp + 0x90]
cmp eax, esi
mov byte [esp + 0x28], 1
jne 0x40868b
xor edi, edi
jmp 0x408696
mov edi, dword [ebp + 0x94]
sub edi, eax
sar edi, 2
push str.packagedata.rpf
lea eax, [esp + 0x1c]
push 0x4db7c0
push eax
call fcn.00401510
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
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.0041be00
cmp edi, esi
jle 0x408782
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, 0x4db7c0
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_1]
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 0x4086f6
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.0041b8e0
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 0x4087c0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x475c9b
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 [0x47f138]
mov eax, dword [ebx + 0xa0]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], esi
jne 0x4087fb
xor edi, edi
jmp 0x408806
mov edi, dword [ebx + 0xa4]
sub edi, eax
sar edi, 2
cmp edi, esi
jle 0x40885e
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, 0x4db7cc
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
push str.Ran_IMBA_Season_2_
mov ecx, 0x4db7c4
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 0x408811
pop ebp
push str.Ran_IMBA_Season_2_
lea ecx, [esp + 0x18]
push 0x4db7c4
push ecx
call fcn.00401510
push 0x4db7cc
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x38], 1
call fcn.00402d20
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
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 0x40b0c0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x47608b
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 [0x47f138]
mov eax, dword [ebx + 0xa0]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], esi
jne 0x40b0fb
xor edi, edi
jmp 0x40b106
mov edi, dword [ebx + 0xa4]
sub edi, eax
sar edi, 2
cmp edi, esi
jle 0x40b15e
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, 0x4db7cc
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
push str.Ran_IMBA_Season_2_
mov ecx, 0x4db7c4
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 0x40b111
pop ebp
push str.Ran_IMBA_Season_2_
lea ecx, [esp + 0x18]
push 0x4db7c4
push ecx
call fcn.00401510
push 0x4db7cc
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x38], 1
call fcn.00402d20
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
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 0x40b500
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47610c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4cb030]
push ebp
mov dword [esp + 0xc], ecx
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xfc], eax
call dword [0x47f138]
mov eax, dword [str.cFileList.bin]
xor ebp, ebp
push eax
mov ecx, 0x4db7c0
mov dword [esp + 0x10c], ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x10]
push 0x4807c8
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x4807c4
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 0x40b595
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40b6ca
push ebx
lea ecx, [esp + 0x18]
call fcn.00407870
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 0x40b5d7
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 0x40b6c9
mov eax, dword [esp + 0xd8]
dec eax
push edi
je 0x40b609
dec eax
je 0x40b602
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 0x40b6c8
mov edi, 0xe8
jmp 0x40b60e
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 0x40b639
push 1
lea ecx, [esp + 0x24]
push edi
push ecx
call ebx
add esp, 0x10
cmp eax, 1
je 0x40b650
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 0x40b6c8
mov eax, dword [esp + 0xdc]
test eax, eax
jle 0x40b6af
jmp 0x40b660
push 0xe8
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40b67a
mov ecx, eax
call fcn.00407870
jmp 0x40b67c
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 0x40b638
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
add ecx, 0xac
call fcn.00409010
mov eax, dword [esp + 0xdc]
inc ebp
cmp ebp, eax
jl 0x40b660
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.00462cf9
add esp, 0x104
ret