joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407044
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
add ecx, eax
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044df46
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00450220
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x4070a0
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x407097
push eax
or eax, 0xffffffff
call fcn.0040dcbd
push dword [ebp - 4]
mov esi, eax
call fcn.0044dfb0
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x407d70
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push edi
push 5
pop eax
mov dword [0x47e6f0], eax
mov dword [0x47e6f4], eax
mov al, byte [0x47e80d]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x47e838], ebx
mov byte [0x47e6f8], 1
mov byte [0x47e6f9], bl
mov dword [0x47e6fc], ebx
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x47e848], eax
call esi
push ebx
push 0x10
mov byte [0x47e845], al
call esi
push ebx
push dword [0x47e848]
mov byte [0x47e842], al
call esi
push ebx
push 0xa1
mov byte [0x47e843], al
call esi
push ebx
push 0x11
mov byte [0x47e844], al
call esi
push ebx
push 0x12
mov byte [0x47e840], al
call esi
mov byte [0x47e841], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x473710]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x407e28
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x407e0f
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x407e70
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.0044e51f
add esp, 0xc
test eax, eax
mov byte [0x473712], 0x20
mov byte [0x473715], 0x20
je 0x407f02
jmp 0x407eed
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
jne 0x407e8d
mov byte [0x473712], 0x20
jmp 0x407ee6
lea eax, [ebp - 6]
push 0x46a6ec
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
jne 0x407eaa
mov byte [0x473715], 0x20
jmp 0x407efb
lea eax, [ebp - 6]
push 0x46a6f0
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x407e84
lea eax, [ebp - 6]
push 0x46a6f4
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x407efb
lea eax, [ebp - 6]
push 0x46a6f8
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
jne 0x407f02
mov byte [0x473715], 0x20
mov byte [0x473716], 0x20
mov byte [0x473713], 0x20
mov byte [0x473714], 0x20
leave
ret
Function at 0x408106
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x408120
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x4081f6
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x4081c1
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [0x4802a8], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x408193
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x4802a8]
cmp ecx, eax
mov dword [0x4802a4], eax
je 0x408188
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x4802a4]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x4081f5
cmp dword [ebp - 8], ecx
jne 0x4081f5
cmp dword [ebp - 0xc], ecx
jne 0x4081f5
mov eax, dword [0x4802a8]
cmp dword [ebp - 4], eax
jne 0x4081f5
cmp eax, dword [0x4802a4]
jne 0x4081f5
mov eax, dword [ebp + 8]
mov dword [eax + 0x14c], ecx
jmp 0x4081f5
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4081e9
push edi
push dword [0x4802a4]
push eax
call esi
mov ecx, dword [0x4802a8]
mov eax, dword [0x4802a4]
cmp ecx, eax
je 0x4081e9
push edi
push eax
push ecx
call esi
push edi
push dword [0x4802a8]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x40826c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0xc], al
mov byte [ebp - 1], al
je 0x4082ca
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov eax, esi
call fcn.004081fb
mov edi, dword [esi + 4]
push esi
call fcn.004093e2
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push dword [ebp + 8]
mov eax, esi
push 2
pop ebx
call fcn.004081fb
mov edi, dword [esi]
push esi
call fcn.004093e2
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x408415
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, 0x200
test ebp, eax
push edi
je 0x40842e
or dword [esi + 0x148], 8
test ax, 0x400
je 0x40843b
or dword [esi + 0x148], 1
mov edi, 0x100
test edi, eax
je 0x40844b
or dword [esi + 0x148], 2
mov eax, dword [esi + 0x148]
test al, 8
mov ebx, 0x800
je 0x408467
test ebx, eax
je 0x408467
xor eax, 8
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x148]
test al, 1
je 0x40847e
test edi, eax
je 0x40847e
xor eax, 1
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x148]
test al, 2
je 0x408495
test ebp, eax
je 0x408495
xor eax, 2
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x148]
test al, 0x10
je 0x4084ae
test ax, 0x1000
je 0x4084ae
xor eax, 0x10
mov dword [esi + 0x148], eax
cmp dword [esi + 0x14c], 0
je 0x408509
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x148]
test ebx, eax
jne 0x4084d1
mov byte [esp + 0x21], 0
test edi, eax
jne 0x4084da
mov byte [esp + 0x22], 0
test ebp, eax
jne 0x4084ee
mov ecx, dword [esi + 0x158]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x4084f9
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x4085ff
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x40852a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40853e
test dword [esi + 0x148], ebx
jne 0x40853e
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.00408e41
push 0x12
call ebp
test di, ax
jne 0x408554
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40856b
test word [esi + 0x148], 0x100
jne 0x40856b
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.00408e41
push dword [esi + 0x158]
call ebp
test di, ax
jne 0x408589
push dword [esi + 0x158]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4085a3
test word [esi + 0x148], 0x200
jne 0x4085a3
mov eax, dword [esi + 0x158]
push 0
mov ecx, esi
call fcn.00408e41
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x4085bc
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4085d2
test word [esi + 0x148], 0x400
jne 0x4085d2
push 0
mov eax, ebx
mov ecx, esi
call fcn.00408e41
push 0x5b
call ebp
test di, ax
jne 0x4085e8
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4085ff
test word [esi + 0x148], 0x1000
jne 0x4085ff
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.00408e41
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x408609
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebx
mov ebx, dword [esp + 0x10c]
cmp dword [ebx + 0x14c], 0
je 0x4086c2
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x40864e
test word [ebx + 0x148], 0x800
jne 0x40864e
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x408664
test word [ebx + 0x148], 0x100
jne 0x408664
or dword [esp + 4], 1
mov ecx, dword [ebx + 0x158]
cmp byte [esp + ecx + 8], al
je 0x408676
cmp byte [esp + 0x18], al
jne 0x408686
test word [ebx + 0x148], 0x200
jne 0x408686
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x40869f
test word [ebx + 0x148], 0x400
jne 0x40869f
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x4087a4
test word [ebx + 0x148], 0x1000
jne 0x4087a4
or dword [esp + 4], 0x10
jmp 0x4087a4
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
test si, ax
jne 0x4086e8
push 0x11
call ebp
test si, ax
je 0x4086fb
test word [ebx + 0x148], 0x800
jne 0x4086fb
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x40870d
push 0x12
call ebp
test si, ax
je 0x40871d
test word [ebx + 0x148], 0x100
jne 0x40871d
or dword [esp + 0x10], 1
add ebx, 0x158
push dword [ebx]
call edi
test si, ax
jne 0x408735
push dword [ebx]
call ebp
test si, ax
je 0x40874c
mov eax, dword [esp + 0x118]
test word [eax + 0x148], 0x200
jne 0x40874c
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x408761
push ebx
call ebp
test si, ax
je 0x408778
mov eax, dword [esp + 0x118]
test word [eax + 0x148], 0x400
jne 0x408778
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x40878a
push 0x5b
call ebp
test si, ax
je 0x4087a1
mov eax, dword [esp + 0x118]
test word [eax + 0x148], 0x1000
jne 0x4087a1
or dword [esp + 0x10], 0x10
pop edi
pop esi
pop ebp
mov eax, dword [esp + 4]
pop ebx
add esp, 0x104
ret 4
Function at 0x4088ca
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 8]
test bl, 0x1f
push edi
je 0x408ae4
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x408a56
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x408a56
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x40891a
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x408938
mov eax, dword [esi + 0x158]
or byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
or byte [eax], cl
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x14], 4
je 0x40894a
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x408959
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x408968
or byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test edi, edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, 0x100
je 0x40899d
movzx eax, byte [esi + 0x155]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x14c]
call edi
cmp dword [ebp - 0x10], 0
je 0x4089c0
movzx eax, byte [esi + 0x153]
shl eax, 0x10
or eax, 1
push eax
push dword [esi + 0x158]
push ebx
push dword [esi + 0x14c]
call edi
cmp dword [ebp - 0x14], 0
je 0x4089df
movzx eax, byte [esi + 0x154]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x14c]
call edi
cmp dword [ebp - 8], 0
je 0x4089fe
movzx eax, byte [esi + 0x150]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x14c]
call edi
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x408adb
cmp dword [ebp - 8], eax
jne 0x408a2f
test word [ebp + 8], 0x800
jne 0x408a2f
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x408a49
cmp dword [ebp - 0xc], eax
je 0x408adb
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x14c]
call edi
jmp 0x408adb
test bl, 0x10
je 0x408a6e
movzx eax, byte [esi + 0x155]
push eax
push 0x5b
xor ebx, ebx
mov eax, esi
call fcn.004081fb
test byte [ebp + 8], 2
je 0x408a8d
movzx eax, byte [esi + 0x153]
push eax
movzx eax, byte [esi + 0x158]
push eax
xor ebx, ebx
mov eax, esi
call fcn.004081fb
test byte [ebp + 8], 4
je 0x408aa9
movzx eax, byte [esi + 0x154]
push eax
push 0xa1
xor ebx, ebx
mov eax, esi
call fcn.004081fb
test byte [ebp + 8], 8
je 0x408ac2
movzx eax, byte [esi + 0x150]
push eax
push 0x11
xor ebx, ebx
mov eax, esi
call fcn.004081fb
test byte [ebp + 8], 1
je 0x408adb
movzx eax, byte [esi + 0x151]
push eax
push 0x12
xor ebx, ebx
mov eax, esi
call fcn.004081fb
mov edi, dword [esi + 4]
push esi
call fcn.004093e2
pop edi
pop ebx
leave
ret 4
Function at 0x408aea
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x408d03
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x408c7d
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x408c7d
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
and eax, 1
mov dword [ebp - 0x10], eax
mov ebx, 0x101
je 0x408b66
test byte [ebp + 8], 8
jne 0x408b66
test word [ebp + 8], 0x800
jne 0x408b66
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x408b7d
test eax, eax
je 0x408b85
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x14c]
call edi
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 8], eax
je 0x408bab
movzx eax, byte [esi + 0x150]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x14c]
call edi
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0xc], eax
je 0x408bd5
movzx eax, byte [esi + 0x153]
shl eax, 0x10
or eax, 0xc0000001
push eax
push dword [esi + 0x158]
push ebx
push dword [esi + 0x14c]
call edi
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x14], eax
je 0x408bfb
movzx eax, byte [esi + 0x154]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x14c]
call edi
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x408c21
movzx eax, byte [esi + 0x155]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x14c]
call edi
xor edx, edx
cmp dword [ebp + 8], edx
mov cl, 0x80
je 0x408c30
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x408c4a
mov eax, dword [esi + 0x158]
xor byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
xor byte [eax], cl
cmp dword [ebp - 0x14], edx
je 0x408c58
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x408c63
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x408c6e
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408cfb
test byte [ebp + 8], 1
push 2
pop ebx
je 0x408c97
movzx eax, byte [esi + 0x151]
push eax
push 0x12
mov eax, esi
call fcn.004081fb
test byte [ebp + 8], 8
je 0x408cae
movzx eax, byte [esi + 0x150]
push eax
push 0x11
mov eax, esi
call fcn.004081fb
test byte [ebp + 8], bl
je 0x408cca
movzx eax, byte [esi + 0x153]
push eax
movzx eax, byte [esi + 0x158]
push eax
mov eax, esi
call fcn.004081fb
test byte [ebp + 8], 4
je 0x408ce4
movzx eax, byte [esi + 0x154]
push eax
push 0xa1
mov eax, esi
call fcn.004081fb
test byte [ebp + 8], 0x10
je 0x408cfb
movzx eax, byte [esi + 0x155]
push eax
push 0x5b
mov eax, esi
call fcn.004081fb
mov edi, dword [esi]
push esi
call fcn.004093e2
pop edi
pop ebx
leave
ret 4
Function at 0x408d2e
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp dword [edi + 0x14c], 0
mov esi, eax
je 0x408e04
cmp ebx, 0x14
je 0x408e04
cmp ebx, 0x90
je 0x408e04
cmp ebx, 0x91
je 0x408e04
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + ebx - 0x104], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
xor edx, edx
shl esi, 0x10
inc edx
or esi, edx
cmp byte [ebp + 8], dl
je 0x408dba
cmp ebx, 0x2d
je 0x408db4
mov eax, ebx
call fcn.004087b2
jmp 0x408db6
mov al, dl
cmp al, dl
jne 0x408dc0
or esi, 0x1000000
mov ecx, dword [edi + 0x148]
test dl, cl
mov eax, 0x100
jne 0x408dd8
test eax, ecx
jne 0x408dd8
cmp ebx, 0x12
jne 0x408df3
test cl, 8
jne 0x408df3
test cx, 0x800
jne 0x408df3
or esi, 0x20000000
push esi
push ebx
push 0x104
jmp 0x408df6
push esi
push ebx
push eax
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x408e31
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x408e26
cmp ebx, 0x2d
je 0x408e1a
mov eax, ebx
call fcn.004087b2
jmp 0x408e1c
mov al, dl
cmp al, dl
je 0x408e26
push esi
push ebx
xor ebx, ebx
jmp 0x408e2a
push esi
push ebx
mov ebx, edx
mov eax, edi
call fcn.004081fb
push edi
mov edi, dword [edi + 4]
call fcn.004093e2
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408e41
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp dword [edi + 0x14c], 0
mov esi, eax
je 0x408f1a
cmp ebx, 0x14
je 0x408f1a
cmp ebx, 0x90
je 0x408f1a
cmp ebx, 0x91
je 0x408f1a
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp byte [ebp + 8], 1
je 0x408eba
cmp ebx, 0x2d
je 0x408eb4
mov eax, ebx
call fcn.004087b2
jmp 0x408eb6
mov al, 1
cmp al, 1
jne 0x408ec0
or esi, 0x1000000
mov eax, dword [edi + 0x148]
test al, 1
jne 0x408ed5
test ax, 0x100
jne 0x408ed5
cmp ebx, 0x12
jne 0x408eee
test al, 8
jne 0x408eee
test ax, 0x800
jne 0x408eee
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x408ef5
push esi
push ebx
push 0x101
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp + ebx - 0x104]
xor byte [eax], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408f46
cmp byte [ebp + 8], 1
je 0x408f3a
cmp ebx, 0x2d
je 0x408f2e
mov eax, ebx
call fcn.004087b2
jmp 0x408f30
mov al, 1
cmp al, 1
je 0x408f3a
push esi
push ebx
push 2
jmp 0x408f3e
push esi
push ebx
push 3
pop ebx
mov eax, edi
call fcn.004081fb
push edi
mov edi, dword [edi]
call fcn.004093e2
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4093e2
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x409476
jne 0x4093fa
push 0
jmp 0x409470
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x11d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40946f
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40946f
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x46d808]
call fcn.004643a6
cmp eax, edi
jb 0x40942d
jmp 0x409476
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40947d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x40949b
xor al, al
jmp 0x4095b5
push eax
call fcn.0040d4ad
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [edi], bl
mov byte [esi], bl
mov byte [ecx], bl
call fcn.0044e5e0
inc eax
push eax
call fcn.0044df46
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x4094df
cmp al, 0x5e
je 0x4094db
cmp al, 0x21
je 0x4094db
cmp al, 0x23
jne 0x409503
cmp al, 0x2b
jne 0x4094e4
mov eax, dword [ebp + 0xc]
jmp 0x4094f4
cmp al, 0x5e
jne 0x4094ed
mov byte [esi], 1
jmp 0x409500
cmp al, 0x21
jne 0x4094f9
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x409500
cmp al, 0x23
jne 0x409500
mov byte [edi], 1
inc ebx
jmp 0x4094c5
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x409565
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.004093a5
test eax, eax
jne 0x409551
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x473398]
call fcn.0044dd98
test eax, eax
pop ecx
pop ecx
je 0x409543
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x409524
cmp esi, 0x62
je 0x409551
cmp byte [esi + 0x473520], 0
je 0x409557
mov byte [ebp - 1], 0
jmp 0x409597
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x409597
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 8]
movsx eax, ax
test ax, 0x200
mov dword [ecx], eax
je 0x40957f
mov byte [esi], 1
test ax, 0x400
je 0x40958b
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x409597
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044dfb0
push dword [ebp - 8]
call fcn.0044dfb0
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x409653
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x40966f
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x409687
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x409759
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x24], ebx
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call esi
push 1
push edi
push ebx
call esi
push 1
push dword [esp + 0x14]
push edi
call esi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x40973f
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push ebp
push dword [esp + 0x14]
push ebx
call esi
push ebp
push edi
push ebx
call esi
push ebp
push dword [esp + 0x14]
push edi
call esi
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4