joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476ac5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
push eax
push esi
mov ecx, 0x58dd28
call fcn.004741b3
lea edi, [esi + 0x40]
push 0x1f98
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + 0x18]
sub eax, dword [ebp + 8]
mov byte [esi + 0x74], cl
mov bl, byte [ebp + 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
mov byte [esi + 0x51], bl
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [esi + 0x15b0], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov dword [esi + 0x15b4], eax
mov al, byte [ebp + 0x10]
movzx ecx, al
mov byte [esi + 0x50], al
mov eax, dword [ebp - 4]
sub eax, ecx
sub eax, dword [ebp - 0xc]
inc eax
cdq
idiv ecx
movzx ecx, bl
mov byte [esi + 0x52], al
mov eax, dword [ebp - 8]
sub eax, ecx
sub eax, dword [ebp - 0x10]
inc eax
cdq
idiv ecx
xor edx, edx
xor ecx, ecx
mov byte [esi + 0x53], al
lea eax, [esi + 0x1180]
mov dword [eax - 0x500], edx
and byte [esi + ecx + 0x1080], 0
mov dword [eax], edx
mov dword [eax - 0xd00], edx
mov dword [eax - 0x1100], 3
inc ecx
add eax, 4
cmp ecx, 0x100
jl 0x476b6a
cmp dword [ebp + 0x1c], edx
je 0x476baf
push 0x20
lea eax, [esi + 0x1fb8]
push dword [ebp + 0x1c]
push eax
call fcn.00508326
add esp, 0xc
push 1
pop eax
pop edi
mov dword [esi + 0x15a0], eax
mov dword [esi + 0x15a4], eax
pop esi
pop ebx
leave
ret 0x18

Function at 0x47aa08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
je 0x47aaa6
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 0x47aaa6
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 0x47aaa6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x47aaa6
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 0x47aaa8
xor al, al
pop esi
leave
ret
Function at 0x4895fa
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, 0x53a20e
call fcn.0050ad90
sub esp, 0x9d8
mov eax, dword [ebp + 8]
push ebx
push esi
cmp eax, 0x85
push edi
mov esi, ecx
je 0x48bdb2
cmp eax, 0xf
jne 0x489647
lea eax, [ebp - 0x1c8]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [ebp - 0x1c8]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x48bdb2
cmp eax, 0x14
jne 0x489654
push 1
pop eax
jmp 0x48c5bf
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp eax, 0x111
jne 0x48970c
push 1
pop edi
cmp ecx, edi
jne 0x489686
cmp dword [esi + 0xa0a54], 0
je 0x489705
lea ecx, [esi + 0x798]
call fcn.0043c12c
jmp 0x489705
cmp ecx, 2
jne 0x4896f9
xor ebx, ebx
cmp dword [esi + 0x1f3e8], ebx
je 0x4896a9
push ebx
lea ecx, [esi + 0x1f388]
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [esi + 0x798]
jmp 0x4896e7
cmp dword [esi + 0x50020], ebx
je 0x4896bf
push ebx
lea ecx, [esi + 0x4ffc0]
call sub.MFC42.DLL_CWnd::ShowWindow
jmp 0x489705
cmp dword [esi + 0x559d0], ebx
je 0x4896d4
push edi
mov ecx, 0x59446c
call fcn.004d537c
jmp 0x489705
lea ebx, [esi + 0x798]
mov ecx, ebx
call fcn.0043ba07
test eax, eax
je 0x4896ee
mov ecx, ebx
call fcn.0043b83e
jmp 0x489705
push 2
mov ecx, esi
call fcn.0048ce4e
jmp 0x489705
cmp ecx, 0xe146
jne 0x48c5af
mov eax, edi
jmp 0x48c5bf
cmp eax, 0x115
jne 0x48973c
call fcn.004704b0
mov ecx, eax
call fcn.004e718a
mov edi, eax
lea ecx, [esi + 0xa0e2c]
inc edi
inc edi
call fcn.00493f96
cdq
idiv edi
inc eax
mov dword [0x58e34c], eax
jmp 0x48c5af
cmp eax, 0x1c
je 0x48c5af
cmp eax, 0x464
jne 0x48c5af
lea eax, [ecx - 0x99]
cmp eax, 0x479
ja 0x48c5af
movzx eax, byte [eax + 0x48c97c]
jmp dword [eax*4 + 0x48c5d0]
xor eax, eax
jmp 0x48c5bf
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 0x48ed4a
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 [0x58db80]
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 0x58db80
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 0x48ee13
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 0x48ee13
lea eax, [ebp - 0xc]
push eax
call esi
cmp ebx, dword [eax + 0xc]
pop ecx
jne 0x48ee0c
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jne 0x48ee0c
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jne 0x48ee0c
inc dword [ebp - 4]
jmp 0x48ee13
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 0x48f82c
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.0048f767
test al, al
jne 0x48f97a
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 0x580dd8
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.0048f767
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4987a9
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, 0x590140
mov ecx, edi
call fcn.004cca36
test eax, eax
je 0x49882f
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 + 0x43c]
push dword [esi + 0x438]
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 0x498998
mov eax, dword [0x590d78]
mov ecx, edi
mov dword [esp + 0x18], eax
mov eax, dword [0x590d7c]
mov dword [esp + 0x1c], eax
call fcn.004bf92b
mov dword [esp + 0x10], eax
or eax, edx
mov dword [esp + 0x14], edx
je 0x49899b
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 [0x552520]
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 + 0x424], ebx
je 0x4988f4
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 + 0x43c]
push dword [esi + 0x438]
call ebp
add esp, 0x28
xor ebx, ebx
cmp dword [esi + 0x424], ebx
je 0x49899b
cmp dword [esi + 0x434], ebx
jl 0x49899b
jg 0x49891a
cmp dword [esi + 0x430], ebx
jbe 0x49899b
call sub.WINMM.dll_timeGetTime
sub eax, dword [esi + 0x42c]
cmp eax, 0x7d0
jae 0x49899b
push dword [esi + 0x434]
lea eax, [esp + 0x24]
push dword [esi + 0x430]
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 + 0x444]
push dword [esi + 0x440]
call ebp
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
Function at 0x49cfe6
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 0x49d028
push 0x5811d4
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x49d02f
push 0x90
push str.D:CQ2ClientCn_15.3.7_10183DGameMapTerrainEffectManager.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.00507881
add esp, 0x10
xor eax, eax
jmp 0x49d0b4
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 0x49d0a6
push edi
mov edi, 0x90
push edi
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x49d077
push str.D:CQ2ClientCn_15.3.7_10183DGameMapTerrainEffectManager.cpp
push 0x98
push 0x581128
call fcn.00507881
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.004b707d
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x49d052
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 0x4a0cc1
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x53b7bc
call fcn.0050ad90
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x10], ecx
je 0x4a0e43
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 0x4a0e43
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 0x4a0df6
push 3
pop esi
sub eax, esi
je 0x4a0dc0
sub eax, 6
je 0x4a0d8a
sub eax, 5
jne 0x4a0e33
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 0x4a0d5d
call fcn.004b2a5f
mov esi, eax
jmp 0x4a0d5f
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a0e33
push dword [ebp + 8]
mov ecx, esi
call fcn.004b2af5
mov ecx, dword [ebp - 0x10]
push esi
call fcn.004a0b8e
mov ecx, esi
call fcn.004b2b40
jmp 0x4a0e33
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 0x4a0daa
call fcn.004a706d
mov esi, eax
jmp 0x4a0dac
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a0e33
push dword [ebp + 8]
mov ecx, esi
call fcn.004a740e
jmp 0x4a0e2a
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 0x4a0de0
call fcn.004b24d6
mov esi, eax
jmp 0x4a0de2
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a0e33
push dword [ebp + 8]
mov ecx, esi
call fcn.004b28ec
jmp 0x4a0e2a
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 0x4a0e16
call fcn.004a902f
mov esi, eax
jmp 0x4a0e18
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a0e33
push dword [ebp + 8]
mov ecx, esi
call fcn.004a93d1
mov ecx, dword [ebp - 0x10]
push esi
call fcn.004a0b8e
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x4a0d04
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4a2a44
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 0x4a2ad5
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 0x4a2ad5
push ebx
mov esi, 0x58e778
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.004a2941
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.00496d88
push 0xffffffffffffffff
push 1
push str.Exit
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0049c95c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x4a2a7a
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4a5355
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x53bd18
call fcn.0050ad90
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov edi, ecx
je 0x4a5457
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 0x4a5457
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 0x4a540e
cmp dword [ebp - 0x18], 8
jne 0x4a5448
push 0x3d4
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [ebp - 4], ebx
je 0x4a53f8
mov ecx, eax
call fcn.004b7caa
mov ebx, eax
jmp 0x4a53fa
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4a5448
push dword [ebp + 8]
mov ecx, ebx
call fcn.004b7def
jmp 0x4a5440
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 0x4a542e
mov ecx, eax
call fcn.004b7981
mov ebx, eax
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4a5448
push dword [ebp + 8]
mov ecx, ebx
call fcn.004b7bf1
push ebx
mov ecx, edi
call fcn.004a533e
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x4a53ba
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4a5a40
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 0x4a5a83
push 0x5811d4
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
jne 0x4a5a8a
push 0x126
push str.D:CQ2ClientCn_15.3.7_10183DGameMapPuzzleBmp.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.00507881
add esp, 0x10
xor eax, eax
jmp 0x4a5bb5
mov al, byte [0x58db80]
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 0x4a5ad6
mov dword [ebx + 0x128], edi
jmp 0x4a5af4
lea eax, [ebp - 0xc]
push str.PUZZLE2
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4a5af4
mov dword [ebx + 0x128], 2
cmp dword [ebx + 0x128], 0
jne 0x4a5b04
xor edi, edi
jmp 0x4a5ba7
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 0x4a5b35
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.004a551b
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 0x4a5b99
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 0x4a5ba7
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 0x4a621d
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 0x4a639f
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.004a6084
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.004a6206
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.004a60b3
mov ecx, edi
call fcn.004a612c
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 0x4a639f
and dword [ebp + 8], 0
cmp dword [ebp - 0x24], 0
jle 0x4a6394
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call fcn.004a61b9
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4a6389
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 0x4a6336
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jl 0x4a632c
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a740e
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
je 0x4a746e
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.004a736c
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