joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a080
Capabilities:
Read file on windows

Disassembly:
cmp dword [0x52b39c], 0
push ebx
push ebp
push esi
push edi
push 0x49ccb0
je 0x41a14c
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41a0f5
mov edi, dword [sym.imp.MSVCR90.dll_ftell]
push esi
call edi
add esp, 4
push 2
push 0
push esi
mov ebx, eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
push esi
call edi
add esp, 4
push 0
push ebx
push esi
mov ebp, eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
push ebp
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov edi, eax
push esi
test edi, edi
jne 0x41a0fc
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 1
push ebp
push edi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
push esi
cmp eax, 1
jae 0x41a129
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
push ebp
mov eax, edi
call fcn.0040e860
mov esi, eax
add esp, 4
test esi, esi
je 0x41a118
mov dword [esi + 0x18], 1
jmp 0x41a15f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040e7f0
mov esi, eax
add esp, 8
test esi, esi
je 0x41a0f5
push 0
push 0
push esi
call fcn.0040eb20
mov ebx, dword [esp + 0x20]
add esp, 0xc
call fcn.0040e1d0
sub eax, 1
je 0x41a181
call fcn.0041a1b0
jmp 0x41a18a
push esi
call fcn.0041bfd0
add esp, 4
mov edi, eax
mov eax, esi
call fcn.0040eab0
test edi, edi
je 0x41a0f5
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x433fc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_fread]
push ebp
push esi
push edi
push 1
lea eax, [esp + 0x17]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x433fe9
movzx esi, byte [esp + 0xf]
xor eax, eax
jmp 0x433ffb
push edi
call dword [sym.imp.MSVCR90.dll_ferror]
mov esi, dword [esp + 0x14]
add esp, 4
neg eax
sbb eax, eax
mov ebp, esi
test eax, eax
jne 0x43403f
push edi
push 1
lea ecx, [esp + 0x17]
push 1
push ecx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x43402e
movzx esi, byte [esp + 0xf]
mov edx, dword [esp + 0x18]
shl esi, 8
xor eax, eax
add esi, ebp
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 4
test eax, eax
je 0x43401a
or eax, 0xffffffff
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
add esp, 8
ret

Function at 0x434050
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll_fread]
push esi
push edi
push 1
lea eax, [esp + 0x17]
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 1
jne 0x434079
movzx esi, byte [esp + 0xf]
xor eax, eax
jmp 0x43408b
push edi
call dword [sym.imp.MSVCR90.dll_ferror]
mov esi, dword [esp + 0x14]
add esp, 4
neg eax
sbb eax, eax
mov ebx, esi
test eax, eax
jne 0x4340bc
push edi
push 1
lea ecx, [esp + 0x17]
push 1
push ecx
call ebp
add esp, 0x10
cmp eax, 1
jne 0x4340ae
movzx esi, byte [esp + 0xf]
xor eax, eax
jmp 0x4340bc
push edi
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 4
neg eax
sbb eax, eax
mov edx, esi
shl edx, 8
add ebx, edx
test eax, eax
jne 0x4340f2
push edi
push 1
lea eax, [esp + 0x17]
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 1
jne 0x4340e4
movzx esi, byte [esp + 0xf]
xor eax, eax
jmp 0x4340f2
push edi
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 4
neg eax
sbb eax, eax
mov ecx, esi
shl ecx, 0x10
add ebx, ecx
test eax, eax
jne 0x43413b
push edi
push 1
lea edx, [esp + 0x17]
push 1
push edx
call ebp
add esp, 0x10
cmp eax, 1
jne 0x43412a
movzx esi, byte [esp + 0xf]
mov ecx, dword [esp + 0x18]
shl esi, 0x18
xor eax, eax
add esi, ebx
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 4
test eax, eax
je 0x434116
or eax, 0xffffffff
mov edx, dword [esp + 0x18]
pop esi
pop ebp
mov dword [edx], 0
pop ebx
add esp, 8
ret
Function at 0x4341a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
push 2
push 0
mov ebp, 0xffff
push esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
test eax, eax
je 0x4341d4
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
push edi
push esi
call dword [sym.imp.MSVCR90.dll_ftell]
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebp
jae 0x4341ef
mov dword [esp + 0xc], edi
mov ebp, eax
push 0x404
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x43420a
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, 4
cmp ebp, ebx
jbe 0x4342b4
jmp 0x434228
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
lea eax, [ebx + 0x400]
mov ebx, ebp
cmp eax, ebp
ja 0x434236
mov ebx, eax
mov ebp, edi
sub ebp, ebx
mov eax, edi
sub eax, ebp
mov edi, 0x404
cmp eax, 0x404
ja 0x43424c
mov edi, eax
mov eax, dword [esp + 0x20]
push 0
push ebp
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4342b4
mov ecx, dword [esp + 0x20]
push ecx
push 1
push edi
push esi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4342b4
lea eax, [edi - 3]
test eax, eax
jle 0x4342aa
nop
dec eax
cmp byte [eax + esi], 0x50
jne 0x43429c
cmp byte [eax + esi + 1], 0x4b
jne 0x43429c
cmp byte [eax + esi + 2], 5
jne 0x43429c
cmp byte [eax + esi + 3], 6
je 0x4342a2
test eax, eax
jg 0x434280
jmp 0x4342aa
add eax, ebp
mov dword [esp + 0x14], eax
jne 0x4342b4
cmp ebx, dword [esp + 0x10]
jb 0x434220
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x434b30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0
test eax, eax
jne 0x434b4f
mov eax, 0xffffff9a
add esp, 8
ret
push esi
mov esi, dword [eax + 0x7c]
test esi, esi
jne 0x434b5f
lea eax, [esi - 0x66]
pop esi
add esp, 8
ret
cmp dword [esi], 0
jne 0x434b6e
mov eax, 0xffffff9c
pop esi
add esp, 8
ret
test ecx, ecx
jne 0x434b79
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x14], ecx
cmp ecx, eax
jbe 0x434b8d
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0
push ebx
push ebp
push edi
jbe 0x434cad
lea ebx, [ebx]
cmp dword [esi + 8], 0
jne 0x434c08
mov eax, dword [esi + 0x58]
test eax, eax
jbe 0x434c08
mov edi, 0x4000
cmp eax, edi
jae 0x434bc0
mov edi, eax
test edi, edi
je 0x434cb9
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x60]
push 0
push ecx
push edx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x434cc3
mov eax, dword [esi + 0x60]
mov ecx, dword [esi]
push eax
push 1
push edi
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x434cc3
mov edx, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], edx
mov dword [esi + 8], edi
cmp dword [esi + 0x64], 0
jne 0x434c5d
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x434c1a
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x434c31
mov ecx, dword [esi + 4]
mov cl, byte [eax + ecx]
mov edx, dword [esi + 0x10]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x434c20
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x50]
push edi
push edx
push eax
call sub.zlib1.dll_crc32
sub dword [esi + 0x5c], edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 0x10], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add esp, 0xc
add dword [esp + 0x10], edi
mov dword [esi + 0x50], eax
jmp 0x434c9c
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x10]
lea ecx, [esi + 4]
push 2
push ecx
call sub.zlib1.dll_inflate
mov edi, dword [esi + 0x18]
mov edx, dword [esi + 0x50]
sub edi, ebx
push edi
push ebp
push edx
mov dword [esp + 0x28], eax
call sub.zlib1.dll_crc32
sub dword [esi + 0x5c], edi
add dword [esp + 0x24], edi
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, 1
je 0x434cad
test eax, eax
jne 0x434cce
cmp dword [esi + 0x14], 0
ja 0x434ba0
cmp dword [esp + 0x14], 0
jne 0x434cce
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x443b80
Capabilities:
Terminate process

Disassembly:
mov eax, 0x4014
call fcn.0049a510
push esi
push edi
push 0x7db
push 0x12
push 1
push 0x7db
push 0
push 0
push 1
lea eax, [esp + 0x38]
push str.X.S.C.____ver__i._i_i___i._02i._02i__n_c__i_Elecbyte_n_n
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
lea edi, [esp + 0x40]
add esp, 0x24
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x443bb8
mov ecx, 0xb7
mov esi, str.Options__case_sensitive_:_n__h__________________Help_n__log__logfile_______Records_match_data_to__logfile__n__r__sysfile_________Loads_motif__sysfile_._eg.__r_motifdir_or__r_motifdir_system.def_n_nQuick_VS_Options:_n__p_n___playername___Loads_player_n__eg.__p3_kfm_n__p_n_.ai_1__________Enables_AI_for_player____eg.__p1.ai_1_n__p_n_.color__col____Set_player_ns_color_to__col__n__p_n_.life__life____Sets_player_ns_life_to__life__n__p_n_.power__power__Sets_player_ns_power_to__power__n__rounds__num________Plays_for__num__rounds__and_then_quits_n__s__stagename_______Loads_stage__stagename__n_nDebug_Options:_n__nojoy______________Disables_joysticks_n__nomusic____________Disables_music_n__nosound____________Disables_all_sound_effects_and_music_n_n
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call sub.SDL.dll_SDL_GetWMInfo
add esp, 4
neg eax
lea ecx, [esp + 0x14]
push ecx
sbb eax, eax
and eax, dword [esp + 0x10]
push 0x444460
push eax
push 0xc8
lea edx, [esp + 0x2c]
push 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], str.M.U.G.E.N_Command_line_options
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0
call dword [sym.imp.MSVCR90.dll_exit]
pop edi
pop esi
int3
Function at 0x444120
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x52b40c]
test eax, eax
je 0x444142
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
add eax, 0x1205c
push eax
call dword [sym.imp.MSVCR90.dll_vsprintf]
add esp, 0xc
jmp int.00443e80
Function at 0x450b80
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0xc
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
call sub.SDL.dll_SDL_GetWMInfo
add esp, 4
mov esi, eax
neg esi
push 0x65
sbb esi, esi
and esi, dword [esp + 0x10]
push edi
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x450bcb
push eax
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongA]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x45f9d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x504
push ebx
push ebp
push esi
mov esi, dword [esp + 0x518]
push edi
push esi
call fcn.0045fde0
push esi
call fcn.0045fd80
add esp, 8
test eax, eax
je 0x45fbf9
mov eax, dword [esp + 0x518]
push 0x49ccb0
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x45fbf9
push edi
push 1
lea ecx, [esp + 0x20]
push 0x40
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x45fa5f
mov edx, dword [0x52b40c]
push str.Error_reading_file_header
add edx, 0x1205c
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x504
ret
mov ecx, str.ElecbyteAIB
lea eax, [esp + 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45fa88
test dl, dl
je 0x45fa84
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45fa88
add eax, 2
add ecx, 2
test dl, dl
jne 0x45fa68
xor eax, eax
jmp 0x45fa8d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45faa3
mov eax, dword [0x52b40c]
push str.Not_an_AI_file
add eax, 0x1205c
push eax
jmp 0x45fa42
cmp dword [esp + 0x24], 0x100
je 0x45fac1
mov ecx, dword [0x52b40c]
push str.Incorrect_AI_version
add ecx, 0x1205c
push ecx
jmp 0x45fa42
mov ax, word [esp + 0x28]
mov cl, byte [esp + 0x2a]
mov edx, 0x7db
cmp ax, dx
mov dl, byte [esp + 0x2b]
jne 0x45fbcd
cmp cl, 1
jne 0x45fbcd
cmp dl, 0x12
jne 0x45fbcd
xor ebx, ebx
jmp 0x45faf9
mov esi, dword [esp + 0x51c]
mov esi, dword [esi + ebx*4]
push edi
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jb 0x45fb9f
xor ebp, ebp
cmp dword [esp + 0x14], ebp
jle 0x45fb5e
push edi
push 1
lea ecx, [esp + 0x60]
push 0x4b4
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jb 0x45fb9f
mov edx, dword [esp + 0x25c]
push edx
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004030f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x45fbb6
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x45fb20
inc ebx
cmp ebx, 2
jl 0x45faf2
mov edx, dword [esp + 0x51c]
push edi
push 1
add edx, 8
push 0x100
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
push edi
cmp eax, 1
jb 0x45fba0
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x504
ret
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x504
ret
mov ecx, dword [0x52b40c]
push str.Out_of_AI_learning_space
add ecx, 0x1205c
push ecx
jmp 0x45fa42
movzx edx, dl
push edx
movzx ecx, cl
movzx edx, ax
mov eax, dword [0x52b40c]
push ecx
push edx
add eax, 0x1205c
push str.Different_MUGEN_version_for_AI_hints:__i._02i._02i
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x504
ret
Function at 0x45fc10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
xor eax, eax
lea esp, [esp]
mov ecx, dword [esp + 0x64]
cmp dword [ecx + eax*4], 0
je 0x45fcb8
inc eax
cmp eax, 2
jl 0x45fc20
mov edx, dword [esp + 0x60]
push 0x49dd8c
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x45fcb8
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
mov edx, dword [0x4a1948]
mov ecx, dword [str.ElecbyteAIB]
mov eax, dword [0x4a194c]
mov ebx, dword [sym.imp.MSVCR90.dll_fwrite]
push edi
push 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x2c]
mov ecx, 0x7db
push 0x40
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x100
mov word [esp + 0x44], cx
mov byte [esp + 0x46], 1
mov byte [esp + 0x47], 0x12
call ebx
add esp, 0x1c
cmp eax, 1
jae 0x45fcc2
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
xor ebp, ebp
mov eax, dword [esp + 0x64]
mov esi, dword [eax + ebp*4]
push edi
push 1
mov dword [esp + 0x1c], 0
mov ecx, dword [esi + 8]
lea edx, [esp + 0x1c]
push 4
push edx
mov dword [esp + 0x24], ecx
call ebx
add esp, 0x10
cmp eax, 1
jb 0x45fcae
cmp dword [esi + 8], 0
je 0x45fd3f
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x24]
mov eax, edx
imul eax, ecx
add eax, dword [esi + 0x18]
mov dword [esi + 0x20], ecx
je 0x45fd3f
push edi
push 1
push edx
push eax
call ebx
add esp, 0x10
cmp eax, 1
jb 0x45fcae
mov ecx, dword [esi + 0x20]
cmp ecx, dword [esi + 0x28]
jge 0x45fd3f
mov eax, ecx
shl eax, 4
add eax, dword [esi + 0x1c]
add eax, 0x10
inc ecx
cmp dword [eax], 0
je 0x45fd26
mov edx, dword [esi + 4]
mov eax, edx
imul eax, ecx
add eax, dword [esi + 0x18]
mov dword [esi + 0x20], ecx
jne 0x45fd07
inc ebp
cmp ebp, 2
jl 0x45fcc4
mov eax, dword [esp + 0x64]
push edi
push 1
add eax, 8
push 0x100
push eax
call ebx
add esp, 0x10
push edi
cmp eax, 1
jb 0x45fcaf
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret
Function at 0x482a90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4a905c]
cmp eax, 0x7f
jl 0x482ab2
push str.Expression_stack_overflow.
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
jmp int.00443e80
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
inc eax
mov dword [0x4a905c], eax
mov dword [eax*4 + 0x52b640], ecx
mov dword [eax*4 + 0x52b440], edx
ret
Function at 0x488f20
Capabilities:
Terminate process

Disassembly:
push str.Fatal:_Expression_stack_underflow.
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
jmp int.00443e80
Function at 0x499660
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x49966a
repz ret
jmp fcn.00499b4e

Function at 0x499d50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
push 0x5c
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x499d8d
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x499db0
push 0x2f
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x499db0
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 4], ecx
push 0x2e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x499dd9
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
mov dword [ebp - 8], eax
jmp 0x499de2
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 1
call fcn.0049a4e0
mov dword [ebp - 0x18], esp
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x499e06
call fcn.00499ee0
jmp 0x499e95
mov eax, dword [ebp - 8]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.SDL.dll_SDL_strlcpy
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push 0x100000
call sub.SDL.dll_SDL_Init
add esp, 4
test eax, eax
jge 0x499e4b
call sub.SDL.dll_SDL_GetError
push eax
push str.WinMain___error
call fcn.00499eb0
add esp, 8
xor eax, eax
jmp 0x499e95
push 0x499f10
call fcn.0049983d
add esp, 4
push 0x499f00
call fcn.0049983d
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.SDL.dll_SDL_SetModuleHandle
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00454d10
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR90.dll_exit]
xor eax, eax
lea esp, [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00499660
mov esp, ebp
pop ebp
ret
Function at 0x49a010
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x20], eax
push str.DDRAW.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x49a03e
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.SDL_STDIO_REDIRECT
call sub.SDL.dll_SDL_getenv
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x49a06c
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
test eax, eax
je 0x49a06a
call fcn.0049a320
jmp 0x49a071
call fcn.0049a320
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.0049a4e0
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49a0aa
call fcn.00499ee0
jmp 0x49a116
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.SDL.dll_SDL_strlcpy
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0049a130
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
lea eax, [edx*4 + 4]
call fcn.0049a4e0
mov dword [ebp - 0x28], esp
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x49a0f4
call fcn.00499ee0
jmp 0x49a116
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0049a130
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00499d50
add esp, 8
xor eax, eax
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00499660
mov esp, ebp
pop ebp
ret 0x10

Function at 0x52f3a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
push ecx
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, 0xa46de6
xor esi, eax
sub esi, eax
and esi, 0xffff
call 0x52f3c1
pop eax
sub eax, 0x135
add esi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
inc esi
push edi
mov ah, byte [esi]
xor ah, al
mov byte [edi], ah
inc esi
ror al, 1
inc edi
dec ecx
jne 0x52f3d1
pop eax
pop ecx
pop edi
pop esi
ret
Function at 0x52f58a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0052f550
test eax, eax
jne 0x52f5f9
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x52f616
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0052f550
test eax, eax
je 0x52f610
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x52f61b
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x52f5d6
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret