joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401028
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474f11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push 0
mov dword [esp + 8], esi
call fcn.00462444
push str.Launcher
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
mov dword [esi], 0x47e9d8
mov dword [esi + 0xa4], 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__]
push 1
push 1
push eax
mov byte [esp + 0x38], 1
call fcn.004452e0
add esp, 0xc
lea ecx, [esp + 8]
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 0x401510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475069
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_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
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_2]
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 0x402450
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x475274
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call dword [0x47e138]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call dword [0x47e138]
mov eax, dword [str.launcherpatch.exe.cab]
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
call sub.MFC71.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
test edi, edi
je 0x40256d
mov edx, dword [esp + 8]
mov eax, dword [0x4da7a0]
push edx
push eax
lea ecx, [esp + 0x18]
push str.__s_s_
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov edx, dword [edi + 0x48]
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x98]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push str.__d__d__s
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x24
push 5
push 0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
mov eax, dword [esi + 0x20]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test eax, eax
jne 0x40259e
push 0x30
push str.ERROR
push str.CreateProcess_Patch_Prime
mov ecx, esi
call sub.MFC71.DLL_CWnd::MessageBoxA
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
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 + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x402d30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475309
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_1]
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_2]
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 0x4038d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [0x4ca010]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], eax
call dword [0x47e138]
lea ecx, [esp + 0x10]
mov dword [esp + 0x23c], 0
call dword [0x47e138]
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x23c], 1
stosb byte es:[edi], al
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x403a7c
push 0x5c
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x403a16
push 0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetAt]
cmp al, 0x22
jne 0x403a16
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
dec eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x5c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
mov ecx, 0x4da7a0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov byte [esp + 0x120], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
push 0
push 5
lea edx, [esp + 0x128]
stosw word es:[edi], ax
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x120]
push eax
mov ecx, 0x4da7a4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
jmp 0x403a8f
push 0
push str.Error
push str.SetAppPath_Error
mov ecx, esi
call sub.MFC71.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
call fcn.00462a29
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4754a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x4ca010]
push esi
mov esi, ecx
mov dword [esp + 0x120], eax
mov al, byte [esi + 0xa8]
test al, al
push edi
je 0x403e80
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x47f7ba
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 0x47f7b8
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.00403220
test eax, eax
jne 0x403e80
mov eax, 0xfffffffd
jmp 0x403f2a
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 [0x47e138]
mov eax, dword [str.launcherpatch.exe.cab]
mov ecx, dword [0x4da7a4]
push eax
push str.New_Ran_IMBA_
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, 0x4da7a0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call fcn.004485e0
add esp, 8
test eax, eax
jne 0x403f14
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 0xfffffffc
jmp 0x403f2a
mov ecx, esi
call fcn.00402450
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.00462a29
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404350
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47552c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x4ca010]
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 0x4043ba
xor eax, eax
jmp 0x4043bd
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 0x4043d5
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, 0x4da7a0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call fcn.00447e20
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, 0x4da7a0
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 0x40443f
mov byte [ecx], dl
inc ecx
inc eax
dec edi
jne 0x404430
jmp 0x404443
test edi, edi
jne 0x404444
dec ecx
mov byte [ecx], 0
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x40445b
inc eax
dec ecx
jne 0x404450
jmp 0x40447d
test ecx, ecx
je 0x40447d
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.00401e90
call fcn.0040f370
mov ecx, eax
call fcn.0040dd50
lea ecx, [esp + 0x10]
push ecx
call fcn.0040f370
mov ecx, eax
call fcn.004025e0
mov edx, dword [0x4c8d38]
push edx
mov ecx, 0x203b654
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call fcn.0040f370
mov ecx, eax
call fcn.0040f1c0
mov ecx, esi
call fcn.004037e0
push 0xc
push str.IDS_MESSAGE
call fcn.0040f3d0
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.00402ec0
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.00462a29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404540
Capabilities:
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475568
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
jne case.default.0x404572
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 3
ja case.default.0x404572
jmp dword [eax*4 + 0x4046cc]
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 0x404655
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, eax
call fcn.0040dbd0
jmp 0x404657
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 0x404655
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 0x404657
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 0x404655
call sub.MFC71.DLL_AfxGetThread
mov eax, dword [eax + 0x30]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.0040aa40
jmp 0x404657
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 0x404655
call sub.MFC71.DLL_AfxGetThread
mov edx, dword [eax + 0x30]
mov eax, dword [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.0040b2b0
jmp 0x404657
xor eax, eax
test eax, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [edi], eax
je case.default.0x404572
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 0x40469d
mov ecx, dword [edi]
test ecx, ecx
je case.default.0x404572
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 0x404f10
Capabilities:
Access peb ldr_data

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

Disassembly:
push 0xffffffffffffffff
push 0x4758b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea ecx, [esp + 4]
call dword [0x47e138]
mov eax, dword [str.cVer.bin]
push eax
mov ecx, 0x4da7a0
mov dword [esp + 0x14], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0xc]
push 0x47f7a8
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 0x47fec4
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 0x407777
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 0x40776e
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 0x408260
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x475984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4ca010]
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x100], eax
call dword [0x47e138]
push str.New_Ran_IMBA_
lea eax, [esp + 0x18]
push 0x4da7a4
xor ebp, ebp
push eax
mov dword [esp + 0x118], ebp
call fcn.00401510
push 0x4da7b4
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x124], 1
call fcn.00402d30
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 0x480088
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 0x40832d
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x408439
push ebx
lea ecx, [esp + 0x1c]
call fcn.004078d0
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 0x408387
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveDownList_File_Game_Version_Write_Failed_
call fcn.00417710
add esp, 8
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x408438
mov eax, dword [esi + 0xa0]
cmp eax, ebp
jne 0x40839a
mov dword [esp + 0xdc], ebp
jmp 0x4083ac
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 0x4083d1
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveDownList_File_Size_Write_Failed_
jmp 0x40836e
mov ecx, dword [esi + 0xa0]
test ecx, ecx
jne 0x4083df
xor eax, eax
jmp 0x4083ea
mov eax, dword [esi + 0xa4]
sub eax, ecx
sar eax, 2
cmp ebp, eax
push edi
jge 0x408420
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 0x40840f
inc ebp
jmp 0x4083d1
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveDownList_File_Write_Failed_
jmp 0x40836e
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.00462a29
add esp, 0x104
ret 4