joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f80
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
movzx eax, bl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
mov eax, ebx
shr eax, 8
movzx eax, al
push esi
push edi
xor edx, eax
mov edi, ecx
imul ecx, edx, 0x1000193
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 4]
xor ecx, eax
mov dword [ebp - 4], edi
imul ecx, ecx, 0x1000193
mov eax, ebx
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edi + 0x18]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp edi, esi
jne 0x403fea
mov ecx, esi
jmp 0x403fef
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x403ffc
cmp dword [eax + 8], ebx
je 0x403ffe
mov eax, dword [eax]
jmp 0x403fe2
mov eax, esi
cmp eax, esi
jne 0x404059
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax]
lea eax, [ebp - 0xc]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.00407180
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x404078
inc eax
mov ecx, ebx
mov dword [ebx + 8], eax
mov dword [esi + 4], edx
mov dword [edi], edx
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406a90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push str.error_command_table_add__08X
push 0x4be520
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call fcn.00470397
int3
Function at 0x405560
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp dword [ecx + 4], edi
jne 0x4055d3
cmp eax, edi
jne 0x4055cb
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x4055db
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4055db
cmp eax, edi
jne 0x4055de
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push 0x10
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.0047048b
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4085e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov edi, ecx
mov esi, edx
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 8], esi
push ecx
push 4
lea eax, [esi + 0xc94]
mov dword [ebp - 0xc], edi
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xc98]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xca0]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xc9c]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea eax, [esi + 0xca4]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xcb0]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
add esi, 0xcb4
push eax
push 4
push esi
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 4
add eax, 0xcbc
push eax
push edi
call ebx
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 4
add edi, 0xcb8
push edi
push dword [ebp - 0xc]
call ebx
mov ebx, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 0xc
add ebx, 0xcc0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xc
add eax, 0xe2c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xb34
add eax, 0xe38
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 8
add eax, 0x196c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xcb0]
imul eax, dword [ecx + 0xc94]
push eax
call dword [sym.imp.PAL.dll_PalSoundSetPrimaryVolume]
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
mov esi, dword [sym.imp.PAL.dll_PalSoundSetVolume]
push 3
imul eax, dword [ecx + 0xc98]
push eax
call esi
mov eax, dword [ebp - 8]
push 1
mov eax, dword [eax + 0xc9c]
imul eax, dword [edi]
push eax
call esi
mov edi, dword [ebp - 8]
push 4
mov eax, dword [edi + 0xcc4]
imul eax, dword [edi + 0xca8]
push eax
call esi
mov eax, dword [edi + 0xcc8]
imul eax, dword [edi + 0xcac]
push 6
push eax
call esi
mov eax, dword [ebx]
imul eax, dword [edi + 0xca4]
push 5
push eax
call esi
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4089f0
Capabilities:
Print debug messages

Disassembly:
push edi
push 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
lea edi, [eax + 0x338]
mov ecx, edi
call fcn.00408980
cmp eax, 0xffffffff
je 0x408a6a
push ebx
imul ebx, eax, 0x2c
add ebx, edi
cmp dword [ebx + 0x262cc], 0
mov dword [ebx + 0x262c8], 0
je 0x408a69
push esi
mov dword [ebx + 0x262c8], 1
mov edx, 2
push 2
push dword [edi + 0x55e58]
mov ecx, edi
call fcn.00467dd0
mov eax, dword [edi + 0x55e5c]
lea ecx, [edi + 0x55e50]
add esp, 8
add eax, dword [ebx + 0x262cc]
mov dword [edi + 0x55e58], eax
pop esi
pop ebx
pop edi
jmp fcn.004669e0
pop ebx
pop edi
ret
Function at 0x408a70
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
xor esi, esi
lea ebx, [eax + 0x338]
lea edi, [ebx + 0x25acc]
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x408aa4
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayIs]
add esp, 4
test eax, eax
jne 0x408b11
inc esi
add edi, 0x44
cmp esi, 8
jl 0x408a90
mov ecx, ebx
call fcn.00408980
cmp eax, 0xffffffff
je 0x408b11
imul edi, eax, 0x2c
add edi, ebx
cmp dword [edi + 0x262c8], 0
je 0x408b11
cmp dword [edi + 0x262d0], 0
mov dword [edi + 0x262c8], 0
je 0x408b11
push 2
push dword [ebx + 0x55e58]
mov edx, 2
mov ecx, ebx
call fcn.00467dd0
mov eax, dword [ebx + 0x55e5c]
lea ecx, [ebx + 0x55e50]
add esp, 8
add eax, dword [edi + 0x262d0]
mov dword [ebx + 0x55e58], eax
pop edi
pop esi
pop ebx
jmp fcn.004669e0
pop edi
pop esi
pop ebx
ret

Function at 0x40c1c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4d3008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 5
lea eax, [ebp - 0x310]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
js 0x40c29b
mov eax, dword [esi + 4]
push edi
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esi + 4]
lea ecx, [edi + 0x410]
lea edx, [edi + 0x104]
push ecx
test eax, eax
je 0x40c23b
lea eax, [edi + 0x208]
push eax
push edx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push str._s_s_s_s_save
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x40c258
push edx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push str._s_s_s_save
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
mov ecx, esi
mov edx, eax
sub ecx, edx
pop edi
lea edx, [ecx + 8]
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40c270
mov dword [esi + 0x214], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0047044a
mov esp, ebp
pop ebp
ret
Function at 0x40c2b0
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x24
push eax
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
js 0x40c30a
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0047b134
add esp, 0xc
test eax, eax
je 0x40c455
push 0
push 0x23
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
js 0x40c33f
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0047b134
add esp, 0xc
test eax, eax
je 0x40c455
push 0x4c4f90
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c424
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40c424
cmp dword [ebp - 0x210], 0
je 0x40c424
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00472500
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x20c]
add esp, 0xc
push 0x208
push eax
push str.ProgramFiles_x86_
call ebx
test eax, eax
je 0x40c3dd
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0047b134
add esp, 0xc
test eax, eax
je 0x40c455
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00472500
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
push str.ProgramW6432
call ebx
test eax, eax
jne 0x40c437
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret 4
push 0
push 0x26
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
js 0x40c40f
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0047b134
add esp, 0xc
test eax, eax
jne 0x40c40f
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047044a
mov esp, ebp
pop ebp
ret 4
Function at 0x40c470
Capabilities:
Get common file path
Get disk information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x76c
mov eax, dword [0x4d3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea eax, [ebp - 0x218]
push esi
push edi
push dword [ebx + 4]
mov dword [ebx + 0x210], 0xffffffff
push str._s_save
push eax
mov dword [ebx + 0x214], 0
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edi, [ebx + 8]
mov eax, ecx
mov edx, edi
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40c4c3
mov eax, dword [ebx + 4]
cmp byte [eax + 0x514], 0
jne 0x40c608
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00472500
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x420]
add esp, 0xc
push 0
push 0x1a
push eax
push 0
call esi
test eax, eax
jns 0x40c526
push 0
push 0x23
lea eax, [ebp - 0x420]
push eax
push 0
call esi
test eax, eax
js 0x40c608
mov ecx, dword [ebx + 4]
lea eax, [ecx + 0x30c]
push eax
lea eax, [ecx + 0x104]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x110]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x768]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40c608
mov esi, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and esi, 0x10
jne 0x40c608
push 0x208
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00472500
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x4be520
push str.SaveFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x628]
mov eax, ecx
sub edi, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x40c5e0
mov dword [ebx + 0x214], 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c610
sub ecx, edx
cmp ecx, 2
jl 0x40c630
cmp byte [edi], 0x5c
jne 0x40c630
cmp byte [edi + 1], 0x5c
jne 0x40c630
mov eax, 4
jmp 0x40c665
cmp ecx, 3
jge 0x40c63c
mov eax, 1
jmp 0x40c665
push 3
lea eax, [ebp - 0x76c]
mov dword [ebp - 0x76c], 0
push edi
push eax
call fcn.0047b010
add esp, 0xc
lea eax, [ebp - 0x76c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebx + 0x210], eax
test eax, eax
je 0x40c6a3
cmp eax, 1
je 0x40c6a3
cmp eax, 5
je 0x40c69c
push dword [ebx + 4]
call fcn.0040c2b0
test eax, eax
jne 0x40c69c
mov dword [ebx + 0x214], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.0040c1c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047044a
mov esp, ebp
pop ebp
ret
Function at 0x420730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d3008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push 0x6d6134
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
mov dword [ebp - 0x208], edx
cmp edx, 0xffffffff
je 0x420873
mov ecx, dword [0x635130]
xor eax, eax
mov dword [ebp - 0x20c], eax
push esi
push edi
test ecx, ecx
jle 0x42083c
mov edi, 0x635237
nop
mov esi, dword [edi - 0x103]
test esi, esi
js 0x420821
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00472500
push edi
lea eax, [edi + 0xff]
push eax
lea eax, [edi - 0xff]
push eax
movsx eax, byte [edi + 0x17f]
push eax
push esi
lea eax, [ebp - 0x204]
push str._06d__1d___s____s____s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebp - 0x204]
add esp, 0x28
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4207e7
push 0
lea eax, [ebp - 0x210]
sub esi, ecx
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [ebp - 0x210]
jne 0x420855
mov ecx, dword [0x635130]
mov eax, dword [ebp - 0x20c]
inc eax
add edi, 0x284
mov dword [ebp - 0x20c], eax
cmp eax, ecx
jl 0x420790
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
Function at 0x420890
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d3008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x8000080
push 3
push 0
push 0
push connect
push 0x6d6134
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x420ab1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
lea ecx, [eax + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x420ab1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [0x635130], esi
cmp dword [ebp - 0x10], esi
jbe 0x420a8b
nop
mov cl, byte [esi + edi]
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0xc], xmm0
cmp cl, 0x2c
je 0x420949
inc esi
mov byte [ebp + eax - 0xc], cl
inc eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
jne 0x420932
cmp eax, 8
jae 0x420ac3
mov byte [ebp + eax - 0xc], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0047e2f8
imul ecx, dword [0x635130], 0x284
inc esi
add esp, 4
mov dword [ecx + 0x635134], eax
xor eax, eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
je 0x42098c
inc esi
mov byte [ebp + eax - 0xc], cl
inc eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
jne 0x420975
cmp eax, 8
jae 0x420ac3
mov byte [ebp + eax - 0xc], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0047e2f8
imul ecx, dword [0x635130], 0x284
add esi, 2
add esp, 4
mov byte [ecx + 0x6353b6], al
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x4209db
nop word [eax + eax]
imul eax, dword [0x635130], 0x284
inc esi
mov byte [eax + ecx + 0x635138], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x4209c0
imul eax, dword [0x635130], 0x284
add esi, 3
mov byte [eax + ecx + 0x635138], 0
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x420a1b
nop word [eax + eax]
imul eax, dword [0x635130], 0x284
inc esi
mov byte [eax + ecx + 0x635336], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x420a00
imul eax, dword [0x635130], 0x284
add esi, 3
mov byte [eax + ecx + 0x635336], 0
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x420a5b
nop word [eax + eax]
imul eax, dword [0x635130], 0x284
inc esi
mov byte [eax + ecx + 0x635237], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x420a40
imul eax, dword [0x635130], 0x284
add esi, 3
mov byte [eax + ecx + 0x635237], 0
mov eax, dword [0x635130]
inc eax
mov dword [0x635130], eax
cmp eax, 0x400
jge 0x420a8b
cmp esi, dword [ebp - 0x10]
jb 0x420920
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x635130]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop esi
call fcn.0047044a
mov esp, ebp
pop ebp
ret
call fcn.004709e6
int3
Function at 0x434800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4d3008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + eax*4]
mov dword [ebp - 0x124], edx
shl edi, 4
add edi, edx
mov eax, dword [edi + 0x5c]
test eax, 0x10000000
je 0x434852
push 0x20
lea eax, [edi + 0x80]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0047b010
add esp, 0xc
mov byte [ebp - 0xf5], 0
jmp 0x434865
push 1
mov edx, ecx
lea ecx, [ebp - 0x114]
push eax
call fcn.00467b30
add esp, 8
call fcn.004674b0
test al, 0x30
jne 0x434943
lea eax, [ebp - 0x114]
dec eax
nop dword [eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x434880
mov ecx, dword [str..tga]
mov dword [eax], ecx
mov cl, byte [0x4c1bc8]
mov byte [eax + 4], cl
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x4348cc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.PAL.dll_GetMemoryPool]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x128]
push 0
push eax
push dword [ebp - 0x118]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push esi
lea ecx, [ebp - 0x138]
call fcn.0046de50
push dword [edi + 0x6c]
lea eax, [ebp - 0x138]
push dword [edi + 0x68]
push eax
push dword [edi + 0x74]
mov eax, dword [ebp - 0x124]
push dword [edi + 0x70]
push dword [edi + 0x64]
mov eax, dword [eax]
push dword [edi + 0x60]
push dword [eax]
call dword [sym.imp.PAL.dll_PalSpriteMaskAlpha]
mov eax, dword [ebp - 0x130]
add esp, 0x20
test eax, eax
je 0x434943
push eax
call fcn.0047b378
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047044a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov ebx, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
mov edi, eax
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x448782
push ebx
push str.load_error___s_
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [edi + 0x25a8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x4487b5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x25b0], ebx
mov eax, 1
mov dword [edi + 0x25ac], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4487e0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
push dword [eax + 0x2578]
mov ecx, dword [eax + 0x25a8]
push dword [eax + 0x2574]
lea esi, [eax + 0x338]
add ecx, 0x1024
push ecx
call fcn.0047a5c0
push 0x1000
lea eax, [esi + 0x2288]
push eax
mov eax, dword [esi + 0x2270]
add eax, 8
push eax
call fcn.0047a5c0
add esp, 0x1c
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44886f
push edi
push str.save_error___s_
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 0x2274]
push dword [esi + 0x2270]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x2274]
je 0x4488bd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40030
push 0x4d60e0
push 0x4c2ce8
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45cea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4d3008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
cmp dword [eax + 0x330], 0
je 0x45cf2f
sub esi, 0
je 0x45cf3f
sub esi, 1
jne 0x45cf2f
push ebx
push edi
lea eax, [ebp - 0x24]
push str._s.mix
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x45cf2e
xor edi, edi
nop
push 0
lea eax, [ebp - 0x34]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x34], 0x20
jne 0x45cf27
add esi, 0x20
cmp esi, dword [ebp - 0x28]
jae 0x45cf27
inc edi
cmp edi, 8
jl 0x45cf00
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
push edi
push str.voice_file_read_:__s
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.0047044a
mov esp, ebp
pop ebp
ret