joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48290d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4829a6
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4829a6
push str.version
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x4829a6
push edi
push 0x3f
pop ecx
lea edi, [ebp - 0xff]
mov byte [ebp - 0x100], bl
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x100]
push str.E:CQ2ClientRelease_17.1.9MyShellMyShell.cpp
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x100]
push str.MyShellMyShell.cpp
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x14
cmp eax, ebx
pop edi
je 0x48298b
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x100]
push str.VersionInfo
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
pop ebx
leave
ret 4
Function at 0x4842ca
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x5d8b44
push 8
mov eax, edx
pop esi
test al, 1
je 0x4842e4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4842e6
shr eax, 1
dec esi
jne 0x4842d7
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x5d8f44
jl 0x4842d2
pop esi
ret

Function at 0x4842f9
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x48432b
push esi
lea edx, [ecx]
mov ecx, dword [esp + 8]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x5d8b44]
xor eax, esi
inc ecx
dec edx
jne 0x48430c
pop edi
pop esi
not eax
ret

Function at 0x48432e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.004842ca
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push 3
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov esi, 0x5d8b30
cmp ebx, edi
je 0x4843c0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [ebp + 8], eax
lea ecx, [ebp - 4]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [ebp + 8]
call fcn.004842f9
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
push 0x14
push 0
push esi
call sub.MSVCRT.dll_memset
push 0x10
push esi
push edi
call dword [sym.imp.MSVCRT.dll__itoa]
push esi
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49157b
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, 0x56ee0a
call fcn.0051f140
sub esp, 0x9e8
mov eax, dword [ebp + 8]
push ebx
push esi
cmp eax, 0x85
push edi
mov esi, ecx
je 0x49407c
cmp eax, 0xf
jne 0x4915c8
lea eax, [ebp - 0x1d8]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [ebp - 0x1d8]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x49407c
cmp eax, 0x14
jne 0x4915d5
push 1
pop eax
jmp 0x494a0b
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp eax, 0x111
jne 0x49168d
push 1
pop edi
cmp ecx, edi
jne 0x491607
cmp dword [esi + 0xaf1fc], 0
je 0x491686
lea ecx, [esi + 0x790]
call fcn.0043e357
jmp 0x491686
cmp ecx, 2
jne 0x49167a
xor ebx, ebx
cmp dword [esi + 0x1f3f0], ebx
je 0x49162a
push ebx
lea ecx, [esi + 0x1f38c]
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [esi + 0x790]
jmp 0x491668
cmp dword [esi + 0x59a14], ebx
je 0x491640
push ebx
lea ecx, [esi + 0x599b4]
call sub.MFC42.DLL_CWnd::ShowWindow
jmp 0x491686
cmp dword [esi + 0x5f3c4], ebx
je 0x491655
push edi
mov ecx, 0x5de9dc
call fcn.004e0de2
jmp 0x491686
lea ebx, [esi + 0x790]
mov ecx, ebx
call fcn.0043dc32
test eax, eax
je 0x49166f
mov ecx, ebx
call fcn.0043da69
jmp 0x491686
push 2
mov ecx, esi
call fcn.004952c5
jmp 0x491686
cmp ecx, 0xe146
jne 0x4949fb
mov eax, edi
jmp 0x494a0b
cmp eax, 0x115
jne 0x4916bd
call fcn.00477cc3
mov ecx, eax
call fcn.004f52d6
mov edi, eax
lea ecx, [esi + 0xaf5d4]
inc edi
inc edi
call fcn.0049c45c
cdq
idiv edi
inc eax
mov dword [0x5d896c], eax
jmp 0x4949fb
cmp eax, 0x1c
je 0x4949fb
cmp eax, 0x464
jne 0x4949fb
lea eax, [ecx - 0x99]
cmp eax, 0x480
ja 0x4949fb
movzx eax, byte [eax + 0x494dec]
jmp dword [eax*4 + 0x494a1c]
xor eax, eax
jmp 0x494a0b
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.MFC42.DLL_CWnd::WindowProc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x49726c
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 [0x5d8050]
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 0x5d8050
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 0x497335
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 0x497335
lea eax, [ebp - 0xc]
push eax
call esi
cmp ebx, dword [eax + 0xc]
pop ecx
jne 0x49732e
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jne 0x49732e
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jne 0x49732e
inc dword [ebp - 4]
jmp 0x497335
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 0x497d18
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.00497c53
test al, al
jne 0x497e66
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 0x5c9474
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.00497c53
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49d332
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
push 0x588d44
push 0xffffffffffffffff
push str.ScreenModeRecord
mov esi, ecx
push str.ScreenMode
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [esp + 0xc]
lea ecx, [esi + 4]
push edi
push 0x15c
mov dword [esi], eax
call sub.MFC42.DLL_CDialog::Create
push edi
push 0x15d
lea ecx, [esi + 0x1234]
call sub.MFC42.DLL_CDialog::Create
push edi
push 0x15e
lea ecx, [esi + 0x3dc0]
call sub.MFC42.DLL_CDialog::Create
push edi
push 0x15f
lea ecx, [esi + 0x1374]
call sub.MFC42.DLL_CDialog::Create
push edi
push 0x160
lea ecx, [esi + 0x3614]
call sub.MFC42.DLL_CDialog::Create
push edi
push 0x161
lea ecx, [esi + 0x31d4]
call sub.MFC42.DLL_CDialog::Create
pop edi
pop esi
ret 4
Function at 0x4a09a6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0x218], eax
mov dword [esi + 0x480], eax
call dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenWidth_void_]
imul eax, dword [0x5c971c]
cdq
idiv dword [esi + 0x218]
mov dword [esi + 0x224], eax
call dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenHeight_void_]
imul eax, dword [0x5c971c]
cdq
idiv dword [esi + 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, str.Quiz
mov dword [esi + 0x228], eax
test byte [0x5d91c8], 1
jne 0x4a0a2d
or byte [0x5d91c8], 1
push str.ini_Info.ini
push 0x4b
push str.LeftScaleY
push ebx
call edi
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
fild qword [ebp - 8]
fstp qword [0x5d96e0]
test byte [0x5d91c8], 2
jne 0x4a0a5c
or byte [0x5d91c8], 2
push str.ini_Info.ini
push 0x6b
push str.RightScaleY
push ebx
call edi
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
fild qword [ebp - 8]
fstp qword [0x5d96d8]
mov eax, dword [0x5c971c]
mov edi, dword [esi + 0x218]
mov ecx, eax
add eax, 0xffffff32
sub ecx, edi
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
mov dword [ebp + 8], eax
fmul qword [0x5d96e0]
fild dword [ebp + 8]
fdivp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x21c], eax
mov eax, dword [0x5c971c]
mov ecx, eax
add eax, 0xffffff32
sub ecx, edi
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
mov dword [ebp + 8], eax
fmul qword [0x5d96d8]
fild dword [ebp + 8]
fdivp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x220], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a12e9
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, 0x5dabc0
mov ecx, edi
call fcn.004d80d0
test eax, eax
je 0x4a136f
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 0
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 + 0x444]
push dword [esi + 0x440]
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 0x4a14d8
mov eax, dword [0x5db6b0]
mov ecx, edi
mov dword [esp + 0x18], eax
mov eax, dword [0x5db6b4]
mov dword [esp + 0x1c], eax
call fcn.004ca36a
mov dword [esp + 0x10], eax
or eax, edx
mov dword [esp + 0x14], edx
je 0x4a14db
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 [0x589070]
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 + 0x42c], ebx
je 0x4a1434
call edi
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0xff000000
push 0
push 0
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 + 0x444]
push dword [esi + 0x440]
call ebp
add esp, 0x28
xor ebx, ebx
cmp dword [esi + 0x42c], ebx
je 0x4a14db
cmp dword [esi + 0x43c], ebx
jl 0x4a14db
jg 0x4a145a
cmp dword [esi + 0x438], ebx
jbe 0x4a14db
call sub.WINMM.dll_timeGetTime
sub eax, dword [esi + 0x434]
cmp eax, 0x7d0
jae 0x4a14db
push dword [esi + 0x43c]
lea eax, [esp + 0x24]
push dword [esi + 0x438]
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 ebx
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 + 0x44c]
push dword [esi + 0x448]
call ebp
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
Function at 0x4a5aa8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov edi, ecx
je 0x4a5aea
push 0x5c987c
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x4a5af1
push 0xad
push str.E:CQ2ClientRelease_17.1.93DGameMapTerrainEffectManager.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005185c3
add esp, 0x10
xor eax, eax
jmp 0x4a5b7a
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 0x4a5b6c
add edi, 0x20
mov dword [ebp - 0xc], edi
mov edi, 0x90
push edi
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x4a5b3e
push str.E:CQ2ClientRelease_17.1.93DGameMapTerrainEffectManager.cpp
push 0xb5
push 0x5c97d0
call fcn.005185c3
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.004a5cc9
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x4a5b19
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x4a98e2
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x570478
call fcn.0051f140
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x10], ecx
je 0x4a9a64
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 0x4a9a64
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 0x4a9a17
push 3
pop esi
sub eax, esi
je 0x4a99e1
sub eax, 6
je 0x4a99ab
sub eax, 5
jne 0x4a9a54
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 0x4a997e
call fcn.004bbda0
mov esi, eax
jmp 0x4a9980
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a9a54
push dword [ebp + 8]
mov ecx, esi
call fcn.004bbe36
mov ecx, dword [ebp - 0x10]
push esi
call fcn.004a974b
mov ecx, esi
call fcn.004bbe81
jmp 0x4a9a54
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 0x4a99cb
call fcn.004afb3e
mov esi, eax
jmp 0x4a99cd
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a9a54
push dword [ebp + 8]
mov ecx, esi
call fcn.004afedf
jmp 0x4a9a4b
push 0x1b8
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x4a9a01
call fcn.004bb870
mov esi, eax
jmp 0x4a9a03
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a9a54
push dword [ebp + 8]
mov ecx, esi
call fcn.004bbc43
jmp 0x4a9a4b
push 0x14c
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
mov dword [ebp - 4], esi
je 0x4a9a37
call fcn.004b245f
mov esi, eax
jmp 0x4a9a39
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a9a54
push dword [ebp + 8]
mov ecx, esi
call fcn.004b27bb
mov ecx, dword [ebp - 0x10]
push esi
call fcn.004a974b
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x4a9925
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4ab644
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 0x4ab6d5
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 0x4ab6d5
push ebx
mov esi, 0x5d91d0
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.004ab541
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.0049f7f6
push 0xffffffffffffffff
push 1
push str.Exit
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004a5404
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x4ab67a
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4adf6a
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x5709d4
call fcn.0051f140
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov edi, ecx
je 0x4ae06c
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 0x4ae06c
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 0x4ae023
cmp dword [ebp - 0x18], 8
jne 0x4ae05d
push 0x254
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [ebp - 4], ebx
je 0x4ae00d
mov ecx, eax
call fcn.004c0f4a
mov ebx, eax
jmp 0x4ae00f
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4ae05d
push dword [ebp + 8]
mov ecx, ebx
call fcn.004c108f
jmp 0x4ae055
push 0x1b0
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4ae043
mov ecx, eax
call fcn.004c0c49
mov ebx, eax
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4ae05d
push dword [ebp + 8]
mov ecx, ebx
call fcn.004c0e9d
push ebx
mov ecx, edi
call fcn.004adf53
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x4adfcf
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4ae655
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 0x4ae698
push 0x5c987c
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
jne 0x4ae69f
push 0x126
push str.E:CQ2ClientRelease_17.1.93DGameMapPuzzleBmp.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005185c3
add esp, 0x10
xor eax, eax
jmp 0x4ae7ca
mov al, byte [0x5d8050]
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 0x4ae6eb
mov dword [ebx + 0x128], edi
jmp 0x4ae709
lea eax, [ebp - 0xc]
push str.PUZZLE2
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4ae709
mov dword [ebx + 0x128], 2
cmp dword [ebx + 0x128], 0
jne 0x4ae719
xor edi, edi
jmp 0x4ae7bc
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 0x4ae74a
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.004ae130
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 0x4ae7ae
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 0x4ae7bc
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