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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.00454df0
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x48b470], bl
mov byte [0x48b471], bl
mov byte [0x48b472], bl
mov dword [0x48b474], ebx
mov dword [0x48b478], ebx
mov dword [0x48b47c], ebx
mov dword [0x48b480], ebx
mov dword [0x48b484], 0x472620
mov dword [0x48b488], ebx
mov dword [0x48b48c], ebx
mov dword [0x48b490], ebx
mov dword [0x48b494], 0x472620
mov dword [0x48b498], ebx
mov dword [0x48b49c], ebx
mov dword [0x48b4a0], ebx
mov dword [0x48b4a8], ebx
mov dword [0x48b4b0], ebx
call fcn.0044f907
pop ecx
mov dword [0x48b4a4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0045239c
push esi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.004523e6
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00452423
mov edi, 0x20a
push edi
call fcn.0044f907
mov ecx, dword [0x48b4a4]
mov edx, dword [0x48b4a8]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48b4a8]
mov eax, dword [0x48b4a4]
mov eax, dword [eax + ecx*4]
inc dword [0x48b4a8]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0044f88d
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_RegOpenKeyExW]
test eax, eax
jne 0x40802d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20630]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x1fffe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408024
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add eax, eax
mov word [ebp + eax - 0x20630], bx
mov word [ebp + eax - 0x2062e], bx
lea eax, [ebp - 0x20630]
mov word [ebp - 0x21c], bx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, bx
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
je 0x407f96
cmp ax, 0x3b
je 0x407f96
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044f863
pop ecx
pop ecx
jmp 0x40801b
lea eax, [ebp - 0x21c]
push eax
call fcn.0045179a
test eax, eax
pop ecx
je 0x407fd2
lea eax, [ebp - 0x21c]
push eax
call fcn.0045179a
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x407fd2
lea eax, [ebp - 0x21c]
push 0x46c6b8
push eax
call fcn.0044f863
pop ecx
pop ecx
push edi
call fcn.0044f907
mov ecx, dword [0x48b4a4]
mov edx, dword [0x48b4a8]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48b4a8]
mov eax, dword [0x48b4a4]
mov eax, dword [eax + ecx*4]
inc dword [0x48b4a8]
push esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.004517b0
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x408024
add dword [ebp - 8], 2
jmp 0x407f66
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x48b470
pop ebx
leave
ret
Function at 0x408e51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add ecx, eax
push ebx
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.0044f907
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.0044fd30
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x408eaa
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x408ea1
pop edi
pop ebx
leave
ret 4

Function at 0x409b29
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_MapVirtualKeyW]
push edi
push 5
pop eax
mov dword [0x48a548], eax
mov dword [0x48a54c], eax
mov al, byte [0x48a765]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x48a784], ebx
mov byte [0x48a550], 1
mov byte [0x48a551], bl
mov dword [0x48a554], ebx
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x48a794], eax
call esi
push ebx
push 0x10
mov byte [0x48a791], al
call esi
push ebx
push dword [0x48a794]
mov byte [0x48a78e], al
call esi
push ebx
push 0xa1
mov byte [0x48a78f], al
call esi
push ebx
push 0x11
mov byte [0x48a790], al
call esi
push ebx
push 0x12
mov byte [0x48a78c], al
call esi
mov byte [0x48a78d], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x478710]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x409be1
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x409bc8
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.00452590
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x409c29
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.00452618
add esp, 0xc
test eax, eax
mov byte [0x478712], 0x20
mov byte [0x478715], 0x20
je 0x409cbb
jmp 0x409ca6
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.00452590
test eax, eax
pop ecx
pop ecx
jne 0x409c46
mov byte [0x478712], 0x20
jmp 0x409c9f
lea eax, [ebp - 6]
push 0x46ce34
push eax
call fcn.00452590
test eax, eax
pop ecx
pop ecx
jne 0x409c63
mov byte [0x478715], 0x20
jmp 0x409cb4
lea eax, [ebp - 6]
push 0x46ce38
push eax
call fcn.00452590
test eax, eax
pop ecx
pop ecx
je 0x409c3d
lea eax, [ebp - 6]
push 0x46ce3c
push eax
call fcn.00452590
test eax, eax
pop ecx
pop ecx
je 0x409cb4
lea eax, [ebp - 6]
push 0x46ce40
push eax
call fcn.00452590
test eax, eax
pop ecx
pop ecx
jne 0x409cbb
mov byte [0x478715], 0x20
mov byte [0x478716], 0x20
mov byte [0x478713], 0x20
mov byte [0x478714], 0x20
leave
ret
Function at 0x409ece
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x409ee8
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x409fbe
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 0x409f89
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 [0x48b920], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x409f5b
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x48b920]
cmp ecx, eax
mov dword [0x48b91c], eax
je 0x409f50
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x48b91c]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x409fbd
cmp dword [ebp - 8], ecx
jne 0x409fbd
cmp dword [ebp - 0xc], ecx
jne 0x409fbd
mov eax, dword [0x48b920]
cmp dword [ebp - 4], eax
jne 0x409fbd
cmp eax, dword [0x48b91c]
jne 0x409fbd
mov eax, dword [ebp + 8]
mov dword [eax + 0x240], ecx
jmp 0x409fbd
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x409fb1
push edi
push dword [0x48b91c]
push eax
call esi
mov ecx, dword [0x48b920]
mov eax, dword [0x48b91c]
cmp ecx, eax
je 0x409fb1
push edi
push eax
push ecx
call esi
push edi
push dword [0x48b920]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
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 0x40a032
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00409fc3
mov edi, dword [ebx + 4]
push ebx
call fcn.0040b11d
push 2
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00409fc3
mov edi, dword [ebx]
push ebx
call fcn.0040b11d
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8
Function at 0x40a17d
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
mov ebx, 0x200
test ebx, eax
push ebp
push edi
je 0x40a196
or dword [esi + 0x23c], 8
test ax, 0x400
je 0x40a1a3
or dword [esi + 0x23c], 1
mov edi, 0x100
test edi, eax
je 0x40a1b3
or dword [esi + 0x23c], 2
mov eax, dword [esi + 0x23c]
test al, 8
je 0x40a1cc
test ax, 0x800
je 0x40a1cc
xor eax, 8
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 1
je 0x40a1e3
test edi, eax
je 0x40a1e3
xor eax, 1
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 2
je 0x40a1fa
test ebx, eax
je 0x40a1fa
xor eax, 2
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 0x10
je 0x40a213
test ax, 0x1000
je 0x40a213
xor eax, 0x10
mov dword [esi + 0x23c], eax
cmp dword [esi + 0x240], 0
je 0x40a270
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x23c]
test ax, 0x800
jne 0x40a238
mov byte [esp + 0x21], 0
test edi, eax
jne 0x40a241
mov byte [esp + 0x22], 0
test ebx, eax
jne 0x40a255
mov ecx, dword [esi + 0x24c]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x40a260
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40a361
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
pop ebx
push ebx
call ebp
mov edi, 0x8000
test di, ax
jne 0x40a292
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a2a6
test word [esi + 0x23c], 0x800
jne 0x40a2a6
push 0
mov eax, esi
call fcn.0040ab81
push 0x12
pop ebx
push ebx
call ebp
test di, ax
jne 0x40a2bd
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a2d1
test word [esi + 0x23c], 0x100
jne 0x40a2d1
push 0
mov eax, esi
call fcn.0040ab81
push dword [esi + 0x24c]
call ebp
test di, ax
jne 0x40a2ef
push dword [esi + 0x24c]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a309
test word [esi + 0x23c], 0x200
jne 0x40a309
mov ebx, dword [esi + 0x24c]
push 0
mov eax, esi
call fcn.0040ab81
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x40a322
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a336
test word [esi + 0x23c], 0x400
jne 0x40a336
push 0
mov eax, esi
call fcn.0040ab81
push 0x5b
pop ebx
push ebx
call ebp
test di, ax
jne 0x40a34d
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a361
test word [esi + 0x23c], 0x1000
jne 0x40a361
push 0
mov eax, esi
call fcn.0040ab81
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x40a36b
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebx
mov ebx, dword [esp + 0x10c]
cmp dword [ebx + 0x240], 0
je 0x40a424
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x40a3b0
test word [ebx + 0x23c], 0x800
jne 0x40a3b0
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x40a3c6
test word [ebx + 0x23c], 0x100
jne 0x40a3c6
or dword [esp + 4], 1
mov ecx, dword [ebx + 0x24c]
cmp byte [esp + ecx + 8], al
je 0x40a3d8
cmp byte [esp + 0x18], al
jne 0x40a3e8
test word [ebx + 0x23c], 0x200
jne 0x40a3e8
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x40a401
test word [ebx + 0x23c], 0x400
jne 0x40a401
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x40a506
test word [ebx + 0x23c], 0x1000
jne 0x40a506
or dword [esp + 4], 0x10
jmp 0x40a506
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 0x40a44a
push 0x11
call ebp
test si, ax
je 0x40a45d
test word [ebx + 0x23c], 0x800
jne 0x40a45d
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x40a46f
push 0x12
call ebp
test si, ax
je 0x40a47f
test word [ebx + 0x23c], 0x100
jne 0x40a47f
or dword [esp + 0x10], 1
add ebx, 0x24c
push dword [ebx]
call edi
test si, ax
jne 0x40a497
push dword [ebx]
call ebp
test si, ax
je 0x40a4ae
mov eax, dword [esp + 0x118]
test word [eax + 0x23c], 0x200
jne 0x40a4ae
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x40a4c3
push ebx
call ebp
test si, ax
je 0x40a4da
mov eax, dword [esp + 0x118]
test word [eax + 0x23c], 0x400
jne 0x40a4da
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x40a4ec
push 0x5b
call ebp
test si, ax
je 0x40a503
mov eax, dword [esp + 0x118]
test word [eax + 0x23c], 0x1000
jne 0x40a503
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 0x40a62c
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 0x40a832
mov eax, dword [esi + 0x240]
xor edi, edi
cmp eax, edi
je 0x40a7b7
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40a7b7
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x40a67e
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x40a69c
mov eax, dword [esi + 0x24c]
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 0x40a6ae
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x40a6bd
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x40a6cc
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_PostMessageW]
mov ebx, 0x100
je 0x40a701
movzx eax, byte [esi + 0x249]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x240]
call edi
cmp dword [ebp - 0x10], 0
je 0x40a724
movzx eax, byte [esi + 0x247]
shl eax, 0x10
or eax, 1
push eax
push dword [esi + 0x24c]
push ebx
push dword [esi + 0x240]
call edi
cmp dword [ebp - 0x14], 0
je 0x40a743
movzx eax, byte [esi + 0x248]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x240]
call edi
cmp dword [ebp - 8], 0
je 0x40a762
movzx eax, byte [esi + 0x244]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x240]
call edi
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x40a829
cmp dword [ebp - 8], eax
jne 0x40a793
test word [ebp + 8], 0x800
jne 0x40a793
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x40a7ad
cmp dword [ebp - 0xc], eax
je 0x40a829
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x240]
call edi
jmp 0x40a829
test bl, 0x10
je 0x40a7cc
movzx eax, byte [esi + 0x249]
push edi
push eax
push 0x5b
call fcn.00409fc3
test bl, 2
je 0x40a7e7
movzx eax, byte [esi + 0x247]
push edi
push eax
movzx eax, byte [esi + 0x24c]
push eax
call fcn.00409fc3
test bl, 4
je 0x40a7ff
movzx eax, byte [esi + 0x248]
push edi
push eax
push 0xa1
call fcn.00409fc3
test bl, 8
je 0x40a814
movzx eax, byte [esi + 0x244]
push edi
push eax
push 0x11
call fcn.00409fc3
test bl, 1
je 0x40a829
movzx eax, byte [esi + 0x245]
push edi
push eax
push 0x12
call fcn.00409fc3
mov edi, dword [esi + 4]
push esi
call fcn.0040b11d
pop edi
pop ebx
leave
ret 4
Function at 0x40a838
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x40aa4c
mov eax, dword [esi + 0x240]
test eax, eax
je 0x40a9cb
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40a9cb
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_PostMessageW]
and eax, 1
mov dword [ebp - 0x10], eax
mov ebx, 0x101
je 0x40a8b4
test byte [ebp + 8], 8
jne 0x40a8b4
test word [ebp + 8], 0x800
jne 0x40a8b4
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x40a8cb
test eax, eax
je 0x40a8d3
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 8], eax
je 0x40a8f9
movzx eax, byte [esi + 0x244]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0xc], eax
je 0x40a923
movzx eax, byte [esi + 0x247]
shl eax, 0x10
or eax, 0xc0000001
push eax
push dword [esi + 0x24c]
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x14], eax
je 0x40a949
movzx eax, byte [esi + 0x248]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x240]
call edi
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x40a96f
movzx eax, byte [esi + 0x249]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x240]
call edi
xor edx, edx
cmp dword [ebp + 8], edx
mov cl, 0x80
je 0x40a97e
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x40a998
mov eax, dword [esi + 0x24c]
xor byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
xor byte [eax], cl
cmp dword [ebp - 0x14], edx
je 0x40a9a6
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x40a9b1
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x40a9bc
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40aa44
test byte [ebp + 8], 1
push 2
pop ebx
je 0x40a9e4
movzx eax, byte [esi + 0x245]
push ebx
push eax
push 0x12
call fcn.00409fc3
test byte [ebp + 8], 8
je 0x40a9fa
movzx eax, byte [esi + 0x244]
push ebx
push eax
push 0x11
call fcn.00409fc3
test byte [ebp + 8], bl
je 0x40aa15
movzx eax, byte [esi + 0x247]
push ebx
push eax
movzx eax, byte [esi + 0x24c]
push eax
call fcn.00409fc3
test byte [ebp + 8], 4
je 0x40aa2e
movzx eax, byte [esi + 0x248]
push ebx
push eax
push 0xa1
call fcn.00409fc3
test byte [ebp + 8], 0x10
je 0x40aa44
movzx eax, byte [esi + 0x249]
push ebx
push eax
push 0x5b
call fcn.00409fc3
mov edi, dword [esi]
push esi
call fcn.0040b11d
pop edi
pop ebx
leave
ret 4
Function at 0x40aa77
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [ebx + 0x240], 0
mov esi, eax
je 0x40ab4a
cmp edi, 0x14
je 0x40ab4a
cmp edi, 0x90
je 0x40ab4a
cmp edi, 0x91
je 0x40ab4a
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + edi - 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 0x40ab00
cmp edi, 0x2d
je 0x40aafa
mov eax, edi
call fcn.0040a514
jmp 0x40aafc
mov al, dl
cmp al, dl
jne 0x40ab06
or esi, 0x1000000
mov ecx, dword [ebx + 0x23c]
test dl, cl
mov eax, 0x100
jne 0x40ab1e
test eax, ecx
jne 0x40ab1e
cmp edi, 0x12
jne 0x40ab39
test cl, 8
jne 0x40ab39
test cx, 0x800
jne 0x40ab39
or esi, 0x20000000
push esi
push edi
push 0x104
jmp 0x40ab3c
push esi
push edi
push eax
push dword [ebx + 0x240]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40ab72
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x40ab6a
cmp edi, 0x2d
je 0x40ab60
mov eax, edi
call fcn.0040a514
jmp 0x40ab62
mov al, dl
cmp al, dl
je 0x40ab6a
push 0
jmp 0x40ab6b
push edx
push esi
push edi
call fcn.00409fc3
mov edi, dword [ebx + 4]
push ebx
call fcn.0040b11d
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [edi + 0x240], 0
mov esi, eax
je 0x40ac57
cmp ebx, 0x14
je 0x40ac57
cmp ebx, 0x90
je 0x40ac57
cmp ebx, 0x91
je 0x40ac57
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 0x40abf7
cmp ebx, 0x2d
je 0x40abf1
mov eax, ebx
call fcn.0040a514
jmp 0x40abf3
mov al, 1
cmp al, 1
jne 0x40abfd
or esi, 0x1000000
mov eax, dword [edi + 0x23c]
test al, 1
jne 0x40ac12
test ax, 0x100
jne 0x40ac12
cmp ebx, 0x12
jne 0x40ac2b
test al, 8
jne 0x40ac2b
test ax, 0x800
jne 0x40ac2b
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x40ac32
push esi
push ebx
push 0x101
push dword [edi + 0x240]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp + ebx - 0x104]
xor byte [eax], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40ac7e
cmp byte [ebp + 8], 1
je 0x40ac75
cmp ebx, 0x2d
je 0x40ac6b
mov eax, ebx
call fcn.0040a514
jmp 0x40ac6d
mov al, 1
cmp al, 1
je 0x40ac75
push 2
jmp 0x40ac77
push 3
push esi
push ebx
call fcn.00409fc3
push edi
mov edi, dword [edi]
call fcn.0040b11d
pop edi
pop esi
leave
ret 4
Function at 0x40b11d
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 0x40b1b1
jne 0x40b135
push 0
jmp 0x40b1ab
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x21d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40b1aa
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40b1aa
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 [0x4726e0]
call fcn.00466d26
cmp eax, edi
jb 0x40b168
jmp 0x40b1b1
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b1b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp word [eax], bx
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x40b1d7
xor al, al
jmp 0x40b2fd
push eax
or eax, 0xffffffff
call fcn.0040fc7c
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [esi], bl
mov byte [edi], bl
mov byte [ecx], bl
call fcn.00451f00
inc eax
push eax
call fcn.0044f907
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x40b21e
cmp al, 0x5e
je 0x40b21a
cmp al, 0x21
je 0x40b21a
cmp al, 0x23
jne 0x40b242
cmp al, 0x2b
jne 0x40b223
mov eax, dword [ebp + 0xc]
jmp 0x40b233
cmp al, 0x5e
jne 0x40b22c
mov byte [edi], 1
jmp 0x40b23f
cmp al, 0x21
jne 0x40b238
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40b23f
cmp al, 0x23
jne 0x40b23f
mov byte [esi], 1
inc ebx
jmp 0x40b204
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x40b2ad
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.0040b0e0
test eax, eax
je 0x40b269
mov byte [ebp - 1], 0
jmp 0x40b2df
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x478398]
call fcn.00464a35
test eax, eax
pop ecx
pop ecx
je 0x40b28b
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x40b269
cmp esi, 0x62
jne 0x40b296
movzx eax, byte [ebx]
push eax
jmp 0x40b2b0
cmp byte [esi + 0x478520], 0
jne 0x40b263
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40b2df
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 0x40b2c7
mov byte [edi], 1
test ax, 0x400
je 0x40b2d3
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x40b2df
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044f971
push dword [ebp - 8]
call fcn.0044f971
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc