joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460e35
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address
Get number of processors

Disassembly:
mov ecx, 0x568bb8
jmp 0x460e29
mov eax, 0x51aff9
call fcn.004edf30
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x50]
call fcn.00461df2
xor ebx, ebx
lea ecx, [esi + 0x70]
mov dword [ebp - 4], ebx
call fcn.0040958c
lea eax, [esi + 0x7c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
push 6
mov edi, 0x568b08
pop eax
mov byte [ebp - 4], 2
push 0xb
mov dword [esi + 4], eax
fldz
pop ecx
mov dword [esi + 0xc], eax
fstp dword [esi + 0x44]
push 8
mov dword [esi], 0x530aec
pop eax
mov dword [esi + 8], ecx
fldz
push edi
mov dword [esi + 0x10], 0xc
fstp dword [esi + 0x48]
mov dword [esi + 0x14], 7
mov dword [esi + 0x18], 0xd
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0x10
mov dword [esi + 0x2c], 0xa
mov dword [esi + 0x30], 0x13
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], 0x15
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x68], bl
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x70]
call fcn.0040928f
lea eax, [esi + 0x5c]
push ebx
push eax
push str.State
mov edi, str.GuiSetup.ini
push str.AutoWrite
push edi
call fcn.004e9bcd
lea eax, [esi + 0x64]
push ebx
push eax
push str.Status
push str.ExtraWrite
push edi
call fcn.004e9bcd
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x467463
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
je 0x467501
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x10
push 1
push dword [eax + 0x6c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x467501
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
push dword [eax + 0x6c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
push dword [eax + 0x6c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x467501
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x467501
add eax, 0x30
push 8
push eax
lea eax, [ebp - 8]
push eax
call sub.MSVCRT.dll_memcpy
movzx eax, word [ebp - 4]
add esp, 0xc
push eax
movzx eax, word [ebp - 2]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 6]
push eax
mov eax, dword [ebp + 0xc]
dec eax
push str._d._d._d._d
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov al, 1
jmp 0x467503
xor al, al
pop esi
leave
ret
Function at 0x478e63
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
and dword [ebp - 8], 0
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov esi, dword [sym.imp.MSVCRT.dll_localtime]
lea eax, [ebp - 8]
push eax
call esi
mov ebx, dword [eax + 0xc]
pop ecx
pop ecx
lea edi, [ebp - 0x113]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x10], eax
mov al, byte [0x568b08]
push 0x3f
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x114], al
pop ecx
xor eax, eax
push dword [ebp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push 0x40
and dword [ebp - 0xc], 0
push eax
push 0x568b08
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov edi, str._ld__d
je 0x478f2c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x478f2c
lea eax, [ebp - 0xc]
push eax
call esi
cmp ebx, dword [eax + 0xc]
pop ecx
jne 0x478f25
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jne 0x478f25
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jne 0x478f25
inc dword [ebp - 4]
jmp 0x478f2c
mov dword [ebp - 4], 1
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push dword [ebp - 8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x114]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor eax, eax
cmp dword [ebp - 4], 1
pop edi
pop esi
setle al
pop ebx
leave
ret 0xc
Function at 0x47990f
Capabilities:
Copy file
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push ebx
push esi
push edi
push 0x40
mov dword [ebp - 4], ecx
pop edx
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
mov byte [ebp - 0x518], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x517]
mov byte [ebp - 0x414], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x413]
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x20b]
mov esi, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x108]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
call fcn.0047984a
test al, al
jne 0x479a5d
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x30f]
mov byte [ebp - 0x310], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x108]
push eax
push str._sFlash.ocx
lea eax, [ebp - 0x310]
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x55c1a0
lea eax, [ebp - 0x414]
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x414]
push 1
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x20c]
push eax
push str._s_regsvr32__s_Flash.ocx
lea eax, [ebp - 0x518]
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x518]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
call fcn.0047984a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4824fe
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, 0x56b070
mov ecx, edi
call fcn.004b4f1f
test eax, eax
je 0x482584
mov edi, dword [sym.imp.GraphicData.dll_GameDataSetQuery]
call edi
mov ebx, eax
call edi
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0xff000000
push 0
push 1
push str.ini_info.Ini
push 0x12
push str.Size
push str.FontSize2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
mov eax, dword [ebx]
push 0xc350
mov ecx, ebx
call dword [eax + 0x3c]
push eax
mov eax, dword [edi]
push 0x28f3
mov ecx, edi
call dword [eax + 0x3c]
push eax
push 0xff01f546
push dword [esi + 0x434]
push dword [esi + 0x430]
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringEx_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
jmp 0x4826ee
mov eax, dword [0x56bc20]
mov ecx, edi
mov dword [esp + 0x18], eax
mov eax, dword [0x56bc24]
mov dword [esp + 0x1c], eax
call fcn.004a8d42
mov dword [esp + 0x10], eax
or eax, edx
mov dword [esp + 0x14], edx
je 0x4826f1
mov edi, dword [sym.imp.GraphicData.dll_GameDataSetQuery]
call edi
fild qword [esp + 0x18]
mov edx, dword [eax]
push ecx
push ecx
mov ecx, eax
fmul qword [0x531f38]
fild qword [esp + 0x18]
fdivp st(1)
fstp qword [esp]
push 0x18727
call dword [edx + 0x3c]
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ebp, dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringEx_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
xor ebx, ebx
add esp, 0x10
cmp dword [esi + 0x418], ebx
je 0x482649
call edi
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0xff000000
push 0
push 1
push str.ini_info.Ini
push 0x12
push str.Size
push str.FontSize2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
mov eax, dword [ebx]
push 0xc350
mov ecx, ebx
call dword [eax + 0x3c]
push eax
lea eax, [esp + 0x78]
push eax
push 0xff01f546
push dword [esi + 0x434]
push dword [esi + 0x430]
call ebp
add esp, 0x28
xor ebx, ebx
cmp dword [esi + 0x418], ebx
je 0x4826f1
cmp dword [esi + 0x42c], ebx
jl 0x4826f1
jg 0x48266f
cmp dword [esi + 0x428], ebx
jbe 0x4826f1
call sub.WINMM.dll_timeGetTime
sub eax, dword [esi + 0x420]
cmp eax, 0x7d0
jae 0x4826f1
push dword [esi + 0x42c]
lea eax, [esp + 0x24]
push dword [esi + 0x428]
push str._I64u
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
call edi
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0xff000000
push ebx
push 1
push str.ini_info.Ini
push 0x12
push str.Size
push str.FontSize2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
mov eax, dword [edi]
push 0xc350
mov ecx, edi
call dword [eax + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
push 0xff01f546
push dword [esi + 0x43c]
push dword [esi + 0x438]
call ebp
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
Function at 0x486ced
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 0xc], ecx
je 0x486d2f
push 0x55c5b8
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x486d36
push 0x90
push str.D:CQ2ClientRelease_11.17.103DGameMapTerrainEffectManager.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.004e9e6f
add esp, 0x10
xor eax, eax
jmp 0x486dbb
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push eax
push 1
lea eax, [ebp - 4]
push 4
push eax
mov dword [ebp - 4], ebx
call esi
add esp, 0x10
cmp dword [ebp - 4], ebx
jle 0x486dad
push edi
mov edi, 0x90
push edi
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x486d7e
push str.D:CQ2ClientRelease_11.17.103DGameMapTerrainEffectManager.cpp
push 0x98
push 0x55c504
call fcn.004e9e6f
add esp, 0xc
push dword [ebp - 8]
push 1
push edi
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 8]
add esp, 0x10
add eax, 0x88
mov ecx, dword [eax]
neg ecx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.004c5dcd
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x486d59
pop edi
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
pop esi
pop ebx
leave
ret 4
Function at 0x48a702
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x51cb4c
call fcn.004edf30
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x10], ecx
je 0x48a884
push dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push 1
push 4
push eax
call edi
add esp, 0x10
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jle 0x48a884
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 1
pop esi
push esi
push 4
push eax
call edi
mov eax, dword [ebp - 0x1c]
add esp, 0x10
dec eax
je 0x48a837
push 3
pop esi
sub eax, esi
je 0x48a801
sub eax, 6
je 0x48a7cb
sub eax, 5
jne 0x48a874
push 0x130
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
mov dword [ebp - 4], 2
je 0x48a79e
call fcn.0049bfcd
mov esi, eax
jmp 0x48a7a0
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x48a874
push dword [ebp + 8]
mov ecx, esi
call fcn.0049c075
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0048a5cf
mov ecx, esi
call fcn.0049c0c0
jmp 0x48a874
push 0x80
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
mov dword [ebp - 4], esi
je 0x48a7eb
call fcn.00490a93
mov esi, eax
jmp 0x48a7ed
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x48a874
push dword [ebp + 8]
mov ecx, esi
call fcn.00490e34
jmp 0x48a86b
push 0x338
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x48a821
call fcn.0049ba44
mov esi, eax
jmp 0x48a823
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x48a874
push dword [ebp + 8]
mov ecx, esi
call fcn.0049be5a
jmp 0x48a86b
push 0x2cc
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
mov dword [ebp - 4], esi
je 0x48a857
call fcn.00492a37
mov esi, eax
jmp 0x48a859
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x48a874
push dword [ebp + 8]
mov ecx, esi
call fcn.00492dd6
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0048a5cf
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x48a745
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x48c45f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 0xc], ecx
je 0x48c4f0
push dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
lea eax, [ebp - 8]
push 1
push 4
push eax
call edi
add esp, 0x10
cmp dword [ebp - 8], esi
mov dword [ebp - 4], esi
jle 0x48c4f0
push ebx
mov esi, 0x569690
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push 1
push 0xc
push eax
call edi
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 0x20]
push eax
push ebx
call fcn.0048c35c
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.00480aed
push 0xffffffffffffffff
push 1
push str.Exit
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00486663
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x48c495
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x48edae
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x51d0a8
call fcn.004edf30
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov edi, ecx
je 0x48eeb0
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x20]
push 4
push eax
call esi
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
push ebx
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call esi
and dword [ebp - 0x10], 0
add esp, 0x30
cmp dword [ebp - 0x14], 0
jle 0x48eeb0
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 1
pop ebx
push ebx
push 4
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0x18], 3
je 0x48ee67
cmp dword [ebp - 0x18], 8
jne 0x48eea1
push 0x3d4
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [ebp - 4], ebx
je 0x48ee51
mov ecx, eax
call fcn.004a148c
mov ebx, eax
jmp 0x48ee53
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x48eea1
push dword [ebp + 8]
mov ecx, ebx
call fcn.004a15d1
jmp 0x48ee99
push 0x330
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x48ee87
mov ecx, eax
call fcn.004a1166
mov ebx, eax
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x48eea1
push dword [ebp + 8]
mov ecx, ebx
call fcn.004a13d3
push ebx
mov ecx, edi
call fcn.0048ed97
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x48ee13
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x48f499
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
je 0x48f4dc
push 0x55c5b8
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
jne 0x48f4e3
push 0x126
push str.D:CQ2ClientRelease_11.17.103DGameMapPuzzleBmp.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.004e9e6f
add esp, 0x10
xor eax, eax
jmp 0x48f60e
mov al, byte [0x568b08]
push esi
push edi
mov byte [ebp - 0xc], al
push dword [ebp - 4]
xor eax, eax
lea edi, [ebp - 0xb]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
push 1
stosb byte es:[edi], al
pop edi
lea eax, [ebp - 0xc]
push edi
push eax
call esi
and dword [ebx + 0x128], 0
lea eax, [ebp - 0xc]
push str.PUZZLE
push eax
call sub.MSVCRT.dll_strcmp
add esp, 0x18
test eax, eax
jne 0x48f52f
mov dword [ebx + 0x128], edi
jmp 0x48f54d
lea eax, [ebp - 0xc]
push str.PUZZLE2
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x48f54d
mov dword [ebx + 0x128], 2
cmp dword [ebx + 0x128], 0
jne 0x48f55d
xor edi, edi
jmp 0x48f600
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push 0x100
push edi
push eax
call esi
lea eax, [ebp - 0x114]
add esp, 0x10
test eax, eax
je 0x48f58e
lea eax, [ebp - 0x114]
push eax
lea eax, [ebx + 0x18]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push edi
push 4
push eax
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push edi
push 4
push eax
call esi
add esp, 0x20
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0048ef74
push dword [ebp - 4]
push dword [ebx + 4]
push 2
push dword [ebx + 8]
call esi
add esp, 0x10
cmp dword [ebx + 0x128], 2
jne 0x48f5f2
push dword [ebp - 4]
lea eax, [ebx + 0x120]
push edi
push 4
push eax
call esi
push dword [ebp - 4]
add ebx, 0x124
push edi
push 4
push ebx
call esi
add esp, 0x20
jmp 0x48f600
and dword [ebx + 0x124], 0
and dword [ebx + 0x120], 0
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x48fc76
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov edi, ecx
je 0x48fdf8
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x100
lea eax, [edi + 0x1e8]
push 1
push eax
call esi
push ebx
push 0x40
lea eax, [edi + 0x1a8]
push 1
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x2c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x28]
push 4
push eax
call esi
add esp, 0x40
mov ecx, edi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0048fadd
push ebx
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call esi
mov eax, dword [ebp - 0xc]
push ebx
mov dword [edi + 0x2e8], eax
push 1
lea eax, [ebp - 0x34]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x30]
push 4
push eax
call esi
mov eax, dword [edi]
add esp, 0x30
mov ecx, edi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [eax + 0x20]
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call esi
mov eax, dword [ebp - 8]
push ebx
mov dword [edi + 0x1a4], eax
push 1
lea eax, [ebp - 0x3c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x38]
push 4
push eax
call esi
add esp, 0x30
mov ecx, edi
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.0048fc5f
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call esi
mov eax, dword [ebp - 8]
add esp, 0x10
mov ecx, edi
mov dword [edi + 0x2ec], eax
call fcn.0048fb0c
mov ecx, edi
call fcn.0048fb85
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
jle 0x48fdf8
and dword [ebp + 8], 0
cmp dword [ebp - 0x24], 0
jle 0x48fded
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call fcn.0048fc12
test eax, eax
mov dword [ebp - 0x14], eax
je 0x48fde2
push ebx
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
mov eax, dword [ebp - 0x14]
mov cx, word [ebp - 0x10]
add esp, 0x30
mov word [eax + 4], cx
mov cx, word [ebp - 0x18]
mov word [eax + 6], cx
mov cx, word [ebp - 0x1c]
mov word [eax + 8], cx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x24]
jl 0x48fd8f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jl 0x48fd85
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x490e34
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
je 0x490e94
push ebx
push ebp
push edi
lea ebp, [esi + 0x2c]
push dword [esp + 0x14]
push 0x40
push 1
pop ebx
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push dword [esp + 0x24]
lea edi, [esi + 0x14]
push ebx
push 8
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x20
mov ecx, esi
push 0
push ebx
push ebp
push dword [edi + 4]
push dword [edi]
call fcn.00490d92
mov ecx, dword [esi + 0x7c]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0x68]
and dword [esi + 0x20], 0
and dword [esi + 0x24], 0
pop edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x28], ebx
pop ebp
pop ebx
pop esi
ret 4
Function at 0x492b5c
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x51d2ea
call fcn.004edf30
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x492c41
push 0x55c5b8
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
jne 0x492ba6
push 0x64
push str.D:CQ2ClientRelease_11.17.103DGameMap2DMapTerrainObj.cpp
push edi
push str.ERROR:_file__s_not_found_at__s___d
call fcn.004e9e6f
add esp, 0x10
jmp 0x492c41
push ebx
mov ecx, esi
call fcn.00492c51
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
lea eax, [esi + 0x1c0]
push edi
push eax
call sub.MSVCRT.dll_strcpy
xor ebx, ebx
add esp, 0x18
cmp dword [ebp - 0x10], ebx
jle 0x492c16
push 0x358
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x492bf6
mov ecx, eax
call fcn.0048f7b9
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x492c08
push dword [ebp + 8]
mov ecx, edi
call fcn.0048fc76
push edi
mov ecx, esi
call fcn.00492aef
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x492bd6
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.004cb2b8
lea ecx, [edi + 0xc4]
mov ebx, eax
call fcn.004cb2b8
mov edx, dword [esi]
push eax
push ebx
mov ecx, esi
call dword [edx + 0x18]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x492dd6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
je 0x492e47
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
lea ebx, [edi + 0x1c0]
push 0x104
push 1
push ebx
call esi
push dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push 1
push 4
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 8]
push 1
push 4
push eax
call esi
add esp, 0x30
lea ecx, [edi + 0xc]
push dword [ebp - 4]
call fcn.004cabf4
push dword [ebp - 8]
lea ecx, [edi + 0xd0]
call fcn.004cabf4
push ebx
mov ecx, edi
call fcn.00492b5c
pop esi
pop ebx
pop edi
leave
ret 4