joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032f4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp byte [esi + 8], 0
push edi
je 0x40332c
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 0x30], eax
jne 0x403325
mov dword [esi + 0x3c], edi
xor eax, eax
jmp 0x40343d
mov dword [ebp - 4], 1
cmp byte [esi + 4], 0
mov edi, dword [sym.imp.USER32.dll_GetClassNameW]
push ebx
mov ebx, 0x100
je 0x40336b
push ebx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
jne 0x403368
mov dword [ebp - 8], 1
inc dword [ebp - 4]
cmp byte [esi + 7], 0
je 0x4033d6
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x80c]
push eax
push ebx
call edi
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.0044e874
push eax
lea eax, [ebp - 0x80c]
push eax
push edi
call fcn.0044e920
add esp, 0x10
test eax, eax
jne 0x4033d1
inc dword [esi + 0x40]
push dword [esi + 0x40]
lea eax, [ebp - 0x80c]
push eax
push str._s_u
push eax
call fcn.0044e88a
push dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.0044e81b
add esp, 0x18
test eax, eax
je 0x403432
inc dword [ebp - 4]
jmp 0x4033d9
mov ebx, dword [ebp + 8]
cmp byte [esi + 6], 0
je 0x40340b
push 0x400
lea eax, [ebp - 0x80c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
je 0x403432
inc dword [ebp - 4]
cmp byte [esi + 5], 0
je 0x40342a
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x403427
inc dword [esi + 0x40]
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x34]
jne 0x403427
inc dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jne 0x403439
mov dword [esi + 0x3c], ebx
xor eax, eax
jmp 0x40343c
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret 4

Function at 0x4035f3
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x40361e
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x403639
push 1
jmp 0x403620
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
ret 8
Function at 0x40368d
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x46af60
call fcn.0040e446
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xe
push dword [ebp]
call ebx
mov esi, eax
test esi, esi
jne 0x4036bf
mov esi, 0x7fff
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e2dc
pop ecx
mov edi, eax
push edi
lea eax, [esi + 1]
push eax
push 0xd
push dword [ebp]
call ebx
and word [edi + esi*2], 0
test eax, eax
jle 0x40370a
mov eax, dword [esp + 0x18]
push edi
call fcn.0040e446
mov bl, 1
push edi
call fcn.0044e346
pop ecx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 8
xor bl, bl
jmp 0x4036fa
Function at 0x403f7e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp byte [ebx + 0xb], 0
je 0x403f9e
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
cmp byte [ebx + 9], 0
push esi
mov esi, 0x400
je 0x403fd7
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [ebx + 0x58]
lea ecx, [ebp - 0x818]
push ecx
push eax
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
jne 0x403fd4
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [ebx + 6], 0
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x40406d
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call edi
cmp byte [ebx + 0xc], 0
jne 0x404016
lea eax, [ebp - 0x818]
push eax
call fcn.0044e874
pop ecx
push eax
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov eax, dword [ebx + 0x10]
dec eax
je 0x40404c
dec eax
je 0x404035
dec eax
jne 0x40406a
push dword [ebx + 0x14]
lea eax, [ebp - 0x818]
push eax
call fcn.0044e81b
pop ecx
pop ecx
jmp 0x404063
push dword [ebx + 0x14]
lea eax, [ebp - 0x818]
push eax
call fcn.0044eaec
test eax, eax
pop ecx
pop ecx
je 0x40406a
jmp 0x404067
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push eax
lea eax, [ebp - 0x818]
push eax
push ecx
call fcn.0044e920
add esp, 0xc
test eax, eax
jne 0x40406a
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [ebx + 7], 0
je 0x4040da
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x818]
push eax
lea esi, [ebp - 0x14]
call fcn.0040e2e3
lea esi, [ebx + 0x2c]
lea edi, [ebp - 0x14]
call fcn.00405aff
push dword [ebp - 0x14]
call fcn.0044e346
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
pop ecx
je 0x4040d7
mov ecx, dword [esi]
cmp ecx, edi
je 0x4040d7
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0x28]
push edi
push dword [esi + 0xc]
push ecx
push edi
push eax
call fcn.0044d290
add esp, 0x20
cmp eax, edi
mov dword [esi + 0x18], eax
jle 0x4040d7
inc dword [ebp - 4]
mov dword [esi + 0x18], edi
inc dword [ebp - 8]
cmp byte [ebx + 8], 0
pop edi
je 0x4040fd
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x4040fa
push dword [ebp + 8]
mov esi, ebx
call fcn.00404145
test al, al
je 0x4040fa
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [ebx + 0xa], 0
je 0x40411c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x404119
inc dword [ebx + 0x68]
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x64]
jne 0x404119
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x40413d
lea eax, [ebp + 8]
push eax
lea esi, [ebx + 0x78]
call fcn.0041f51f
inc dword [ebx + 0x6c]
xor eax, eax
cmp byte [ebx + 4], al
sete al
jmp 0x404140
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x4041a1
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4041bf
mov eax, dword [esp + 0xc]
cmp byte [eax + 5], 1
jne 0x404254
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push 0
push 0
push 0xe
push dword [esp + 0x24]
call ebx
mov esi, eax
test esi, esi
jne 0x4041de
mov esi, 0x7fff
xor ecx, ecx
push 2
lea ebp, [esi + 1]
pop edx
mov eax, ebp
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e2dc
pop ecx
mov edi, eax
push edi
push ebp
push 0xd
push dword [esp + 0x24]
call ebx
and word [edi + esi*2], 0
test eax, eax
pop ebp
pop ebx
jg 0x40421d
xor esi, esi
inc esi
push edi
call fcn.0044e346
pop ecx
mov eax, esi
jmp 0x404257
mov esi, dword [esp + 0xc]
cmp byte [esi + 0xc], 0
jne 0x404236
push edi
call fcn.0044e874
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push dword [esi + 0x20]
push edi
call fcn.0044eaec
test eax, eax
pop ecx
pop ecx
je 0x40424d
mov byte [esi + 0x70], 1
xor esi, esi
jmp 0x404212
push edi
call fcn.0044e346
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
ret 8
Function at 0x405fde
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.004537c0
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x48c898], bl
mov byte [0x48c899], bl
mov byte [0x48c89a], bl
mov dword [0x48c89c], ebx
mov dword [0x48c8a0], ebx
mov dword [0x48c8a4], ebx
mov dword [0x48c8a8], ebx
mov dword [0x48c8ac], 0x46b744
mov dword [0x48c8b0], ebx
mov dword [0x48c8b4], ebx
mov dword [0x48c8b8], ebx
mov dword [0x48c8bc], 0x46b744
mov dword [0x48c8c0], ebx
mov dword [0x48c8c4], ebx
mov dword [0x48c8c8], ebx
mov dword [0x48c8d0], ebx
mov dword [0x48c8d8], ebx
call fcn.0044e2dc
pop ecx
mov dword [0x48c8cc], 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.00450ca8
push esi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.00450cf2
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00450d2f
mov edi, 0x20a
push edi
call fcn.0044e2dc
mov ecx, dword [0x48c8cc]
mov edx, dword [0x48c8d0]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48c8d0]
mov eax, dword [0x48c8cc]
mov eax, dword [eax + ecx*4]
inc dword [0x48c8d0]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0044e262
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 0x406245
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 0x40623c
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 0x4061ae
cmp ax, 0x3b
je 0x4061ae
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044e238
pop ecx
pop ecx
jmp 0x406233
lea eax, [ebp - 0x21c]
push eax
call fcn.0044e874
test eax, eax
pop ecx
je 0x4061ea
lea eax, [ebp - 0x21c]
push eax
call fcn.0044e874
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x4061ea
lea eax, [ebp - 0x21c]
push 0x46b370
push eax
call fcn.0044e238
pop ecx
pop ecx
push edi
call fcn.0044e2dc
mov ecx, dword [0x48c8cc]
mov edx, dword [0x48c8d0]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48c8d0]
mov eax, dword [0x48c8cc]
mov eax, dword [eax + ecx*4]
inc dword [0x48c8d0]
push esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.00450d4d
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x40623c
add dword [ebp - 8], 2
jmp 0x40617e
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x48c898
pop ebx
leave
ret
Function at 0x407088
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.0044e2dc
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.00450640
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x4070e1
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x4070d8
pop edi
pop ebx
leave
ret 4

Function at 0x407e29
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 [0x48aa00], eax
mov dword [0x48aa04], eax
mov al, byte [0x48ac1d]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x48ac48], ebx
mov byte [0x48aa08], 1
mov byte [0x48aa09], bl
mov dword [0x48aa0c], ebx
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x48ac58], eax
call esi
push ebx
push 0x10
mov byte [0x48ac55], al
call esi
push ebx
push dword [0x48ac58]
mov byte [0x48ac52], al
call esi
push ebx
push 0xa1
mov byte [0x48ac53], al
call esi
push ebx
push 0x11
mov byte [0x48ac54], al
call esi
push ebx
push 0x12
mov byte [0x48ac50], al
call esi
mov byte [0x48ac51], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x477708]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x407ee1
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x407ec8
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.00450f60
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x407f29
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.00450fe8
add esp, 0xc
test eax, eax
mov byte [0x47770a], 0x20
mov byte [0x47770d], 0x20
je 0x407fbb
jmp 0x407fa6
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.00450f60
test eax, eax
pop ecx
pop ecx
jne 0x407f46
mov byte [0x47770a], 0x20
jmp 0x407f9f
lea eax, [ebp - 6]
push 0x46baf0
push eax
call fcn.00450f60
test eax, eax
pop ecx
pop ecx
jne 0x407f63
mov byte [0x47770d], 0x20
jmp 0x407fb4
lea eax, [ebp - 6]
push 0x46baf4
push eax
call fcn.00450f60
test eax, eax
pop ecx
pop ecx
je 0x407f3d
lea eax, [ebp - 6]
push 0x46baf8
push eax
call fcn.00450f60
test eax, eax
pop ecx
pop ecx
je 0x407fb4
lea eax, [ebp - 6]
push 0x46bafc
push eax
call fcn.00450f60
test eax, eax
pop ecx
pop ecx
jne 0x407fbb
mov byte [0x47770d], 0x20
mov byte [0x47770e], 0x20
mov byte [0x47770b], 0x20
mov byte [0x47770c], 0x20
leave
ret
Function at 0x4081c5
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x4081df
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x4082b5
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 0x408280
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 [0x48cd50], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x408252
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x48cd50]
cmp ecx, eax
mov dword [0x48cd4c], eax
je 0x408247
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x48cd4c]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x4082b4
cmp dword [ebp - 8], ecx
jne 0x4082b4
cmp dword [ebp - 0xc], ecx
jne 0x4082b4
mov eax, dword [0x48cd50]
cmp dword [ebp - 4], eax
jne 0x4082b4
cmp eax, dword [0x48cd4c]
jne 0x4082b4
mov eax, dword [ebp + 8]
mov dword [eax + 0x24c], ecx
jmp 0x4082b4
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4082a8
push edi
push dword [0x48cd4c]
push eax
call esi
mov ecx, dword [0x48cd50]
mov eax, dword [0x48cd4c]
cmp ecx, eax
je 0x4082a8
push edi
push eax
push ecx
call esi
push edi
push dword [0x48cd50]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x40832b
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 0x408389
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov eax, esi
call fcn.004082ba
mov edi, dword [esi + 4]
push esi
call fcn.004094a1
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push dword [ebp + 8]
mov eax, esi
push 2
pop ebx
call fcn.004082ba
mov edi, dword [esi]
push esi
call fcn.004094a1
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x4084d4
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, 0x200
test ebp, eax
push edi
je 0x4084ed
or dword [esi + 0x248], 8
test ax, 0x400
je 0x4084fa
or dword [esi + 0x248], 1
mov edi, 0x100
test edi, eax
je 0x40850a
or dword [esi + 0x248], 2
mov eax, dword [esi + 0x248]
test al, 8
mov ebx, 0x800
je 0x408526
test ebx, eax
je 0x408526
xor eax, 8
mov dword [esi + 0x248], eax
mov eax, dword [esi + 0x248]
test al, 1
je 0x40853d
test edi, eax
je 0x40853d
xor eax, 1
mov dword [esi + 0x248], eax
mov eax, dword [esi + 0x248]
test al, 2
je 0x408554
test ebp, eax
je 0x408554
xor eax, 2
mov dword [esi + 0x248], eax
mov eax, dword [esi + 0x248]
test al, 0x10
je 0x40856d
test ax, 0x1000
je 0x40856d
xor eax, 0x10
mov dword [esi + 0x248], eax
cmp dword [esi + 0x24c], 0
je 0x4085c8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x248]
test ebx, eax
jne 0x408590
mov byte [esp + 0x21], 0
test edi, eax
jne 0x408599
mov byte [esp + 0x22], 0
test ebp, eax
jne 0x4085ad
mov ecx, dword [esi + 0x258]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x4085b8
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x4086be
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x4085e9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4085fd
test dword [esi + 0x248], ebx
jne 0x4085fd
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.00408f00
push 0x12
call ebp
test di, ax
jne 0x408613
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40862a
test word [esi + 0x248], 0x100
jne 0x40862a
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.00408f00
push dword [esi + 0x258]
call ebp
test di, ax
jne 0x408648
push dword [esi + 0x258]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x408662
test word [esi + 0x248], 0x200
jne 0x408662
mov eax, dword [esi + 0x258]
push 0
mov ecx, esi
call fcn.00408f00
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x40867b
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x408691
test word [esi + 0x248], 0x400
jne 0x408691
push 0
mov eax, ebx
mov ecx, esi
call fcn.00408f00
push 0x5b
call ebp
test di, ax
jne 0x4086a7
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4086be
test word [esi + 0x248], 0x1000
jne 0x4086be
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.00408f00
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x4086c8
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebx
mov ebx, dword [esp + 0x10c]
cmp dword [ebx + 0x24c], 0
je 0x408781
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x40870d
test word [ebx + 0x248], 0x800
jne 0x40870d
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x408723
test word [ebx + 0x248], 0x100
jne 0x408723
or dword [esp + 4], 1
mov ecx, dword [ebx + 0x258]
cmp byte [esp + ecx + 8], al
je 0x408735
cmp byte [esp + 0x18], al
jne 0x408745
test word [ebx + 0x248], 0x200
jne 0x408745
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x40875e
test word [ebx + 0x248], 0x400
jne 0x40875e
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x408863
test word [ebx + 0x248], 0x1000
jne 0x408863
or dword [esp + 4], 0x10
jmp 0x408863
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 0x4087a7
push 0x11
call ebp
test si, ax
je 0x4087ba
test word [ebx + 0x248], 0x800
jne 0x4087ba
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x4087cc
push 0x12
call ebp
test si, ax
je 0x4087dc
test word [ebx + 0x248], 0x100
jne 0x4087dc
or dword [esp + 0x10], 1
add ebx, 0x258
push dword [ebx]
call edi
test si, ax
jne 0x4087f4
push dword [ebx]
call ebp
test si, ax
je 0x40880b
mov eax, dword [esp + 0x118]
test word [eax + 0x248], 0x200
jne 0x40880b
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x408820
push ebx
call ebp
test si, ax
je 0x408837
mov eax, dword [esp + 0x118]
test word [eax + 0x248], 0x400
jne 0x408837
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x408849
push 0x5b
call ebp
test si, ax
je 0x408860
mov eax, dword [esp + 0x118]
test word [eax + 0x248], 0x1000
jne 0x408860
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 0x408989
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 0x408ba3
mov eax, dword [esi + 0x24c]
test eax, eax
je 0x408b15
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x408b15
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x4089d9
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x4089f7
mov eax, dword [esi + 0x258]
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 0x408a09
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x408a18
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x408a27
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 0x408a5c
movzx eax, byte [esi + 0x255]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x24c]
call edi
cmp dword [ebp - 0x10], 0
je 0x408a7f
movzx eax, byte [esi + 0x253]
shl eax, 0x10
or eax, 1
push eax
push dword [esi + 0x258]
push ebx
push dword [esi + 0x24c]
call edi
cmp dword [ebp - 0x14], 0
je 0x408a9e
movzx eax, byte [esi + 0x254]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x24c]
call edi
cmp dword [ebp - 8], 0
je 0x408abd
movzx eax, byte [esi + 0x250]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x24c]
call edi
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x408b9a
cmp dword [ebp - 8], eax
jne 0x408aee
test word [ebp + 8], 0x800
jne 0x408aee
movzx eax, byte [esi + 0x251]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x408b08
cmp dword [ebp - 0xc], eax
je 0x408b9a
movzx eax, byte [esi + 0x251]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x24c]
call edi
jmp 0x408b9a
test bl, 0x10
je 0x408b2d
movzx eax, byte [esi + 0x255]
push eax
push 0x5b
xor ebx, ebx
mov eax, esi
call fcn.004082ba
test byte [ebp + 8], 2
je 0x408b4c
movzx eax, byte [esi + 0x253]
push eax
movzx eax, byte [esi + 0x258]
push eax
xor ebx, ebx
mov eax, esi
call fcn.004082ba
test byte [ebp + 8], 4
je 0x408b68
movzx eax, byte [esi + 0x254]
push eax
push 0xa1
xor ebx, ebx
mov eax, esi
call fcn.004082ba
test byte [ebp + 8], 8
je 0x408b81
movzx eax, byte [esi + 0x250]
push eax
push 0x11
xor ebx, ebx
mov eax, esi
call fcn.004082ba
test byte [ebp + 8], 1
je 0x408b9a
movzx eax, byte [esi + 0x251]
push eax
push 0x12
xor ebx, ebx
mov eax, esi
call fcn.004082ba
mov edi, dword [esi + 4]
push esi
call fcn.004094a1
pop edi
pop ebx
leave
ret 4