joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408460
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 0x4da7b8
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 0x40852d
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x408639
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 0x408587
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveCopyList_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 0x408638
mov eax, dword [esi + 0xbc]
cmp eax, ebp
jne 0x40859a
mov dword [esp + 0xdc], ebp
jmp 0x4085ac
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 0x4085d1
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveCopyList_File_Size_Write_Failed_
jmp 0x40856e
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jne 0x4085df
xor eax, eax
jmp 0x4085ea
mov eax, dword [esi + 0xc0]
sub eax, ecx
sar eax, 2
cmp ebp, eax
push edi
jge 0x408620
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 0x40860f
inc ebp
jmp 0x4085d1
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_SaveCopyList_File_Write_Failed_
jmp 0x40856e
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
Function at 0x408660
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4759b4
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 [0x47e138]
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], esi
call dword [0x47e138]
mov eax, dword [ebp + 0x90]
cmp eax, esi
mov byte [esp + 0x28], 1
jne 0x4086ab
xor edi, edi
jmp 0x4086b6
mov edi, dword [ebp + 0x94]
sub edi, eax
sar edi, 2
push str.packagedata.rpf
lea eax, [esp + 0x1c]
push 0x4da7a0
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.0041bc40
cmp edi, esi
jle 0x4087a2
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, 0x4da7a0
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 0x408716
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.0041b720
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 0x4087e0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4759db
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 [0x47e138]
mov eax, dword [ebx + 0xa0]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], esi
jne 0x40881b
xor edi, edi
jmp 0x408826
mov edi, dword [ebx + 0xa4]
sub edi, eax
sar edi, 2
cmp edi, esi
jle 0x40887e
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, 0x4da7ac
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
push str.New_Ran_IMBA_
mov ecx, 0x4da7a4
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 0x408831
pop ebp
push str.New_Ran_IMBA_
lea ecx, [esp + 0x18]
push 0x4da7a4
push ecx
call fcn.00401510
push 0x4da7ac
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x38], 1
call fcn.00402d30
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 0x40b0b0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x475dcb
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 [0x47e138]
mov eax, dword [ebx + 0xa0]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], esi
jne 0x40b0eb
xor edi, edi
jmp 0x40b0f6
mov edi, dword [ebx + 0xa4]
sub edi, eax
sar edi, 2
cmp edi, esi
jle 0x40b14e
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, 0x4da7ac
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
push str.New_Ran_IMBA_
mov ecx, 0x4da7a4
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 0x40b101
pop ebp
push str.New_Ran_IMBA_
lea ecx, [esp + 0x18]
push 0x4da7a4
push ecx
call fcn.00401510
push 0x4da7ac
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x38], 1
call fcn.00402d30
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 0x40b4f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x475e4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4ca010]
push ebp
mov dword [esp + 0xc], ecx
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xfc], eax
call dword [0x47e138]
mov eax, dword [str.cFileList.bin]
xor ebp, ebp
push eax
mov ecx, 0x4da7a0
mov dword [esp + 0x10c], ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x10]
push 0x47f7a8
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x47f7a4
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 0x40b585
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40b6ba
push ebx
lea ecx, [esp + 0x18]
call fcn.004078d0
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 0x40b5c7
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 0x40b6b9
mov eax, dword [esp + 0xd8]
dec eax
push edi
je 0x40b5f9
dec eax
je 0x40b5f2
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 0x40b6b8
mov edi, 0xe8
jmp 0x40b5fe
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 0x40b629
push 1
lea ecx, [esp + 0x24]
push edi
push ecx
call ebx
add esp, 0x10
cmp eax, 1
je 0x40b640
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 0x40b6b8
mov eax, dword [esp + 0xdc]
test eax, eax
jle 0x40b69f
jmp 0x40b650
push 0xe8
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40b66a
mov ecx, eax
call fcn.004078d0
jmp 0x40b66c
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 0x40b628
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
add ecx, 0xac
call fcn.00409000
mov eax, dword [esp + 0xdc]
inc ebp
cmp ebp, eax
jl 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]
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.00462a29
add esp, 0x104
ret
Function at 0x40c040
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x475f1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1dc
mov eax, dword [0x4ca010]
push ebp
mov dword [esp + 8], ecx
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x1e0], eax
call dword [0x47e138]
mov eax, dword [str.cFileList.bin]
xor ebp, ebp
push eax
mov ecx, 0x4da7a0
mov dword [esp + 0x1f0], ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x10]
push 0x47f7a8
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x47f7a4
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 0x40c0d5
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40c1fd
push ebx
lea ecx, [esp + 0x14]
call fcn.004078d0
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 0x40c117
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 0x40c1fc
mov eax, dword [esp + 0xd4]
dec eax
push edi
je 0x40c149
dec eax
je 0x40c142
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 0x40c1fb
mov edi, 0xe8
jmp 0x40c14e
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 0x40c179
push 1
lea ecx, [esp + 0x20]
push edi
push ecx
call ebx
add esp, 0x10
cmp eax, 1
je 0x40c190
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 0x40c1fb
cmp dword [esp + 0xd8], ebp
jle 0x40c1e2
lea esp, [esp]
lea ecx, [esp + 0x100]
call fcn.004078d0
push esi
push 1
lea edx, [esp + 0x108]
push edi
push edx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x40c178
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x100]
push eax
add ecx, 0x6c
call fcn.0040d7d0
mov eax, dword [esp + 0xd8]
inc ebp
cmp ebp, eax
jl 0x40c1a0
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.00462a29
add esp, 0x1e8
ret
Function at 0x40c7d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x475fdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4ca010]
push ebp
mov dword [esp + 0xc], ecx
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xfc], eax
call dword [0x47e138]
mov eax, dword [str.FileList.bin]
xor ebp, ebp
push eax
mov ecx, 0x4da7a0
mov dword [esp + 0x10c], ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x10]
push 0x47f7a8
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x47f7a4
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 0x40c865
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40c997
push ebx
lea ecx, [esp + 0x18]
call fcn.004078d0
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 0x40c8a7
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 0x40c996
mov eax, dword [esp + 0xd8]
dec eax
push edi
je 0x40c8d9
dec eax
je 0x40c8d2
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 0x40c995
mov edi, 0xe8
jmp 0x40c8de
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 0x40c909
push 1
lea ecx, [esp + 0x24]
push edi
push ecx
call ebx
add esp, 0x10
cmp eax, 1
je 0x40c920
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 0x40c995
mov eax, dword [esp + 0xdc]
test eax, eax
jle 0x40c97c
jmp 0x40c930
push 0xe8
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40c94a
mov ecx, eax
call fcn.004078d0
jmp 0x40c94c
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 0x40c908
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
add ecx, 0x5c
call fcn.00409000
mov eax, dword [esp + 0xdc]
inc ebp
cmp ebp, eax
jl 0x40c930
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.00462a29
add esp, 0x104
ret
Function at 0x40dd60
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476109
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x30]
add ecx, 0x108
push ecx
push eax
sub esp, 0x1c
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov dword [esp + 0x34], 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__]
call fcn.0043f0a0
add esp, 0x24
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], 0xffffffff
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 + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x20
Function at 0x40f480
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x4b0]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x488], 8
jb 0x40f525
mov eax, dword [esi + 0x484]
mov ebx, dword [eax]
push 0
push ebx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f4d8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
push ebp
je 0x40f526
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp edi, ebx
jne 0x40f518
mov ecx, dword [esi + 0x488]
mov eax, dword [esi + 0x484]
sub ecx, edi
push ecx
lea edx, [eax + edi]
push edx
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [esi + 0x488]
add esp, 0xc
sub eax, edi
push ebp
mov dword [esi + 0x488], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov eax, dword [esi + 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x40fc10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1804
call fcn.00462a40
push ebx
push esi
push edi
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x5ff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 8]
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x1800
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fc86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8ca
cmp eax, 0x16
ja case.0x40fc6e.10039
movzx edx, byte [eax + 0x40fcc8]
jmp dword [edx*4 + 0x40fcc0]
mov ecx, ebx
call fcn.0040faf0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je case.0x40fc6e.10038
jl 0x40fcb1
mov ecx, dword [ebx + 0x48c]
call fcn.00412120
add eax, esi
cmp eax, 0x4000
jge 0x40fcb1
mov ecx, dword [ebx + 0x48c]
push esi
lea eax, [esp + 0x14]
push eax
call fcn.00411fd0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410330
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x4100c0
push 0
push 0
mov dword [esp + 0x1c], 0x65
call dword [sym.imp.MSVCR71.dll__beginthreadex]
mov dword [esi + 0x4a0], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 9
add eax, 0xfffffff8
pop esi
pop ecx
ret
Function at 0x410a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47636a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push 0
push 1
push str.Ran_Patch_GetFile2
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call sub.MFC71.DLL_CInternetSession::CInternetSession
mov eax, dword [ebp + 8]
push 0
push 0
push 0x4000002
push 1
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
call sub.MFC71.DLL_CInternetSession::OpenURL
push 0
mov esi, eax
push 0x80
mov byte [ebp - 0x438], 0
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x437]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
push 2
push 0
push 0
stosw word es:[edi], ax
push 0x40000000
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x11c]
test eax, eax
je 0x410b0a
mov dword [eax], 0
mov dword [eax + 4], 0
mov edx, dword [esi]
push 0x400
lea eax, [ebp - 0x438]
push eax
mov ecx, esi
call dword [edx + 0x3c]
mov edi, eax
nop
test edi, edi
jbe 0x410b83
mov eax, dword [ebx + 0x114]
test eax, eax
je 0x410b33
cmp dword [eax], 0
jne 0x410b83
mov eax, dword [ebx + 0x11c]
test eax, eax
je 0x410b4c
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add edx, edi
adc ecx, 0
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
lea edx, [ebp - 0x438]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi]
push 0x400
lea eax, [ebp - 0x438]
push eax
mov ecx, esi
call dword [edx + 0x3c]
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410b20
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004628dc
lea ecx, [ebp + 8]
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
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8