joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce6b0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
push 1
push eax
mov eax, dword [ebp + 8]
call fcn.004ce664
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
pop ecx
pop ecx
test eax, eax
jne 0x4ce6e0
lea eax, [ebp - 0x28]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0x10]
call fcn.004ce664
pop ecx
pop ecx
test eax, eax
jne 0x4ce6ff
push dword [ebp + 0x10]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, 0x577458
push ebx
mov edi, str.Shell_TrayWnd
push edi
call esi
push ebx
push edi
mov dword [ebp - 8], eax
call esi
mov dword [ebp - 0x5c], 0x24
mov dword [ebp - 0x58], eax
test eax, eax
je 0x4ce746
lea eax, [ebp - 0x5c]
push eax
push 4
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
mov ebx, eax
jmp 0x4ce748
xor ebx, ebx
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
test bl, 2
je 0x4ce7af
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_SubtractRect]
test bl, 1
je 0x4ce7bc
mov eax, dword [ebp - 0x18]
cmp dword [esi], eax
je 0x4ce77f
add eax, 2
mov dword [esi], eax
jmp 0x4ce7bc
mov eax, dword [ebp - 0x10]
cmp dword [esi + 8], eax
je 0x4ce78f
add eax, 0xfffffffe
mov dword [esi + 8], eax
jmp 0x4ce7bc
mov eax, dword [ebp - 0x14]
cmp dword [esi + 4], eax
je 0x4ce79f
add eax, 2
mov dword [esi + 4], eax
jmp 0x4ce7bc
mov eax, dword [ebp - 0xc]
cmp dword [esi + 0xc], eax
je 0x4ce7bc
add eax, 0xfffffffe
mov dword [esi + 0xc], eax
jmp 0x4ce7bc
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyRect]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d19b9
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x14
mov eax, 0x55da96
call fcn.005399db
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub eax, dword [esi + 0xdc]
sub ecx, dword [esi + 0xe0]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4d19f1
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jle 0x4d1adf
lea eax, [esi + 0x24]
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x10], eax
call dword [ecx + 0x80]
test eax, eax
je 0x4d1adf
push dword [esi + 0xe0]
mov eax, esi
push dword [esi + 0xdc]
call fcn.004d0ba7
lea edi, [esi + 0x98]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov dword [ebp + 0xc], eax
sar ecx, 2
dec ecx
cmp eax, ecx
ja 0x4d1adf
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x18]
call fcn.00454fe1
push dword [ebp + 0xc]
lea edi, [ebp - 0x20]
mov eax, esi
call fcn.00425ecb
mov esi, eax
call fcn.00455001
mov esi, dword [ebp + 8]
mov eax, dword [eax]
xor ebx, ebx
xor edi, edi
inc ebx
cmp dword [esi + 0x78], edi
je 0x4d1adb
cmp eax, edi
je 0x4d1adb
mov ecx, dword [esi + 0x78]
mov edx, dword [ecx]
push eax
mov dword [0x5d7c24], ebx
call dword [edx + 0x20]
push dword [esi + 4]
mov dword [0x5d7c24], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d1adb
push ebx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4d1adb
mov dword [ebp + 8], edi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], edi
jmp 0x4d1ab0
mov esi, eax
cmp eax, edi
je 0x4d1ab0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp + 8], edi
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push esi
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4d1aa1
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x4d1adb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x4d1ae1
xor eax, eax
call fcn.00539ab3
ret 8
Function at 0x4d1fae
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x8c
mov eax, 0x5679f8
call fcn.00539a44
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4d1fd6
xor eax, eax
call fcn.00539ac7
ret 8
push 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 7
call fcn.004056b6
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x48]
call fcn.0040553f
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0xa4]
add edi, 0x98
lea esi, [ebp - 0x74]
mov dword [ebp - 0x6c], edi
call fcn.00454fe1
jmp 0x4d2166
lea esi, [ebp - 0x74]
call fcn.00455001
mov eax, dword [eax]
xor esi, esi
cmp eax, esi
je 0x4d202f
lea edi, [eax - 0x24]
mov dword [ebp - 0x68], edi
jmp 0x4d2034
mov dword [ebp - 0x68], esi
mov edi, esi
lea eax, [edi + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
test eax, eax
je 0x4d215b
lea eax, [ebp - 0x64]
push eax
mov eax, edi
call fcn.004cefbf
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x50], esi
je 0x4d2150
push ebx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00405dc5
mov byte [ebp - 4], 2
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4d207d
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4d2089
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push ecx
push eax
call edi
test eax, eax
je 0x4d218c
push ebx
push esi
push 0x580804
lea ecx, [ebp - 0x64]
call fcn.0040a8d5
cmp eax, 0xffffffff
je 0x4d2143
mov ecx, dword [ebp - 0x50]
dec ecx
cmp eax, ecx
je 0x4d2143
push ebx
inc eax
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x64]
call fcn.00405dc5
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00405304
push esi
push ebx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.004053e5
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4d20fe
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4d210a
lea eax, [ebp - 0x28]
push ecx
push eax
call edi
push esi
push ebx
test eax, eax
jne 0x4d2145
mov eax, dword [ebp - 0x68]
call fcn.004d1151
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004053e5
push esi
push ebx
lea ecx, [ebp - 0x64]
call fcn.004053e5
mov edi, ebx
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.004053e5
mov eax, edi
jmp 0x4d1fce
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004053e5
lea ecx, [ebp - 0x64]
push esi
push ebx
mov byte [ebp - 4], 0
call fcn.004053e5
lea esi, [ebp - 0x74]
call fcn.004d37f8
mov edi, dword [ebp - 0x6c]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x7c]
call fcn.00454fe1
mov edi, esi
lea esi, [ebp - 0x74]
call fcn.004d3823
test al, al
jne 0x4d2017
xor ebx, ebx
xor edi, edi
inc ebx
xor esi, esi
jmp 0x4d2132
mov eax, dword [ebp - 0x68]
push esi
push ebx
call fcn.004d1151
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004053e5
push esi
push ebx
lea ecx, [ebp - 0x64]
call fcn.004053e5
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.004053e5
mov eax, ebx
jmp 0x4d1fce
Function at 0x4d300f
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 8], edi
je 0x4d30ce
cmp dword [esi + 0x84], edi
je 0x4d3037
push edi
push edi
call fcn.004d300f
push 0x2c
lea eax, [esp + 0x20]
push edi
push eax
call fcn.00537010
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x30
call ebx
push eax
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x4d30ec
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x28]
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4d30e9
call ebx
cmp dword [esp + 0x10], eax
je 0x4d30e9
cmp dword [esp + 0x10], edi
je 0x4d30e9
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x4d30e9
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d30e9
push dword [esp + 0x10]
push edi
push 0x4d2e3d
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x84], eax
mov dword [0x5d7c2c], ebx
jmp 0x4d30e9
add esi, 0x84
mov eax, dword [esi]
cmp eax, edi
je 0x4d30e1
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi], edi
mov dword [0x5d7c2c], edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d91e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x565933
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x5afee0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
mov ebx, dword [eax + 0x5c]
jmp 0x4d93a4
push str.layout_alignWithParentIfMissing
lea ecx, [esp + 0x48]
call fcn.0040319e
and dword [esp + 0x88], 0
mov eax, dword [ebx]
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
or dword [esp + 0x88], 0xffffffff
xor esi, esi
push 0
inc esi
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1f], al
call fcn.00403211
cmp dword [ebx + 0x1d4], 0
jne 0x4d926b
cmp byte [esp + 0x17], 0
je 0x4d93a1
mov ecx, ebx
call fcn.004d6245
mov dword [esp + 0x18], eax
xor eax, eax
test dword [esp + 0x18], 0x200
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
je 0x4d9295
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
sub eax, dword [edi]
mov dword [esp + 0x1c], eax
jmp 0x4d92f9
test byte [esp + 0x18], 0x40
je 0x4d92bd
push dword [ebp + 8]
mov eax, dword [ebx]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call dword [eax + 0x78]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
jmp 0x4d92fd
push str.layout_width
lea ecx, [esp + 0x48]
call fcn.0040319e
lea ecx, [esp + 0x44]
mov dword [esp + 0x88], esi
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x24]
or dword [esp + 0x88], 0xffffffff
push 0
push esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x24], eax
call fcn.00403211
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x20]
test dword [esp + 0x18], 0x100
je 0x4d930f
mov esi, dword [edi + 0xc]
sub esi, dword [edi + 4]
jmp 0x4d932a
test byte [esp + 0x18], 0x80
je 0x4d9330
test esi, esi
jne 0x4d9370
mov eax, dword [ebx]
push edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call dword [eax + 0x78]
mov esi, dword [eax + 4]
mov dword [esp + 0x20], esi
jmp 0x4d9370
push str.layout_height
lea ecx, [esp + 0x64]
call fcn.0040319e
lea ecx, [esp + 0x60]
mov dword [esp + 0x88], 2
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x24]
or dword [esp + 0x88], 0xffffffff
push 0
mov esi, eax
push 1
lea ecx, [esp + 0x68]
mov dword [esp + 0x28], esi
call fcn.00403211
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
add edi, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], edi
add eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebx]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x4c]
mov ebx, dword [ebx + 0x64]
test ebx, ebx
jne 0x4d921a
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e4ab6
Capabilities:
Log keystrokes

Disassembly:
push 8
mov eax, 0x55eb7f
call fcn.005399db
and dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.004051ac
and dword [ebp - 4], 0
xor edx, edx
movzx eax, di
inc edx
cmp eax, 0x24
mov dword [ebp - 0x10], edx
jg 0x4e4b37
je 0x4e4b2d
mov ecx, eax
sub ecx, 0xd
je 0x4e4b23
sub ecx, 0xe
je 0x4e4b19
sub ecx, 6
je 0x4e4b0f
dec ecx
je 0x4e4b05
dec ecx
jne 0x4e4b60
push 0x590844
jmp 0x4e4c46
push str.PageDown
jmp 0x4e4c46
push str.PageUp
jmp 0x4e4c46
push 0x5907f8
jmp 0x4e4c46
push str.Enter
jmp 0x4e4c46
push str.Home
jmp 0x4e4c46
mov ecx, eax
sub ecx, 0x25
je 0x4e4c41
dec ecx
je 0x4e4c3a
dec ecx
je 0x4e4c33
dec ecx
je 0x4e4c2c
sub ecx, 5
je 0x4e4c25
cmp di, 0x30
jb 0x4e4b70
mov ecx, dword [ebp + 8]
cmp word [ecx + 2], 0x39
jbe 0x4e4b79
lea ecx, [edi - 0x41]
cmp cx, 0x19
ja 0x4e4b87
push edi
push edx
mov ecx, esi
call fcn.00406456
jmp 0x4e4c4d
lea ecx, [edi - 0x70]
cmp cx, 8
ja 0x4e4bae
push 0
push 0x46
mov ecx, esi
call fcn.0040553f
mov eax, dword [ebp + 8]
mov ax, word [eax + 2]
sub ax, 0x3f
movzx eax, ax
push 1
push eax
jmp 0x4e4c1c
cmp di, 0x79
jne 0x4e4bbb
push 0x58c394
jmp 0x4e4bd3
cmp di, 0x7a
jne 0x4e4bc8
push 0x58c38c
jmp 0x4e4bd3
cmp di, 0x7b
jne 0x4e4bdc
push 0x58c384
mov ecx, esi
call fcn.0040a9e6
jmp 0x4e4c4d
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
movsx ecx, al
cmp ecx, 0x3d
jg 0x4e4c05
je 0x4e4c14
cmp ecx, 0x27
je 0x4e4c14
cmp ecx, 0x2b
jle 0x4e4c4d
cmp ecx, 0x2f
jle 0x4e4c14
cmp ecx, 0x3b
je 0x4e4c14
jmp 0x4e4c4d
cmp ecx, 0x5b
jl 0x4e4c4d
cmp ecx, 0x5d
jle 0x4e4c14
cmp ecx, 0x60
jne 0x4e4c4d
cbw
movzx eax, ax
push eax
push 1
mov ecx, esi
call fcn.0040553f
jmp 0x4e4c4d
push str.Insert
jmp 0x4e4c46
push str.Down
jmp 0x4e4c46
push str.Right
jmp 0x4e4c46
push 0x59080c
jmp 0x4e4c46
push str.Left
mov ecx, esi
call fcn.00406430
mov eax, esi
call fcn.00539ab3
ret 4

Function at 0x4e63d2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x4e63dd
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4e648f
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x578b40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x578b40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x578b40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x578b40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x578b40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x578b40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x578b40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x578b40]
inc ecx
sub edi, 8
dec esi
jne 0x4e63f4
pop ebx
test edi, edi
je 0x4e64a8
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x578b40]
inc ecx
dec edi
jne 0x4e6493
pop esi
not eax
pop edi
ret
Function at 0x4e6b79
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4e6ba9
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e6ba4
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4e6bd1
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4e6bba
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00537090
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x4e8b34
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, eax
cmp dword [ebx + 0x24], 0
push esi
push edi
jne 0x4e8bf7
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4e8bf7
lea esi, [ebx + 0x40]
push esi
lea edi, [esi + 4]
mov eax, 0x4e8fae
call fcn.00420778
mov edi, dword [ebp + 8]
test eax, eax
je 0x4e8b87
push dword [esi + 0x10]
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x4e8b87
mov dword [esi + 0x18], eax
mov dword [esi], edi
and dword [ebp - 0x14], 0
mov dword [ebx + 0x24], edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0x30]
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x38]
add dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x34]
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x3c]
add dword [ebp - 8], eax
push ecx
mov eax, esp
and dword [eax], 0
push ecx
mov eax, esp
lea ecx, [ebp - 0x14]
mov dword [eax], ecx
push dword [ebx + 0x24]
mov eax, ebx
call fcn.004e8f5e
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, 4
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004e8ca7
xor eax, eax
inc eax
jmp 0x4e8bf9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4ed555
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x12
call esi
movzx ebx, ax
mov edi, 0x8000
push 0x11
and ebx, edi
call esi
push 0x10
and eax, edi
mov dword [ebp - 4], eax
call esi
xor ecx, ecx
and eax, edi
pop edi
pop esi
cmp ebx, ecx
pop ebx
jne 0x4ed596
cmp dword [ebp - 4], ecx
jne 0x4ed5a6
cmp eax, ecx
jne 0x4ed5ba
xor eax, eax
inc eax
jmp 0x4ed5f5
cmp dword [ebp - 4], ecx
jne 0x4ed5c7
cmp eax, ecx
jne 0x4ed5c2
push 8
pop eax
push 4
jmp 0x4ed5f4
cmp eax, ecx
jne 0x4ed5b1
push 4
pop eax
push 2
jmp 0x4ed5f4
cmp dword [ebp - 4], ecx
jne 0x4ed5e2
cmp eax, ecx
je 0x4ed5ed
push 2
xor ecx, ecx
pop eax
inc ecx
jmp 0x4ed5f5
cmp dword [ebp - 4], ecx
je 0x4ed5d7
cmp eax, ecx
jne 0x4ed5d2
push 0x40
pop eax
push 6
jmp 0x4ed5f4
cmp dword [ebp - 4], ecx
jne 0x4ed5ed
cmp eax, ecx
je 0x4ed5ed
push 0x20
pop eax
push 5
jmp 0x4ed5f4
cmp eax, ecx
je 0x4ed5ed
push 0x10
pop eax
push 3
jmp 0x4ed5f4
mov eax, 0x80
push 7
pop ecx
mov edx, dword [ebp + 8]
mov word [edx + 0x2a0], cx
mov ecx, edx
test word [ecx + 0x2a4], ax
je 0x4ed618
mov ax, word [ecx + 0x2a6]
mov word [ecx + 0x2a0], ax
leave
ret 4

Function at 0x4ed698
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
movzx eax, word [esi + 0x2a2]
movzx ecx, ax
push edi
cmp dword [ebp + 8], ecx
jne 0x4ed6b8
and dword [esi + 0x2ac], 0
jmp 0x4ed714
test ax, ax
jne 0x4ed6f0
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
mov ebx, 0x8000
mov ecx, ebx
test cx, ax
jne 0x4ed6f0
push 0x12
call edi
mov ecx, ebx
test cx, ax
jne 0x4ed6f0
push 0x11
call edi
test bx, ax
jne 0x4ed6f0
and dword [esi + 0x2ac], 0
jmp 0x4ed702
cmp dword [ebp + 8], 0x10
je 0x4ed702
cmp dword [ebp + 8], 0x12
je 0x4ed702
cmp dword [ebp + 8], 0x11
jne 0x4ed714
push esi
call fcn.004ed555
mov ecx, esi
call fcn.004ed41a
call fcn.004bbed2
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4f250e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a9d0
push 0x536eec
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 0x4f2594
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x4f256c
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x4f259a
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x4f2564
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4f2564
mov al, 1
jmp 0x4f2566
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 0x4f25f9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x5be6e0]
test esi, esi
je 0x4f261d
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 0x4f2601
pop esi
pop ecx
ret

Function at 0x4f2620
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5be6ec], eax
je 0x4f2636
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x5be6fc]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4f2683
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 0x4f2674
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4f2674
push eax
call fcn.004f26ea
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.0052f7c5
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4f2645
mov dword [0x5be6fc], ebx
call fcn.004f26c3
mov esi, dword [0x5be6f8]
cmp esi, ebx
je 0x4f26b0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0052f7c5
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4f2698
pop edi
mov dword [0x5be6f8], ebx
mov dword [0x5be6ec], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4f296d
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x5be6f0]
push esi
test eax, eax
push edi
jne 0x4f29d7
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x4f29d5
push 8
call fcn.0052fe0a
mov esi, eax
pop ecx
test esi, esi
jne 0x4f2999
push 8
pop edi
jmp 0x4f29b4
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4f29c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0052f7c5
pop ecx
and dword [0x5be6f4], 0
mov dword [0x5be6f0], edi
mov eax, edi
jmp 0x4f29d7
mov dword [esi + 4], edi
mov eax, dword [0x5be6f8]
mov dword [esi], eax
mov dword [0x5be6f8], esi
xor eax, eax
pop edi
pop esi
ret 4