joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d16d0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x8c0ec0]
mov ecx, dword [eax + 4]
cmp ecx, 0xf
ja case.0x4d16e2.5
jmp dword [ecx*4 + 0x4d1918]
mov eax, dword [0x8c0ecc]
mov dword [eax + 0xb0], 0
mov dword [eax + 0xac], 0
pop ecx
ret
mov eax, dword [0x8c0ecc]
cmp dword [eax + 0xbc], 0xffffffff
jne case.0x4d16e2.5
push 0xff
call fcn.0053e250
mov ecx, dword [0x8c0ecc]
add esp, 4
mov dword [ecx + 0xbc], eax
pop ecx
ret
mov eax, dword [0x8c0ecc]
mov dword [eax + 0xb0], 8
mov dword [eax + 0xac], 0
mov edx, dword [str.No_use]
jmp 0x4d180a
mov eax, dword [str.Saving_game_data.]
push eax
push 0x8c0ed0
call fcn.00631251
push 0x8c0ed0
call fcn.004b11a0
add esp, 0xc
pop ecx
ret
mov ecx, dword [0x8c0ecc]
cmp dword [ecx + 0xbc], 0xffffffff
jne case.0x4d16e2.5
push 0xff
call fcn.0053e1e0
mov edx, dword [0x8c0ecc]
add esp, 4
mov dword [edx + 0xbc], eax
pop ecx
ret
mov eax, dword [0x8c0ecc]
mov eax, dword [eax + 0xbc]
cmp eax, 0xffffffff
je 0x4d17c9
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [0x8c0ecc]
mov dword [edx + 0xbc], 0xffffffff
push 0xff
call fcn.0053e1e0
mov ecx, dword [0x8c0ecc]
add esp, 4
mov dword [ecx + 0xbc], eax
call dword [sym.imp.winmm.dll_timeGetTime]
cmp dword [0x8d2094], 0
mov dword [0x8d208c], eax
mov dword [0x8d2090], 0
jne case.0x4d16e2.5
mov edx, dword [str.Saving_game_data.]
push edx
push 0x8c0ed0
call fcn.00631251
push 0x8c0ed0
call fcn.004b11a0
add esp, 0xc
pop ecx
ret
mov eax, dword [0x8c0ecc]
mov ecx, dword [eax + 0xbc]
push 0
push 0
push 0
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne case.0x4d16e2.5
mov edx, dword [0x8c0ecc]
mov dword [edx + 0xc0], 1
pop ecx
ret
cmp dword [0x8d2090], 0
jne case.0x4d16e2.5
mov ecx, dword [eax + 0x18]
mov edx, dword [eax]
push ecx
push 0x8c0fd8
push edx
mov dword [0x8d2090], 1
call fcn.004b2920
push 0x10fc0
push 0x8c0fd8
call fcn.004d0bc0
mov ecx, dword [0x8c0ecc]
mov edx, dword [ecx + 0xbc]
add esp, 0x14
push 0
lea eax, [esp + 4]
push eax
push 0x10fc0
push 0x8c0fd8
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
mov eax, dword [0x8c0ecc]
je 0x4d18e1
mov ecx, dword [eax + 0xbc]
push ecx
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
test eax, eax
jne case.0x4d16e2.5
mov edx, dword [0x8c0ecc]
mov dword [edx + 0xc0], 3
pop ecx
ret
mov dword [eax + 0xc0], 3
pop ecx
ret
mov ecx, dword [0x8c0ecc]
mov eax, dword [ecx + 0xbc]
cmp eax, 0xffffffff
je 0x4d1905
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [0x8c0ecc]
mov dword [edx + 0xbc], 0xffffffff
pop ecx
ret
Function at 0x4d1af0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push 0
call fcn.0053e280
mov eax, dword [0x8c0ec0]
mov eax, dword [eax + 4]
add esp, 4
cmp eax, 0x13
ja case.0x4d1b13.2
movzx ecx, byte [eax + 0x4d1c4c]
jmp dword [ecx*4 + 0x4d1c34]
mov eax, dword [0x8c0ecc]
push 1
mov dword [eax + 0xb0], 0
mov dword [eax + 0xac], 0
call fcn.0053e280
add esp, 8
ret
push 0xff
call fcn.0053e250
mov edx, dword [0x8c0ecc]
add esp, 4
push 1
mov dword [edx + 0xbc], eax
call fcn.0053e280
add esp, 8
ret
mov eax, dword [0x8c0ecc]
mov ecx, dword [eax + 0xbc]
push 0
push 0
push 0
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne case.0x4d1b13.2
mov edx, dword [0x8c0ecc]
push 1
mov dword [edx + 0xc0], 1
call fcn.0053e280
add esp, 8
ret
mov eax, dword [0x8c0ecc]
mov ecx, dword [eax + 0xbc]
push 0
push ecx
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0x10fc0
jne 0x4d1be5
push 0
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [0x8c0ecc]
mov ecx, dword [eax + 0xbc]
push 0x8c0fd8
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4d1be5
cmp dword [esp], 0x10fc0
je case.0x4d1b13.2
mov edx, dword [0x8c0ecc]
push 1
mov dword [edx + 0xc0], 2
call fcn.0053e280
add esp, 8
ret
mov eax, dword [0x8c0ecc]
mov eax, dword [eax + 0xbc]
cmp eax, 0xffffffff
je 0x4d1c17
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [0x8c0ecc]
mov dword [ecx + 0xbc], 0xffffffff
push 1
call fcn.0053e280
add esp, 8
ret
Function at 0x4d7570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [esp + 0xa4]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call fcn.0054df70
mov ecx, eax
call fcn.0054ded0
test eax, eax
je 0x4d76fe
mov ecx, dword [eax]
lea edx, [esp + 0x80]
push edx
push 0
push eax
call dword [ecx + 0x44]
test eax, eax
jl 0x4d76fe
mov eax, dword [esi + 0x2c]
fild dword [esi + 0x2c]
test eax, eax
movss xmm1, dword [esi + 0x20]
movss xmm2, dword [esi + 0x30]
movss xmm3, dword [esi + 0x24]
movss xmm4, dword [esi + 0x34]
jge 0x4d75dd
fadd dword [0x649440]
movzx ecx, byte [esi + 0x19]
fmul dword [0x64fbec]
movzx edx, byte [esi + 0x1a]
fsubr dword [0x649444]
xor eax, eax
mov ah, byte [esi + 0x1b]
push 0x1c
fst dword [esp + 8]
movss dword [esp + 0x24], xmm3
fstp dword [esp + 0x14]
movss dword [esp + 0x40], xmm3
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x3c], xmm2
movss dword [esp + 0x58], xmm1
movss dword [esp + 0x5c], xmm4
movss dword [esp + 0x74], xmm2
mov al, byte [esi + 0x18]
movss dword [esp + 0x78], xmm4
shl eax, 8
or eax, ecx
movsx ecx, word [esi + 0x28]
shl eax, 8
or eax, edx
movsx edx, word [esi + 0x38]
cvtsi2ss xmm6, edx
movsx edx, word [esi + 0x3a]
cvtsi2ss xmm5, ecx
movsx ecx, word [esi + 0x2a]
cvtsi2ss xmm0, edx
lea edx, [esp + 0xc]
push edx
cvtsi2ss xmm7, ecx
movss dword [esp + 0x84], xmm0
movss xmm0, dword [0x649444]
movss xmm3, dword [esp + 0x84]
push 2
movss dword [esp + 0x18], xmm7
mov dword [esp + 0x24], eax
movss dword [esp + 0x34], xmm7
movss xmm7, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x78], eax
mov eax, dword [0x7060d0]
push 5
movss dword [esp + 0x18], xmm5
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x34], xmm6
movss dword [esp + 0x3c], xmm7
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x50], xmm5
movss dword [esp + 0x54], xmm3
movss dword [esp + 0x58], xmm7
movss dword [esp + 0x5c], xmm0
movss dword [esp + 0x6c], xmm6
movss dword [esp + 0x70], xmm3
movss dword [esp + 0x74], xmm7
movss dword [esp + 0x78], xmm0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14c]
pop esi
add esp, 0x9c
ret
Function at 0x50ae30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, dword [0x9eae78]
add eax, 0x1e20c
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ecx
xor edi, edi
mov dword [eax + 0x7c], ecx
xor ebx, ebx
mov ebp, 0xd
xor esi, esi
lea ebx, [ebx]
push edi
lea eax, [esi + ebx*2]
call fcn.0050adb0
add esp, 4
test eax, eax
je 0x50aec3
add edi, 1
add esi, 1
cmp esi, 2
jl 0x50aeb0
add ebx, 1
sub ebp, 1
jne 0x50aea8
xor esi, esi
push edi
mov eax, esi
call fcn.0050a4e0
add esp, 4
test eax, eax
je 0x50aee7
add edi, 1
add esi, 1
cmp esi, 3
jl 0x50aed5
xor esi, esi
push edi
lea eax, [esi + 0x1a]
call fcn.0050adb0
add esp, 4
test eax, eax
je 0x50af04
add edi, 1
add esi, 1
cmp esi, 3
jl 0x50aef1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x50bf60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa0
mov ecx, dword [esp + 0xa4]
fnstcw word [esp + 2]
movss xmm0, dword [0x64de54]
movss xmm1, dword [0x653100]
movss xmm2, dword [0x6530fc]
movss xmm3, dword [0x6530f8]
movss xmm4, dword [0x6530f4]
xor eax, eax
mov dword [esp + 0x98], eax
movss xmm5, dword [0x6530f0]
movss xmm6, dword [0x6530ec]
mov dword [esp + 0x9c], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + ecx*4 + 8]
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, byte [esp + 0xa8]
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x64], xmm0
movss xmm0, dword [0x64fac8]
add edx, eax
movzx eax, word [esp + 2]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [0x64e4b8]
movss dword [esp + 0x2c], xmm1
movss xmm1, dword [0x6530e8]
movss dword [esp + 0x3c], xmm2
movss xmm2, dword [0x6530e4]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [0x64e2d4]
or ah, 0xc
movss dword [esp + 0x30], xmm1
movss xmm1, dword [0x6530e0]
movss dword [esp + 0x40], xmm2
movss xmm2, dword [0x6530dc]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [0x64e4c0]
movss dword [esp + 0x34], xmm1
movss xmm1, dword [0x6530d8]
movss dword [esp + 0x44], xmm2
movss xmm2, dword [0x64e4d0]
movss dword [esp + 0x4c], xmm3
movss xmm3, dword [0x6530d4]
movss dword [esp + 0x54], xmm4
movss xmm4, dword [0x6530d0]
movss dword [esp + 0x78], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x48], xmm2
movss dword [esp + 0x50], xmm3
movss dword [esp + 0x58], xmm4
movss dword [esp + 0x5c], xmm5
movss dword [esp + 0x60], xmm6
movss dword [esp + 0x70], xmm1
movss dword [esp + 0x7c], xmm2
movss dword [esp + 0x80], xmm3
movss dword [esp + 0x84], xmm4
movss dword [esp + 0x88], xmm5
movss dword [esp + 0x8c], xmm6
movss dword [esp + 0x90], xmm0
movss dword [esp + 0x94], xmm0
fld dword [esp + edx*4 + 0x28]
fmul dword [0x64de60]
mov dword [esp + 4], eax
fldcw word [esp + 4]
fistp dword [esp + 4]
mov eax, dword [esp + 4]
fldcw word [esp + 2]
add esp, 0xa0
ret
Function at 0x53def0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 4], 0x5c3a5a
lea edx, [esp + 8]
mov byte [esp + 4], al
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
mov dword [edi], 0xffffffff
push ecx
mov dword [esi], 0xffffffff
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x53df53
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push ebx
mov ebx, edx
mov eax, ecx
shrd eax, ebx, 0xe
shr ebx, 0xe
sub ecx, dword [esp + 0x10]
mov dword [edi], eax
sbb edx, dword [esp + 0x14]
pop ebx
shrd ecx, edx, 0xe
shr edx, 0xe
sub eax, ecx
mov dword [esi], eax
add esp, 0x1c
ret

Function at 0x53e020
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x705898]
mov eax, dword [eax + 0xe4]
push edi
mov edi, dword [esp + 8]
push 1
push 5
push edi
push eax
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x53e071
mov eax, str.KOEIDynasty_Warriors_4_HyperSavedata_
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x53e047
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x53e055
push esi
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
ret

Function at 0x53e170
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x6ee2dc]
mov dword [esp + 0x104], eax
call fcn.0053e0e0
test eax, eax
jne 0x53e1c5
lea eax, [esp]
push eax
call fcn.0053e020
add esp, 4
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.shell32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x53e1c5
call dword [sym.imp.kernel32.dll_GetLastError]
xor eax, eax
mov ecx, dword [esp + 0x104]
call fcn.0062fcdf
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
mov eax, 1
call fcn.0062fcdf
add esp, 0x108
ret

Function at 0x53e1e0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ecx
call fcn.00632dec
test al, al
mov byte [esp], al
je 0x53e1fd
mov eax, dword [esp]
push eax
call fcn.0053e170
add esp, 4
test eax, eax
jne 0x53e202
or eax, 0xffffffff
pop ecx
ret
push esi
call fcn.0053e080
mov esi, eax
test esi, esi
jne 0x53e214
or eax, 0xffffffff
pop esi
pop ecx
ret
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
test al, 1
je 0x53e22a
xor eax, 1
push eax
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
pop esi
pop ecx
ret
Function at 0x53ff40
Capabilities:
Read file on windows

Disassembly:
push ecx
test eax, eax
push ebp
mov ebp, dword [esp + 0xc]
je 0x53ffba
test ebp, ebp
je 0x53ffba
test edi, edi
je 0x53ffba
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x53ff76
pop esi
xor eax, eax
pop ebp
pop ecx
ret
push 0
push 0
push ebx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, ebx
jne 0x53ffa6
push 0
lea eax, [esp + 0xc]
push eax
push edi
push ebp
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x53ffa6
mov dword [esp + 8], eax
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
cmp dword [esp + 8], edi
pop esi
sete al
pop ebp
pop ecx
ret
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x5404d0
Capabilities:
Read file on windows

Disassembly:
push esi
push 0
mov esi, ecx
call fcn.0053fde0
test eax, eax
jne 0x5404e2
pop esi
ret 0x10
push edi
mov edi, dword [esp + 0xc]
cmp edi, 0xffffffff
jne 0x5404f9
pop edi
mov dword [esi], 3
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ecx, [esi + 8]
push ecx
shl eax, 0xb
push 0
shl edx, 0xb
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x540531
pop edi
mov dword [esi], 2
mov eax, 1
pop esi
ret 0x10
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x5404ec
mov dword [esi + 4], edi
pop edi
mov dword [esi], 1
mov eax, 1
pop esi
ret 0x10

Function at 0x541af0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.kernel32.dll_CreateFileA]
push esi
push edi
mov edi, edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x541b30
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x541b37
call fcn.00543c00
jmp 0x541b00
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x543890
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x64759b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
push 4
mov esi, ecx
call fcn.0062fffc
add esp, 4
mov dword [esp + 0xc], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x5438cc
mov ecx, eax
call fcn.00404170
jmp 0x5438ce
xor eax, eax
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi], eax
call fcn.004041a0
mov ebx, dword [sym.imp.kernel32.dll_CreateEventA]
push str.NotificationEvent
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x38], eax
call ebx
lea edx, [esi + 0x34]
push edx
push edi
push esi
push 0x543700
push edi
push edi
mov dword [esi + 0x3c], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
pop edi
mov dword [esi + 0x30], eax
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x543c40
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc18
mov eax, dword [0x6ee2dc]
push ebx
push ebp
push esi
push edi
push 1
mov dword [esp + 0xc28], eax
xor esi, esi
mov byte [esp + 0x17], 0
call dword [sym.imp.kernel32.dll_SetErrorMode]
lea eax, [esp + 0x24]
push eax
push 0x400
call dword [sym.imp.kernel32.dll_GetLogicalDriveStringsA]
mov ebp, dword [sym.imp.kernel32.dll_GetDriveTypeA]
mov ebx, dword [sym.imp.kernel32.dll_GetVolumeInformationA]
lea edi, [esp + esi + 0x24]
push edi
call ebp
cmp eax, 5
jne 0x543ce7
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push 0x400
lea ecx, [esp + 0x83c]
push ecx
push edi
call ebx
test eax, eax
je 0x543ce7
push str.GameIdent.bin
push edi
lea edx, [esp + 0x42c]
push str._s_s
push edx
call fcn.00631251
lea eax, [esp + 0x434]
push 0x649700
push eax
call fcn.00631349
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x543d24
cmp esi, 0x400
jge 0x543d0f
nop
cmp byte [esp + esi + 0x24], 0
je 0x543d04
add esi, 1
cmp esi, 0x400
jl 0x543cf0
jmp 0x543d0f
cmp esi, 0x400
jge 0x543d0f
add esi, 1
cmp byte [esp + esi + 0x24], 0
je 0x543d59
cmp esi, 0x400
jl 0x543c81
jmp 0x543d59
push edi
push 1
lea ecx, [esp + 0x1c]
push 3
push ecx
call fcn.006314e2
push edi
call fcn.006313a8
push 3
lea edx, [esp + 0x2c]
push 0x657384
push edx
call fcn.00633180
add esp, 0x20
test eax, eax
jne 0x543d59
mov al, byte [esp + esi + 0x24]
mov byte [esp + 0x13], al
push 0
call dword [sym.imp.kernel32.dll_SetErrorMode]
mov ecx, dword [esp + 0xc24]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0062fcdf
add esp, 0xc18
ret
Function at 0x543d80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x70
mov eax, dword [0x6ee2dc]
mov dword [esp + 0x6c], eax
mov eax, dword [0x6d8398]
cmp eax, 0xffffffff
push esi
push edi
je 0x543df8
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
push 0
push 0
shl ecx, 0xb
push ecx
push eax
mov edi, eax
shl esi, 0xb
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x543de1
mov eax, dword [esp + 0x7c]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x543de1
cmp esi, dword [esp + 8]
je 0x543f72
mov ecx, dword [0x6d8398]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x6d8398], 0xffffffff
mov edx, dword [str..MEDIA]
mov eax, dword [0x6573b4]
lea edi, [esp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x543e12
mov ecx, dword [str.linkdata.bin]
mov edx, dword [0x6573a4]
mov eax, dword [0x6573a8]
mov dword [edi], ecx
mov cx, word [0x6573ac]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov word [edi + 0xc], cx
lea edi, [esp + 0x14]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x543e47
mov dl, byte [0x6495e0]
push ebx
push ebp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x34]
mov byte [edi], dl
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
push eax
call edi
mov ebx, dword [sym.imp.user32.dll_MessageBoxA]
mov ebp, dword [sym.imp.user32.dll_SendMessageA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x543ede
lea ecx, [ecx]
mov ecx, dword [0x705898]
mov esi, dword [ecx + 0xe4]
call fcn.00408660
mov ecx, dword [0x6dae54]
mov edx, dword [str.Data_missing_or_corrupted._Run_the_Dynasty_Warriors_4_Hyper_Setup_and_choose_Repair.]
push 0x30
push ecx
push edx
push 0
call ebx
push 0
push 1
push 0x10
push esi
call ebp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x34]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x543e90
mov eax, dword [esp + 0x88]
shl eax, 0xb
mov edi, eax
mov eax, dword [esp + 0x8c]
shl eax, 0xb
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
lea esp, [esp]
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x543f36
mov eax, dword [esp + 0x84]
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x543f36
cmp edi, dword [esp + 0x14]
je 0x543f6a
mov ecx, dword [0x705898]
mov edi, dword [ecx + 0xe4]
call fcn.00408660
mov ecx, dword [0x6dae54]
mov edx, dword [str.Data_missing_or_corrupted._Run_the_Dynasty_Warriors_4_Hyper_Setup_and_choose_Repair.]
push 0x30
push ecx
push edx
push 0
call ebx
push 0
push 1
push 0x10
push edi
call ebp
mov edi, dword [esp + 0x18]
jmp 0x543f00
pop ebp
mov dword [0x6d8398], esi
pop ebx
mov ecx, dword [esp + 0x74]
pop edi
mov eax, 1
pop esi
call fcn.0062fcdf
add esp, 0x70
ret
Function at 0x544020
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x68
mov eax, dword [0x6ee2dc]
mov dword [esp + 0x64], eax
mov eax, dword [0x6d8398]
cmp eax, 0xffffffff
push esi
push edi
je 0x54408c
mov ecx, dword [esp + 0x7c]
push 0
push 0
push ecx
push eax
mov esi, eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x544075
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x544075
cmp edi, dword [esp + 8]
je 0x5441f5
mov ecx, dword [0x6d8398]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x6d8398], 0xffffffff
mov edx, dword [str..MEDIA]
mov eax, dword [0x6573b4]
lea edi, [esp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x5440a6
mov ecx, dword [str.linkdata.bin]
mov edx, dword [0x6573a4]
mov eax, dword [0x6573a8]
mov dword [edi], ecx
mov cx, word [0x6573ac]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov word [edi + 0xc], cx
lea edi, [esp + 0xc]
add edi, 0xffffffff
jmp 0x5440e0
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x5440e0
mov dl, byte [0x6495e0]
push ebx
push ebp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x2c]
mov byte [edi], dl
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
push eax
call edi
mov ebx, dword [sym.imp.user32.dll_MessageBoxA]
mov ebp, dword [sym.imp.user32.dll_SendMessageA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x544180
jmp 0x544130
mov ecx, dword [0x705898]
mov esi, dword [ecx + 0xe4]
call fcn.00408660
mov ecx, dword [0x6dae54]
mov edx, dword [str.Data_missing_or_corrupted._Run_the_Dynasty_Warriors_4_Hyper_Setup_and_choose_Repair.]
push 0x30
push ecx
push edx
push 0
call ebx
push 0
push 1
push 0x10
push esi
call ebp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x544130
mov edi, edi
mov ecx, dword [esp + 0x84]
push 0
push 0
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5441bd
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
push 0
lea edx, [esp + 0x14]
push edx
push edi
push eax
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x5441bd
cmp edi, dword [esp + 0x10]
je 0x5441ed
mov ecx, dword [0x705898]
mov edi, dword [ecx + 0xe4]
call fcn.00408660
mov ecx, dword [0x6dae54]
mov edx, dword [str.Data_missing_or_corrupted._Run_the_Dynasty_Warriors_4_Hyper_Setup_and_choose_Repair.]
push 0x30
push ecx
push edx
push 0
call ebx
push 0
push 1
push 0x10
push edi
call ebp
jmp 0x544180
pop ebp
mov dword [0x6d8398], esi
pop ebx
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
call fcn.0062fcdf
add esp, 0x68
ret