joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405250
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x4053a1
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
nop dword [eax]
call esi
add byte [edi + ebp], 0x2e
call esi
add byte [edi + ebp], 0xb8
call esi
xor byte [edi + ebp], 3
call esi
add byte [edi + ebp], 0x46
call esi
add byte [edi + ebp], 0x7f
call esi
add byte [edi + ebp], 0xdc
call esi
add byte [edi + ebp], 0x55
call esi
xor byte [edi + ebp], 0xcb
call esi
add byte [edi + ebp], 0x31
call esi
add byte [edi + ebp], 0x16
call esi
xor byte [edi + ebp], 0x10
call esi
add byte [edi + ebp], 0xab
call esi
add byte [edi + ebp], 0x27
call esi
add byte [edi + ebp], 0x4e
call esi
add byte [edi + ebp], 0x69
call esi
add byte [edi + ebp], 0xdb
call esi
xor byte [edi + ebp], 0x49
call esi
add byte [edi + ebp], 0xd3
call esi
add byte [edi + ebp], 0x41
call esi
add byte [edi + ebp], 0x7b
call esi
add byte [edi + ebp], 0x8e
call esi
add byte [edi + ebp], 0x1e
call esi
add byte [edi + ebp], 0x2e
call esi
add byte [edi + ebp], 0x40
call esi
add byte [edi + ebp], 0xa2
call esi
xor byte [edi + ebp], 0xd3
call esi
add byte [edi + ebp], 0xf7
call esi
add byte [edi + ebp], 0xfe
call esi
add byte [edi + ebp], 0xb3
call esi
add byte [edi + ebp], 0xb1
call esi
add byte [edi + ebp], 0x21
call esi
xor byte [edi + ebp], 0xbe
call esi
xor byte [edi + ebp], 0x7e
call esi
xor byte [edi + ebp], 0x5d
call esi
add byte [edi + ebp], 0xb3
call esi
add byte [edi + ebp], 0x18
call esi
xor byte [edi + ebp], 0x45
call esi
add byte [edi + ebp], 0xb2
call esi
add byte [edi + ebp], 0x21
call esi
xor byte [edi + ebp], 0xcc
call esi
add byte [edi + ebp], 0xd3
call esi
xor byte [edi + ebp], 0xad
call esi
add byte [edi + ebp], 4
call esi
xor byte [edi + ebp], 0xeb
call esi
add byte [edi + ebp], 0xea
call esi
xor byte [edi + ebp], 0x27
call esi
add byte [edi + ebp], 0x9e
call esi
add byte [edi + ebp], 0x9a
call esi
add byte [edi + ebp], 0xc7
inc edi
cmp edi, ebx
jb 0x405270
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x41bdca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ae90
mov eax, dword [0x464900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041953a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41be0c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bf68
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040a2e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x466fb8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c1f0
mov ecx, dword [esi*4 + 0x466fb8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41bf61
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bf61
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bf61
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c1f0
add esp, 0x14
test edx, edx
jl 0x41bf61
jg 0x41bed7
test eax, eax
jb 0x41bf61
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bf61
jl 0x41bef1
cmp dword [ebp - 0x1008], eax
ja 0x41bf61
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bf0f
test ebx, ebx
je 0x41bf48
cmp ecx, edi
jae 0x41bf48
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bf29
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bf35
cmp byte [ecx + 1], 0xa
jne 0x41bf35
inc ecx
jmp 0x41bf35
movzx eax, al
movsx eax, byte [eax + 0x465230]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bf0f
cmp edx, ebx
jne 0x41bf0f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bf66
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a2cc
leave
ret
Function at 0x4239a6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x466fb8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4239e6
cmp byte [ebx], 0xa
jne 0x4239e6
or byte [eax + edi + 0x28], 4
jmp 0x4239eb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x423ae9
mov al, byte [edx]
cmp al, 0x1a
je 0x423acb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x423a1a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x423a3f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x423a49
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4239fc
jmp 0x423ae9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423ac6
cmp dword [ebp - 0xc], 0
je 0x423ac6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x466fb8]
test byte [eax + edi + 0x28], 0x48
je 0x423aa0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x423a8b
mov byte [esi], dl
jmp 0x423a9c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x466fb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x423ae9
cmp byte [ebp - 1], 0xa
jne 0x423aaf
cmp esi, ebx
jne 0x423aaf
mov byte [esi], 0xa
jmp 0x423ae8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c20e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x423ae9
mov byte [esi], 0xd
jmp 0x423ae8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x466fb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423ae5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423ae9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423af2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x466fb8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423b35
cmp word [esi], dx
jne 0x423b35
or byte [edi + eax + 0x28], 4
jmp 0x423b3a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x423c8d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x423c6d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x423b7c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x423bb2
cmp eax, edx
jae 0x423bbe
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x423b54
jmp 0x423c8d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423c69
cmp dword [ebp - 0x14], 0
je 0x423c69
mov eax, dword [ebx*4 + 0x466fb8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x423c41
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x423c0a
mov word [esi], cx
jmp 0x423c3d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x466fb8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x466fb8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x466fb8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x423c8d
pop ebx
cmp word [ebp - 4], bx
jne 0x423c52
cmp esi, dword [ebp + 0xc]
jne 0x423c52
mov word [esi], bx
jmp 0x423c8a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c20e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x423c8d
push 0xd
jmp 0x423c86
mov ecx, dword [ebx*4 + 0x466fb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423c84
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423c8d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4132b0
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 0x977020
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sar esi, 2
push esi
push 0x977020
call fcn.00413360
add esp, 8
mov word [0x9a1828], 0xa
mov dword [0x9a30c8], 0xffffffff
call fcn.004133a0
pop edi
pop esi
add esp, 0x44
ret

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

Disassembly:
movsx eax, word [0x9a1828]
sub esp, 0x44
push ebx
mov ebx, dword [eax*4 + 0x5788c8]
cmp ebx, 0xffffffff
je 0x41345c
cmp ebx, dword [0x9a30c8]
je 0x41345c
mov ecx, dword [ebx*4 + 0x4d0c4c]
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 [0x57888c]
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 [0x57888c]
sar esi, 2
push esi
push edx
call fcn.00413360
add esp, 8
mov dword [0x9a30c8], ebx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x41cfc0
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 + 0x55a980]
lea eax, [esi + esi*2]
push ecx
push str.tex_s
push edx
lea ebp, [eax*4 + 0x9c7140]
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 [0x7c2ab8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x9c8c74]
lea edx, [esp + 0x54]
push 0
push edx
mov dword [0x7c2acc], eax
push eax
mov eax, dword [0x7c2ab8]
push ecx
push eax
mov dword [0x7c2ac0], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x7c2ab8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x9c8c74]
mov eax, dword [edx]
add eax, 0x20
push eax
call fcn.004a32a0
mov ecx, dword [0x9c8c74]
mov dword [0x7c2abc], eax
add eax, 0x1f
add ecx, 4
and al, 0xe0
push eax
push ecx
mov dword [0x7c2ac0], eax
call fcn.0040afc0
xor eax, eax
add esp, 0xc
cmp word [esi*2 + 0x55b070], ax
mov dword [0x7c2ac4], eax
jle 0x41d0f2
push eax
push esi
call fcn.0041cee0
mov edx, dword [0x7c2ac4]
mov edi, eax
push edx
push esi
call fcn.0041cc20
mov ecx, dword [0x7c2ac4]
push eax
mov eax, dword [0x7c2ac0]
push eax
push ebx
push ecx
push edi
call fcn.004a8a00
mov eax, dword [0x7c2ac4]
add esp, 0x24
movsx edx, word [esi*2 + 0x55b070]
inc eax
cmp eax, edx
mov dword [0x7c2ac4], eax
jl 0x41d0ad
mov byte [ebp + 8], 4
mov eax, dword [0x7c2abc]
push eax
call fcn.004a33b0
add esp, 4
mov dword [ebp], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x41d660
Capabilities:
Print debug messages

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

Function at 0x41e090
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
lea ecx, [esp + 8]
push eax
push ecx
push pe_nt_image_headers32
push str.Hod2.ini
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x41e245
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [esp + 8]
push edx
push 0xffffffffffffffff
push str.PLAYER1_INDEX
push str.Controller
call esi
mov dword [0x7dc7b4], eax
lea eax, [esp + 8]
push eax
push 0xffffffffffffffff
push str.PLAYER1_DEVID
push str.Controller
call esi
lea ecx, [esp + 8]
mov dword [0x7db5e8], eax
push ecx
push 0xffffffffffffffff
push str.PLAYER2_INDEX
push str.Controller
call esi
lea edx, [esp + 8]
mov dword [0x7db5ec], eax
push edx
push 0xffffffffffffffff
push str.PLAYER2_DEVID
push str.Controller
call esi
mov edx, dword [0x7dc7b4]
mov dword [0x7db5f0], eax
cmp edx, 8
jge 0x41e245
test edx, edx
jl 0x41e245
mov esi, dword [0x7db5ec]
cmp esi, 8
jge 0x41e245
test esi, esi
jl 0x41e245
mov ecx, edx
sub ecx, 0
je 0x41e1ac
dec ecx
je 0x41e1a0
dec ecx
je 0x41e194
mov ecx, dword [0x7db5e8]
cmp dword [edx*4 + 0x7dc784], ecx
jne 0x41e245
cmp ecx, 0x104
jne 0x41e189
mov dword [0x587ca4], 0xd
jmp 0x41e1b6
add edx, 4
mov dword [0x587ca4], edx
jmp 0x41e1b6
mov dword [0x587ca4], 6
jmp 0x41e1b6
mov dword [0x587ca4], 3
jmp 0x41e1b6
mov dword [0x587ca4], 0
mov ecx, esi
sub ecx, 0
je 0x41e22e
dec ecx
je 0x41e217
dec ecx
je 0x41e200
cmp dword [esi*4 + 0x7dc784], eax
jne 0x41e245
cmp eax, 0x104
jne 0x41e1ea
mov dword [0x7dd018], 0xe
mov eax, 1
pop esi
add esp, 0x108
ret
add esi, 4
mov eax, 1
mov dword [0x7dd018], esi
pop esi
add esp, 0x108
ret
mov dword [0x7dd018], 6
mov eax, 1
pop esi
add esp, 0x108
ret
mov dword [0x7dd018], 3
mov eax, 1
pop esi
add esp, 0x108
ret
mov dword [0x7dd018], 0
mov eax, 1
pop esi
add esp, 0x108
ret
xor eax, eax
pop esi
add esp, 0x108
ret
Function at 0x426330
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
mov eax, dword [0x9a3220]
sub esp, 0x44
lea edx, [esp + 4]
lea eax, [eax + eax*4]
push ebx
push esi
push edi
mov ecx, dword [eax*4 + 0x5886a8]
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.004a32a0
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.004a32a0
mov edi, eax
mov ecx, 0x40
xor eax, eax
mov dword [0x9a2048], edi
rep stosd dword es:[edi], eax
mov eax, dword [0x9a2048]
add eax, 0x100
push eax
push ebx
call fcn.0040afc0
mov eax, dword [0x9a3220]
mov esi, dword [0x9a2048]
push ebx
lea ecx, [eax + eax*4]
movsx edx, word [ecx*4 + 0x58869e]
shl edx, 4
add esi, edx
mov dword [0x9a2048], esi
call fcn.004a33b0
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x489730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [0x9a5720]
push ebx
push ebp
push esi
and al, 0xc7
push edi
or al, 2
xor edi, edi
mov dword [0x9a5720], eax
mov word [0x9c6e26], di
call fcn.00460100
mov ecx, dword [0x9c8ca0]
mov dword [esp + 0x10], edi
mov ebp, 0x9a2069
mov esi, 0x9a5a86
lea edx, [ecx*4]
add word [0x9c8cb6], dx
cmp word [esi - 4], 5
jne 0x489890
movsx ax, byte [ebp - 5]
mov word [esi], ax
mov word [esi + 2], ax
mov al, byte [ebp - 1]
cmp al, 0xff
je 0x48979b
movsx ax, al
mov word [esi + 0x16], ax
jmp 0x4897a1
mov word [esi + 0x16], 6
mov ecx, dword [esi + 0x6e]
push ecx
call fcn.00416660
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 0x4897cd
push 0x109d
call fcn.0041d7e0
add esp, 4
cmp byte [ebp], 3
jne 0x4897dd
push 0x3d
call fcn.0041d860
add esp, 4
cmp byte [ebp], 4
jne 0x4897ed
push 0x41
call fcn.0041d860
add esp, 4
movsx edx, byte [ebp - 7]
cmp edx, dword [esp + 0x10]
je 0x489890
mov eax, dword [esi + 0x72]
mov dword [0x9a24c0], eax
lea edi, [eax + 0x194]
lea ebx, [eax + 0x40]
mov eax, dword [edi + 0x40]
push eax
call fcn.004a33b0
mov ecx, dword [esi + 0x72]
push ecx
call fcn.00409640
mov al, byte [ebp - 7]
add esp, 8
cmp al, 7
jg 0x489835
movsx dx, al
add edx, 0x39
mov word [edi + 0x60], dx
jmp 0x48984f
movsx eax, byte [ebp - 7]
sub eax, 8
je 0x489849
dec eax
jne 0x48984f
mov word [edi + 0x60], 0x34
jmp 0x48984f
mov word [edi + 0x60], 0x21
lea eax, [edi + 0x78]
push eax
push ebx
push edi
call fcn.00410680
mov byte [edi + 0x68], 1
mov dword [edi + 0x1158], 0x4167b0
mov ecx, dword [esi + 0x72]
push ecx
call fcn.00409640
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 + 0x9c86e0], eax
mov ebx, dword [esp + 0x10]
add esi, 0x130
inc ebx
add ebp, 0x14
cmp esi, 0x9a5ce6
mov dword [esp + 0x10], ebx
jl 0x489773
mov al, byte [0x9a2066]
pop edi
pop esi
pop ebp
cmp al, 0xff
pop ebx
je 0x4898df
cmp byte [0x9a207a], 0xff
je 0x4898df
movsx edx, al
push edx
call fcn.00406f90
movsx eax, byte [0x9a207a]
push eax
call fcn.00406f90
add esp, 8
jmp 0x4898e4
call fcn.00406ff0
call fcn.0041d650
call fcn.004040a0
call fcn.00413210
call fcn.0041db80
call fcn.00463000
pop ecx
ret
Function at 0x489900
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 + 0x4d0c78]
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 + 0x977020]
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 0x49da00
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x8106d4]
sub esp, 0x1c
push esi
push eax
push 0x200
push 0x200
call fcn.004aa590
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49da34
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
Function at 0x49edc0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov ebx, 0x9c8f40
mov edi, 0x596f0c
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x49ee2a
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x3d5
push ebx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
add ebx, 0x3d5
cmp edi, str.pol_tv2.bin
jl 0x49edd5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x49ee40
Capabilities:
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov dword [esp + 0x10], 0x9c8f40
mov esi, 0x596f0c
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49ef31
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push str.pol_st_adver07.bin
call edi
lea ecx, [esp + 0x18]
mov edi, eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x3d5
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call ebp
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x18]
mov edi, eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call ebp
mov edx, dword [esp + 0x10]
add esi, 4
add edx, 0x3d5
cmp esi, str.pol_tv2.bin
mov dword [esp + 0x10], edx
jl 0x49ee5a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret