joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410a57
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
cmp ebx, edi
jne 0x410a6e
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x410b34
push ebp
push esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [esp + 0x1c], 0
mov ebp, eax
je 0x410b00
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 ebp
mov dword [0x470d24], eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x410ae0
lea eax, [esp + 0x10]
push eax
push ebx
call edi
mov ecx, dword [0x470d24]
cmp ecx, eax
mov dword [0x470d20], eax
je 0x410ad6
push 1
push eax
push ecx
call esi
mov dword [esp + 0xc], eax
mov eax, dword [0x470d20]
push 1
push eax
push ebp
call esi
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
jne 0x410b32
cmp dword [esp + 0xc], eax
jne 0x410b32
cmp dword [esp + 0x10], eax
jne 0x410b32
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x148], eax
jmp 0x410b32
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x410b28
push edi
push dword [0x470d20]
push ebp
call esi
mov ecx, dword [0x470d24]
mov eax, dword [0x470d20]
cmp ecx, eax
je 0x410b28
push edi
push eax
push ecx
call esi
push edi
push dword [0x470d24]
push ebp
call esi
pop esi
pop ebp
pop edi
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
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 0x410c02
push ebx
push edi
push 0
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.00410b3a
mov edi, dword [esi + 4]
push esi
call fcn.00411ca4
push ebx
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.00410b3a
mov edi, dword [esi]
push esi
call fcn.00411ca4
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x410c06
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx ebx, ax
cmp ebx, 0xffffffff
jne 0x410c29
mov al, byte [esp + 0xc]
mov ebx, esi
call fcn.00410ca4
jmp 0x410c62
mov eax, ebx
call fcn.00410d48
push dword [esi + 0x144]
call fcn.004111df
cmp dword [esp + 0x10], 0
je 0x410c57
push edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
push 0
push edi
push esi
call fcn.0041160e
dec ebx
jne 0x410c4a
pop edi
push dword [esi + 0x144]
call fcn.004113f5
pop esi
pop ebx
ret 8
Function at 0x410d48
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
push edi
mov edi, 0x200
test edi, eax
je 0x410d60
or dword [esi + 0x144], 8
test ah, 4
je 0x410d6c
or dword [esi + 0x144], 1
mov ebx, 0x100
test ebx, eax
je 0x410d7c
or dword [esi + 0x144], 2
mov eax, dword [esi + 0x144]
test al, 8
je 0x410d93
test ebx, eax
je 0x410d93
xor eax, 8
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 1
je 0x410daa
test al, 0x20
je 0x410daa
xor eax, 1
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 2
je 0x410dc1
test al, 0xc0
je 0x410dc1
xor eax, 2
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 0x10
je 0x410dd8
test edi, eax
je 0x410dd8
xor eax, 0x10
mov dword [esi + 0x144], eax
cmp dword [esi + 0x148], 0
je 0x410e3f
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x144]
test ebx, eax
jne 0x410dfb
mov byte [esp + 0x19], 0
test al, 0x20
jne 0x410e04
mov byte [esp + 0x1a], 0
test al, 0x40
jne 0x410e15
mov byte [esp + 0x18], 0
mov byte [esp + 0xa8], 0
test al, al
js 0x410e26
mov byte [esp + 0x18], 0
mov byte [esp + 0xa8], 0
test edi, eax
jne 0x410e2f
mov byte [esp + 0x63], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x410f26
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x410e61
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x410e75
test dword [esi + 0x144], ebx
jne 0x410e75
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.00411729
push 0x12
call ebp
test di, ax
jne 0x410e8b
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x410ea0
test byte [esi + 0x144], 0x20
jne 0x410ea0
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.00411729
mov ebx, 0xa0
push ebx
call ebp
test di, ax
jne 0x410eb9
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x410ecd
test byte [esi + 0x144], 0x40
jne 0x410ecd
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411729
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x410ee6
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x410efa
test byte [esi + 0x144], 0x80
jne 0x410efa
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411729
push 0x5b
call ebp
test di, ax
pop ebp
jne 0x410f11
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x410f26
test byte [esi + 0x145], 2
jne 0x410f26
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.00411729
pop edi
pop ebx
add esp, 0x100
ret
Function at 0x410f2f
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebp
mov ebp, dword [esp + 0x10c]
cmp dword [ebp + 0x148], 0
je 0x410fdb
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x410f72
test byte [ebp + 0x145], 1
jne 0x410f72
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x410f86
test byte [ebp + 0x144], 0x20
jne 0x410f86
or dword [esp + 4], 1
cmp byte [esp + 0xa8], al
je 0x410f95
cmp byte [esp + 0x18], al
jne 0x410fa3
test byte [ebp + 0x144], 0x40
jne 0x410fa3
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x410fba
test byte [ebp + 0x144], 0x80
jne 0x410fba
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x4110b0
test byte [ebp + 0x145], 2
jne 0x4110b0
or dword [esp + 4], 0x10
jmp 0x4110b0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
test si, ax
jne 0x411001
push 0x11
call ebx
test si, ax
je 0x411012
test byte [ebp + 0x145], 1
jne 0x411012
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x411024
push 0x12
call ebx
test si, ax
je 0x411032
test byte [ebp + 0x144], 0x20
jne 0x411032
or dword [esp + 0x10], 1
mov ebp, 0xa0
push ebp
call edi
test si, ax
jne 0x411047
push ebp
call ebx
test si, ax
je 0x41105c
mov eax, dword [esp + 0x118]
test byte [eax + 0x144], 0x40
jne 0x41105c
or dword [esp + 0x10], 2
mov ebp, 0xa1
push ebp
call edi
test si, ax
jne 0x411071
push ebp
call ebx
test si, ax
je 0x411086
mov eax, dword [esp + 0x118]
test byte [eax + 0x144], 0x80
jne 0x411086
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x411098
push 0x5b
call ebx
test si, ax
je 0x4110ad
mov eax, dword [esp + 0x118]
test byte [eax + 0x145], 2
jne 0x4110ad
or dword [esp + 0x10], 0x10
pop edi
pop esi
pop ebx
mov eax, dword [esp + 4]
pop ebp
add esp, 0x104
ret 4
Function at 0x4111df
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov ebx, dword [ebp + 8]
test bl, 0x1f
je 0x4113f0
mov eax, dword [esi + 0x148]
push edi
xor edi, edi
cmp eax, edi
je 0x41135a
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x41135a
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov al, 0x80
je 0x411231
or byte [ebp - 0xb5], al
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 2
je 0x411243
or byte [ebp - 0x100], al
or byte [ebp - 0x70], al
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 4
je 0x411255
or byte [ebp - 0x100], al
or byte [ebp - 0x6f], al
mov dword [ebp - 4], ebx
and dword [ebp - 4], 8
je 0x411264
or byte [ebp - 0xff], al
mov dword [ebp - 8], ebx
and dword [ebp - 8], 1
je 0x411273
or byte [ebp - 0xfe], al
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test edi, edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, 0x100
je 0x4112a8
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 - 0xc], 0
je 0x4112c7
movzx eax, byte [esi + 0x14f]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x148]
call edi
cmp dword [ebp - 0x10], 0
je 0x4112e6
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 - 4], 0
je 0x411305
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 - 8], eax
je 0x4113e6
cmp dword [ebp - 4], eax
jne 0x41133e
test dword [ebp + 8], ebx
jne 0x41133e
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
push dword [esi + 0x148]
call edi
jmp 0x4113e6
cmp dword [ebp - 8], eax
je 0x4113e6
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
jmp 0x411331
test bl, 0x10
je 0x411374
xor eax, eax
mov al, byte [esi + 0x151]
push edi
xor ebx, ebx
push eax
push 0x5b
mov eax, esi
call fcn.00410b3a
test byte [ebp + 8], 2
je 0x411392
xor eax, eax
mov al, byte [esi + 0x14f]
push edi
xor ebx, ebx
push eax
push 0xa0
mov eax, esi
call fcn.00410b3a
test byte [ebp + 8], 4
je 0x4113b0
xor eax, eax
mov al, byte [esi + 0x150]
push edi
xor ebx, ebx
push eax
push 0xa1
mov eax, esi
call fcn.00410b3a
test byte [ebp + 8], 8
je 0x4113cb
xor eax, eax
mov al, byte [esi + 0x14c]
push edi
xor ebx, ebx
push eax
push 0x11
mov eax, esi
call fcn.00410b3a
test byte [ebp + 8], 1
je 0x4113e6
xor eax, eax
mov al, byte [esi + 0x14d]
push edi
xor ebx, ebx
push eax
push 0x12
mov eax, esi
call fcn.00410b3a
mov edi, dword [esi + 4]
push esi
call fcn.00411ca4
pop edi
pop ebx
leave
ret 4
Function at 0x4113f5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
test byte [ebp + 8], 0x1f
je 0x41160a
mov eax, dword [esi + 0x148]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x41157b
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x41157b
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
and eax, 1
mov dword [ebp - 0xc], eax
mov edi, 0x101
je 0x411471
test byte [ebp + 8], 8
jne 0x411471
test byte [ebp + 9], 1
jne 0x411471
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x411488
test eax, eax
je 0x411490
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push edi
push dword [esi + 0x148]
call ebx
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 4], eax
je 0x4114b6
movzx eax, byte [esi + 0x14c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push edi
push dword [esi + 0x148]
call ebx
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 8], eax
je 0x4114dc
movzx eax, byte [esi + 0x14f]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push edi
push dword [esi + 0x148]
call ebx
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x10], eax
je 0x411502
movzx eax, byte [esi + 0x150]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push edi
push dword [esi + 0x148]
call ebx
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x411528
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push edi
push dword [esi + 0x148]
call ebx
xor ecx, ecx
cmp dword [ebp + 8], ecx
mov al, 0x80
je 0x411537
xor byte [ebp - 0xb5], al
cmp dword [ebp - 8], ecx
je 0x411545
xor byte [ebp - 0x100], al
xor byte [ebp - 0x70], al
cmp dword [ebp - 0x10], ecx
je 0x411553
xor byte [ebp - 0x100], al
xor byte [ebp - 0x6f], al
cmp dword [ebp - 4], ecx
je 0x41155e
xor byte [ebp - 0xff], al
cmp dword [ebp - 0xc], ecx
je 0x411569
xor byte [ebp - 0xfe], al
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x411600
test byte [ebp + 8], 1
push 2
pop ebx
je 0x411597
xor eax, eax
mov al, byte [esi + 0x14d]
push edi
push eax
push 0x12
mov eax, esi
call fcn.00410b3a
test byte [ebp + 8], 8
je 0x4115b0
xor eax, eax
mov al, byte [esi + 0x14c]
push edi
push eax
push 0x11
mov eax, esi
call fcn.00410b3a
test byte [ebp + 8], bl
je 0x4115cb
xor eax, eax
mov al, byte [esi + 0x14f]
push edi
push eax
push 0xa0
mov eax, esi
call fcn.00410b3a
test byte [ebp + 8], 4
je 0x4115e7
xor eax, eax
mov al, byte [esi + 0x150]
push edi
push eax
push 0xa1
mov eax, esi
call fcn.00410b3a
test byte [ebp + 8], 0x10
je 0x411600
xor eax, eax
mov al, byte [esi + 0x151]
push edi
push eax
push 0x5b
mov eax, esi
call fcn.00410b3a
mov edi, dword [esi]
push esi
call fcn.00411ca4
pop edi
pop ebx
leave
ret 4
Function at 0x411631
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ecx, ecx
cmp dword [edi + 0x148], ecx
mov esi, eax
je 0x4116f4
cmp ebx, 0x14
je 0x4116f4
cmp ebx, 0x90
je 0x4116f4
cmp ebx, 0x91
je 0x4116f4
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + ebx - 0x100], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
shl esi, 0x10
or esi, 1
cmp byte [ebp + 8], 1
je 0x4116b0
mov eax, ebx
call fcn.004110be
cmp al, 1
jne 0x4116b6
or esi, 0x1000000
mov ecx, dword [edi + 0x144]
test cl, 0x21
mov eax, 0x100
jne 0x4116cb
cmp ebx, 0x12
jne 0x4116ef
test cl, 8
jne 0x4116ef
test eax, ecx
jne 0x4116ef
or esi, 0x20000000
push esi
push ebx
push 0x104
push dword [edi + 0x148]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x411719
push esi
push ebx
push eax
jmp 0x4116e1
cmp byte [ebp + 8], 1
je 0x41170c
mov eax, ebx
call fcn.004110be
cmp al, 1
je 0x41170c
push ecx
push esi
push ebx
xor ebx, ebx
jmp 0x411712
push ecx
push esi
push ebx
xor ebx, ebx
inc ebx
mov eax, edi
call fcn.00410b3a
push edi
mov edi, dword [edi + 4]
call fcn.00411ca4
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ecx, ecx
cmp dword [edi + 0x148], ecx
mov esi, eax
je 0x4117f3
cmp ebx, 0x14
je 0x4117f3
cmp ebx, 0x90
je 0x4117f3
cmp ebx, 0x91
je 0x4117f3
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp byte [ebp + 8], 1
je 0x41179a
mov eax, ebx
call fcn.004110be
cmp al, 1
jne 0x4117a0
or esi, 0x1000000
mov eax, dword [edi + 0x144]
test al, 0x21
jne 0x4117af
cmp ebx, 0x12
jne 0x4117c7
test al, 8
jne 0x4117c7
test ah, 1
jne 0x4117c7
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x4117ce
push esi
push ebx
push 0x101
push dword [edi + 0x148]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp + ebx - 0x100]
xor byte [eax], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x411818
cmp byte [ebp + 8], 1
je 0x41180b
mov eax, ebx
call fcn.004110be
cmp al, 1
je 0x41180b
push ecx
push esi
push ebx
push 2
jmp 0x411810
push ecx
push esi
push ebx
push 3
mov eax, edi
pop ebx
call fcn.00410b3a
push edi
mov edi, dword [edi]
call fcn.00411ca4
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411ca4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
test edi, edi
jl 0x411d44
jne 0x411cc1
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411d44
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x119]
neg al
push esi
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x411d3c
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x411d3c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fstp qword [ebp - 0x28]
fild qword [ebp - 0x20]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x28]
fdiv qword [ebp - 0x30]
fmul qword [0x45ddd0]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00455ea0
cmp eax, edi
jb 0x411cf3
jmp 0x411d43
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret 4
Function at 0x411d48
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 0x411d66
xor al, al
jmp 0x411e81
push eax
call fcn.00415b45
mov ecx, dword [ebp + 0x14]
mov byte [edi], bl
mov byte [ecx], bl
mov ecx, dword [ebp + 0x10]
mov byte [esi], bl
push eax
mov dword [ebp - 0x10], eax
mov byte [ecx], bl
call fcn.00448680
inc eax
push eax
call fcn.00448308
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x411daa
cmp al, 0x5e
je 0x411da6
cmp al, 0x21
je 0x411da6
cmp al, 0x23
jne 0x411dce
cmp al, 0x2b
jne 0x411db2
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x411dcb
cmp al, 0x5e
jne 0x411dbb
mov byte [esi], 1
jmp 0x411dcb
cmp al, 0x21
jne 0x411dc4
mov eax, dword [ebp + 0x14]
jmp 0x411dad
cmp al, 0x23
jne 0x411dcb
mov byte [edi], 1
inc ebx
jmp 0x411d90
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x411e32
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00411c67
test eax, eax
jne 0x411e1e
push dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push dword [esi*4 + 0x462530]
call fcn.0044819b
test eax, eax
pop ecx
pop ecx
je 0x411e10
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x411def
cmp esi, 0x62
je 0x411e1e
cmp byte [esi + 0x4626b8], 0
je 0x411e24
mov byte [ebp - 1], 0
jmp 0x411e63
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x411e63
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 0xc]
movsx eax, ax
test ah, 2
mov dword [ecx], eax
je 0x411e4b
mov byte [esi], 1
test byte [ecx + 1], 4
je 0x411e57
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
test byte [ecx + 1], 1
je 0x411e63
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.00448196
push dword [ebp - 8]
call fcn.00448196
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0x10
Function at 0x411f36
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [esp + 0x1c]
mov esi, eax
cmp edi, esi
jne 0x411f53
xor eax, eax
inc eax
jmp 0x41204f
push ebp
xor ebp, ebp
cmp esi, ebp
jne 0x411f68
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x411f7c
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x41204e
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 0x412034
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 ebp
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x41211d
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x412136
inc edi
add eax, 8
cmp edi, 0x10
jl 0x412129
cmp edi, 0x10
jne 0x41213f
xor eax, eax
jmp 0x4121a9
cmp byte [esi + 0x18], 1
jne 0x412180
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 0xc]
push ebx
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push 0x1000
push dword [ebp + 8]
mov dword [esi + edi*8 + 0x1c], eax
push ebx
push eax
mov eax, esi
lea edi, [esi + edi*8 + 0x20]
call fcn.0041223f
call eax
jmp 0x4121a7
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea edi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi], eax
pop edi
pop ebx
pop ebp
ret 8
Function at 0x413d01
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x413d2f
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413d54
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x413d50
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.00449a6f
mov dword [edi], eax
mov eax, dword [esi + 4]
add esp, 0x10
test byte [eax + 0xc], 0x20
je 0x413d54
and dword [edi], 0
xor al, al
jmp 0x413d56
mov al, 1
pop ebx
ret 4

Function at 0x4140bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov byte [esi], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4140fc
lea eax, [ebp + 0x14]
push eax
push esi
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x4140fe
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x41415e
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret