joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f14
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.004531b0
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x47fee8], bl
mov byte [0x47fee9], bl
mov byte [0x47feea], bl
mov dword [0x47feec], ebx
mov dword [0x47fef0], ebx
mov dword [0x47fef4], ebx
mov dword [0x47fef8], ebx
mov dword [0x47fefc], 0x46a534
mov dword [0x47ff00], ebx
mov dword [0x47ff04], ebx
mov dword [0x47ff08], ebx
mov dword [0x47ff0c], 0x46a534
mov dword [0x47ff10], ebx
mov dword [0x47ff14], ebx
mov dword [0x47ff18], ebx
mov dword [0x47ff20], ebx
mov dword [0x47ff28], ebx
call fcn.0044daa6
pop ecx
mov dword [0x47ff1c], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00450444
push esi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.00450490
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004505c5
lea edi, [esi + 1]
push edi
call fcn.0044daa6
mov ecx, dword [0x47ff1c]
mov edx, dword [0x47ff20]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x47ff20]
mov eax, dword [0x47ff1c]
mov eax, dword [eax + ecx*4]
inc dword [0x47ff20]
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.0044d950
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40616a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10324]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406161
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x10324], bl
mov byte [ebp + eax - 0x10323], bl
lea eax, [ebp - 0x10324]
mov byte [ebp - 0x118], bl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, bl
mov byte [ebp - 4], al
mov byte [ebp - 3], bl
je 0x4060d4
cmp al, 0x3b
je 0x4060d4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0044d960
pop ecx
pop ecx
jmp 0x406159
lea eax, [ebp - 0x118]
push eax
call fcn.0044e140
test eax, eax
pop ecx
je 0x406112
lea eax, [ebp - 0x118]
push eax
call fcn.0044e140
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x406112
lea eax, [ebp - 0x118]
push 0x46a330
push eax
call fcn.0044d960
pop ecx
pop ecx
push edi
call fcn.0044daa6
mov ecx, dword [0x47ff1c]
mov edx, dword [0x47ff20]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x47ff20]
mov eax, dword [0x47ff1c]
mov eax, dword [eax + ecx*4]
inc dword [0x47ff20]
push esi
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.004505f0
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x406161
inc dword [ebp - 8]
jmp 0x4060aa
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x47fee8
pop ebx
leave
ret
Function at 0x406f74
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.0044daa6
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.0044fd80
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x406fd0
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x406fc7
push eax
or eax, 0xffffffff
call fcn.0040dc42
push dword [ebp - 4]
mov esi, eax
call fcn.0044db10
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x407cdb
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 [0x47e7f0], eax
mov dword [0x47e7f4], eax
mov al, byte [0x47e90d]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x47e938], ebx
mov byte [0x47e7f8], 1
mov byte [0x47e7f9], bl
mov dword [0x47e7fc], ebx
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x47e948], eax
call esi
push ebx
push 0x10
mov byte [0x47e945], al
call esi
push ebx
push dword [0x47e948]
mov byte [0x47e942], al
call esi
push ebx
push 0xa1
mov byte [0x47e943], al
call esi
push ebx
push 0x11
mov byte [0x47e944], al
call esi
push ebx
push 0x12
mov byte [0x47e940], al
call esi
mov byte [0x47e941], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x473820]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x407d93
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x407d7a
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x407ddb
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.0044e07f
add esp, 0xc
test eax, eax
mov byte [0x473822], 0x20
mov byte [0x473825], 0x20
je 0x407e6d
jmp 0x407e58
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
jne 0x407df8
mov byte [0x473822], 0x20
jmp 0x407e51
lea eax, [ebp - 6]
push 0x46a8e0
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
jne 0x407e15
mov byte [0x473825], 0x20
jmp 0x407e66
lea eax, [ebp - 6]
push 0x46a8e4
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x407def
lea eax, [ebp - 6]
push 0x46a8e8
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x407e66
lea eax, [ebp - 6]
push 0x46a8ec
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
jne 0x407e6d
mov byte [0x473825], 0x20
mov byte [str.__F], 0x20
mov byte [0x473823], 0x20
mov byte [0x473824], 0x20
leave
ret
Function at 0x408071
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x40808b
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x408161
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 0x40812c
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 [0x4803a0], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x4080fe
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x4803a0]
cmp ecx, eax
mov dword [0x48039c], eax
je 0x4080f3
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x48039c]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x408160
cmp dword [ebp - 8], ecx
jne 0x408160
cmp dword [ebp - 0xc], ecx
jne 0x408160
mov eax, dword [0x4803a0]
cmp dword [ebp - 4], eax
jne 0x408160
cmp eax, dword [0x48039c]
jne 0x408160
mov eax, dword [ebp + 8]
mov dword [eax + 0x14c], ecx
jmp 0x408160
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x408154
push edi
push dword [0x48039c]
push eax
call esi
mov ecx, dword [0x4803a0]
mov eax, dword [0x48039c]
cmp ecx, eax
je 0x408154
push edi
push eax
push ecx
call esi
push edi
push dword [0x4803a0]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x4081d7
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 0x408235
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.00408166
mov edi, dword [esi + 4]
push esi
call fcn.0040934d
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.00408166
mov edi, dword [esi]
push esi
call fcn.0040934d
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x408380
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, 0x200
test ebp, eax
push edi
je 0x408399
or dword [esi + 0x148], 8
test ax, 0x400
je 0x4083a6
or dword [esi + 0x148], 1
mov edi, 0x100
test edi, eax
je 0x4083b6
or dword [esi + 0x148], 2
mov eax, dword [esi + 0x148]
test al, 8
mov ebx, 0x800
je 0x4083d2
test ebx, eax
je 0x4083d2
xor eax, 8
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x148]
test al, 1
je 0x4083e9
test edi, eax
je 0x4083e9
xor eax, 1
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x148]
test al, 2
je 0x408400
test ebp, eax
je 0x408400
xor eax, 2
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x148]
test al, 0x10
je 0x408419
test ax, 0x1000
je 0x408419
xor eax, 0x10
mov dword [esi + 0x148], eax
cmp dword [esi + 0x14c], 0
je 0x408474
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x148]
test ebx, eax
jne 0x40843c
mov byte [esp + 0x21], 0
test edi, eax
jne 0x408445
mov byte [esp + 0x22], 0
test ebp, eax
jne 0x408459
mov ecx, dword [esi + 0x158]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x408464
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40856a
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x408495
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4084a9
test dword [esi + 0x148], ebx
jne 0x4084a9
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.00408dac
push 0x12
call ebp
test di, ax
jne 0x4084bf
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4084d6
test word [esi + 0x148], 0x100
jne 0x4084d6
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.00408dac
push dword [esi + 0x158]
call ebp
test di, ax
jne 0x4084f4
push dword [esi + 0x158]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40850e
test word [esi + 0x148], 0x200
jne 0x40850e
mov eax, dword [esi + 0x158]
push 0
mov ecx, esi
call fcn.00408dac
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x408527
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40853d
test word [esi + 0x148], 0x400
jne 0x40853d
push 0
mov eax, ebx
mov ecx, esi
call fcn.00408dac
push 0x5b
call ebp
test di, ax
jne 0x408553
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40856a
test word [esi + 0x148], 0x1000
jne 0x40856a
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.00408dac
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x408574
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 0x40862d
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x4085b9
test word [ebx + 0x148], 0x800
jne 0x4085b9
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x4085cf
test word [ebx + 0x148], 0x100
jne 0x4085cf
or dword [esp + 4], 1
mov ecx, dword [ebx + 0x158]
cmp byte [esp + ecx + 8], al
je 0x4085e1
cmp byte [esp + 0x18], al
jne 0x4085f1
test word [ebx + 0x148], 0x200
jne 0x4085f1
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x40860a
test word [ebx + 0x148], 0x400
jne 0x40860a
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x40870f
test word [ebx + 0x148], 0x1000
jne 0x40870f
or dword [esp + 4], 0x10
jmp 0x40870f
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 0x408653
push 0x11
call ebp
test si, ax
je 0x408666
test word [ebx + 0x148], 0x800
jne 0x408666
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x408678
push 0x12
call ebp
test si, ax
je 0x408688
test word [ebx + 0x148], 0x100
jne 0x408688
or dword [esp + 0x10], 1
add ebx, 0x158
push dword [ebx]
call edi
test si, ax
jne 0x4086a0
push dword [ebx]
call ebp
test si, ax
je 0x4086b7
mov eax, dword [esp + 0x118]
test word [eax + 0x148], 0x200
jne 0x4086b7
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x4086cc
push ebx
call ebp
test si, ax
je 0x4086e3
mov eax, dword [esp + 0x118]
test word [eax + 0x148], 0x400
jne 0x4086e3
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x4086f5
push 0x5b
call ebp
test si, ax
je 0x40870c
mov eax, dword [esp + 0x118]
test word [eax + 0x148], 0x1000
jne 0x40870c
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 0x408835
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 0x408a4f
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x4089c1
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4089c1
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x408885
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x4088a3
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 0x4088b5
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x4088c4
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x4088d3
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 0x408908
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 0x40892b
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 0x40894a
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 0x408969
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 0x408a46
cmp dword [ebp - 8], eax
jne 0x40899a
test word [ebp + 8], 0x800
jne 0x40899a
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x4089b4
cmp dword [ebp - 0xc], eax
je 0x408a46
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x14c]
call edi
jmp 0x408a46
test bl, 0x10
je 0x4089d9
movzx eax, byte [esi + 0x155]
push eax
push 0x5b
xor ebx, ebx
mov eax, esi
call fcn.00408166
test byte [ebp + 8], 2
je 0x4089f8
movzx eax, byte [esi + 0x153]
push eax
movzx eax, byte [esi + 0x158]
push eax
xor ebx, ebx
mov eax, esi
call fcn.00408166
test byte [ebp + 8], 4
je 0x408a14
movzx eax, byte [esi + 0x154]
push eax
push 0xa1
xor ebx, ebx
mov eax, esi
call fcn.00408166
test byte [ebp + 8], 8
je 0x408a2d
movzx eax, byte [esi + 0x150]
push eax
push 0x11
xor ebx, ebx
mov eax, esi
call fcn.00408166
test byte [ebp + 8], 1
je 0x408a46
movzx eax, byte [esi + 0x151]
push eax
push 0x12
xor ebx, ebx
mov eax, esi
call fcn.00408166
mov edi, dword [esi + 4]
push esi
call fcn.0040934d
pop edi
pop ebx
leave
ret 4
Function at 0x408a55
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x408c6e
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x408be8
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x408be8
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 0x408ad1
test byte [ebp + 8], 8
jne 0x408ad1
test word [ebp + 8], 0x800
jne 0x408ad1
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x408ae8
test eax, eax
je 0x408af0
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 0x408b16
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 0x408b40
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 0x408b66
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 0x408b8c
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 0x408b9b
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x408bb5
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 0x408bc3
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x408bce
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x408bd9
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408c66
test byte [ebp + 8], 1
push 2
pop ebx
je 0x408c02
movzx eax, byte [esi + 0x151]
push eax
push 0x12
mov eax, esi
call fcn.00408166
test byte [ebp + 8], 8
je 0x408c19
movzx eax, byte [esi + 0x150]
push eax
push 0x11
mov eax, esi
call fcn.00408166
test byte [ebp + 8], bl
je 0x408c35
movzx eax, byte [esi + 0x153]
push eax
movzx eax, byte [esi + 0x158]
push eax
mov eax, esi
call fcn.00408166
test byte [ebp + 8], 4
je 0x408c4f
movzx eax, byte [esi + 0x154]
push eax
push 0xa1
mov eax, esi
call fcn.00408166
test byte [ebp + 8], 0x10
je 0x408c66
movzx eax, byte [esi + 0x155]
push eax
push 0x5b
mov eax, esi
call fcn.00408166
mov edi, dword [esi]
push esi
call fcn.0040934d
pop edi
pop ebx
leave
ret 4
Function at 0x408c99
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 0x408d6f
cmp ebx, 0x14
je 0x408d6f
cmp ebx, 0x90
je 0x408d6f
cmp ebx, 0x91
je 0x408d6f
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 0x408d25
cmp ebx, 0x2d
je 0x408d1f
mov eax, ebx
call fcn.0040871d
jmp 0x408d21
mov al, dl
cmp al, dl
jne 0x408d2b
or esi, 0x1000000
mov ecx, dword [edi + 0x148]
test dl, cl
mov eax, 0x100
jne 0x408d43
test eax, ecx
jne 0x408d43
cmp ebx, 0x12
jne 0x408d5e
test cl, 8
jne 0x408d5e
test cx, 0x800
jne 0x408d5e
or esi, 0x20000000
push esi
push ebx
push 0x104
jmp 0x408d61
push esi
push ebx
push eax
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x408d9c
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x408d91
cmp ebx, 0x2d
je 0x408d85
mov eax, ebx
call fcn.0040871d
jmp 0x408d87
mov al, dl
cmp al, dl
je 0x408d91
push esi
push ebx
xor ebx, ebx
jmp 0x408d95
push esi
push ebx
mov ebx, edx
mov eax, edi
call fcn.00408166
push edi
mov edi, dword [edi + 4]
call fcn.0040934d
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408dac
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 0x408e85
cmp ebx, 0x14
je 0x408e85
cmp ebx, 0x90
je 0x408e85
cmp ebx, 0x91
je 0x408e85
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 0x408e25
cmp ebx, 0x2d
je 0x408e1f
mov eax, ebx
call fcn.0040871d
jmp 0x408e21
mov al, 1
cmp al, 1
jne 0x408e2b
or esi, 0x1000000
mov eax, dword [edi + 0x148]
test al, 1
jne 0x408e40
test ax, 0x100
jne 0x408e40
cmp ebx, 0x12
jne 0x408e59
test al, 8
jne 0x408e59
test ax, 0x800
jne 0x408e59
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x408e60
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 0x408eb1
cmp byte [ebp + 8], 1
je 0x408ea5
cmp ebx, 0x2d
je 0x408e99
mov eax, ebx
call fcn.0040871d
jmp 0x408e9b
mov al, 1
cmp al, 1
je 0x408ea5
push esi
push ebx
push 2
jmp 0x408ea9
push esi
push ebx
push 3
pop ebx
mov eax, edi
call fcn.00408166
push edi
mov edi, dword [edi]
call fcn.0040934d
pop edi
pop esi
pop ebx
leave
ret 4