joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7665
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5f9dea
call fcn.0059d590
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 0x18]
mov dword [esi], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push eax
call fcn.00402c6e
and dword [ebp - 4], 0
lea eax, [edi + 0x24]
push eax
lea ecx, [esi + 0x24]
call fcn.004ae153
add edi, 0x30
lea ecx, [esi + 0x30]
push edi
mov byte [ebp - 4], 1
call fcn.004b7a25
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4b80ba
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
mov eax, 0x5f9ef1
call fcn.0059d590
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x18]
mov dword [esi], edi
mov byte [esi + 4], 1
mov byte [esi + 5], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00402cc4
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
lea ebx, [esi + 0x30]
lea eax, [ebp - 0xd]
mov ecx, ebx
push eax
lea eax, [ebp - 0xe]
push eax
mov byte [ebp - 4], 2
call fcn.004b8128
push 8
lea eax, [esi + 0x10]
push edi
push eax
mov byte [ebp - 4], 3
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, ebx
call fcn.004b77cb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4b81a7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5f9f2f
call fcn.0059d590
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
fldz
or dword [esi + 8], 0xffffffff
mov dword [esi], edi
fstp dword [esi + 0x34]
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x40], edi
lea ecx, [esi + 0x44]
mov dword [ebp - 4], edi
call fcn.00402cc4
push 0x10
lea eax, [esi + 0x10]
push edi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [esi + 0x20]
push edi
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0xc]
add esp, 0x18
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
leave
ret

Function at 0x4b8234
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5f9f44
call fcn.0059d590
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0xd]
xor ebx, ebx
push eax
push 0x68f370
mov dword [ebp - 4], ebx
call fcn.00402bfa
fldz
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x20], ebx
fstp dword [esi + 0x2c]
fldz
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
fstp dword [esi + 0x30]
mov byte [esi + 0x34], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0xc], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4b919d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
je 0x4b923b
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 0x4b923b
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 0x4b923b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4b923b
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 0x4b923d
xor al, al
pop esi
leave
ret

Function at 0x4b9940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4b99f4
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4b99f4
push str.version
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x4b99f4
push esi
push edi
mov esi, str.Version:
lea edi, [ebp - 0x100]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x3d
lea edi, [ebp - 0xf6]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf6
lea eax, [ebp - 0x100]
push str.E:CQ2ClientRelease_18.26.8MyShellMyShell.cpp
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
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
pop esi
je 0x4b99cc
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x100]
push str.VersionInfo
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x100]
push eax
call fcn.005950cb
pop ecx
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
pop ebx
leave
ret 4
Function at 0x4bb67c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x68fdac
push 8
mov eax, edx
pop esi
test al, 1
je 0x4bb696
shr eax, 1
xor eax, 0xedb88320
jmp 0x4bb698
shr eax, 1
dec esi
jne 0x4bb689
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x6901ac
jl 0x4bb684
pop esi
ret

Function at 0x4bb6ab
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x4bb6dd
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 + 0x68fdac]
xor eax, esi
inc ecx
dec edx
jne 0x4bb6be
pop edi
pop esi
not eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.004bb67c
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, 0x68fd98
cmp ebx, edi
je 0x4bb772
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.004bb6ab
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 0x4dbb98
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 [0x68f370]
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 0x68f370
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 0x4dbc61
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 0x4dbc61
lea eax, [ebp - 0xc]
push eax
call esi
cmp ebx, dword [eax + 0xc]
pop ecx
jne 0x4dbc5a
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jne 0x4dbc5a
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jne 0x4dbc5a
inc dword [ebp - 4]
jmp 0x4dbc61
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 0x4dc86e
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.004dc78d
test al, al
jne 0x4dc9bc
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 0x67e670
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.004dc78d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4e451c
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
push 0x620f5c
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 + 0x1020]
call sub.MFC42.DLL_CDialog::Create
push edi
push 0x15e
lea ecx, [esi + 0x3970]
call sub.MFC42.DLL_CDialog::Create
push edi
push 0x15f
lea ecx, [esi + 0x112c]
call sub.MFC42.DLL_CDialog::Create
push edi
push 0x160
lea ecx, [esi + 0x324c]
call sub.MFC42.DLL_CDialog::Create
push edi
push 0x161
lea ecx, [esi + 0x2eb0]
call sub.MFC42.DLL_CDialog::Create
pop edi
pop esi
ret 4
Function at 0x4e81bb
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 + 0x130], eax
mov dword [esi + 0x330], eax
call dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenWidth_void_]
imul eax, dword [0x67e91c]
cdq
idiv dword [esi + 0x130]
mov dword [esi + 0x13c], eax
call dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenHeight_void_]
imul eax, dword [0x67e91c]
cdq
idiv dword [esi + 0x130]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, str.Quiz
mov dword [esi + 0x140], eax
test byte [0x690798], 1
jne 0x4e8242
or byte [0x690798], 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 [0x6907a0]
test byte [0x690798], 2
jne 0x4e8271
or byte [0x690798], 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 [0x690790]
mov eax, dword [0x67e91c]
mov edi, dword [esi + 0x130]
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 [0x6907a0]
fild dword [ebp + 8]
fdivp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x134], eax
mov eax, dword [0x67e91c]
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 [0x690790]
fild dword [ebp + 8]
fdivp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x138], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4ed97c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x5fcedf
call fcn.0059d590
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x40]
call fcn.00402cc4
mov ebx, 0x68f370
xor edi, edi
push ebx
mov dword [ebp - 4], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, ebx
push eax
push ebx
lea ecx, [esi + 0x40]
call fcn.004029af
mov ecx, dword [ebp - 0xc]
mov dword [esi], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4ee32e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x5fcf3a
call fcn.0059d590
push ecx
push ebx
push esi
push edi
mov esi, ecx
push fcn.00402855
push fcn.00402cc4
lea eax, [esi + 0x40]
push 2
push 0xc
push eax
mov dword [ebp - 0x10], esi
call fcn.0059d72e
mov edi, 0x68f370
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.004029af
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x4c]
call fcn.004029af
mov ecx, dword [ebp - 0xc]
mov dword [esi], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4f5120
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 0x4f5162
push 0x67eea4
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x4f5169
push 0xaf
push str.E:CQ2ClientRelease_18.26.83DGameMapTerrainEffectManager.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005950cb
add esp, 0x10
xor eax, eax
jmp 0x4f51fc
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 0x4f51ee
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 0x4f51c0
push 0xb7
push str.E:CQ2ClientRelease_18.26.83DGameMapTerrainEffectManager.cpp
push str.pInfo
push str.ASSERT
push 0x6765b8
call fcn.005950cb
add esp, 0x14
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.00413b69
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x4f5191
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 0x4ff258
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
cmp dword [ebp + 8], 0
push ebx
push esi
mov esi, ecx
je 0x4ff29b
push 0x67eea4
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x4ff2a2
push 0x12a
push str.E:CQ2ClientRelease_18.26.83DGameMapPuzzleBmp.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005950cb
add esp, 0x10
xor eax, eax
jmp 0x4ff3d3
mov al, byte [0x68f370]
push edi
mov byte [ebp - 8], al
xor eax, eax
lea edi, [ebp - 7]
push ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push 8
lea eax, [ebp - 8]
push 1
push eax
call edi
and dword [esi + 0x128], 0
lea eax, [ebp - 8]
push str.PUZZLE
push eax
call sub.MSVCRT.dll_strcmp
add esp, 0x18
test eax, eax
jne 0x4ff2ed
mov dword [esi + 0x128], 1
jmp 0x4ff30b
lea eax, [ebp - 8]
push str.PUZZLE2
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4ff30b
mov dword [esi + 0x128], 2
cmp dword [esi + 0x128], 0
jne 0x4ff31b
xor esi, esi
jmp 0x4ff3c8
push ebx
push 0x100
lea eax, [ebp - 0x110]
push 1
push eax
call edi
lea eax, [ebp - 0x110]
add esp, 0x10
test eax, eax
je 0x4ff359
lea eax, [ebp - 0x110]
push 0x100
push eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
and byte [esi + 0x117], 0
push ebx
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call edi
push ebx
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call edi
add esp, 0x20
mov ecx, esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004fed33
push ebx
push dword [esi + 4]
push 2
push dword [esi + 8]
call edi
add esp, 0x10
cmp dword [esi + 0x128], 2
jne 0x4ff3b7
push ebx
push 1
lea eax, [esi + 0x120]
push 4
push eax
call edi
push ebx
push 1
add esi, 0x124
push 4
push esi
call edi
add esp, 0x20
jmp 0x4ff3c5
and dword [esi + 0x124], 0
and dword [esi + 0x120], 0
push 1
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4ffa87
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x4ffc77
and byte [ebp - 0x17c], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x17b]
and byte [ebp - 0x7c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100
lea eax, [ebp - 0x17c]
push 1
push eax
call esi
and byte [ebp - 0x7d], 0
lea eax, [ebp - 0x17c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
lea eax, [ebp + eax - 0x17c]
lea ecx, [ebx + 0x34]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004029af
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x7c]
push edi
push 0x40
push 1
push eax
call esi
and byte [ebp - 0x3d], 0
lea eax, [ebp - 0x7c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
lea eax, [ebp + eax - 0x7c]
lea ecx, [ebx + 0x28]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004029af
push edi
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
push edi
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call esi
add esp, 0x20
mov ecx, ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004ff911
push edi
push 1
lea eax, [ebp - 0x2c]
push 4
push eax
call esi
mov eax, dword [ebp - 0x2c]
push edi
mov dword [ebx + 0x40], eax
push 1
push 4
lea eax, [ebp - 0x28]
push eax
call esi
push edi
push 1
lea eax, [ebp - 0x24]
push 4
push eax
call esi
mov eax, dword [ebx]
add esp, 0x30
mov ecx, ebx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [eax + 0x20]
push edi
push 1
lea eax, [ebp - 8]
push 4
push eax
call esi
mov eax, dword [ebp - 8]
push edi
mov dword [ebx + 0x24], eax
push 1
lea eax, [ebp - 0x34]
push 4
push eax
call esi
push edi
push 1
lea eax, [ebp - 0x30]
push 4
push eax
call esi
add esp, 0x30
mov ecx, ebx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.004ffa76
push edi
push 1
lea eax, [ebp - 8]
push 4
push eax
call esi
mov eax, dword [ebp - 8]
add esp, 0x10
mov ecx, ebx
mov dword [ebx + 0x44], eax
call fcn.004ff922
mov ecx, ebx
call fcn.004ff9b1
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
and dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
jle 0x4ffc77
and dword [ebp + 8], 0
cmp dword [ebp - 0x10], 0
jle 0x4ffc6c
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp + 8]
call fcn.004ffa2f
test eax, eax
mov dword [ebp - 0x20], eax
je 0x4ffc61
push edi
push 1
lea eax, [ebp - 0x38]
push 4
push eax
call esi
push edi
push 1
lea eax, [ebp - 0x3c]
push 4
push eax
call esi
push edi
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call esi
mov eax, dword [ebp - 0x20]
mov cx, word [ebp - 0x3c]
add esp, 0x30
mov word [eax + 4], cx
mov cx, word [ebp - 0x38]
mov word [eax + 6], cx
mov cx, word [ebp - 0x14]
mov word [eax + 8], cx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x10]
jl 0x4ffc0e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x4ffc04
pop edi
pop esi
pop ebx
leave
ret 4