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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp byte [ebx + 0xb], 0
je 0x403999
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 0x4039d2
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, dword [ebx + 0x58]
lea ecx, [ebp - 0x418]
push ecx
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
jne 0x4039cf
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [ebx + 6], 0
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextA]
je 0x403a68
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call edi
cmp byte [ebx + 0xc], 0
jne 0x403a11
lea eax, [ebp - 0x418]
push eax
call fcn.0044d720
pop ecx
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
mov eax, dword [ebx + 0x10]
dec eax
je 0x403a47
dec eax
je 0x403a30
dec eax
jne 0x403a65
push dword [ebx + 0x14]
lea eax, [ebp - 0x418]
push eax
call fcn.0044d5b0
pop ecx
pop ecx
jmp 0x403a5e
push dword [ebx + 0x14]
lea eax, [ebp - 0x418]
push eax
call fcn.0044d830
test eax, eax
pop ecx
pop ecx
je 0x403a65
jmp 0x403a62
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push eax
lea eax, [ebp - 0x418]
push eax
push ecx
call fcn.0044d65f
add esp, 0xc
test eax, eax
jne 0x403a65
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [ebx + 7], 0
je 0x403ad5
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x418]
push eax
lea esi, [ebp - 0x14]
call fcn.0040daad
lea esi, [ebx + 0x2c]
lea edi, [ebp - 0x14]
call fcn.004055c0
push dword [ebp - 0x14]
call fcn.0044d0f0
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
pop ecx
je 0x403ad2
mov ecx, dword [esi]
cmp ecx, edi
je 0x403ad2
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.0044c007
add esp, 0x20
cmp eax, edi
mov dword [esi + 0x18], eax
jle 0x403ad2
inc dword [ebp - 4]
mov dword [esi + 0x18], edi
inc dword [ebp - 8]
cmp byte [ebx + 8], 0
pop edi
je 0x403af8
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403af5
push dword [ebp + 8]
mov esi, ebx
call fcn.00403b40
test al, al
je 0x403af5
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [ebx + 0xa], 0
je 0x403b17
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x403b14
inc dword [ebx + 0x68]
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x64]
jne 0x403b14
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403b38
lea eax, [ebp + 8]
push eax
lea esi, [ebx + 0x78]
call fcn.00403c65
inc dword [ebx + 0x6c]
xor eax, eax
cmp byte [ebx + 4], al
sete al
jmp 0x403b3b
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x403b9c
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 0x403bba
mov eax, dword [esp + 0xc]
cmp byte [eax + 5], 1
jne 0x403c3e
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push 0
push 0
push 0xe
push dword [esp + 0x24]
call ebx
mov esi, eax
test esi, esi
jne 0x403bd9
mov esi, 0x7fff
lea ebp, [esi + 1]
push ebp
call fcn.0044d086
pop ecx
mov edi, eax
push edi
push ebp
push 0xd
push dword [esp + 0x24]
call ebx
test eax, eax
pop ebp
mov byte [edi + esi], 0
pop ebx
jg 0x403c07
xor esi, esi
inc esi
push edi
call fcn.0044d0f0
pop ecx
mov eax, esi
jmp 0x403c41
mov esi, dword [esp + 0xc]
cmp byte [esi + 0xc], 0
jne 0x403c20
push edi
call fcn.0044d720
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push dword [esi + 0x20]
push edi
call fcn.0044d830
test eax, eax
pop ecx
pop ecx
je 0x403c37
mov byte [esi + 0x70], 1
xor esi, esi
jmp 0x403bfc
push edi
call fcn.0044d0f0
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
ret 8
Function at 0x405aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.00452790
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x47ee88], bl
mov byte [0x47ee89], bl
mov byte [0x47ee8a], bl
mov dword [0x47ee8c], ebx
mov dword [0x47ee90], ebx
mov dword [0x47ee94], ebx
mov dword [0x47ee98], ebx
mov dword [0x47ee9c], 0x469170
mov dword [0x47eea0], ebx
mov dword [0x47eea4], ebx
mov dword [0x47eea8], ebx
mov dword [0x47eeac], 0x469170
mov dword [0x47eeb0], ebx
mov dword [0x47eeb4], ebx
mov dword [0x47eeb8], ebx
mov dword [0x47eec0], ebx
mov dword [0x47eec8], ebx
call fcn.0044d086
pop ecx
mov dword [0x47eebc], 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.0044fa34
push esi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.0044fa80
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0044fbb5
lea edi, [esi + 1]
push edi
call fcn.0044d086
mov ecx, dword [0x47eebc]
mov edx, dword [0x47eec0]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x47eec0]
mov eax, dword [0x47eebc]
mov eax, dword [eax + ecx*4]
inc dword [0x47eec0]
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.0044cf30
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 0x405cf6
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 0x405ced
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 0x405c60
cmp al, 0x3b
je 0x405c60
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0044cf40
pop ecx
pop ecx
jmp 0x405ce5
lea eax, [ebp - 0x118]
push eax
call fcn.0044d720
test eax, eax
pop ecx
je 0x405c9e
lea eax, [ebp - 0x118]
push eax
call fcn.0044d720
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x405c9e
lea eax, [ebp - 0x118]
push 0x469344
push eax
call fcn.0044cf40
pop ecx
pop ecx
push edi
call fcn.0044d086
mov ecx, dword [0x47eebc]
mov edx, dword [0x47eec0]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x47eec0]
mov eax, dword [0x47eebc]
mov eax, dword [eax + ecx*4]
inc dword [0x47eec0]
push esi
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.0044fbe0
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x405ced
inc dword [ebp - 8]
jmp 0x405c36
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x47ee88
pop ebx
leave
ret
Function at 0x406b00
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.0044d086
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.0044f370
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x406b5c
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x406b53
push eax
or eax, 0xffffffff
call fcn.0040d6f7
push dword [ebp - 4]
mov esi, eax
call fcn.0044d0f0
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x4077e8
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 [0x47d790], eax
mov dword [0x47d794], eax
mov al, byte [0x47d8a9]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x47d8d4], ebx
mov byte [0x47d798], 1
mov byte [0x47d799], bl
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x47d8e4], eax
call esi
push ebx
push 0x10
mov byte [0x47d8e1], al
call esi
push ebx
push dword [0x47d8e4]
mov byte [0x47d8de], al
call esi
push ebx
push 0xa1
mov byte [0x47d8df], al
call esi
push ebx
push 0x11
mov byte [0x47d8e0], al
call esi
push ebx
push 0x12
mov byte [0x47d8dc], al
call esi
mov byte [0x47d8dd], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x4727b8]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x40789a
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x407881
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x4078e2
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.0044d65f
add esp, 0xc
test eax, eax
mov byte [0x4727ba], 0x20
mov byte [0x4727bd], 0x20
je 0x407974
jmp 0x40795f
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
jne 0x4078ff
mov byte [0x4727ba], 0x20
jmp 0x407958
lea eax, [ebp - 6]
push 0x4698ec
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
jne 0x40791c
mov byte [0x4727bd], 0x20
jmp 0x40796d
lea eax, [ebp - 6]
push 0x4698f0
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x4078f6
lea eax, [ebp - 6]
push 0x4698f4
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
je 0x40796d
lea eax, [ebp - 6]
push 0x4698f8
push eax
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
jne 0x407974
mov byte [0x4727bd], 0x20
mov byte [0x4727be], 0x20
mov byte [0x4727bb], 0x20
mov byte [0x4727bc], 0x20
leave
ret
Function at 0x407b61
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x407b7b
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x407c51
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 0x407c1c
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 [0x47f340], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x407bee
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x47f340]
cmp ecx, eax
mov dword [0x47f33c], eax
je 0x407be3
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x47f33c]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x407c50
cmp dword [ebp - 8], ecx
jne 0x407c50
cmp dword [ebp - 0xc], ecx
jne 0x407c50
mov eax, dword [0x47f340]
cmp dword [ebp - 4], eax
jne 0x407c50
cmp eax, dword [0x47f33c]
jne 0x407c50
mov eax, dword [ebp + 8]
mov dword [eax + 0x148], ecx
jmp 0x407c50
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x407c44
push edi
push dword [0x47f33c]
push eax
call esi
mov ecx, dword [0x47f340]
mov eax, dword [0x47f33c]
cmp ecx, eax
je 0x407c44
push edi
push eax
push ecx
call esi
push edi
push dword [0x47f340]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x407cc7
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 0x407d25
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.00407c56
mov edi, dword [esi + 4]
push esi
call fcn.00408e3d
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.00407c56
mov edi, dword [esi]
push esi
call fcn.00408e3d
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x407e70
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, 0x200
test ebp, eax
push edi
je 0x407e89
or dword [esi + 0x144], 8
test ax, 0x400
je 0x407e96
or dword [esi + 0x144], 1
mov edi, 0x100
test edi, eax
je 0x407ea6
or dword [esi + 0x144], 2
mov eax, dword [esi + 0x144]
test al, 8
mov ebx, 0x800
je 0x407ec2
test ebx, eax
je 0x407ec2
xor eax, 8
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 1
je 0x407ed9
test edi, eax
je 0x407ed9
xor eax, 1
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 2
je 0x407ef0
test ebp, eax
je 0x407ef0
xor eax, 2
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 0x10
je 0x407f09
test ax, 0x1000
je 0x407f09
xor eax, 0x10
mov dword [esi + 0x144], eax
cmp dword [esi + 0x148], 0
je 0x407f64
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x144]
test ebx, eax
jne 0x407f2c
mov byte [esp + 0x21], 0
test edi, eax
jne 0x407f35
mov byte [esp + 0x22], 0
test ebp, eax
jne 0x407f49
mov ecx, dword [esi + 0x154]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x407f54
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40805a
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x407f85
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x407f99
test dword [esi + 0x144], ebx
jne 0x407f99
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.0040889c
push 0x12
call ebp
test di, ax
jne 0x407faf
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x407fc6
test word [esi + 0x144], 0x100
jne 0x407fc6
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.0040889c
push dword [esi + 0x154]
call ebp
test di, ax
jne 0x407fe4
push dword [esi + 0x154]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x407ffe
test word [esi + 0x144], 0x200
jne 0x407ffe
mov eax, dword [esi + 0x154]
push 0
mov ecx, esi
call fcn.0040889c
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x408017
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40802d
test word [esi + 0x144], 0x400
jne 0x40802d
push 0
mov eax, ebx
mov ecx, esi
call fcn.0040889c
push 0x5b
call ebp
test di, ax
jne 0x408043
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40805a
test word [esi + 0x144], 0x1000
jne 0x40805a
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.0040889c
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x408064
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebx
mov ebx, dword [esp + 0x10c]
cmp dword [ebx + 0x148], 0
je 0x40811d
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x4080a9
test word [ebx + 0x144], 0x800
jne 0x4080a9
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x4080bf
test word [ebx + 0x144], 0x100
jne 0x4080bf
or dword [esp + 4], 1
mov ecx, dword [ebx + 0x154]
cmp byte [esp + ecx + 8], al
je 0x4080d1
cmp byte [esp + 0x18], al
jne 0x4080e1
test word [ebx + 0x144], 0x200
jne 0x4080e1
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x4080fa
test word [ebx + 0x144], 0x400
jne 0x4080fa
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x4081ff
test word [ebx + 0x144], 0x1000
jne 0x4081ff
or dword [esp + 4], 0x10
jmp 0x4081ff
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 0x408143
push 0x11
call ebp
test si, ax
je 0x408156
test word [ebx + 0x144], 0x800
jne 0x408156
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x408168
push 0x12
call ebp
test si, ax
je 0x408178
test word [ebx + 0x144], 0x100
jne 0x408178
or dword [esp + 0x10], 1
add ebx, 0x154
push dword [ebx]
call edi
test si, ax
jne 0x408190
push dword [ebx]
call ebp
test si, ax
je 0x4081a7
mov eax, dword [esp + 0x118]
test word [eax + 0x144], 0x200
jne 0x4081a7
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x4081bc
push ebx
call ebp
test si, ax
je 0x4081d3
mov eax, dword [esp + 0x118]
test word [eax + 0x144], 0x400
jne 0x4081d3
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x4081e5
push 0x5b
call ebp
test si, ax
je 0x4081fc
mov eax, dword [esp + 0x118]
test word [eax + 0x144], 0x1000
jne 0x4081fc
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 0x408325
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 0x40853f
mov eax, dword [esi + 0x148]
test eax, eax
je 0x4084b1
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4084b1
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x408375
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x408393
mov eax, dword [esi + 0x154]
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 0x4083a5
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x4083b4
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x4083c3
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 0x4083f8
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 - 0x10], 0
je 0x40841b
movzx eax, byte [esi + 0x14f]
shl eax, 0x10
or eax, 1
push eax
push dword [esi + 0x154]
push ebx
push dword [esi + 0x148]
call edi
cmp dword [ebp - 0x14], 0
je 0x40843a
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 - 8], 0
je 0x408459
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 - 0xc], eax
je 0x408536
cmp dword [ebp - 8], eax
jne 0x40848a
test word [ebp + 8], 0x800
jne 0x40848a
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x4084a4
cmp dword [ebp - 0xc], eax
je 0x408536
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x148]
call edi
jmp 0x408536
test bl, 0x10
je 0x4084c9
movzx eax, byte [esi + 0x151]
push eax
push 0x5b
xor ebx, ebx
mov eax, esi
call fcn.00407c56
test byte [ebp + 8], 2
je 0x4084e8
movzx eax, byte [esi + 0x14f]
push eax
movzx eax, byte [esi + 0x154]
push eax
xor ebx, ebx
mov eax, esi
call fcn.00407c56
test byte [ebp + 8], 4
je 0x408504
movzx eax, byte [esi + 0x150]
push eax
push 0xa1
xor ebx, ebx
mov eax, esi
call fcn.00407c56
test byte [ebp + 8], 8
je 0x40851d
movzx eax, byte [esi + 0x14c]
push eax
push 0x11
xor ebx, ebx
mov eax, esi
call fcn.00407c56
test byte [ebp + 8], 1
je 0x408536
movzx eax, byte [esi + 0x14d]
push eax
push 0x12
xor ebx, ebx
mov eax, esi
call fcn.00407c56
mov edi, dword [esi + 4]
push esi
call fcn.00408e3d
pop edi
pop ebx
leave
ret 4
Function at 0x408545
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x40875e
mov eax, dword [esi + 0x148]
test eax, eax
je 0x4086d8
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4086d8
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 0x4085c1
test byte [ebp + 8], 8
jne 0x4085c1
test word [ebp + 8], 0x800
jne 0x4085c1
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x4085d8
test eax, eax
je 0x4085e0
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x148]
call edi
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 8], eax
je 0x408606
movzx eax, byte [esi + 0x14c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x148]
call edi
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0xc], eax
je 0x408630
movzx eax, byte [esi + 0x14f]
shl eax, 0x10
or eax, 0xc0000001
push eax
push dword [esi + 0x154]
push ebx
push dword [esi + 0x148]
call edi
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x14], eax
je 0x408656
movzx eax, byte [esi + 0x150]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x148]
call edi
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x40867c
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x148]
call edi
xor edx, edx
cmp dword [ebp + 8], edx
mov cl, 0x80
je 0x40868b
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x4086a5
mov eax, dword [esi + 0x154]
xor byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
xor byte [eax], cl
cmp dword [ebp - 0x14], edx
je 0x4086b3
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x4086be
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x4086c9
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408756
test byte [ebp + 8], 1
push 2
pop ebx
je 0x4086f2
movzx eax, byte [esi + 0x14d]
push eax
push 0x12
mov eax, esi
call fcn.00407c56
test byte [ebp + 8], 8
je 0x408709
movzx eax, byte [esi + 0x14c]
push eax
push 0x11
mov eax, esi
call fcn.00407c56
test byte [ebp + 8], bl
je 0x408725
movzx eax, byte [esi + 0x14f]
push eax
movzx eax, byte [esi + 0x154]
push eax
mov eax, esi
call fcn.00407c56
test byte [ebp + 8], 4
je 0x40873f
movzx eax, byte [esi + 0x150]
push eax
push 0xa1
mov eax, esi
call fcn.00407c56
test byte [ebp + 8], 0x10
je 0x408756
movzx eax, byte [esi + 0x151]
push eax
push 0x5b
mov eax, esi
call fcn.00407c56
mov edi, dword [esi]
push esi
call fcn.00408e3d
pop edi
pop ebx
leave
ret 4