joyce8/EMBER2024-capa huggingface dataset:
Function at 0xeb8f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xeb8fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xeb8fcf
push ebx
push edi
push 0xedc770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xeb8fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xedc770
push esi
call ebx
test eax, eax
je 0xeb8fae
mov ebp, 3
cmp dword [0xedc774], ebp
jne 0xeb8faa
push 0x3e8
call edi
push 0xedc770
push esi
call ebx
test eax, eax
jne 0xeb8f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xeb8fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xeb8fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0xebce00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xed28f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xebced2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00eb97a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xebce61
mov edx, dword [eax]
jmp 0xebce63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00ebb050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xebcebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xebcebf
cmp esi, edi
je 0xebcebf
mov ecx, esi
call fcn.00eb4a00
push esi
call fcn.00ec21c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00eb9990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xebcef5
mov eax, dword [eax]
jmp 0xebcef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00eb8640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xebcf25
mov eax, dword [eax]
jmp 0xebcf27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xebcf76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xebcf76
cmp esi, edi
je 0xebcf76
mov eax, dword [esi]
cmp eax, edi
je 0xebcf5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xebcf6d
push eax
call fcn.00ec21c8
add esp, 4
push esi
call fcn.00ec21c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xebcf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xebcffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xebd035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00ebce00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xebcfc5
mov edi, 0xed78b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xebd035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00ebce00
add edi, 4
add esp, 0xc
cmp edi, 0xed78c0
jb 0xebd000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xebd070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00ec3082
mov esi, eax
add esp, 8
test esi, esi
je 0xebd107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xebd102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00ec2946
add esp, 8
test eax, eax
je 0xebd0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xebd0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00ec2946
add esp, 8
test eax, eax
jne 0xebd0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xebd102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xebdf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xed29fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xebe002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00ec1dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xebe002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00eb96e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00ec220b
push 0x10
call fcn.00ec21d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xebdfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00eae1c0
jmp 0xebdfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00ebdb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xebdff0
mov ecx, edi
call fcn.00eae2c0
push edi
call fcn.00ec21c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xebe021
inc ebx
cmp ebx, 0x20
jb 0xebdf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xebf250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xed3808
push 0xec3288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xebf329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xebf329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00ec21d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xebf329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xebf329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xebf32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00ebf351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xec0000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xec0131
push esi
call fcn.00ec3145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00eb2080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xec0131
push 0
push ebp
call fcn.00eb23a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00eb2260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xec008b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00eb22f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xec0121
push 0xed8918
push edi
call fcn.00ec13f0
push eax
push ebx
push esi
call fcn.00ebff60
push 0xed88f8
push edi
call fcn.00ec13f0
push eax
push ebx
push esi
call fcn.00ebff60
push 0xed88d8
push edi
call fcn.00ec13f0
push eax
push ebx
push esi
call fcn.00ebff60
push 0xed88c0
push edi
call fcn.00ec13f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ebff60
push 0xed88a0
push edi
call fcn.00ec13f0
push eax
push ebx
push esi
call fcn.00ebff60
push 0xed8888
push edi
call fcn.00ec13f0
push eax
push ebx
push esi
call fcn.00ebff60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xec11b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ec1140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ec1140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ec1140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ec1140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xec1bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xec1c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xed387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xec1c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xec1c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40b960
Capabilities:
Terminate process

Disassembly:
mov eax, 0x4000
call fcn.004dd740
push esi
push edi
push 0x7dd
push 0xb
push 8
push 0x7dd
push 0
push 1
push 1
lea eax, [esp + 0x24]
push str.M.U.G.E.N_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 + 0x2c]
add esp, 0x24
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b998
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]
lea ecx, [esp + 8]
push str.M.U.G.E.N_Command_line_options
push ecx
call fcn.0040c770
add esp, 8
push 0
call dword [sym.imp.MSVCR90.dll_exit]
pop edi
pop esi
int3
Function at 0x41a500
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 0x41a54b
push eax
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongA]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x42ef90
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.0042f3c0
push esi
call fcn.0042f360
add esp, 8
test eax, eax
je 0x42f1d7
mov eax, dword [esp + 0x518]
push 0x4f0a88
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x42f1d7
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 0x42f011
push str.Error_reading_file_header_n
call fcn.0040c140
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x504
ret
mov ecx, str.ElecbyteAIB
lea eax, [esp + 0x18]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42f040
test dl, dl
je 0x42f03c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42f040
add eax, 2
add ecx, 2
test dl, dl
jne 0x42f020
xor eax, eax
jmp 0x42f045
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42f06a
push str.Not_an_AI_file_n
call fcn.0040c140
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x504
ret
cmp dword [esp + 0x24], 0x100
je 0x42f095
push str.Incorrect_AI_version_n
call fcn.0040c140
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x504
ret
mov ax, word [esp + 0x28]
mov cl, byte [esp + 0x2b]
mov edx, 0x7dd
cmp ax, dx
mov dl, byte [esp + 0x2a]
jne 0x42f1b7
cmp dl, 8
jne 0x42f1b7
cmp cl, 0xb
jne 0x42f1b7
xor ebx, ebx
jmp 0x42f0d7
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 0x42f17f
xor ebp, ebp
cmp dword [esp + 0x14], ebp
jle 0x42f13e
mov edi, edi
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 0x42f17f
mov edx, dword [esp + 0x25c]
push edx
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00466630
add esp, 0xc
cmp eax, 0xffffffff
je 0x42f196
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x42f100
inc ebx
cmp ebx, 2
jl 0x42f0d0
mov ecx, dword [esp + 0x51c]
push edi
push 1
add ecx, 8
push 0x100
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
push edi
cmp eax, 1
jb 0x42f180
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
push str.Out_of_AI_learning_space_n
call fcn.0040c140
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x504
ret
movzx ecx, cl
push ecx
movzx edx, dl
movzx eax, ax
push edx
push eax
push str.Different_MUGEN_version_for_AI_hints:__i._02i._02i_n
call fcn.0040c140
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x504
ret
Function at 0x42f1f0
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 0x42f298
inc eax
cmp eax, 2
jl 0x42f200
mov edx, dword [esp + 0x60]
push 0x4f3d24
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x42f298
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
mov edx, dword [0x4f5ffc]
mov ecx, dword [str.ElecbyteAIB]
mov eax, dword [0x4f6000]
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, 0x7dd
push 0x40
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x100
mov word [esp + 0x44], cx
mov byte [esp + 0x46], 8
mov byte [esp + 0x47], 0xb
call ebx
add esp, 0x1c
cmp eax, 1
jae 0x42f2a2
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 0x42f28e
cmp dword [esi + 8], 0
je 0x42f31f
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 0x42f31f
push edi
push 1
push edx
push eax
call ebx
add esp, 0x10
cmp eax, 1
jb 0x42f28e
mov ecx, dword [esi + 0x20]
cmp ecx, dword [esi + 0x28]
jge 0x42f31f
mov eax, ecx
shl eax, 4
add eax, dword [esi + 0x1c]
add eax, 0x10
inc ecx
cmp dword [eax], 0
je 0x42f306
mov edx, dword [esi + 4]
mov eax, edx
imul eax, ecx
add eax, dword [esi + 0x18]
mov dword [esi + 0x20], ecx
jne 0x42f2e7
inc ebp
cmp ebp, 2
jl 0x42f2a4
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 0x42f28f
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 0x443e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov edx, dword [eax]
cmp dword [edx + 8], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], edx
je 0x44402b
mov eax, dword [edx + 0x24]
mov edi, dword [edx + 4]
imul edi, eax
add edi, dword [edx + 0x18]
mov dword [edx + 0x20], eax
je 0x44402b
mov ebx, dword [0x5040e8]
mov eax, dword [edi + 4]
dec eax
cmp eax, 3
ja 0x443ffd
push 0x60
lea esi, [edi + 0x9c]
push 0
push esi
call sub.MSVCR90.dll_memset
fld1
fst dword [esi + 0x24]
mov dword [esi + 0x4c], 1
fst dword [esi + 0x20]
mov dword [esi + 0x5c], 0x100f
fst dword [esi + 0x14]
add esp, 4
fst dword [esi + 0x10]
lea ebp, [esi + 8]
fst dword [esi + 0x50]
fst dword [esi + 0x40]
fst dword [esi + 0x3c]
fstp dword [esi]
fld dword [0x4fd888]
fstp dword [esi + 4]
fld dword [ebx + 0x11f48]
fmul dword [ebx + 0x11f34]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fst dword [edi + 0x98]
fld qword [0x5040a0]
fdiv qword [ebx + 0x1d78]
fmul dword [ebx + 0x11f1c]
fadd dword [ebx + 0x11f00]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fsubr qword [edi + 0x48]
fmulp st(1)
fld qword [ebx + 0x12888]
fld qword [0x4fd830]
fmul st(1), st(0)
fxch st(2)
faddp st(1)
fstp dword [esp + 0x20]
fadd dword [esp + 0x20]
fstp qword [esp]
call sub.MSVCR90.dll_floor
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
call fcn.004dc850
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fstp dword [ebp]
fld dword [edi + 0x98]
fmul qword [edi + 0x50]
fld qword [0x5040a0]
fdiv qword [ebx + 0x1d78]
fmul dword [ebx + 0x11f20]
fld dword [ebx + 0x11f04]
fmul dword [ebx + 0x11f34]
faddp st(1)
fstp dword [esp + 0x20]
fsub dword [esp + 0x20]
fiadd dword [ebx + 0x8754]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fadd qword [0x4fd830]
fstp qword [esp]
call sub.MSVCR90.dll_floor
fstp dword [esp + 0x20]
add esp, 8
fld dword [esp + 0x18]
call fcn.004dc850
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
lea ecx, [esi + 0xc]
xor edx, edx
fstp dword [ecx]
cmp dword [edi + 0x34], 1
setne dl
mov dword [esi + 0x1c], edx
fld dword [edi + 0x98]
fmul qword [edi + 0x70]
fstp dword [esi + 0x10]
fld dword [edi + 0x98]
fmul qword [edi + 0x78]
fstp dword [esi + 0x14]
fldz
fcomp dword [ebx + 0x11f38]
fnstsw ax
test ah, 0x44
jnp 0x443ff9
test ebp, ebp
je 0x443fe3
fld dword [ebp]
fld dword [ebx + 0x11f54]
fmul dword [ebx + 0x11f48]
fsubp st(1)
fstp dword [ebp]
test ecx, ecx
je 0x443ff9
fld dword [ecx]
fld dword [ebx + 0x11f58]
fmul dword [ebx + 0x11f48]
fsubp st(1)
fstp dword [ecx]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x20]
cmp ecx, dword [edx + 0x28]
jge 0x44402b
mov eax, ecx
shl eax, 4
add eax, dword [edx + 0x1c]
lea ecx, [ecx]
add eax, 0x10
inc ecx
cmp dword [eax], 0
je 0x444010
mov edi, dword [edx + 4]
imul edi, ecx
add edi, dword [edx + 0x18]
mov dword [edx + 0x20], ecx
jne 0x443e62
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x466b20
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push edi
cmp eax, 1
je 0x466bac
add eax, 0xfffffffe
cmp eax, 1
ja 0x466b9c
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
mov edi, ebx
imul edi, ebp
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x466b83
sub eax, ecx
mov edi, eax
mov eax, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCR90.dll_memcpy
add dword [esi + 0x14], edi
add esp, 0xc
pop ebp
mov eax, edi
pop edi
mov dword [esi + 0x20], 1
xor edx, edx
pop esi
div ebx
mov dword [0x50426c], 0xfffffffc
pop ebx
ret
push edi
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov dword [0x50426c], 0xfffffff6
xor eax, eax
pop ebx
ret
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
add esp, 0x10
cmp edi, ebx
jae 0x466be7
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 4
neg eax
sbb eax, eax
add eax, 0xfffffffc
mov dword [0x50426c], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret