joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450480
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4504cc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4504cc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4504b6
push eax
call ebp
test ax, ax
jl 0x4504c4
inc esi
add edi, 4
cmp esi, 6
jb 0x4504a8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00450180
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x45ed00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x45ed0b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x45ee0e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x493ab8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x493ab8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x493ab8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x493ab8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x493ab8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x493ab8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x493ab8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x493ab8]
xor eax, edx
inc ecx
dec edi
jne 0x45ed26
pop edi
test esi, esi
je 0x45ee30
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x493ab8]
xor eax, edx
inc ecx
dec esi
jne 0x45ee12
pop esi
pop ebx
not eax
ret
Function at 0x477514
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47754c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004755cb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004755a3
jmp 0x477558
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x478c0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x478c50
call fcn.0047eb46
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x478c50
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x478c47
xor eax, eax
jmp 0x478c58
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00478c5e
pop edi
pop esi
pop ebx
ret 4

Function at 0x47f076
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47f0a4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47f0c2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047efdc
jmp 0x47f0c2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47f0c2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047efdc
test edi, edi
mov eax, edi
jne 0x47f0ac
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407155
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x443038]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00404aa8
mov dword [ebp - 0x14], eax
cmp dword [0x448e60], edi
jne 0x407246
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4071d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x407326
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x407326
push 0x42f3a0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407326
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x448e60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x448e64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x448e68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448e70], eax
test eax, eax
je 0x407243
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448e6c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40726b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40725e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x407280
push 4
pop eax
jmp 0x407328
cmp dword [ebp - 0x14], edi
je 0x407280
push dword [0x448e60]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x407265
mov eax, dword [0x448e6c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4072de
cmp dword [0x448e70], esi
je 0x4072de
push eax
call ebx
push dword [0x448e70]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4072de
test eax, eax
je 0x4072de
call ecx
test eax, eax
je 0x4072d3
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 0x4072d3
test byte [ebp - 8], 1
jne 0x4072de
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40730e
mov eax, dword [0x448e64]
cmp eax, esi
je 0x40730b
push eax
call ebx
test eax, eax
je 0x40730b
call eax
mov edi, eax
test edi, edi
je 0x40730b
mov eax, dword [0x448e68]
cmp eax, esi
je 0x40730b
push eax
call ebx
test eax, eax
je 0x40730b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x448e60]
call ebx
test eax, eax
je 0x407326
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x407328
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015f2
leave
ret
Function at 0x4098b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi], 0x20100916
je 0x409908
push str.IMAGE::copyimage
push edi
lea eax, [ebp - 0x7c]
push str.Fatal_error:_read_write_at_0x_p._At_function__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7c]
push 0x10
push str.EGE_ERROR_message
push eax
mov eax, dword [0x448fd8]
push dword [eax + 0x5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp esi, 0x20
jae 0x409922
mov eax, dword [0x448fd8]
test esi, esi
je 0x40991f
and esi, 0xf
mov esi, dword [eax + esi*4 + 0x24]
jmp 0x409922
mov esi, dword [eax + 0x4c]
mov ecx, dword [esi + 0xc]
cmp dword [edi + 0xc], ecx
jne 0x409932
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x10]
je 0x409943
push dword [esi + 0x10]
push ecx
push 0
mov ecx, edi
call fcn.0040a2e0
test eax, eax
jne 0x40995c
mov eax, dword [edi + 0x10]
imul eax, dword [edi + 0xc]
shl eax, 2
push eax
push dword [esi + 0x14]
push dword [edi + 0x14]
call fcn.004087f0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004015f2
mov esp, ebp
pop ebp
ret 4

Function at 0x409970
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0x20100916
je 0x4099c1
push str.IMAGE::createimage
push ecx
lea eax, [ebp - 0x7c]
push str.Fatal_error:_read_write_at_0x_p._At_function__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7c]
push 0x10
push str.EGE_ERROR_message
push eax
mov eax, dword [0x448fd8]
push dword [eax + 0x5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [0x448fd8]
mov eax, dword [edx + 0x4c]
test eax, eax
jne 0x4099d5
mov eax, dword [edx + 0x48]
mov eax, dword [edx + eax*4 + 0x24]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [eax + 4]
call fcn.0040a2e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 8
Function at 0x409b90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
cmp dword [eax], 0x20100916
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x84], eax
je 0x409bf0
push str.IMAGE::getimage
push eax
lea eax, [ebp - 0x7c]
push str.Fatal_error:_read_write_at_0x_p._At_function__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7c]
push 0x10
push str.EGE_ERROR_message
push eax
mov eax, dword [0x448fd8]
push dword [eax + 0x5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test ebx, ebx
je 0x409d77
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x409d5f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409d5f
push esi
push ebx
push eax
call fcn.004087f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x90]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x409c5d
pop edi
pop esi
mov eax, 0x14
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x80]
push eax
push 0x436b48
push 1
push esi
push dword [ebp - 0x90]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
jns 0x409c9a
pop edi
pop esi
mov eax, 0xfffffff4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x448fd8]
lea edx, [ebp - 0x88]
mov ebx, dword [eax + 0x4c]
mov eax, dword [ebp - 0x80]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x9ec
push 0x58
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push dword [ebp - 0x88]
call esi
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x94], eax
mov edx, dword [ecx]
lea eax, [ebp - 0x8c]
push eax
push ecx
call dword [edx + 0x1c]
push 0x9ec
push 0x5a
push dword [ebx + 4]
call edi
push eax
push dword [ebp - 0x8c]
call esi
mov ebx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x84]
mov esi, eax
push esi
push ebx
call fcn.00409970
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x80]
push 0
mov edi, dword [eax]
mov ecx, edx
neg ecx
push ecx
push dword [ebp - 0x88]
mov ecx, dword [ebp - 0x84]
push edx
push 0
push esi
push ebx
push 0
push 0
push dword [ecx + 4]
push eax
call dword [edi + 0x20]
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 0x15
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0xfffffff4
pop ebx
call fcn.004015f2
mov esp, ebp
pop ebp
ret 8
Function at 0x409d90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x494], eax
cmp dword [edi], 0x20100916
je 0x409df1
push str.IMAGE::getimage
push edi
lea eax, [ebp - 0x7c]
push str.Fatal_error:_read_write_at_0x_p._At_function__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7c]
push 0x10
push str.EGE_ERROR_message
push eax
mov eax, dword [0x448fd8]
push dword [eax + 0x5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x43061c
push eax
call fcn.004212db
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x409e32
push esi
push ebx
mov ecx, edi
call fcn.0040a0d0
push ebx
mov esi, eax
call fcn.00408fe3
add esp, 4
test esi, esi
pop esi
jne 0x409e32
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 0xc
push 0x208
lea eax, [ebp - 0x490]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x494]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0x10]
lea eax, [ebp - 0x490]
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00409e80
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004015f2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409e80
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8b8
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx], 0x20100916
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x8b0], ebx
je 0x409ee2
push str.IMAGE::getimage
push ebx
lea eax, [ebp - 0x7c]
push str.Fatal_error:_read_write_at_0x_p._At_function__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7c]
push 0x10
push str.EGE_ERROR_message
push eax
mov eax, dword [0x448fd8]
push dword [eax + 0x5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x430620
push edi
call fcn.0042166d
add esp, 8
mov dword [ebp - 0x8ac], eax
test eax, eax
je 0x409f1a
push eax
mov ecx, ebx
call fcn.0040a0d0
push dword [ebp - 0x8ac]
mov esi, eax
call fcn.00408fe3
add esp, 4
test esi, esi
je 0x40a097
xor eax, eax
push 0x410
push eax
mov word [ebp - 0x490], ax
lea eax, [ebp - 0x48e]
push eax
call fcn.00404b30
push str.http:__
push edi
call fcn.00420f80
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x14
test eax, eax
lea eax, [ebp - 0x490]
je 0x409f59
push edi
push eax
call ebx
jmp 0x409f90
cmp word [edi + 2], 0x3a
jne 0x409f66
push edi
push eax
call ebx
jmp 0x409f90
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4305d8
lea eax, [ebp - 0x490]
push eax
call esi
push edi
lea eax, [ebp - 0x490]
push eax
call esi
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x8a4]
push eax
call ebx
lea eax, [ebp - 0x8a8]
push eax
push 0x436b48
push 0
push 0
push 0
lea eax, [ebp - 0x8a4]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromI8]
test eax, eax
jns 0x409fdb
pop edi
pop esi
mov eax, 0xfffffff4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x448fd8]
lea edx, [ebp - 0x8b4]
mov ebx, dword [eax + 0x4c]
mov eax, dword [ebp - 0x8a8]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x9ec
push 0x58
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push dword [ebp - 0x8b4]
call esi
mov ecx, dword [ebp - 0x8a8]
mov dword [ebp - 0x8ac], eax
mov edx, dword [ecx]
lea eax, [ebp - 0x8b8]
push eax
push ecx
call dword [edx + 0x1c]
push 0x9ec
push 0x5a
push dword [ebx + 4]
call edi
push eax
push dword [ebp - 0x8b8]
call esi
mov ebx, dword [ebp - 0x8ac]
mov ecx, dword [ebp - 0x8b0]
mov esi, eax
push esi
push ebx
call fcn.00409970
mov edx, dword [ebp - 0x8b8]
mov eax, dword [ebp - 0x8a8]
push 0
mov edi, dword [eax]
mov ecx, edx
neg ecx
push ecx
push dword [ebp - 0x8b4]
mov ecx, dword [ebp - 0x8b0]
push edx
push 0
push esi
push ebx
push 0
push 0
push dword [ecx + 4]
push eax
call dword [edi + 0x20]
mov eax, dword [ebp - 0x8a8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004015f2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a0d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
push 8
lea eax, [ebp - 0x14]
push 1
push eax
mov ebx, ecx
call fcn.004214b3
push 8
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0040fa40
add esp, 0x1c
test eax, eax
je 0x40a120
pop esi
mov eax, 0xfffffff4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push esi
call fcn.004215ee
push 0
push 0
push 0
push str.1.5.1
call fcn.0040fb80
add esp, 0x1c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40a161
push eax
call fcn.0040f120
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x40a176
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00410fd0
add esp, 8
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 4
push edi
push esi
push dword [ebp - 0x18]
call fcn.0040f7f0
push 0
push 0x90
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call fcn.00410940
push dword [ebp - 0x18]
call fcn.00414ea0
mov eax, dword [ebp - 0x24]
add esp, 0x1c
push dword [eax + 4]
mov ecx, ebx
push dword [eax]
push 0
call fcn.0040a2e0
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, byte [eax + 0x1e]
mov edi, dword [eax]
mov esi, dword [eax + 4]
push dword [ebp - 0x18]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], ecx
call fcn.004156f0
add esp, 8
mov ecx, eax
mov dword [ebp - 0x20], ecx
test esi, esi
je 0x40a27b
mov edx, dword [ebp - 0x28]
lea eax, [edi*4]
xor esi, esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], esi
cmp edx, 0x18
jne 0x40a223
test edi, edi
je 0x40a265
xor edx, edx
lea esp, [esp]
mov eax, dword [ecx]
lea esi, [esi + 4]
mov ecx, dword [edx + eax]
mov eax, dword [ebx + 0x14]
and ecx, 0xffffff
mov dword [esi + eax - 4], ecx
mov ecx, dword [ebp - 0x20]
lea edx, [edx + 3]
dec edi
jne 0x40a200
mov edi, dword [ebp - 0x34]
jmp 0x40a259
cmp edx, 0x20
jne 0x40a265
xor eax, eax
test edi, edi
je 0x40a262
mov edi, edi
mov ecx, dword [ecx]
mov edx, dword [ebx + 0x14]
mov ecx, dword [ecx + eax*4]
mov dword [esi + edx], ecx
mov ecx, dword [ebx + 0x14]
test dword [ecx + esi], 0xff000000
jne 0x40a24e
mov dword [ecx + esi], 0
mov ecx, dword [ebp - 0x20]
inc eax
add esi, 4
cmp eax, edi
jb 0x40a230
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
add esi, dword [ebp - 0x30]
add ecx, 4
dec eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], eax
jne 0x40a1f1
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040fdf0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.004015f2
mov esp, ebp
pop ebp
ret 4
Function at 0x40a6f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi], 0x20100916
je 0x40a748
push str.IMAGE::putimage
push edi
lea eax, [ebp - 0x7c]
push str.Fatal_error:_read_write_at_0x_p._At_function__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7c]
push 0x10
push str.EGE_ERROR_message
push eax
mov eax, dword [0x448fd8]
push dword [eax + 0x5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp esi, 0x20
jae 0x40a76d
mov eax, dword [0x448fd8]
test esi, esi
je 0x40a75f
and esi, 0xf
mov esi, dword [eax + esi*4 + 0x24]
jmp 0x40a76d
dec dword [eax + 0x1a8]
mov eax, dword [0x448fd8]
mov esi, dword [eax + 0x4c]
test esi, esi
je 0x40a7a3
push 3
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [edi + 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004015f2
mov esp, ebp
pop ebp
ret 0x28

Function at 0x40a7c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0x20100916
mov edx, dword [ebp + 8]
je 0x40a814
push str.IMAGE::putimage
push ecx
lea eax, [ebp - 0x7c]
push str.Fatal_error:_read_write_at_0x_p._At_function__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7c]
push 0x10
push str.EGE_ERROR_message
push eax
mov eax, dword [0x448fd8]
push dword [eax + 0x5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp edx, 0x20
jae 0x40a839
mov eax, dword [0x448fd8]
test edx, edx
je 0x40a82b
and edx, 0xf
mov edx, dword [eax + edx*4 + 0x24]
jmp 0x40a839
dec dword [eax + 0x1a8]
mov eax, dword [0x448fd8]
mov edx, dword [eax + 0x4c]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ecx + 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edx + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40b7e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x448fd8]
cmp dword [esi + 0x610], 0
jne 0x40b802
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x610], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x610]
pop esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4306b0]
divsd xmm0, qword [0x4306a0]
movsd qword [ebp - 8], xmm0
fld qword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40b860
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
add esi, 0x608
mov dword [ebp - 8], 0
mov eax, dword [esi]
or eax, dword [esi + 4]
mov dword [ebp - 4], 0
jne 0x40b8ac
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x448f68
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fldz
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi]
sub dword [ebp - 8], eax
mov eax, dword [esi + 4]
pop esi
sbb dword [ebp - 4], eax
fild qword [ebp - 8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fstp qword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x10]
fild qword [0x448f68]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fstp qword [ebp - 0x10]
divsd xmm0, qword [ebp - 0x10]
movsd qword [ebp - 0x10], xmm0
fld qword [ebp - 0x10]
mov esp, ebp
pop ebp
ret