joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40607d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.004063a1
test bl, 8
mov dword [ebp - 8], eax
je 0x4060bc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x437968], eax
jmp 0x406292
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4060d6
test eax, eax
je 0x406214
test bl, 2
je 0x406214
mov edi, 0x430400
push esi
push edi
call fcn.004069c4
cmp dword [ebp + 8], 0
je 0x4060f5
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4060fb
push esi
call fcn.004062e5
cmp word [esi], 0
jne 0x40610b
cmp word [0x430400], 0x5c
jne 0x406116
push 0x40a524
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406209
cmp word [ebp - 0x22c], 0x2e
jne 0x406168
cmp word [ebp - 0x22a], 0
je 0x4061ec
cmp word [ebp - 0x22a], 0x2e
jne 0x406168
cmp word [ebp - 0x228], 0
je 0x4061ec
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004069c4
test byte [ebp - 0x258], 0x10
je 0x406193
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4061ec
push dword [ebp + 0xc]
push esi
call fcn.0040607d
jmp 0x4061ec
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406f3f
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00406035
test eax, eax
push esi
jne 0x4061e5
cmp dword [ebp - 4], eax
je 0x4061d1
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406f3f
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.0040599e
push 0
push esi
call fcn.0040678a
jmp 0x4061ec
push str.Delete:_DeleteFile_failed___s__
call fcn.00406f3f
inc dword [0x437968]
pop ecx
pop ecx
jmp 0x4061ec
push 0xfffffffffffffff2
call fcn.0040599e
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406138
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406214
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x406292
cmp dword [ebp - 8], edi
push esi
jne 0x406235
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406f3f
inc dword [0x437968]
pop ecx
pop ecx
jmp 0x406292
call fcn.00406f70
test eax, eax
je 0x406292
push esi
call fcn.00406299
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406f3f
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00406035
test eax, eax
push esi
jne 0x40628b
cmp dword [ebp - 4], edi
je 0x406284
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406f3f
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.0040599e
push edi
push esi
call fcn.0040678a
jmp 0x406292
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x406226
push 0xffffffffffffffe5
call fcn.0040599e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4063a1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x430c00
push esi
call fcn.004069c4
push esi
call fcn.00406344
mov edi, eax
test edi, edi
jne 0x4063c2
xor eax, eax
jmp 0x40641a
push edi
call fcn.00406c73
test byte [0x4378dc], 0x80
je 0x4063df
mov ax, word [edi]
test ax, ax
je 0x4063be
cmp ax, 0x5c
je 0x4063be
sub edi, esi
sar edi, 1
jmp 0x4063f9
call fcn.00406f70
test eax, eax
je 0x4063f3
test byte [eax], 0x10
je 0x4063be
push esi
call fcn.004062e5
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4063e5
call fcn.00406299
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406495
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4064b4
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4064ba
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4064e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40b508]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40b50c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406539
test edi, edi
jne 0x4064f6
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406533
Function at 0x406610
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x431a98], 0x55004e
mov dword [0x431a9c], 0x4c
mov edi, 0x400
mov ebp, 0x431a98
je 0x406666
push 1
push 0
push esi
call fcn.004064ba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406785
cmp eax, edi
jg 0x406785
mov esi, 0x432298
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406785
cmp eax, edi
jg 0x406785
push esi
push ebp
push str._ls_ls_r_n
push 0x431698
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4378d4]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406a01
push 4
push 0xc0000000
push esi
call fcn.004064ba
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406785
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40677e
push edi
push esi
push ebp
call fcn.0040653d
test eax, eax
je 0x40677e
push str._Rename__r_n
push esi
call fcn.0040641f
test eax, eax
jne 0x40671c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406751
add eax, 0xa
push 0x40b510
push eax
call fcn.0040641f
mov ebp, eax
test ebp, ebp
je 0x40674d
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40673e
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406738
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406753
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x431698
push eax
call fcn.00406475
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040656c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40678a
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4067ad
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406610
pop ecx
pop ecx
inc dword [0x437970]
ret 8
Function at 0x406892
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406831
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406902
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406902
cmp dword [ebp + 0xc], 1
je 0x406906
cmp dword [ebp + 0xc], 2
je 0x406906
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406f97
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406fbb
xor eax, eax
test eax, eax
je 0x406fce
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406fce
xor ecx, ecx
jmp 0x406fd1
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a524]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4070f4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x432a9c], 0
push esi
jne 0x40712b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407105
mov dword [ecx*4 + 0x432a98], eax
inc ecx
cmp ecx, 0x100
jl 0x407100
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40715c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x432a98]
xor eax, esi
inc ecx
dec edx
jne 0x40713e
pop edi
not eax
pop esi
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x56a0644b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3dbf6916
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40e4c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x144
push ebx
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x100
push str.Toddebug.ini
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x14]
push 0x40
push eax
push str.FAILED
push str.LIFE
push 0x578900
call edi
mov esi, str.true
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40e53f
test cl, cl
je 0x40e53b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40e53f
add eax, 2
add esi, 2
test cl, cl
jne 0x40e517
xor eax, eax
jmp 0x40e544
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40e552
mov dword [0x7c0434], 1
lea eax, [esp + 0x50]
lea ecx, [esp + 0x10]
push eax
push 0x40
push ecx
push str.FAILED
push str.RELOAD
push 0x578900
call edi
mov esi, str.true
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40e5a0
test cl, cl
je 0x40e59c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40e5a0
add eax, 2
add esi, 2
test cl, cl
jne 0x40e578
xor eax, eax
jmp 0x40e5a5
sbb eax, eax
sbb eax, 0xffffffff
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40e5b6
mov dword [0x7c0438], 1
call fcn.0049ff80
call fcn.0040a940
mov dword [0x9c7118], 3
add esp, 0x144
ret

Function at 0x413140
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
mov eax, dword [str.comevtbl.bin]
mov ecx, dword [str.evt_s]
sub esp, 0x44
lea edx, [esp + 4]
push esi
push edi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call esi
push 0x5763cc
call esi
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x20]
push DirectSoundCreate
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edx, [esp + 8]
mov esi, eax
push 0
push edx
push esi
push 0x975480
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sar esi, 2
push esi
push 0x975480
call fcn.004131f0
add esp, 8
mov word [0x99fc88], 0xa
mov dword [0x9a1528], 0xffffffff
call fcn.00413230
pop edi
pop esi
add esp, 0x44
ret
Function at 0x413230
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
movsx eax, word [0x99fc88]
sub esp, 0x44
push ebx
mov ebx, dword [eax*4 + 0x57893c]
cmp ebx, 0xffffffff
je 0x4132ec
cmp ebx, dword [0x9a1528]
je 0x4132ec
mov ecx, dword [ebx*4 + 0x4d0c7c]
mov edx, dword [str.evt_s]
push esi
push edi
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call esi
push 0x5763cc
call esi
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x24]
push DirectSoundCreate
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x5788cc]
mov esi, eax
lea eax, [esp + 0xc]
push 0
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x5788cc]
sar esi, 2
push esi
push edx
call fcn.004131f0
add esp, 8
mov dword [0x9a1528], ebx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x41ce70
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
sub esp, 0x40
lea edx, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
mov ecx, dword [esi*4 + 0x4d0410]
mov ebx, dword [esi*4 + 0x55a9b8]
lea eax, [esi + esi*2]
push ecx
push str.tex_s
push edx
lea ebp, [eax*4 + 0x9c55a0]
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call edi
push 0x5763cc
call edi
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x24]
push DirectSoundCreate
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x7c0e18], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x9c70d4]
lea edx, [esp + 0x54]
push 0
push edx
mov dword [0x7c0e2c], eax
push eax
mov eax, dword [0x7c0e18]
push ecx
push eax
mov dword [0x7c0e20], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x7c0e18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x9c70d4]
mov eax, dword [edx]
add eax, 0x20
push eax
call fcn.004a6830
mov ecx, dword [0x9c70d4]
mov dword [0x7c0e1c], eax
add eax, 0x1f
add ecx, 4
and al, 0xe0
push eax
push ecx
mov dword [0x7c0e20], eax
call fcn.0040acf0
xor eax, eax
add esp, 0xc
cmp word [esi*2 + 0x55b0a8], ax
mov dword [0x7c0e24], eax
jle 0x41cfa2
push eax
push esi
call fcn.0041cd90
mov edx, dword [0x7c0e24]
mov edi, eax
push edx
push esi
call fcn.0041cab0
mov ecx, dword [0x7c0e24]
push eax
mov eax, dword [0x7c0e20]
push eax
push ebx
push ecx
push edi
call fcn.004abf70
mov eax, dword [0x7c0e24]
add esp, 0x24
movsx edx, word [esi*2 + 0x55b0a8]
inc eax
cmp eax, edx
mov dword [0x7c0e24], eax
jl 0x41cf5d
mov byte [ebp + 8], 4
mov eax, dword [0x7c0e1c]
push eax
call fcn.004a6940
add esp, 4
mov dword [ebp], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x41d520
Capabilities:
Print debug messages

Disassembly:
push str.SS_Event_ENTRYBGM_BG_core_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push DirectSoundCreate
call fcn.0041d0a0
mov eax, dword [esp + 0x10]
push eax
call fcn.0041d0a0
add esp, 8
ret

Function at 0x41df60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0x100
push str.Hod2.ini
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x41e01b
lea edx, [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edx
push 0xffffffffffffffff
push str.PLAYER1_INDEX
push str.Controller
call esi
mov dword [0x7daabc], eax
lea eax, [esp + 8]
push eax
push 0xffffffffffffffff
push str.PLAYER1_DEVID
push str.Controller
call esi
lea ecx, [esp + 8]
mov dword [0x7d98e8], eax
push ecx
push 0xffffffffffffffff
push str.PLAYER2_INDEX
push str.Controller
call esi
lea edx, [esp + 8]
mov dword [0x7d98ec], eax
push edx
push 0xffffffffffffffff
push str.PLAYER2_DEVID
push str.Controller
call esi
mov ecx, dword [0x7daabc]
mov dword [0x7d98f0], eax
mov eax, 8
pop esi
cmp ecx, eax
jae 0x41e01b
cmp dword [0x7d98ec], eax
jae 0x41e01b
mov eax, 1
add esp, 0x108
ret
xor eax, eax
add esp, 0x108
ret

Function at 0x426510
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
mov eax, dword [0x9a1680]
sub esp, 0x44
lea edx, [esp + 4]
lea eax, [eax + eax*4]
push ebx
push esi
push edi
mov ecx, dword [eax*4 + 0x588728]
push ecx
push str.etc_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call esi
push 0x5763cc
call esi
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x24]
push DirectSoundCreate
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.004a6830
add esp, 4
lea edx, [esp + 0xc]
mov ebx, eax
push 0
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10000
call fcn.004a6830
mov edi, eax
mov ecx, 0x40
xor eax, eax
mov dword [0x9a04a8], edi
rep stosd dword es:[edi], eax
mov eax, dword [0x9a04a8]
add eax, 0x100
push eax
push ebx
call fcn.0040acf0
mov eax, dword [0x9a1680]
mov esi, dword [0x9a04a8]
push ebx
lea ecx, [eax + eax*4]
movsx edx, word [ecx*4 + 0x58871e]
shl edx, 4
add esi, edx
mov dword [0x9a04a8], esi
call fcn.004a6940
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x489ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [0x9a3b80]
push ebx
push ebp
push esi
and al, 0xc7
push edi
or al, 2
xor edi, edi
mov dword [0x9a3b80], eax
mov word [0x9c5286], di
call fcn.00460330
mov ecx, dword [0x9c7100]
mov dword [esp + 0x10], edi
mov ebp, 0x9a04c9
mov esi, 0x9a3ee6
lea edx, [ecx*4]
add word [0x9c7116], dx
cmp word [esi - 4], 5
jne 0x489e40
movsx ax, byte [ebp - 5]
mov word [esi], ax
mov word [esi + 2], ax
mov al, byte [ebp - 1]
cmp al, 0xff
je 0x489d4b
movsx ax, al
mov word [esi + 0x16], ax
jmp 0x489d51
mov word [esi + 0x16], 6
mov ecx, dword [esi + 0x6e]
push ecx
call fcn.004164f0
mov al, byte [ebp]
add esp, 4
cmp al, 5
mov word [esi + 0x1c], di
mov word [esi + 0x1e], di
mov word [esi + 0x20], di
jne 0x489d7d
push 0x109d
call fcn.0041d6a0
add esp, 4
cmp byte [ebp], 3
jne 0x489d8d
push 0x3d
call fcn.0041d720
add esp, 4
cmp byte [ebp], 4
jne 0x489d9d
push 0x41
call fcn.0041d720
add esp, 4
movsx edx, byte [ebp - 7]
cmp edx, dword [esp + 0x10]
je 0x489e40
mov eax, dword [esi + 0x72]
mov dword [0x9a0920], eax
lea edi, [eax + 0x194]
lea ebx, [eax + 0x40]
mov eax, dword [edi + 0x40]
push eax
call fcn.004a6940
mov ecx, dword [esi + 0x72]
push ecx
call fcn.004092f0
mov al, byte [ebp - 7]
add esp, 8
cmp al, 7
jg 0x489de5
movsx dx, al
add edx, 0x39
mov word [edi + 0x60], dx
jmp 0x489dff
movsx eax, byte [ebp - 7]
sub eax, 8
je 0x489df9
dec eax
jne 0x489dff
mov word [edi + 0x60], 0x34
jmp 0x489dff
mov word [edi + 0x60], 0x21
lea eax, [edi + 0x78]
push eax
push ebx
push edi
call fcn.00410510
mov byte [edi + 0x68], 1
mov dword [edi + 0x1158], 0x416640
mov ecx, dword [esi + 0x72]
push ecx
call fcn.004092f0
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x72]
add edx, 0xe
add esp, 0x10
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x72]
xor edi, edi
mov ecx, dword [eax + 0x3c]
mov dword [ecx*4 + 0x9c6b40], eax
mov ebx, dword [esp + 0x10]
add esi, 0x130
inc ebx
add ebp, 0x14
cmp esi, 0x9a4146
mov dword [esp + 0x10], ebx
jl 0x489d23
mov al, byte [0x9a04c6]
pop edi
pop esi
pop ebp
cmp al, 0xff
pop ebx
je 0x489e8f
cmp byte [0x9a04da], 0xff
je 0x489e8f
movsx edx, al
push edx
call fcn.00406fc0
movsx eax, byte [0x9a04da]
push eax
call fcn.00406fc0
add esp, 8
jmp 0x489e94
call fcn.00407020
call fcn.0041d510
call fcn.004040c0
call fcn.004130a0
call fcn.0041da40
call fcn.00463230
pop ecx
ret
Function at 0x489eb0
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
sub esp, 0x40
lea ecx, [esp]
push esi
mov esi, dword [esp + 0x48]
push edi
mov eax, dword [esi*4 + 0x4d0cc4]
push eax
push str.coli_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea edx, [esp + 8]
push edx
call edi
push 0x5763cc
call edi
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esp + 0x1c]
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
neg esi
sbb esi, esi
lea ecx, [esp + 0x4c]
and esi, 0x600
push 0
add esi, 0x6000
push ecx
push eax
lea edx, [esi*4 + 0x975480]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x40
ret

Function at 0x49e5a0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x7dc8c4]
sub esp, 0x1c
push esi
push eax
push 0x200
push 0x200
call fcn.004a5260
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49e5d4
push str.Failed_to_create___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x24]
push ebx
push edi
push 0x2010
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
lea edx, [esp + 0x10]
mov ebx, eax
push edx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [eax + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edi
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x68]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 0x1c
ret