joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c0ca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408870
mov dword [ebp - 0x14], eax
cmp dword [0x81ead8], esi
jne 0x40c1bd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c29d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c29d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c29d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81ead8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x81eadc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x81eae0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81eae8], eax
test eax, eax
je 0x40c1ba
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81eae4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c1e2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c1d5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push 4
pop eax
jmp 0x40c29f
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push dword [0x81ead8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c1dc
mov eax, dword [0x81eae4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c255
cmp dword [0x81eae8], edi
je 0x40c255
push eax
call ebx
push dword [0x81eae8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c255
test eax, eax
je 0x40c255
call ecx
test eax, eax
je 0x40c24a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c24a
test byte [ebp - 8], 1
jne 0x40c255
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c285
mov eax, dword [0x81eadc]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
call eax
mov esi, eax
test esi, esi
je 0x40c282
mov eax, dword [0x81eae0]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81ead8]
call ebx
test eax, eax
je 0x40c29d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c29f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d87
mov esp, ebp
pop ebp
ret
Function at 0x404da0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
mov dword [esp], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add ecx, eax
shr ecx, 0x14
shr eax, 0x14
test edx, edx
jne 0x404ddc
push 4
push str.WWE_RAW
push str.Virtual_Memory_must_be_turned_on_before_you_can_continue._Do_you_want_to_continue_
jmp 0x404df2
cmp eax, 0x50
jb 0x404de6
cmp ecx, 0x64
jae 0x404e0a
push 4
push str.WWE_RAW
push str.There_is_not_enough_free_memory_to_run_WWE_RAW._Please_make_some_room_and_try_again._Otherwise_errors_may_occur._Do_you_want_to_continue_
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x404e0a
xor al, al
add esp, 0x20
ret
mov al, 1
add esp, 0x20
ret

Function at 0x404e10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push str.chichihime.ini
mov ebx, ecx
push eax
call fcn.00404300
mov eax, dword [str.NOBOOTSYS]
add esp, 8
test eax, eax
je 0x404e81
push esi
mov eax, 0x59281c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push str.OPTION
call edi
test eax, eax
je 0x404e69
mov eax, dword [esi - 4]
mov ecx, dword [ebx + 0x2a728]
or ecx, eax
mov dword [ebx + 0x2a728], ecx
mov ecx, dword [esi + 8]
add esi, 8
test ecx, ecx
mov eax, esi
jne 0x404e43
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x104
ret
mov al, 1
pop ebx
add esp, 0x104
ret
Function at 0x404e90
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x34c
push ebx
push esi
push edi
push str.WWF_RAW_PC
xor ebx, ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, ebx
je 0x404edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404edc
push ebx
push str.RAW_Window
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x4050dd
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4050dd
call fcn.00404da0
test al, al
je 0x4050a7
mov eax, dword [esp + 0x364]
push str.cd_no_check
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x404f1b
mov ecx, 0x5ab028
call fcn.00404e10
mov ecx, 0x5ab028
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 0x5dfb20
test ecx, ecx
je 0x4050d9
lea edx, [esp + 0x254]
push 0x5e019c
push edx
call fcn.00404300
lea eax, [esp + 0x158]
push str.XPK_
push eax
call fcn.00404300
lea ecx, [esp + 0x5c]
push str.XPKT_
push ecx
call fcn.00404300
add esp, 0x18
lea edx, [esp + 0x4c]
lea eax, [esp + 0x150]
lea ecx, [esp + 0x254]
push edx
push eax
push ecx
push 0x10
mov ecx, 0x5dfb20
mov word [0x5dfe4c], 0x7d2
mov word [0x5dfe4e], 9
mov word [0x5dfe50], 0x13
mov word [0x5dfe52], bx
mov word [0x5dfe54], bx
mov word [0x5dfe56], bx
call fcn.0040b1d0
test al, al
jne 0x404fe8
push ebx
push 8
mov ecx, 0x5aac10
call fcn.00404440
mov edx, dword [0x5d54b4]
push edx
jmp 0x40509d
mov eax, dword [0x5d5750]
xor dl, dl
test eax, 0x100000
mov byte [esp + 0xc], dl
je 0x405000
mov dl, 1
mov byte [esp + 0xc], dl
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, 0x14
mov byte [esp + 0x48], dl
mov edx, dword [esp + 0x35c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
mov ecx, 0x5ab028
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x280
mov dword [esp + 0x24], 0x1e0
mov dword [esp + 0x28], 0x16
mov dword [esp + 0x30], 0x17
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], 0x15
mov dword [esp + 0x40], 0x1a
mov dword [esp + 0x44], 0x19
mov dword [esp + 0x50], 8
call fcn.00401230
test eax, eax
jge 0x4050ad
push ebx
push 8
mov ecx, 0x5aac10
call fcn.00404440
mov eax, dword [0x5d54b4]
push eax
mov ecx, 0x5aac10
call fcn.00404560
cmp esi, ebx
je 0x4050eb
jmp 0x4050dd
mov edi, 0x64
mov ecx, 0x5ab028
call fcn.00401890
mov ecx, 0x5ab028
call fcn.00401a00
dec edi
jne 0x4050b2
mov ecx, 0x5ab028
call fcn.004018d0
cmp esi, ebx
je 0x4050eb
jmp 0x4050dd
cmp esi, ebx
je 0x4050eb
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x34c
ret 0x10
Function at 0x406b40
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.BINK_THREDEVENT_THREADSTART
push 0
push 1
mov esi, ecx
push 0
call edi
push str.BINK_THREDEVENT_DELETED
push 0
push 1
push 0
mov dword [esi + 0x50], eax
call edi
push str.BINK_THREDEVENT_CREATED
push 1
push 1
push 0
mov dword [esi + 0x54], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
mov dword [esi + 0x58], eax
call edi
lea eax, [esi + 0x18]
push eax
call edi
lea ecx, [esi + 0x30]
push ecx
call edi
lea edx, [esi + 0x4c]
push edx
push 0
push esi
push 0x4074a0
push 0
push 0
call fcn.005761e5
add esp, 0x18
mov dword [esi + 0x48], eax
test eax, eax
jne 0x406bb3
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x50]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov ecx, esi
call fcn.00406bd0
pop edi
mov al, 1
pop esi
ret
Function at 0x406e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x84]
mov eax, 3
push esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov esi, 1
xor edx, edx
mov ecx, 4
mov eax, 2
push edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x80], esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x14], 0x16
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x17
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0x18
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0x15
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], 0x1a
mov dword [esp + 0x68], 5
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], 0x19
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
xor ebx, ebx
lea edi, [esp + 0x14]
jmp 0x406f30
xor edx, edx
mov ecx, dword [edi]
mov eax, dword [esi]
push ecx
push 3
push edx
push ebp
push 1
push edx
push esi
call dword [eax + 0x28]
test eax, eax
jge 0x406f4f
inc ebx
add edi, 0x10
cmp ebx, 7
jb 0x406f2e
jmp 0x406f6d
mov ecx, dword [esp + 0x10]
mov eax, ebx
shl eax, 4
mov edx, dword [esp + eax + 0x14]
mov dword [ecx + 0x50], edx
mov edx, dword [esp + eax + 0x18]
mov eax, dword [esp + eax + 0x1c]
mov dword [ecx + 0x60], edx
mov dword [ecx + 0x58], eax
cmp ebx, 7
jne 0x406f7e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x74
ret 8
xor ebx, ebx
lea edi, [esp + 0x14]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x406fa1
mov edx, dword [edi]
mov ecx, dword [esi]
push edx
push 3
push 0
push ebp
push 1
push 0
push esi
call dword [ecx + 0x28]
test eax, eax
jge 0x406fba
inc ebx
add edi, 0x10
cmp ebx, 7
jb 0x406f84
pop edi
cmp ebx, 7
pop esi
pop ebp
setne al
pop ebx
add esp, 0x74
ret 8
mov ecx, dword [esp + 0x10]
mov eax, ebx
shl eax, 4
pop edi
cmp ebx, 7
mov edx, dword [esp + eax + 0x10]
pop esi
mov dword [ecx + 0x4c], edx
mov edx, dword [esp + eax + 0x10]
mov eax, dword [esp + eax + 0x14]
pop ebp
mov dword [ecx + 0x54], eax
mov dword [ecx + 0x5c], edx
setne al
pop ebx
add esp, 0x74
ret 8
Function at 0x40b820
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b84b
xor eax, eax
pop edi
ret 8
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.005756f6
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0xc]
push 0
push edx
push esi
push eax
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret 8

Function at 0x40bdb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.0040b890
mov esi, eax
test esi, esi
jne 0x40bdd0
pop edi
pop esi
ret 0x10
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
test al, al
je 0x40bdf4
cmp al, 0x62
je 0x40bde8
cmp al, 0x74
jne 0x40bdec
mov byte [esi + 0x14], 0
jmp 0x40bdec
mov byte [esi + 0x14], 1
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40bdda
mov dword [edi + 0x328], esi
mov edx, dword [esi + 0x10]
push edx
push esi
mov ecx, edi
call fcn.0040bd80
mov al, byte [esp + 0x18]
test al, al
jne 0x40be19
mov al, byte [esi + 0x14]
test al, al
jne 0x40beb6
xor dl, dl
push ebp
mov byte [esi + 0x1c], 0xff
mov byte [esp + 0x1c], dl
mov ecx, dword [esp + 0x1c]
mov eax, ecx
and eax, 0xff
lea ebp, [eax + eax*2]
cmp byte [edi + ebp*4 + 0x338], 0
jne 0x40be4e
mov ebp, dword [esi + 0xc]
lea eax, [eax + eax*2 + 0xcf]
mov eax, dword [edi + eax*4]
cmp eax, dword [ebp + 4]
jae 0x40be5b
inc dl
cmp dl, 2
mov byte [esp + 0x1c], dl
jb 0x40be24
jmp 0x40be7c
and ecx, 0xff
inc dl
lea ecx, [ecx + ecx*2]
lea eax, [edi + ecx*4]
mov byte [eax + 0x338], 1
mov byte [esi + 0x1c], dl
mov edx, dword [eax + 0x340]
mov dword [esi + 0x18], edx
mov al, byte [esi + 0x1c]
pop ebp
cmp al, 0xff
jne 0x40be96
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.005756f6
add esp, 4
mov dword [esi + 0x18], eax
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x18]
add edi, 0x55c
push 0
mov eax, dword [edx + 4]
mov edx, dword [esi + 8]
push edi
push eax
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 4]
pop edi
pop esi
ret 0x10
Function at 0x40bfe0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
call fcn.0040bd10
mov ebx, eax
test ebx, ebx
je 0x40c08b
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x40c08b
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40c08b
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov ecx, dword [ecx + 4]
cmp edx, ecx
jae 0x40c08b
mov eax, ebp
imul eax, esi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x40c02b
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x40c05b
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x10]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x10], ecx
pop ebp
pop ebx
ret 0x10
mov ecx, dword [ebx + 8]
lea esi, [edi + 0x55c]
push 0
push esi
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
mov ecx, dword [ebx + 0x10]
xor edx, edx
add ecx, eax
pop edi
pop esi
div ebp
mov dword [ebx + 0x10], ecx
pop ebp
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10

Function at 0x40c0a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
push eax
call fcn.0040bd10
mov esi, eax
test esi, esi
jne 0x40c0bc
pop edi
or eax, 0xffffffff
pop esi
ret 4
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
cmp ecx, dword [edx + 4]
jb 0x40c0cf
pop edi
or eax, 0xffffffff
pop esi
ret 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40c0f3
cmp byte [eax + ecx], 0xd
jne 0x40c0e7
cmp byte [eax + ecx + 1], 0xa
jne 0x40c0e7
inc ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dl, byte [ecx + eax]
mov byte [esp + 0xc], dl
jmp 0x40c10f
mov ecx, dword [esi + 8]
add edi, 0x55c
push 0
push edi
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push 1
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esi + 0x10]
pop edi
inc edx
mov dword [esi + 0x10], edx
mov eax, dword [esp + 8]
and eax, 0xff
pop esi
ret 4
Function at 0x445b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x48], eax
mov al, byte [esi + 0x68]
test al, 1
mov dword [esi + 0x4c], ecx
jne 0x445bd9
mov ecx, esi
call fcn.00445940
test al, al
jne 0x445bdb
xor ecx, ecx
mov eax, 0x64f954
lea edx, [esi + 0x28]
mov bl, byte [eax - 0x3f3]
test bl, bl
je 0x445bc5
mov byte [ecx + esi + 0x20], 3
mov edi, dword [eax]
mov edi, dword [edi + 0x14]
mov dword [edx], edi
add eax, 0x400
inc ecx
add edx, 4
cmp eax, 0x651154
jb 0x445baf
mov byte [esi + 0x47], 3
mov bl, 1
xor eax, eax
mov edx, 0x64f954
lea edi, [esi + 0x28]
mov cl, byte [edx - 0x3f3]
test cl, cl
jne 0x445bf6
mov byte [eax + esi + 0x20], 0
jmp 0x445c1e
mov cl, byte [eax + esi + 0x18]
test cl, 0x14
jne 0x445c12
test cl, 0x28
jne 0x445c0b
mov byte [eax + esi + 0x20], 4
jmp 0x445c17
mov byte [eax + esi + 0x20], 2
jmp 0x445c17
mov byte [eax + esi + 0x20], 1
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x14]
mov dword [edi], ecx
add edx, 0x400
inc eax
add edi, 4
cmp edx, 0x651154
jb 0x445be5
mov dl, byte [esi + 0x47]
mov byte [esi + 1], 1
sub dl, 3
push 0
neg dl
sbb edx, edx
mov ecx, 0x656120
and edx, 0xffffffc4
add edx, 0x78
mov esi, edx
push esi
push 1
call fcn.00449fa0
test bl, bl
jne 0x445c7b
mov ecx, 0x650f28
call fcn.004453f0
mov ecx, 0x6571e0
call fcn.00454650
add esi, 0x3c
mov ecx, 0x6571e0
push esi
call fcn.00454a20
pop edi
pop esi
pop ebx
ret
Function at 0x457b60
Capabilities:
Write file on windows

Disassembly:
mov al, byte [esp + 8]
sub esp, 0x108
test al, al
push esi
jne 0x457bc7
lea eax, [esp + 8]
push str.SaveDataSystem.bin
push eax
call fcn.00404300
add esp, 8
mov ecx, 0x5ab028
push 0x656f1c
call fcn.00404d50
push 0
push 0x80
push 2
push 0
push 2
lea ecx, [esp + 0x1c]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x457c2f
lea edx, [esp + 4]
push 0
push edx
push 0x17c
push 0x656e40
jmp 0x457c15
cmp al, 1
jne 0x457c2f
lea eax, [esp + 8]
push str.SaveDataEdit.bin
push eax
call fcn.00404300
add esp, 8
lea ecx, [esp + 8]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x457c2f
mov eax, dword [0x656fc0]
mov ecx, dword [0x656fbc]
lea edx, [esp + 4]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
add esp, 0x108
ret 8
xor al, al
pop esi
add esp, 0x108
ret 8

Function at 0x457c40
Capabilities:
Read file on windows

Disassembly:
mov al, byte [esp + 8]
sub esp, 0x108
test al, al
push esi
jne 0x457ce4
lea eax, [esp + 8]
push str.SaveDataSystem.bin
push eax
call fcn.00404300
add esp, 8
lea ecx, [esp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x457d56
lea edx, [esp + 4]
push 0
push edx
push 0x17c
push 0x656e40
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x656f1c
mov ecx, 0x5ab028
call fcn.00404d00
test byte [0x5d5750], 0x20
je 0x457cce
mov ecx, 0x656d30
call fcn.00450a30
mov ecx, 0x656d30
call fcn.00405d90
mov al, 1
pop esi
add esp, 0x108
ret 8
cmp al, 1
jne 0x457d56
lea eax, [esp + 8]
push str.SaveDataEdit.bin
push eax
call fcn.00404300
add esp, 8
lea ecx, [esp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x457d56
mov eax, dword [0x656fc0]
mov ecx, dword [0x656fbc]
lea edx, [esp + 4]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x656d30
call fcn.00450a60
mov al, 1
pop esi
add esp, 0x108
ret 8
xor al, al
pop esi
add esp, 0x108
ret 8
Function at 0x4580e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
mov al, byte [ebp + 0x10]
cmp al, bl
jne 0x4581bf
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x458130
mov eax, dword [0x658e84]
cmp eax, ebx
jne 0x458113
push ebx
push ebx
push 0x658b38
call fcn.0045a390
add esp, 0xc
jmp 0x458178
cmp eax, 9
jge 0x45817d
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 4
add ecx, 0x6577e9
push ecx
push ebx
push 1
jmp 0x45816b
cmp eax, 1
jne 0x458178
mov eax, dword [0x658e84]
cmp eax, ebx
jne 0x458150
push ebx
push 0x21
push 0x658b38
call fcn.0045a390
add esp, 0xc
jmp 0x458178
cmp eax, 9
jge 0x45817d
lea edx, [eax*8]
sub edx, eax
shl edx, 4
add edx, 0x6577e9
push edx
push ebx
push 0x22
push 0x658b38
call fcn.0045a390
add esp, 0x10
mov eax, dword [0x658e84]
push edi
lea edi, [eax*8]
sub edi, eax
or ecx, 0xffffffff
shl edi, 4
add edi, 0x6577e9
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp + 0x10]
pop edi
inc al
pop esi
mov byte [ebp + 0x10], al
pop ebp
mov al, 1
pop ebx
ret
cmp al, 1
jne 0x4582ba
mov eax, dword [0x658e84]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 4
test byte [ecx + 0x657798], 8
je 0x4581f3
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], 0x1d
mov dword [ebp], edx
jmp 0x4582a3
mov eax, dword [0x657ba4]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jne 0x458209
call esi
mov dword [0x657ba4], eax
call esi
sub eax, dword [0x657ba4]
cmp eax, 0x3e8
jl 0x4582ba
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x45822c
mov al, byte [0x658e84]
push ebx
push eax
jmp 0x458239
cmp eax, 1
jne 0x45824d
mov cl, byte [0x658e84]
push eax
push ecx
mov ecx, 0x657798
call fcn.00457c40
and eax, 0xff
mov dword [0x657b9c], eax
mov byte [ebp + 0xbc], bl
mov eax, dword [0x657b9c]
cmp eax, ebx
je 0x45828d
mov edx, dword [ebp + 4]
push ebx
push ebx
push 0x43
mov ecx, 0x656120
mov dword [ebp], edx
mov dword [ebp + 0x14], 2
call fcn.00449fa0
mov byte [ebp + 0xbc], 1
mov dword [0x657ba4], ebx
mov byte [ebp + 0x10], bl
pop esi
pop ebp
mov al, 1
pop ebx
ret
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
neg ecx
sbb ecx, ecx
mov dword [ebp], eax
and ecx, 0xfffffffd
add ecx, 0xe
mov dword [ebp + 0x14], ecx
push ebx
push ebx
push 0x30
mov ecx, 0x656120
call fcn.00449fa0
mov dword [0x657ba4], ebx
mov byte [ebp + 0x10], bl
pop esi
pop ebp
mov al, 1
pop ebx
ret