joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5c70
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
cmp edi, 0xffffffff
mov dword [esp + 8], esi
je 0x4c5da6
cmp edi, dword [esi + 0x34d4]
jae 0x4c5da6
mov eax, dword [esi + 4]
push ebx
push ebp
push eax
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [edi + edi*4]
push eax
shl ecx, 5
sub ecx, edi
mov dword [esp + 0x18], eax
mov ebx, dword [esi + ecx*4 + 0xf88]
mov edx, dword [esi + ecx*4 + 0xf80]
mov ebp, dword [esi + ecx*4 + 0xf8c]
lea esi, [esi + ecx*4]
sub ebx, edx
sub ebp, dword [esi + 0xf84]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x14]
push ebp
push ebx
push edx
mov edi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x28], ebx
mov ecx, dword [ecx + 0x4634]
mov dword [esp + 0x20], eax
cmp ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
je 0x4c5d3e
call fcn.00477ff0
test eax, eax
je 0x4c5d3e
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
mov ecx, dword [eax + 0x4634]
push 0
push 0
push 0
lea edx, [esp + 0x38]
push 1
push edx
push edi
call fcn.004775e0
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push edi
call fcn.004c6120
mov eax, dword [esi + 0xf84]
mov ecx, dword [esi + 0xf80]
mov esi, dword [esp + 0x14]
push 0xcc0020
push 0
push 0
push edi
push ebp
push ebx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x18]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x10]
push esi
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20
ret 4

Function at 0x4c6450
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xd0c], eax
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x4c9330
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [esi + 0x8b8]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x290c]
test eax, eax
je 0x4c945c
mov eax, dword [esi + 0x2904]
test eax, eax
jne 0x4c93e8
mov ecx, dword [esi + 0xe8]
mov eax, dword [esi + 0x31a8]
lea edi, [esi + 0x31a8]
push ecx
mov ecx, edi
mov dword [esi + 0x2908], 1
call dword [eax + 0x34]
push 5
push 0x50b180
push 0x50b180
push str.IMG_PROGRESS
push 0x50b180
mov ecx, edi
call fcn.004b97a0
mov edx, dword [esi + 0x11c]
mov eax, dword [esi + 8]
push 1
push 0
push 0
push 2
push edx
push eax
push str.ProgressBar
mov ecx, edi
call fcn.004cad00
push 0
push 0x64
push 0
mov ecx, edi
call fcn.004b9750
test edi, edi
je 0x4c93df
mov ecx, dword [esi + 0x31b0]
lea eax, [esi + 0x31ac]
push 0
push ecx
jmp 0x4c9456
xor eax, eax
push eax
mov ecx, dword [eax + 4]
push ecx
jmp 0x4c9456
mov eax, dword [esi + 8]
mov dword [esi + 0x2908], 0
mov edx, dword [0x5e69bc]
push 0
push edx
push 2
push eax
push 0
push 0
push 0
push 0
push 0x44000001
push str.ProgressBar
push 0x50ab80
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x640000
push 0
push 0x401
push eax
mov dword [esi + 0x3b04], eax
call edi
mov ecx, dword [esi + 0x3b04]
push 0
push 0
push 0x409
push ecx
call edi
mov edx, dword [esi + 0x3b04]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 8]
push 0
push 0x1f4
push 0xc1c
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
ret
Function at 0x4ca680
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x23c
lea eax, [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xe8]
mov edi, dword [esp + 0x250]
test eax, eax
je 0x4ca702
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x24]
push edx
push eax
call ebx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
sub eax, ebp
mov ebp, dword [esp + 0x18]
sub ecx, edx
add ecx, ebp
add eax, ebx
push ecx
mov ecx, dword [esi + 0xe8]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004baae0
mov eax, dword [esi + 0x89c]
test eax, eax
jne 0x4ca875
mov ecx, dword [esi + 0x11c]
push 0
push 0
push 0x7f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
push 2
sub eax, ecx
mov dword [esi + 0x8a0], 3
sub eax, 0x10
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esi + 8]
sar ebx, 1
push eax
add ebx, ecx
lea ebp, [edx + 6]
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4ca76b
add ebp, dword [esi + 0x8a4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ca787
push 3
push 0
push 0
push 0x10
push 0x10
push eax
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esi + 0x8a0]
lea eax, [ecx + ebp + 0x10]
mov ecx, dword [esp + 0x1c]
sub ecx, 0x10
mov dword [esp + 0x14], eax
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jge 0x4ca7a8
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x11c]
lea edx, [esp + 0x44]
push 0x104
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 2
mov ecx, esi
call fcn.004c6620
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x458]
test eax, eax
je 0x4ca82b
mov ecx, dword [esi + 0x454]
push ecx
push edi
call ebp
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
push 1
lea edx, [esp + 0x18]
push 1
push edx
call ebx
lea eax, [esp + 0x14]
push 0x48824
push eax
lea ecx, [esp + 0x4c]
push 0xffffffffffffffff
push ecx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push 0xffffffffffffffff
lea edx, [esp + 0x18]
push 0xffffffffffffffff
push edx
call ebx
mov ecx, dword [esi + 0x898]
test ecx, ecx
je 0x4ca847
call fcn.004b2ff0
test eax, eax
je 0x4ca847
mov eax, dword [esi + 0x420]
push eax
jmp 0x4ca84e
mov ecx, dword [esi + 0x8a8]
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0x48824
push edx
lea eax, [esp + 0x4c]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret 4
Function at 0x4cca90
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
call fcn.004cd4a0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4ccaea
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
shr eax, 8
test al, al
jne 0x4ccac6
push 2
call edi
shr eax, 8
test al, al
je 0x4ccaea
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, dword [esi + 8]
je 0x4ccb6c
mov eax, dword [esi + 0xfc]
mov dword [esi + 0x100], 0xffffffff
cmp eax, 0xffffffff
mov dword [esi + 0xfc], 0xffffffff
mov dword [esi + 0x104], 0
je 0x4ccb1b
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1e4], 4
call dword [eax + 0x28]
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4ccb66
mov ecx, dword [esi + 8]
lea edi, [esi + 0x28]
push ecx
mov ecx, edi
call fcn.004d08e0
mov edx, dword [esi + 8]
mov ecx, edi
push edx
call fcn.004d0890
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x11c]
push eax
push 0xffffffffffffffff
push 0x37ea
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
add esp, 8
ret
Function at 0x4d0600
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xa20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x205
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xa34]
test eax, eax
jne 0x4d0674
mov eax, dword [esp + 0xa30]
lea ecx, [esp + 0x10]
push eax
push 0x4efa28
push ecx
mov dword [esp + 0x18], 0x814
call dword [sym.imp.MSVCRT.dll_swprintf]
lea edx, [esi + 0x464]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x228]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push str.ToolBar
call fcn.0048d120
add esp, 0x20
test eax, eax
je 0x4d077c
mov ecx, 0x205
xor eax, eax
lea edi, [esp + 0x218]
push str.ToolbarEx
rep stosd dword es:[edi], eax
push 0x4ef254
lea eax, [esp + 0x220]
push 9
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esi + 0xf4]
add esp, 0x10
xor ebx, ebx
test eax, eax
jle 0x4d0713
push ebp
lea edi, [esp + 0x230]
push ebx
mov ecx, esi
call fcn.004cea20
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4d0704
mov ecx, dword [esi + 0xf0]
push ebp
mov dl, byte [ecx + ebx*4]
lea ecx, [ecx + ebx*4]
mov byte [edi + 4], dl
mov ecx, dword [ecx]
mov eax, ecx
shl eax, 5
sub eax, ecx
mov ecx, dword [esi + 0xec]
shl eax, 4
mov dl, byte [eax + ecx + 0x44]
mov ecx, esi
mov byte [edi + 5], dl
call fcn.004ce3b0
test eax, eax
je 0x4d06fe
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x4d0704
mov dword [edi], 0
mov eax, dword [esi + 0xf4]
inc ebx
add edi, 8
cmp ebx, eax
jl 0x4d06b5
pop ebp
lea ebx, [esi + 0x464]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d077c
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xa30]
lea edx, [esp + 0x10]
push ecx
push 0x4efa28
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [esi + 0xf4]
add esp, 0xc
lea edx, [esp + 0x218]
lea ecx, [eax*8 + 0x14]
push ebx
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push str.ToolBar
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
pop edi
pop esi
pop ebx
add esp, 0xa20
ret 8

Function at 0x4d0930
Capabilities:
Hide graphical window

Disassembly:
call fcn.004ae890
mov ecx, eax
jmp 0x4d0be0
mov eax, dword [ecx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4d0c40
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d92bb
push eax
mov eax, 0x1260
mov dword fs:[0], esp
call fcn.004d2930
push esi
mov esi, dword [esp + 0x1274]
push edi
push 0x509668
mov edi, ecx
push esi
call fcn.00433aa0
add esp, 8
test eax, eax
je 0x4d0da2
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.00433ae0
add esp, 0x10
test eax, eax
je 0x4d0d3b
lea ecx, [esp + 0x220]
push str.iexplore.exe
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4d0cf2
lea edx, [esp + 0x220]
push 0x824
push edx
push 1
push esi
call fcn.00433ae0
add esp, 0x10
cmp word [esp + 0x220], 0
jne 0x4d0cf2
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.00433ae0
add esp, 0x10
lea ecx, [esp + 0x220]
push ecx
push 0x4ef254
push 0x824
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov word [edi + 0x1046], 0
push edi
call fcn.0048c2f0
mov ecx, dword [esp + 0x126c]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x126c
ret 4
lea ecx, [esp + 8]
call fcn.004889a0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1278], 0
call fcn.00488a70
mov esi, eax
test esi, esi
je 0x4d0d89
push esi
lea ecx, [esp + 0xc]
call fcn.00488b70
test eax, eax
je 0x4d0d7f
push 0x824
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.00488bb0
push esi
lea ecx, [esp + 0xc]
call fcn.00488ae0
lea ecx, [esp + 8]
mov dword [esp + 0x1270], 0xffffffff
call fcn.004889f0
jmp 0x4d0d17
push 0x4ef360
push esi
call fcn.00433aa0
add esp, 8
test eax, eax
push esi
je 0x4d0cfa
push 0x824
push edi
push 0x50b180
push 0x504088
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x4d0d17

Function at 0x4d12e0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov esi, eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 8]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x28
ret
Function at 0x4d1a5e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e10a8
push 0x4d29a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x4d1ae4
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x4d1abc
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x4d1aea
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x4d1ab4
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4d1ab4
mov al, 1
jmp 0x4d1ab6
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d1b49
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x5e8020]
test esi, esi
je 0x4d1b6d
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x4d1b51
pop esi
pop ecx
ret

Function at 0x4d1b70
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5e802c], eax
je 0x4d1b86
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x5e803c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4d1bd3
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x4d1bc4
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4d1bc4
push eax
call fcn.004d1c3a
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.004d2909
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4d1b95
mov dword [0x5e803c], ebx
call fcn.004d1c13
mov esi, dword [0x5e8038]
cmp esi, ebx
je 0x4d1c00
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.004d2909
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4d1be8
pop edi
mov dword [0x5e8038], ebx
mov dword [0x5e802c], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4d1ebd
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x5e8030]
push esi
test eax, eax
push edi
jne 0x4d1f27
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x4d1f25
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x4d1ee9
push 8
pop edi
jmp 0x4d1f04
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4d1f15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.004d2909
pop ecx
and dword [0x5e8034], 0
mov dword [0x5e8030], edi
mov eax, edi
jmp 0x4d1f27
mov dword [esi + 4], edi
mov eax, dword [0x5e8038]
mov dword [esi], eax
mov dword [0x5e8038], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x4d21e4
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x4d2208
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x4d220b
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x4d221e
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4d2225
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x5e8024]
mov ecx, dword [0x5e8020]
test eax, eax
jne 0x4d223f
test ecx, ecx
je 0x4d2254
mov eax, ecx
mov dword [0x5e8024], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4d2254
cmp edx, dword [ebp + 8]
jb 0x4d2254
cmp edx, dword [ebp - 4]
jbe 0x4d23ad
mov eax, ecx
test ecx, ecx
mov dword [0x5e8024], eax
je 0x4d2284
test eax, eax
je 0x4d2278
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4d2278
cmp ecx, dword [ebp + 8]
jb 0x4d2278
cmp ecx, dword [ebp - 4]
jbe 0x4d23ad
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x5e8024], eax
jne 0x4d2263
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x4d22ec
cmp edi, 0x70000000
jb 0x4d22a9
cmp edi, 0x80000000
ja 0x4d22a9
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d22ec
cmp dword [ebp - 0x10], ebx
jne 0x4d22c4
cmp dword [ebp - 0x14], ebx
jae 0x4d22d4
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x4d2294
jmp 0x4d22ec
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5e8024], eax
jne 0x4d2363
cmp esi, dword [ebp - 4]
jae 0x4d23d4
cmp esi, 0x70000000
jb 0x4d230a
cmp esi, 0x80000000
ja 0x4d230a
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d23d4
cmp dword [ebp - 0x10], ebx
jne 0x4d2358
cmp dword [ebp - 0x14], ebx
jb 0x4d2358
mov ecx, esi
and ecx, 0xffff
je 0x4d2340
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5e8024], eax
jne 0x4d2363
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x4d22ec
mov dword [eax], 0x52727464
mov eax, dword [0x5e8024]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x5e8024]
mov edx, dword [0x5e8020]
mov dword [eax + 4], edx
mov eax, dword [0x5e8024]
mov dword [0x5e8020], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x4d2395
mov eax, dword [0x5e8024]
mov dword [eax + 8], ecx
mov eax, dword [0x5e8024]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x4d23d4
cmp esi, dword [ebp - 4]
ja 0x4d23d4
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4d23d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d23db
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e10b8
push 0x4d29a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d2450
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x4d244c
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x4d244c
cmp word [eax + 0x14], 0
jne 0x4d2441
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4d2452
mov eax, ecx
jmp 0x4d243b
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0xdca584
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0xd7eecd
push ebp
mov ebp, esp
and cx, sp
mov ecx, dword [ebp + 8]
sub esp, 0x114
push esi
test ecx, ecx
jmp 0xe0fd89
je 0xd37fda
mov eax, 0x5a4d
cmp word [ecx], ax
jmp 0xd37fd4
je 0xd37fda
mov esi, dword [ebp + 0xc]
test esi, esi
jmp 0xdcf296
Function at 0x40839a
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push 0x44
mov eax, 0x5df5b3
call fcn.005bb181
and dword [ebp - 4], 0
lea eax, [ebp - 0x50]
mov esi, dword [ebp + 8]
and dword [ebp - 0x34], 0
push 0x200
push 0x10
push str.AccelSupport.cpp
push eax
mov dword [ebp - 0x38], esi
call fcn.00408f4f
add esp, 0x10
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov ecx, esi
call fcn.00408f25
mov bl, byte [ebp + 0xc]
mov dword [ebp - 0x34], edi
test bl, 8
je 0x4083f9
mov edi, 0x60bc40
push edi
call fcn.00481ae0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00409504
test bl, 0x10
je 0x408413
mov edi, str.Alt
push edi
call fcn.00481ae0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00409504
test bl, 4
je 0x40842d
mov edi, str.Shift
push edi
call fcn.00481ae0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00409504
mov ax, word [ebp + 0x10]
push 0x2e
pop ebx
cmp ax, bx
jne 0x40844c
mov edi, 0x60bc68
push edi
call fcn.00481ae0
pop ecx
push eax
push edi
jmp 0x4084f4
cmp ax, 0x2d
jne 0x408459
mov edi, 0x60bc70
jmp 0x40843e
cmp ax, 0x23
jne 0x408466
mov edi, 0x60bc78
jmp 0x40843e
cmp ax, 0x24
jne 0x408473
mov edi, str.Home
jmp 0x40843e
cmp ax, 0x22
jne 0x408480
mov edi, str.PgDown
jmp 0x40843e
cmp ax, 0x21
jne 0x40848d
mov edi, str.PgUp
jmp 0x40843e
cmp ax, 0x25
jne 0x40849a
mov edi, str.Left
jmp 0x40843e
cmp ax, 0x26
jne 0x4084a7
mov edi, 0x60bcb4
jmp 0x40843e
cmp ax, 0x27
jne 0x4084b4
mov edi, str.Right
jmp 0x40843e
cmp ax, 0x28
jne 0x4084c4
mov edi, str.Down
jmp 0x40843e
xor ecx, ecx
movzx eax, ax
push ecx
push eax
mov word [ebp - 0x30], cx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0x10
lea ecx, [ebp - 0x30]
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [ebp - 0x30]
push eax
call fcn.00481ae0
pop ecx
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.00409504
push 0x3c
push 0x2c
mov ecx, esi
call fcn.00409974
push 0x3e
push ebx
mov ecx, esi
call fcn.00409974
mov byte [ebp - 4], 0
mov eax, esi
call fcn.005bb12b
ret