joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e7f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push 0xb959ffff
push 0xcf6fffff
call fcn.00402879
mov byte [0x415301], al
push 0xe58bffff
movsx eax, word [0x415314]
push eax
call fcn.004026ee
push dword [0x41533c]
mov dword [0x41532c], eax
push dword [0x415334]
call fcn.00402909
xor ecx, ecx
add esp, 0x18
cmp byte [0x4152ff], cl
mov dword [0x415320], eax
mov byte [0x4152fd], 1
mov ebx, 0x100
setne cl
mov word [0x41530c], cx
xor ecx, ecx
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp ecx, ebx
jb 0x40e869
or byte [0x4152fa], 0xff
and byte [ebp - 1], 0
push 0xc79bffff
push eax
call fcn.00402831
and byte [ebp - 2], 0
push 0xab1bffff
push 0x85b5ffff
mov byte [0x4152fe], al
call fcn.004027d2
add word [0x415308], ax
and byte [ebp - 3], 0
movsx ax, byte [0x4152fb]
add esp, 0x10
mov word [0x415314], ax
xor edi, edi
movsx eax, word [0x415304]
push eax
push 0xd055ffff
call fcn.004026b7
mov word [0x41530a], ax
mov eax, edi
xor edx, edx
lea esi, [ebp + edi - 0x104]
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov al, byte [edx + eax]
add al, byte [esi]
add byte [ebp - 3], al
movsx eax, byte [0x4152ff]
push eax
call dword [sym.imp.USER32.dll_IsMenu]
add dword [0x415334], eax
mov cl, byte [esi]
movzx eax, byte [ebp - 3]
mov dl, byte [ebp + eax - 0x104]
lea eax, [ebp + eax - 0x104]
mov byte [esi], dl
mov byte [eax], cl
mov ecx, 0xe165ffff
movsx eax, byte [0x415301]
sub ecx, eax
add dword [0x415320], ecx
inc edi
cmp edi, ebx
jb 0x40e8c1
push 0x7e59ffff
push 0x85bbffff
call fcn.00402831
pop ecx
mov word [0x415314], ax
pop ecx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jbe 0x40ea09
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
sub eax, ebx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
push 0xca9bffff
push 0x7ca9ffff
call fcn.004027d2
add byte [0x4152fd], al
inc byte [ebp - 1]
movzx eax, byte [ebp - 1]
pop ecx
lea esi, [ebp + eax - 0x104]
pop ecx
push 0x711fffff
mov al, byte [esi]
add byte [ebp - 2], al
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
add byte [0x4152fe], al
push 0xd6d5ffff
movzx eax, byte [ebp - 2]
mov cl, byte [ebp + eax - 0x104]
push 0xbee7ffff
lea edi, [ebp + eax - 0x104]
mov al, byte [esi]
mov byte [esi], cl
mov byte [edi], al
call fcn.00402831
mov byte [0x415300], al
mov al, byte [edi]
add al, byte [esi]
mov ecx, dword [ebp + 8]
movzx eax, al
mov al, byte [ebp + eax - 0x104]
xor al, byte [ecx + ebx]
mov byte [ebx], al
push dword [0x41531c]
push 0x2621ffff
call fcn.00402909
add dword [0x415330], eax
add esp, 0x10
inc ebx
dec dword [ebp + 0xc]
jne 0x40e969
dec word [0x415314]
pop edi
pop esi
pop ebx
leave
ret
Function at 0xe7f958
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe7f962
pushal
call 0xe7f968
pop ebp
sub ebp, 0x10
sub ebp, 0xa7f958
jmp 0xe7f97e
mov eax, 0xa7f958
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ba
mov edx, 0x813834d6
xor byte [eax], dl
inc eax
dec ecx
jne 0xe7f995
jmp 0xe7f9a8
pop ebp
sbb ebx, dword [ebp + 0x5f]
ljmp 0x2e17
Function at 0x401e83
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push edi
push 1
push dword [esi]
call fcn.00403679
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebp, ebp
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x401ed3
push 0x25
push pe_nt_image_headers32
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x401ef5
push 0x27
push pe_nt_image_headers32
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push dword [esi]
call fcn.00403679
pop edi
pop ebp
mov al, 1
pop ebx
ret 4

Function at 0x402353
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push dword [ebx]
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x402380
xor al, al
jmp 0x402394
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
jne 0x40239a
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 0x101]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e9ed
pop ecx
push eax
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x4023f7
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4023d6
mov ecx, dword [ebp - 4]
and word [ecx + eax*2], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp + 8]
call fcn.0040e46d
mov bl, 1
push dword [ebp - 4]
call fcn.0044e722
pop ecx
mov al, bl
jmp 0x402393
xor bl, bl
jmp 0x4023ea
Function at 0x403337
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp byte [esi + 7], bl
je 0x403411
push pe_nt_image_headers32
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x208]
push eax
call fcn.0044f00e
mov ebx, eax
cmp ebx, edi
pop ecx
mov dword [ebp - 4], edi
je 0x40339a
lea edi, [ebx - 1]
jmp 0x403396
movzx eax, word [ebp + edi*2 - 0x208]
push eax
call fcn.0044efc4
dec edi
test eax, eax
pop ecx
je 0x40339a
inc dword [ebp - 4]
test edi, edi
jge 0x40337f
mov eax, dword [esi + 0x48]
cmp eax, ebx
jle 0x4034bf
mov ecx, dword [esi + 0x4c]
cmp ecx, dword [ebp - 4]
jle 0x4034bf
sub eax, ecx
add eax, dword [ebp - 4]
cmp ebx, eax
jne 0x4034bf
mov eax, dword [esi + 0x18]
push ebx
lea ecx, [ebp - 0x208]
push ecx
push eax
call fcn.0044f024
add esp, 0xc
test eax, eax
jne 0x4034bf
inc dword [esi + 0x40]
push dword [esi + 0x40]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0xa0c]
push str._s_u
push eax
call fcn.0044f059
push dword [esi + 0x18]
lea eax, [ebp - 0xa0c]
push eax
call fcn.0044ef27
add esp, 0x18
test eax, eax
jmp 0x4034b3
cmp byte [esi + 8], bl
je 0x403431
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 0x30], eax
jne 0x4034bf
mov dword [esi + 0x3c], edi
jmp 0x4034bb
cmp byte [esi + 4], bl
je 0x403467
push pe_nt_image_headers32
lea eax, [ebp - 0xa0c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0xa0c]
push ecx
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
jne 0x403464
xor ebx, ebx
inc ebx
xor edi, edi
inc edi
cmp byte [esi + 6], 0
je 0x40349a
push 0x400
lea eax, [ebp - 0xa0c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0xa0c]
push ecx
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
jne 0x403499
inc ebx
inc edi
cmp byte [esi + 5], 0
je 0x4034b1
cmp ebx, edi
jne 0x4034b0
inc dword [esi + 0x40]
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x34]
jne 0x4034b0
inc ebx
inc edi
cmp ebx, edi
jne 0x4034bf
mov eax, dword [ebp + 8]
mov dword [esi + 0x3c], eax
xor eax, eax
jmp 0x4034c2
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 4

Function at 0x403679
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x4036a4
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 0x4036bf
push 1
jmp 0x4036a6
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 0x403713
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov ebx, eax
push 0xe
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
jne 0x403731
mov esi, 0x7fff
push ebp
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.0044e9ed
pop ecx
mov edi, eax
push edi
push ebp
push 0xd
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
and word [edi + esi*2], 0
test eax, eax
mov eax, dword [esp + 0x14]
pop ebp
jne 0x403783
push 0x46bf68
call fcn.0040e46d
xor bl, bl
push edi
call fcn.0044e722
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
ret 4
push edi
call fcn.0040e46d
mov bl, 1
jmp 0x403774
Function at 0x404290
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 0x4042ae
mov eax, dword [esp + 0xc]
cmp byte [eax + 5], 1
jne 0x404343
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 0x4042cd
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.0044e9ed
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 0x40430c
xor esi, esi
inc esi
push edi
call fcn.0044e722
pop ecx
mov eax, esi
jmp 0x404346
mov esi, dword [esp + 0xc]
cmp byte [esi + 0xc], 0
jne 0x404325
push edi
call fcn.0044f00e
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push dword [esi + 0x20]
push edi
call fcn.0044f286
test eax, eax
pop ecx
pop ecx
je 0x40433c
mov byte [esi + 0x70], 1
xor esi, esi
jmp 0x404301
push edi
call fcn.0044e722
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
ret 8
Function at 0x407163
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.0044e9ed
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.00450dd0
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x4071bc
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x4071b3
pop edi
pop ebx
leave
ret 4

Function at 0x407ee7
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 [0x48ba08], eax
mov dword [0x48ba0c], eax
mov al, byte [0x48bc25]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x48bc44], ebx
mov byte [0x48ba10], 1
mov byte [0x48ba11], bl
mov dword [0x48ba14], ebx
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x48bc54], eax
call esi
push ebx
push 0x10
mov byte [0x48bc51], al
call esi
push ebx
push dword [0x48bc54]
mov byte [0x48bc4e], al
call esi
push ebx
push 0xa1
mov byte [0x48bc4f], al
call esi
push ebx
push 0x11
mov byte [0x48bc50], al
call esi
push ebx
push 0x12
mov byte [0x48bc4c], al
call esi
mov byte [0x48bc4d], 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 0x407f9f
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x407f86
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.00451670
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x407fe7
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.004516f8
add esp, 0xc
test eax, eax
mov byte [0x478712], 0x20
mov byte [0x478715], 0x20
je 0x408079
jmp 0x408064
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.00451670
test eax, eax
pop ecx
pop ecx
jne 0x408004
mov byte [0x478712], 0x20
jmp 0x40805d
lea eax, [ebp - 6]
push 0x46cb08
push eax
call fcn.00451670
test eax, eax
pop ecx
pop ecx
jne 0x408021
mov byte [0x478715], 0x20
jmp 0x408072
lea eax, [ebp - 6]
push 0x46cb0c
push eax
call fcn.00451670
test eax, eax
pop ecx
pop ecx
je 0x407ffb
lea eax, [ebp - 6]
push 0x46cb10
push eax
call fcn.00451670
test eax, eax
pop ecx
pop ecx
je 0x408072
lea eax, [ebp - 6]
push 0x46cb14
push eax
call fcn.00451670
test eax, eax
pop ecx
pop ecx
jne 0x408079
mov byte [0x478715], 0x20
mov byte [0x478716], 0x20
mov byte [0x478713], 0x20
mov byte [0x478714], 0x20
leave
ret
Function at 0x40828c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x4082a6
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x40837c
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 0x408347
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 [0x48dd68], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x408319
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x48dd68]
cmp ecx, eax
mov dword [0x48dd64], eax
je 0x40830e
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x48dd64]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x40837b
cmp dword [ebp - 8], ecx
jne 0x40837b
cmp dword [ebp - 0xc], ecx
jne 0x40837b
mov eax, dword [0x48dd68]
cmp dword [ebp - 4], eax
jne 0x40837b
cmp eax, dword [0x48dd64]
jne 0x40837b
mov eax, dword [ebp + 8]
mov dword [eax + 0x240], ecx
jmp 0x40837b
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x40836f
push edi
push dword [0x48dd64]
push eax
call esi
mov ecx, dword [0x48dd68]
mov eax, dword [0x48dd64]
cmp ecx, eax
je 0x40836f
push edi
push eax
push ecx
call esi
push edi
push dword [0x48dd68]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x408398
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 0x4083f0
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.00408381
mov edi, dword [ebx + 4]
push ebx
call fcn.004094db
push 2
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00408381
mov edi, dword [ebx]
push ebx
call fcn.004094db
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8
Function at 0x40853b
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
mov ebx, 0x200
test ebx, eax
push ebp
push edi
je 0x408554
or dword [esi + 0x23c], 8
test ax, 0x400
je 0x408561
or dword [esi + 0x23c], 1
mov edi, pe_nt_image_headers32
test edi, eax
je 0x408571
or dword [esi + 0x23c], 2
mov eax, dword [esi + 0x23c]
test al, 8
je 0x40858a
test ax, 0x800
je 0x40858a
xor eax, 8
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 1
je 0x4085a1
test edi, eax
je 0x4085a1
xor eax, 1
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 2
je 0x4085b8
test ebx, eax
je 0x4085b8
xor eax, 2
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 0x10
je 0x4085d1
test ax, 0x1000
je 0x4085d1
xor eax, 0x10
mov dword [esi + 0x23c], eax
cmp dword [esi + 0x240], 0
je 0x40862e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x23c]
test ax, 0x800
jne 0x4085f6
mov byte [esp + 0x21], 0
test edi, eax
jne 0x4085ff
mov byte [esp + 0x22], 0
test ebx, eax
jne 0x408613
mov ecx, dword [esi + 0x24c]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x40861e
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40871f
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
pop ebx
push ebx
call ebp
mov edi, 0x8000
test di, ax
jne 0x408650
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x408664
test word [esi + 0x23c], 0x800
jne 0x408664
push 0
mov eax, esi
call fcn.00408f3f
push 0x12
pop ebx
push ebx
call ebp
test di, ax
jne 0x40867b
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40868f
test word [esi + 0x23c], 0x100
jne 0x40868f
push 0
mov eax, esi
call fcn.00408f3f
push dword [esi + 0x24c]
call ebp
test di, ax
jne 0x4086ad
push dword [esi + 0x24c]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4086c7
test word [esi + 0x23c], 0x200
jne 0x4086c7
mov ebx, dword [esi + 0x24c]
push 0
mov eax, esi
call fcn.00408f3f
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x4086e0
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4086f4
test word [esi + 0x23c], 0x400
jne 0x4086f4
push 0
mov eax, esi
call fcn.00408f3f
push 0x5b
pop ebx
push ebx
call ebp
test di, ax
jne 0x40870b
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40871f
test word [esi + 0x23c], 0x1000
jne 0x40871f
push 0
mov eax, esi
call fcn.00408f3f
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x408729
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 0x4087e2
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x40876e
test word [ebx + 0x23c], 0x800
jne 0x40876e
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x408784
test word [ebx + 0x23c], 0x100
jne 0x408784
and dword [edx - 0x74fefbce], 0xffffff8b
dec esp
add al, byte [eax]
add byte [eax], bh
inc esp
or al, 8
mov ecx, dword [ebx + 0x24c]
cmp byte [esp + ecx + 8], al
je 0x408796
cmp byte [esp + 0x18], al
jne 0x4087a6
test word [ebx + 0x23c], 0x200
jne 0x4087a6
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x4087bf
test word [ebx + 0x23c], 0x400
jne 0x4087bf
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x4088c4
test word [ebx + 0x23c], 0x1000
jne 0x4088c4
or dword [esp + 4], 0x10
jmp 0x4088c4
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 0x408808
push 0x11
call ebp
test si, ax
je 0x40881b
test word [ebx + 0x23c], 0x800
jne 0x40881b
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x40882d
push 0x12
call ebp
test si, ax
je 0x40883d
test word [ebx + 0x23c], 0x100
jne 0x40883d
or dword [esp + 0x10], 1
add ebx, 0x24c
push dword [ebx]
call edi
test si, ax
jne 0x408855
push dword [ebx]
call ebp
test si, ax
je 0x40886c
mov eax, dword [esp + 0x118]
test word [eax + 0x23c], 0x200
jne 0x40886c
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x408881
push ebx
call ebp
test si, ax
je 0x408898
mov eax, dword [esp + 0x118]
test word [eax + 0x23c], 0x400
jne 0x408898
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x4088aa
push 0x5b
call ebp
test si, ax
je 0x4088c1
mov eax, dword [esp + 0x118]
test word [eax + 0x23c], 0x1000
jne 0x4088c1
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 0x4089ea
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 0x408bf0
mov eax, dword [esi + 0x240]
xor edi, edi
cmp eax, edi
je 0x408b75
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x408b75
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x408a3c
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x408a5a
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 0x408a6c
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x408a7b
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x408a8a
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, pe_nt_image_headers32
je 0x408abf
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 0x408ae2
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 0x408b01
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 0x408b20
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 0x408be7
cmp dword [ebp - 8], eax
jne 0x408b51
test word [ebp + 8], 0x800
jne 0x408b51
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x408b6b
cmp dword [ebp - 0xc], eax
je 0x408be7
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x240]
call edi
jmp 0x408be7
test bl, 0x10
je 0x408b8a
movzx eax, byte [esi + 0x249]
push edi
push eax
push 0x5b
call fcn.00408381
test bl, 2
je 0x408ba5
movzx eax, byte [esi + 0x247]
push edi
push eax
movzx eax, byte [esi + 0x24c]
push eax
call fcn.00408381
test bl, 4
je 0x408bbd
movzx eax, byte [esi + 0x248]
push edi
push eax
push 0xa1
call fcn.00408381
test bl, 8
je 0x408bd2
movzx eax, byte [esi + 0x244]
push edi
push eax
push 0x11
call fcn.00408381
test bl, 1
je 0x408be7
movzx eax, byte [esi + 0x245]
push edi
push eax
push 0x12
call fcn.00408381
mov edi, dword [esi + 4]
push esi
call fcn.004094db
pop edi
pop ebx
leave
ret 4