joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469ad8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x469aef
add esp, 0xfffffff0
call fcn.00403dd0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042444c
mov eax, dword [0x4afbb4]
cmp word [eax + 2], 0
jne 0x469b17
mov eax, dword [0x4afbb4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b258
mov eax, dword [0x4afcd0]
cmp word [eax + 2], 0
jne 0x469b31
mov eax, dword [0x4afcd0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b450
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b4fc]
call fcn.00403a7c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b4fc]
call fcn.00403a7c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x427010]
call fcn.0042ea04
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x469cb8
mov eax, dword [0x4afa5c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042edd4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46ba00
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4afa5c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e134
test eax, eax
je 0x469c26
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409c5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e15c
test eax, eax
je 0x469c3a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404bd0
mov eax, dword [0x4af898]
cmp byte [eax], 0
jne 0x469c6e
mov eax, ebx
call fcn.00469de0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0046bbdc
mov eax, ebx
call fcn.0046c5a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x469cae
call fcn.00403e28
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a060
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b0bec]
cmp dword [eax + 0x30], 0
je 0x46a10a
cmp dword [ebx + 0x94], 0
jne 0x46a104
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x469ff0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46a104
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46a0ca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46a104
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041dc94
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46a0d9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46ac6c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46aca1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a50
jmp 0x46acae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46bdb8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46bdf9
mov eax, esi
call fcn.00451e68
test al, al
je 0x46bdf9
mov eax, dword [ebx + 0x84]
call fcn.00451b64
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46bdf9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00451b64
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46da84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46dce4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x46dae7
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0046d5d4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dca8
cmp al, 1
jne 0x46dae7
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0046d89c
test al, al
je 0x46dc73
cmp dword [ebp - 8], 0
jge 0x46db05
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046d5d4
mov eax, dword [ebp - 0x210]
call fcn.00404c20
cmp ebx, eax
jge 0x46db4f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0046d5d4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4afea8]
and eax, 0xff
bt dword [edx], eax
jae 0x46db4f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x46db63
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046da60
cmp ebx, dword [ebp - 8]
je 0x46dc65
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x46db8f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ca8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4af1e4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x46dc52
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ca8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4af1e4]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00451b64
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ca8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4af1e4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00451b64
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dc59
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x46dcc6
cmp dword [ebp - 8], 0
jge 0x46dc7e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0046d5d4
mov eax, dword [ebp - 0x218]
call fcn.00404c20
cmp eax, dword [ebp - 8]
jg 0x46dcb8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0046d5d4
mov eax, dword [ebp - 0x21c]
call fcn.00404c20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046da60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dceb
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404984
ret
Function at 0x471f24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e10
xor eax, eax
push ebp
push 0x471f75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404e20
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x471f59
test al, 0x10
jne 0x471f5d
xor ebx, ebx
jmp 0x471f5f
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471f7c
lea eax, [ebp - 4]
call fcn.00404960
ret

Function at 0x47f788
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x47f7c0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47f79e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47f7ad
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47f7bc
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x49a8cc
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x49a8f1
cmp dword [esp + 4], 5
jb 0x49a8f1
mov al, 1
jmp 0x49a8f3
xor eax, eax
add esp, 0x94
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov ebx, 0x1f4
push eax
push ebx
push 2
push 0
push 0
push 0x10
mov esi, ecx
call fcn.00401940
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push eax
call edi
push 0x7d0
mov ecx, esi
call fcn.004011e9
mov ecx, esi
call fcn.0040119d
test al, al
je 0x401282
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0xf060
push 0x112
call fcn.00401940
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011e9
mov ecx, esi
call fcn.0040119d
test al, al
je 0x4012b0
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 0x12
call fcn.00401940
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011e9
mov ecx, esi
call fcn.0040119d
test al, al
je 0x4012de
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 2
call fcn.00401940
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011e9
mov esi, dword [esi + 0x10]
test esi, esi
je 0x4012ee
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401af5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040243f
and dword [esi + 0x130], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [esi + 0x134]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call fcn.00401c24
mov ecx, esi
call fcn.0040237f
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.00401c0a
mov ebx, 0x41c3bc
push ebx
push edi
call fcn.00410f50
add esp, 0x10
jmp 0x401b67
push ebx
push edi
call fcn.00410f50
inc eax
push eax
push edi
call fcn.004116a0
push ebx
push edi
call fcn.00410f50
add esp, 0x18
test eax, eax
jne 0x401b4e
mov ebx, 0x41c3b8
push ebx
push edi
call fcn.00410f50
pop ecx
pop ecx
jmp 0x401b94
push ebx
push edi
call fcn.00410f50
inc eax
push eax
push edi
call fcn.004116a0
push ebx
push edi
call fcn.00410f50
add esp, 0x18
test eax, eax
jne 0x401b7b
push edi
call fcn.00411620
lea eax, [eax + esi + 0x21]
mov dword [esp], 0x41c3b4
push eax
call fcn.004116a0
pop ecx
lea eax, [esp + 0x10]
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401bd1
push str.RAW_001.exe
push edi
call fcn.004116a0
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push edi
mov ecx, esi
call fcn.0040245a
lea eax, [esi + 0x128]
mov ecx, esi
push eax
call fcn.00402456
push eax
push esi
push str.ReflexiveArcadeRAW_002.wdt
mov ecx, esi
call fcn.004010b4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x401f2b
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
mov edi, ecx
call fcn.004117c0
push dword [edi + 0x130]
lea eax, [ebp - 0xc48]
mov dword [ebp - 0x4c], esi
push dword [ebp + 8]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [edi + 0x134]
push eax
push ebx
push 4
push ebx
push ebx
lea eax, [ebp - 0xc48]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [edi + 0x18]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x402059
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], ebx
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x401ffd
push dword [edi + 0x128]
lea ecx, [ebp - 0x448]
call fcn.0040575b
cmp dword [esi], ebx
mov dword [ebp + 8], ebx
jbe 0x40200a
lea ecx, [ebp - 0x448]
call fcn.00401172
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 8]
add ecx, edx
sub byte [ecx], al
inc edx
cmp edx, dword [esi]
mov dword [ebp + 8], edx
jb 0x401fde
jmp 0x40200a
push str.Could_not_Read_encrypted_EXE.
push ebx
call fcn.0040582a
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [0x422298], ebx
je 0x402050
mov ecx, edi
call fcn.004020f6
push str.The_integration_header_was_not_valid._The_process_memory_was_mapped_incorrectly.
push dword [edi + 0x18]
call fcn.00402069
pop ecx
push eax
call fcn.0040582a
push dword [edi + 0x18]
call fcn.00401e10
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4020d8
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4020e6
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x4020e7
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4020f5
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x4020f6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edi, [ebx + 8]
mov eax, dword [edi]
test eax, eax
je 0x402119
push eax
call esi
and dword [edi], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x402127
push eax
call esi
and dword [ebx + 0xc], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00404e90
mov ecx, eax
call fcn.00404f12
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
push dword [ebp - 4]
call esi
push 2
push 0
push 2
push edi
mov ecx, ebx
call fcn.004011e5
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 8]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x40219a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push str.GameWrapper:_Duplicate_Pause_Event_failed__last_error__x_n
push eax
call fcn.00411818
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
push 0
lea eax, [ebx + 0xc]
push 2
push eax
mov ecx, ebx
call fcn.004011e5
push eax
push dword [ebp - 4]
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x4021e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push str.GameWrapper:_Duplicate_Timeout_Event_failed__last_error__x_n
push eax
call fcn.00411818
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x4022a4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
push 0x100
mov dword [ebp + 8], edi
push dword [ebx + 0x2c]
call fcn.00401023
push eax
push edi
call fcn.00401db3
add esp, 0x10
test eax, eax
jne 0x4022d9
xor al, al
jmp 0x40237a
movzx ecx, word [esi + 0x14]
mov edi, eax
sub edi, dword [ebp + 8]
and dword [ebp + 8], 0
lea edx, [ecx + esi + 0x18]
movzx ecx, word [esi + 6]
test ecx, ecx
mov dword [ebp - 4], ecx
jle 0x402313
mov ecx, dword [edx + 0x14]
cmp edi, ecx
jb 0x402305
mov esi, dword [edx + 0x10]
add esi, ecx
cmp edi, esi
jb 0x402313
add edx, 0x28
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jl 0x4022f5
mov ecx, dword [edx + 0xc]
sub ecx, dword [edx + 0x14]
mov edx, dword [ebx + 0xc]
add ecx, dword [edx + 0x34]
add ecx, edi
mov dword [0x422294], ecx
cmp dword [eax + 0x100], 0x100
jne 0x402354
cmp byte [eax + 0x105], 0
jne 0x402354
add ecx, 0x100
mov dword [0x42229c], 0xc
mov dword [0x422298], ecx
jmp 0x402378
add ecx, 0x104
push 0x18
mov dword [0x422298], ecx
mov eax, dword [eax + 0x100]
pop ecx
mov dword [0x42229c], eax
cmp eax, ecx
jb 0x402378
mov dword [0x42229c], ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40245a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
cmp dword [ecx + 4], ebx
mov dword [ebp - 0xc], ecx
jne 0x402545
push esi
push edi
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 3
push ebx
mov edi, 0x80000000
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
setne al
push str.Game_files_are_corrupt__please_re_install_game_and_try_again.
push eax
call fcn.0040582a
pop ecx
pop ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [str.ReflexiveArcadeBackground.jpg], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x41c55c
je 0x402535
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 1
push edi
push dword [eax]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4024ff
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x10]
add dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40252a
cmp byte [ebp + 0xc], bl
jne 0x40252a
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x110]
push str.file__s_missing_
push eax
call fcn.00411818
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.0040582a
add esp, 0x14
add dword [ebp + 8], 4
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
jne 0x4024ce
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax + 4], ecx
mov al, 1
pop ebx
leave
ret 8

Function at 0x40254c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 0x10]
push ebx
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
push str.Could_not_get_file_size
mov dword [esi], eax
setne al
push eax
call fcn.0040582a
push dword [esi]
call fcn.00410e85
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ebx
push ebx
push ecx
push dword [esi]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4025bd
mov eax, dword [esi]
cmp eax, dword [ebp + 8]
jne 0x4025bd
mov bl, 1
push str.There_was_an_error_in_reading_the_file_contents_into_memory.
push ebx
call fcn.0040582a
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4026cb
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
xor ecx, ecx
or dword [esi], 0xffffffff
or dword [esi + 0x10], 0xffffffff
or dword [esi + 8], 0xffffffff
push edi
mov dword [esi + 4], ecx
mov dword [esi + 0x14], ecx
mov edi, dword [eax + 0x28]
mov dword [ebp + 0xc], ecx
mov dword [esi + 0xc], edi
movzx edx, word [eax + 0x14]
lea edx, [edx + eax + 0x18]
movzx eax, word [eax + 6]
cmp eax, ecx
mov dword [ebp + 8], eax
jbe 0x402732
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 8]
cmp ecx, eax
jae 0x402716
mov eax, ecx
mov ebx, dword [edx + 0xc]
cmp edi, ebx
jb 0x402724
lea ecx, [ebx + eax]
cmp edi, ecx
jb 0x402749
inc dword [ebp + 0xc]
add edx, 0x28
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jb 0x40270a
push str.Error_calculating_file_offset__what_type_of_PE_file_is_this___
push 0
call fcn.0040582a
pop ecx
xor al, al
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, dword [ebp + 0xc]
sub edi, ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
mov dword [esi + 8], edi
mov ecx, dword [edx + 0x14]
add ecx, edi
sub eax, edi
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 4]
mov ebx, eax
call fcn.0040265e
test al, al
je 0x40278b
mov edi, 0x80
push str.The_Code_Section_is_not_long_enough_to_encode.
cmp ebx, edi
sbb al, al
inc al
push eax
call fcn.0040582a
pop ecx
mov dword [esi + 0x14], edi
pop ecx
jmp 0x40278e
mov dword [esi + 0x14], ebx
mov al, 1
jmp 0x402742

Function at 0x402820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push str.ReflexiveArcadeRAW_004.wdt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40287a
push ebx
lea eax, [ebp - 4]
push esi
push eax
mov esi, 0x4222c4
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
je 0x40287a
cmp dword [ebp - 4], 8
jne 0x40287a
mov eax, esi
jmp 0x40287c
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x402880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push str.ReflexiveArcadeRAW_004.wdt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4028dd
lea eax, [ebp - 4]
push 0
push eax
push 8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xb], 0
je 0x4028d9
cmp dword [ebp - 4], 8
jne 0x4028d9
xor eax, eax
inc eax
jmp 0x4028df
xor eax, eax
jmp 0x4028df
xor al, al
pop esi
leave
ret 4
Function at 0x4033e5
Capabilities:
Create thread
Print debug messages

Disassembly:
push esi
mov esi, ecx
fld dword [esi + 0x18]
fcomp dword [0x41a2a4]
fnstsw ax
test ah, 0x41
je 0x403417
call fcn.00406803
test al, al
jne 0x403417
push 0
push str.Demo_Expired
push str.Thank_you_for_playing__your_demo_has_expired._nBuy_now_to_upgrade_instantly.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret
mov ecx, esi
call fcn.00403b6f
call fcn.00401029
mov ecx, eax
call fcn.0040119d
test al, al
jne 0x403415
call fcn.00401029
mov ecx, eax
call fcn.0040105e
mov ecx, esi
call fcn.0040344d
test al, al
je 0x403415
mov ecx, esi
pop esi
jmp fcn.004035d9