joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b03
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.0044d086
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.0044f370
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x406b5f
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x406b56
push eax
or eax, 0xffffffff
call fcn.0040d6fa
push dword [ebp - 4]
mov esi, eax
call fcn.0044d0f0
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x4077eb
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 [0x47d790], eax
mov dword [0x47d794], eax
mov al, byte [0x47d8a9]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x47d8d4], ebx
mov byte [0x47d798], 1
mov byte [0x47d799], bl
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x47d8e4], eax
call esi
push ebx
push 0x10
mov byte [0x47d8e1], al
call esi
push ebx
push dword [0x47d8e4]
mov byte [0x47d8de], al
call esi
push ebx
push 0xa1
mov byte [0x47d8df], al
call esi
push ebx
push 0x11
mov byte [0x47d8e0], al
call esi
push ebx
push 0x12
mov byte [0x47d8dc], al
call esi
mov byte [0x47d8dd], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x4727b8]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x40789d
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x407884
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x4078e5
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.0044d65f
add esp, 0xc
test eax, eax
mov byte [0x4727ba], 0x20
mov byte [0x4727bd], 0x20
je 0x407977
jmp 0x407962
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
jne 0x407902
mov byte [0x4727ba], 0x20
jmp 0x40795b
lea eax, [ebp - 6]
push 0x4698ec
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
jne 0x40791f
mov byte [0x4727bd], 0x20
jmp 0x407970
lea eax, [ebp - 6]
push 0x4698f0
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x4078f9
lea eax, [ebp - 6]
push 0x4698f4
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x407970
lea eax, [ebp - 6]
push 0x4698f8
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
jne 0x407977
mov byte [0x4727bd], 0x20
mov byte [0x4727be], 0x20
mov byte [0x4727bb], 0x20
mov byte [0x4727bc], 0x20
leave
ret
Function at 0x407b64
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x407b7e
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x407c54
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 0x407c1f
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 [0x47f340], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x407bf1
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x47f340]
cmp ecx, eax
mov dword [0x47f33c], eax
je 0x407be6
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x47f33c]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x407c53
cmp dword [ebp - 8], ecx
jne 0x407c53
cmp dword [ebp - 0xc], ecx
jne 0x407c53
mov eax, dword [0x47f340]
cmp dword [ebp - 4], eax
jne 0x407c53
cmp eax, dword [0x47f33c]
jne 0x407c53
mov eax, dword [ebp + 8]
mov dword [eax + 0x148], ecx
jmp 0x407c53
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x407c47
push edi
push dword [0x47f33c]
push eax
call esi
mov ecx, dword [0x47f340]
mov eax, dword [0x47f33c]
cmp ecx, eax
je 0x407c47
push edi
push eax
push ecx
call esi
push edi
push dword [0x47f340]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x407cca
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 0x407d28
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.00407c59
mov edi, dword [esi + 4]
push esi
call fcn.00408e40
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.00407c59
mov edi, dword [esi]
push esi
call fcn.00408e40
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x407e73
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, 0x200
test ebp, eax
push edi
je 0x407e8c
or dword [esi + 0x144], 8
test ax, 0x400
je 0x407e99
or dword [esi + 0x144], 1
mov edi, 0x100
test edi, eax
je 0x407ea9
or dword [esi + 0x144], 2
mov eax, dword [esi + 0x144]
test al, 8
mov ebx, 0x800
je 0x407ec5
test ebx, eax
je 0x407ec5
xor eax, 8
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 1
je 0x407edc
test edi, eax
je 0x407edc
xor eax, 1
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 2
je 0x407ef3
test ebp, eax
je 0x407ef3
xor eax, 2
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 0x10
je 0x407f0c
test ax, 0x1000
je 0x407f0c
xor eax, 0x10
mov dword [esi + 0x144], eax
cmp dword [esi + 0x148], 0
je 0x407f67
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x144]
test ebx, eax
jne 0x407f2f
mov byte [esp + 0x21], 0
test edi, eax
jne 0x407f38
mov byte [esp + 0x22], 0
test ebp, eax
jne 0x407f4c
mov ecx, dword [esi + 0x154]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x407f57
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40805d
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x407f88
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x407f9c
test dword [esi + 0x144], ebx
jne 0x407f9c
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.0040889f
push 0x12
call ebp
test di, ax
jne 0x407fb2
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x407fc9
test word [esi + 0x144], 0x100
jne 0x407fc9
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.0040889f
push dword [esi + 0x154]
call ebp
test di, ax
jne 0x407fe7
push dword [esi + 0x154]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x408001
test word [esi + 0x144], 0x200
jne 0x408001
mov eax, dword [esi + 0x154]
push 0
mov ecx, esi
call fcn.0040889f
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x40801a
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x408030
test word [esi + 0x144], 0x400
jne 0x408030
push 0
mov eax, ebx
mov ecx, esi
call fcn.0040889f
push 0x5b
call ebp
test di, ax
jne 0x408046
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40805d
test word [esi + 0x144], 0x1000
jne 0x40805d
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.0040889f
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x408067
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebx
mov ebx, dword [esp + 0x10c]
cmp dword [ebx + 0x148], 0
je 0x408120
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x4080ac
test word [ebx + 0x144], 0x800
jne 0x4080ac
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x4080c2
test word [ebx + 0x144], 0x100
jne 0x4080c2
or dword [esp + 4], 1
mov ecx, dword [ebx + 0x154]
cmp byte [esp + ecx + 8], al
je 0x4080d4
cmp byte [esp + 0x18], al
jne 0x4080e4
test word [ebx + 0x144], 0x200
jne 0x4080e4
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x4080fd
test word [ebx + 0x144], 0x400
jne 0x4080fd
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x408202
test word [ebx + 0x144], 0x1000
jne 0x408202
or dword [esp + 4], 0x10
jmp 0x408202
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 0x408146
push 0x11
call ebp
test si, ax
je 0x408159
test word [ebx + 0x144], 0x800
jne 0x408159
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x40816b
push 0x12
call ebp
test si, ax
je 0x40817b
test word [ebx + 0x144], 0x100
jne 0x40817b
or dword [esp + 0x10], 1
add ebx, 0x154
push dword [ebx]
call edi
test si, ax
jne 0x408193
push dword [ebx]
call ebp
test si, ax
je 0x4081aa
mov eax, dword [esp + 0x118]
test word [eax + 0x144], 0x200
jne 0x4081aa
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x4081bf
push ebx
call ebp
test si, ax
je 0x4081d6
mov eax, dword [esp + 0x118]
test word [eax + 0x144], 0x400
jne 0x4081d6
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x4081e8
push 0x5b
call ebp
test si, ax
je 0x4081ff
mov eax, dword [esp + 0x118]
test word [eax + 0x144], 0x1000
jne 0x4081ff
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 0x408328
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 0x408542
mov eax, dword [esi + 0x148]
test eax, eax
je 0x4084b4
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4084b4
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x408378
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x408396
mov eax, dword [esi + 0x154]
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 0x4083a8
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x4083b7
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x4083c6
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 0x4083fb
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x148]
call edi
cmp dword [ebp - 0x10], 0
je 0x40841e
movzx eax, byte [esi + 0x14f]
shl eax, 0x10
or eax, 1
push eax
push dword [esi + 0x154]
push ebx
push dword [esi + 0x148]
call edi
cmp dword [ebp - 0x14], 0
je 0x40843d
movzx eax, byte [esi + 0x150]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x148]
call edi
cmp dword [ebp - 8], 0
je 0x40845c
movzx eax, byte [esi + 0x14c]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x148]
call edi
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x408539
cmp dword [ebp - 8], eax
jne 0x40848d
test word [ebp + 8], 0x800
jne 0x40848d
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x4084a7
cmp dword [ebp - 0xc], eax
je 0x408539
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x148]
call edi
jmp 0x408539
test bl, 0x10
je 0x4084cc
movzx eax, byte [esi + 0x151]
push eax
push 0x5b
xor ebx, ebx
mov eax, esi
call fcn.00407c59
test byte [ebp + 8], 2
je 0x4084eb
movzx eax, byte [esi + 0x14f]
push eax
movzx eax, byte [esi + 0x154]
push eax
xor ebx, ebx
mov eax, esi
call fcn.00407c59
test byte [ebp + 8], 4
je 0x408507
movzx eax, byte [esi + 0x150]
push eax
push 0xa1
xor ebx, ebx
mov eax, esi
call fcn.00407c59
test byte [ebp + 8], 8
je 0x408520
movzx eax, byte [esi + 0x14c]
push eax
push 0x11
xor ebx, ebx
mov eax, esi
call fcn.00407c59
test byte [ebp + 8], 1
je 0x408539
movzx eax, byte [esi + 0x14d]
push eax
push 0x12
xor ebx, ebx
mov eax, esi
call fcn.00407c59
mov edi, dword [esi + 4]
push esi
call fcn.00408e40
pop edi
pop ebx
leave
ret 4
Function at 0x408548
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x408761
mov eax, dword [esi + 0x148]
test eax, eax
je 0x4086db
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4086db
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 0x4085c4
test byte [ebp + 8], 8
jne 0x4085c4
test word [ebp + 8], 0x800
jne 0x4085c4
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x4085db
test eax, eax
je 0x4085e3
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x148]
call edi
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 8], eax
je 0x408609
movzx eax, byte [esi + 0x14c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x148]
call edi
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0xc], eax
je 0x408633
movzx eax, byte [esi + 0x14f]
shl eax, 0x10
or eax, 0xc0000001
push eax
push dword [esi + 0x154]
push ebx
push dword [esi + 0x148]
call edi
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x14], eax
je 0x408659
movzx eax, byte [esi + 0x150]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x148]
call edi
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x40867f
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x148]
call edi
xor edx, edx
cmp dword [ebp + 8], edx
mov cl, 0x80
je 0x40868e
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x4086a8
mov eax, dword [esi + 0x154]
xor byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
xor byte [eax], cl
cmp dword [ebp - 0x14], edx
je 0x4086b6
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x4086c1
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x4086cc
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408759
test byte [ebp + 8], 1
push 2
pop ebx
je 0x4086f5
movzx eax, byte [esi + 0x14d]
push eax
push 0x12
mov eax, esi
call fcn.00407c59
test byte [ebp + 8], 8
je 0x40870c
movzx eax, byte [esi + 0x14c]
push eax
push 0x11
mov eax, esi
call fcn.00407c59
test byte [ebp + 8], bl
je 0x408728
movzx eax, byte [esi + 0x14f]
push eax
movzx eax, byte [esi + 0x154]
push eax
mov eax, esi
call fcn.00407c59
test byte [ebp + 8], 4
je 0x408742
movzx eax, byte [esi + 0x150]
push eax
push 0xa1
mov eax, esi
call fcn.00407c59
test byte [ebp + 8], 0x10
je 0x408759
movzx eax, byte [esi + 0x151]
push eax
push 0x5b
mov eax, esi
call fcn.00407c59
mov edi, dword [esi]
push esi
call fcn.00408e40
pop edi
pop ebx
leave
ret 4
Function at 0x40878c
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 + 0x148], 0
mov esi, eax
je 0x408862
cmp ebx, 0x14
je 0x408862
cmp ebx, 0x90
je 0x408862
cmp ebx, 0x91
je 0x408862
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 0x408818
cmp ebx, 0x2d
je 0x408812
mov eax, ebx
call fcn.00408210
jmp 0x408814
mov al, dl
cmp al, dl
jne 0x40881e
or esi, 0x1000000
mov ecx, dword [edi + 0x144]
test dl, cl
mov eax, 0x100
jne 0x408836
test eax, ecx
jne 0x408836
cmp ebx, 0x12
jne 0x408851
test cl, 8
jne 0x408851
test cx, 0x800
jne 0x408851
or esi, 0x20000000
push esi
push ebx
push 0x104
jmp 0x408854
push esi
push ebx
push eax
push dword [edi + 0x148]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40888f
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x408884
cmp ebx, 0x2d
je 0x408878
mov eax, ebx
call fcn.00408210
jmp 0x40887a
mov al, dl
cmp al, dl
je 0x408884
push esi
push ebx
xor ebx, ebx
jmp 0x408888
push esi
push ebx
mov ebx, edx
mov eax, edi
call fcn.00407c59
push edi
mov edi, dword [edi + 4]
call fcn.00408e40
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40889f
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 + 0x148], 0
mov esi, eax
je 0x408978
cmp ebx, 0x14
je 0x408978
cmp ebx, 0x90
je 0x408978
cmp ebx, 0x91
je 0x408978
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 0x408918
cmp ebx, 0x2d
je 0x408912
mov eax, ebx
call fcn.00408210
jmp 0x408914
mov al, 1
cmp al, 1
jne 0x40891e
or esi, 0x1000000
mov eax, dword [edi + 0x144]
test al, 1
jne 0x408933
test ax, 0x100
jne 0x408933
cmp ebx, 0x12
jne 0x40894c
test al, 8
jne 0x40894c
test ax, 0x800
jne 0x40894c
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x408953
push esi
push ebx
push 0x101
push dword [edi + 0x148]
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 0x4089a4
cmp byte [ebp + 8], 1
je 0x408998
cmp ebx, 0x2d
je 0x40898c
mov eax, ebx
call fcn.00408210
jmp 0x40898e
mov al, 1
cmp al, 1
je 0x408998
push esi
push ebx
push 2
jmp 0x40899c
push esi
push ebx
push 3
pop ebx
mov eax, edi
call fcn.00407c59
push edi
mov edi, dword [edi]
call fcn.00408e40
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408e40
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 0x408ed4
jne 0x408e58
push 0
jmp 0x408ece
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x119]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x408ecd
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x408ecd
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 [0x46c980]
call fcn.004634e6
cmp eax, edi
jb 0x408e8b
jmp 0x408ed4
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x408edb
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 0x408ef9
xor al, al
jmp 0x409013
push eax
call fcn.0040ceef
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.0044d720
inc eax
push eax
call fcn.0044d086
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x408f3d
cmp al, 0x5e
je 0x408f39
cmp al, 0x21
je 0x408f39
cmp al, 0x23
jne 0x408f61
cmp al, 0x2b
jne 0x408f42
mov eax, dword [ebp + 0xc]
jmp 0x408f52
cmp al, 0x5e
jne 0x408f4b
mov byte [esi], 1
jmp 0x408f5e
cmp al, 0x21
jne 0x408f57
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408f5e
cmp al, 0x23
jne 0x408f5e
mov byte [edi], 1
inc ebx
jmp 0x408f23
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x408fc3
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00408e03
test eax, eax
jne 0x408faf
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x472440]
call fcn.0044ced8
test eax, eax
pop ecx
pop ecx
je 0x408fa1
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x408f82
cmp esi, 0x62
je 0x408faf
cmp byte [esi + 0x4725c8], 0
je 0x408fb5
mov byte [ebp - 1], 0
jmp 0x408ff5
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x408ff5
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 0x408fdd
mov byte [esi], 1
test ax, 0x400
je 0x408fe9
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x408ff5
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044d0f0
push dword [ebp - 8]
call fcn.0044d0f0
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x409048
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 0x409064
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 0x40907c
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x40914e
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 0x409134
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