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

Disassembly:
mov ecx, 0x58ebe8
jmp 0x473b8b
mov eax, 0x53a79d
call fcn.0050bac0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x50]
call fcn.00474eaf
xor ebx, ebx
lea ecx, [esi + 0x70]
mov dword [ebp - 4], ebx
call fcn.004028a6
lea eax, [esi + 0x7c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
push 6
mov edi, 0x58ea40
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], 0x5520d4
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.0040253b
lea eax, [esi + 0x5c]
push ebx
push eax
push str.State
mov edi, str.GuiSetup.ini
push str.AutoWrite
push edi
call fcn.00507741
lea eax, [esi + 0x64]
push ebx
push eax
push str.Status
push str.ExtraWrite
push edi
call fcn.00507741
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 0x476230
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov esi, ecx
push 0x2a
xor edi, edi
call fcn.004762d2
test eax, eax
jne 0x47624e
push 0x36
mov ecx, esi
call fcn.004762d2
test eax, eax
je 0x476251
push 1
pop edi
mov al, byte [esp + 0xc]
cmp al, 0x10
jb 0x47625d
cmp al, 0x19
jbe 0x47626d
cmp al, 0x1e
jb 0x476265
cmp al, 0x26
jbe 0x47626d
cmp al, 0x2c
jb 0x476295
cmp al, 0x32
ja 0x476295
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 0xff
test ax, ax
je 0x476288
test edi, edi
je 0x47628c
test ax, ax
jne 0x476291
test edi, edi
je 0x476291
push 1
pop eax
jmp 0x476297
xor eax, eax
jmp 0x476297
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x476a79
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, 0x58ebe8
call fcn.004741d4
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 0x476b1e
cmp dword [ebp + 0x1c], edx
je 0x476b63
push 0x20
lea eax, [esi + 0x1fb8]
push dword [ebp + 0x1c]
push eax
call fcn.00508488
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 0x47aa1e
Capabilities:
Extract resource via kernel32 functions

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

Disassembly:
mov eax, 0x53af3e
call fcn.0050bac0
sub esp, 0x9d8
mov eax, dword [ebp + 8]
push ebx
push esi
cmp eax, 0x85
push edi
mov esi, ecx
je 0x48bf1e
cmp eax, 0xf
jne 0x4897b3
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 0x48bf1e
cmp eax, 0x14
jne 0x4897c0
push 1
pop eax
jmp 0x48c72b
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp eax, 0x111
jne 0x489878
push 1
pop edi
cmp ecx, edi
jne 0x4897f2
cmp dword [esi + 0xa0a54], 0
je 0x489871
lea ecx, [esi + 0x798]
call fcn.0043c171
jmp 0x489871
cmp ecx, 2
jne 0x489865
xor ebx, ebx
cmp dword [esi + 0x1f3e8], ebx
je 0x489815
push ebx
lea ecx, [esi + 0x1f388]
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [esi + 0x798]
jmp 0x489853
cmp dword [esi + 0x50020], ebx
je 0x48982b
push ebx
lea ecx, [esi + 0x4ffc0]
call sub.MFC42.DLL_CWnd::ShowWindow
jmp 0x489871
cmp dword [esi + 0x559d0], ebx
je 0x489840
push edi
mov ecx, 0x59532c
call fcn.004d54e8
jmp 0x489871
lea ebx, [esi + 0x798]
mov ecx, ebx
call fcn.0043ba4c
test eax, eax
je 0x48985a
mov ecx, ebx
call fcn.0043b883
jmp 0x489871
push 2
mov ecx, esi
call fcn.0048cfba
jmp 0x489871
cmp ecx, 0xe146
jne 0x48c71b
mov eax, edi
jmp 0x48c72b
cmp eax, 0x115
jne 0x4898a8
call fcn.004705d4
mov ecx, eax
call fcn.00401f9f
mov edi, eax
lea ecx, [esi + 0xa0e2c]
inc edi
inc edi
call fcn.004940ce
cdq
idiv edi
inc eax
mov dword [0x58f20c], eax
jmp 0x48c71b
cmp eax, 0x1c
je 0x48c71b
cmp eax, 0x464
jne 0x48c71b
lea eax, [ecx - 0x99]
cmp eax, 0x479
ja 0x48c71b
movzx eax, byte [eax + 0x48cae8]
jmp dword [eax*4 + 0x48c73c]
xor eax, eax
jmp 0x48c72b
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 0x48eeb6
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 [0x58ea40]
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 0x58ea40
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 0x48ef7f
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 0x48ef7f
lea eax, [ebp - 0xc]
push eax
call esi
cmp ebx, dword [eax + 0xc]
pop ecx
jne 0x48ef78
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jne 0x48ef78
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jne 0x48ef78
inc dword [ebp - 4]
jmp 0x48ef7f
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 0x48f998
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.0048f8d3
test al, al
jne 0x48fae6
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 0x581db4
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.0048f8d3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4988e9
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, 0x591000
mov ecx, edi
call fcn.004ccb5e
test eax, eax
je 0x49896f
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 0x498ad8
mov eax, dword [0x591c38]
mov ecx, edi
mov dword [esp + 0x18], eax
mov eax, dword [0x591c3c]
mov dword [esp + 0x1c], eax
call fcn.004bfa96
mov dword [esp + 0x10], eax
or eax, edx
mov dword [esp + 0x14], edx
je 0x498adb
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 [0x553520]
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 0x498a34
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 0x498adb
cmp dword [esi + 0x434], ebx
jl 0x498adb
jg 0x498a5a
cmp dword [esi + 0x430], ebx
jbe 0x498adb
call sub.WINMM.dll_timeGetTime
sub eax, dword [esi + 0x42c]
cmp eax, 0x7d0
jae 0x498adb
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 0x49d1a0
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 0x49d1e2
push 0x5821a8
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x49d1e9
push 0x90
push str.D:CQ2ClientCn_15.3.53DGameMapTerrainEffectManager.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005079e3
add esp, 0x10
xor eax, eax
jmp 0x49d26e
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 0x49d260
push edi
mov edi, 0x90
push edi
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x49d231
push str.D:CQ2ClientCn_15.3.53DGameMapTerrainEffectManager.cpp
push 0x98
push 0x582100
call fcn.005079e3
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.004d57ee
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x49d20c
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 0x4a0da5
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x53c4ec
call fcn.0050bac0
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x10], ecx
je 0x4a0f27
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 0x4a0f27
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 0x4a0eda
push 3
pop esi
sub eax, esi
je 0x4a0ea4
sub eax, 6
je 0x4a0e6e
sub eax, 5
jne 0x4a0f17
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 0x4a0e41
call fcn.004b2a19
mov esi, eax
jmp 0x4a0e43
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a0f17
push dword [ebp + 8]
mov ecx, esi
call fcn.004b2ac5
mov ecx, dword [ebp - 0x10]
push esi
call fcn.004a0c72
mov ecx, esi
call fcn.004b2b10
jmp 0x4a0f17
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 0x4a0e8e
call fcn.004a7209
mov esi, eax
jmp 0x4a0e90
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a0f17
push dword [ebp + 8]
mov ecx, esi
call fcn.004a75bc
jmp 0x4a0f0e
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 0x4a0ec4
call fcn.004b2490
mov esi, eax
jmp 0x4a0ec6
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a0f17
push dword [ebp + 8]
mov ecx, esi
call fcn.004b28a6
jmp 0x4a0f0e
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 0x4a0efa
call fcn.004a91dd
mov esi, eax
jmp 0x4a0efc
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4a0f17
push dword [ebp + 8]
mov ecx, esi
call fcn.004a957c
mov ecx, dword [ebp - 0x10]
push esi
call fcn.004a0c72
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x4a0de8
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4a2b14
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 0x4a2ba5
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 0x4a2ba5
push ebx
mov esi, 0x58f638
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.004a2a11
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.00496ec8
push 0xffffffffffffffff
push 1
push str.Exit
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0049ca68
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x4a2b4a
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4a555d
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x53ca48
call fcn.0050bac0
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov edi, ecx
je 0x4a565f
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 0x4a565f
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 0x4a5616
cmp dword [ebp - 0x18], 8
jne 0x4a5650
push 0x3d4
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [ebp - 4], ebx
je 0x4a5600
mov ecx, eax
call fcn.004b7d71
mov ebx, eax
jmp 0x4a5602
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4a5650
push dword [ebp + 8]
mov ecx, ebx
call fcn.004b7eb6
jmp 0x4a5648
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 0x4a5636
mov ecx, eax
call fcn.004b7a4b
mov ebx, eax
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4a5650
push dword [ebp + 8]
mov ecx, ebx
call fcn.004b7cb8
push ebx
mov ecx, edi
call fcn.004a5546
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x4a55c2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4a5c48
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 0x4a5c8b
push 0x5821a8
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
jne 0x4a5c92
push 0x126
push str.D:CQ2ClientCn_15.3.53DGameMapPuzzleBmp.cpp
push dword [ebp + 8]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005079e3
add esp, 0x10
xor eax, eax
jmp 0x4a5dbd
mov al, byte [0x58ea40]
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 0x4a5cde
mov dword [ebx + 0x128], edi
jmp 0x4a5cfc
lea eax, [ebp - 0xc]
push str.PUZZLE2
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4a5cfc
mov dword [ebx + 0x128], 2
cmp dword [ebx + 0x128], 0
jne 0x4a5d0c
xor edi, edi
jmp 0x4a5daf
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 0x4a5d3d
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.004a5723
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 0x4a5da1
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 0x4a5daf
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