joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039c0
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 0x4039e0
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 0x403a19
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.0044d935
test eax, eax
pop ecx
pop ecx
jne 0x403a16
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [ebx + 6], 0
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x403aaf
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call edi
cmp byte [ebx + 0xc], 0
jne 0x403a58
lea eax, [ebp - 0x818]
push eax
call fcn.0044d9c3
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 0x403a8e
dec eax
je 0x403a77
dec eax
jne 0x403aac
push dword [ebx + 0x14]
lea eax, [ebp - 0x818]
push eax
call fcn.0044d935
pop ecx
pop ecx
jmp 0x403aa5
push dword [ebx + 0x14]
lea eax, [ebp - 0x818]
push eax
call fcn.0044dc06
test eax, eax
pop ecx
pop ecx
je 0x403aac
jmp 0x403aa9
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push eax
lea eax, [ebp - 0x818]
push eax
push ecx
call fcn.0044d98e
add esp, 0xc
test eax, eax
jne 0x403aac
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [ebx + 7], 0
je 0x403b1c
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.0040dcac
lea esi, [ebx + 0x2c]
lea edi, [ebp - 0x14]
call fcn.0040559f
push dword [ebp - 0x14]
call fcn.0044d460
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
pop ecx
je 0x403b19
mov ecx, dword [esi]
cmp ecx, edi
je 0x403b19
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.0044c3eb
add esp, 0x20
cmp eax, edi
mov dword [esi + 0x18], eax
jle 0x403b19
inc dword [ebp - 4]
mov dword [esi + 0x18], edi
inc dword [ebp - 8]
cmp byte [ebx + 8], 0
pop edi
je 0x403b3f
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403b3c
push dword [ebp + 8]
mov esi, ebx
call fcn.00403b87
test al, al
je 0x403b3c
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [ebx + 0xa], 0
je 0x403b5e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x403b5b
inc dword [ebx + 0x68]
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x64]
jne 0x403b5b
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403b7f
lea eax, [ebp + 8]
push eax
lea esi, [ebx + 0x78]
call fcn.00432ef9
inc dword [ebx + 0x6c]
xor eax, eax
cmp byte [ebx + 4], al
sete al
jmp 0x403b82
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x403be3
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 0x403c01
mov eax, dword [esp + 0xc]
cmp byte [eax + 5], 1
jne 0x403c96
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 0x403c20
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.0044d3f6
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 0x403c5f
xor esi, esi
inc esi
push edi
call fcn.0044d460
pop ecx
mov eax, esi
jmp 0x403c99
mov esi, dword [esp + 0xc]
cmp byte [esi + 0xc], 0
jne 0x403c78
push edi
call fcn.0044d9c3
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push dword [esi + 0x20]
push edi
call fcn.0044dc06
test eax, eax
pop ecx
pop ecx
je 0x403c8f
mov byte [esi + 0x70], 1
xor esi, esi
jmp 0x403c54
push edi
call fcn.0044d460
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
ret 8
Function at 0x405a7e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.004528c0
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x48b930], bl
mov byte [0x48b931], bl
mov byte [0x48b932], bl
mov dword [0x48b934], ebx
mov dword [0x48b938], ebx
mov dword [0x48b93c], ebx
mov dword [0x48b940], ebx
mov dword [0x48b944], 0x46a390
mov dword [0x48b948], ebx
mov dword [0x48b94c], ebx
mov dword [0x48b950], ebx
mov dword [0x48b954], 0x46a390
mov dword [0x48b958], ebx
mov dword [0x48b95c], ebx
mov dword [0x48b960], ebx
mov dword [0x48b968], ebx
mov dword [0x48b970], ebx
call fcn.0044d3f6
pop ecx
mov dword [0x48b964], 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.0044fee5
push esi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.0044ff2f
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044ff6c
mov edi, 0x20a
push edi
call fcn.0044d3f6
mov ecx, dword [0x48b964]
mov edx, dword [0x48b968]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48b968]
mov eax, dword [0x48b964]
mov eax, dword [eax + ecx*4]
inc dword [0x48b968]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0044d37c
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 0x405ce5
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 0x405cdc
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 0x405c4e
cmp ax, 0x3b
je 0x405c4e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044d352
pop ecx
pop ecx
jmp 0x405cd3
lea eax, [ebp - 0x21c]
push eax
call fcn.0044d9c3
test eax, eax
pop ecx
je 0x405c8a
lea eax, [ebp - 0x21c]
push eax
call fcn.0044d9c3
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x405c8a
lea eax, [ebp - 0x21c]
push 0x46a584
push eax
call fcn.0044d352
pop ecx
pop ecx
push edi
call fcn.0044d3f6
mov ecx, dword [0x48b964]
mov edx, dword [0x48b968]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48b968]
mov eax, dword [0x48b964]
mov eax, dword [eax + ecx*4]
inc dword [0x48b968]
push esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0044ff8a
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x405cdc
add dword [ebp - 8], 2
jmp 0x405c1e
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x48b930
pop ebx
leave
ret
Function at 0x406b28
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.0044d3f6
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.0044f750
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x406b81
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x406b78
pop edi
pop ebx
leave
ret 4

Function at 0x40788e
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 [0x489aa0], eax
mov dword [0x489aa4], eax
mov al, byte [0x489cb9]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x489ce4], ebx
mov byte [0x489aa8], 1
mov byte [0x489aa9], bl
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x489cf4], eax
call esi
push ebx
push 0x10
mov byte [0x489cf1], al
call esi
push ebx
push dword [0x489cf4]
mov byte [0x489cee], al
call esi
push ebx
push 0xa1
mov byte [0x489cef], al
call esi
push ebx
push 0x11
mov byte [0x489cf0], al
call esi
push ebx
push 0x12
mov byte [0x489cec], al
call esi
mov byte [0x489ced], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x4767b0]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x407940
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x407927
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.004500f0
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x407988
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.00450178
add esp, 0xc
test eax, eax
mov byte [0x4767b2], 0x20
mov byte [0x4767b5], 0x20
je 0x407a1a
jmp 0x407a05
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.004500f0
test eax, eax
pop ecx
pop ecx
jne 0x4079a5
mov byte [0x4767b2], 0x20
jmp 0x4079fe
lea eax, [ebp - 6]
push 0x46ad04
push eax
call fcn.004500f0
test eax, eax
pop ecx
pop ecx
jne 0x4079c2
mov byte [0x4767b5], 0x20
jmp 0x407a13
lea eax, [ebp - 6]
push 0x46ad08
push eax
call fcn.004500f0
test eax, eax
pop ecx
pop ecx
je 0x40799c
lea eax, [ebp - 6]
push 0x46ad0c
push eax
call fcn.004500f0
test eax, eax
pop ecx
pop ecx
je 0x407a13
lea eax, [ebp - 6]
push 0x46ad10
push eax
call fcn.004500f0
test eax, eax
pop ecx
pop ecx
jne 0x407a1a
mov byte [0x4767b5], 0x20
mov byte [0x4767b6], 0x20
mov byte [0x4767b3], 0x20
mov byte [0x4767b4], 0x20
leave
ret
Function at 0x407c0d
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x407c27
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x407cfd
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 0x407cc8
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 [0x48bde8], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x407c9a
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x48bde8]
cmp ecx, eax
mov dword [0x48bde4], eax
je 0x407c8f
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x48bde4]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x407cfc
cmp dword [ebp - 8], ecx
jne 0x407cfc
cmp dword [ebp - 0xc], ecx
jne 0x407cfc
mov eax, dword [0x48bde8]
cmp dword [ebp - 4], eax
jne 0x407cfc
cmp eax, dword [0x48bde4]
jne 0x407cfc
mov eax, dword [ebp + 8]
mov dword [eax + 0x248], ecx
jmp 0x407cfc
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x407cf0
push edi
push dword [0x48bde4]
push eax
call esi
mov ecx, dword [0x48bde8]
mov eax, dword [0x48bde4]
cmp ecx, eax
je 0x407cf0
push edi
push eax
push ecx
call esi
push edi
push dword [0x48bde8]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

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

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, 0x200
test ebp, eax
push edi
je 0x407f35
or dword [esi + 0x244], 8
test ax, 0x400
je 0x407f42
or dword [esi + 0x244], 1
mov edi, 0x100
test edi, eax
je 0x407f52
or dword [esi + 0x244], 2
mov eax, dword [esi + 0x244]
test al, 8
mov ebx, 0x800
je 0x407f6e
test ebx, eax
je 0x407f6e
xor eax, 8
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 1
je 0x407f85
test edi, eax
je 0x407f85
xor eax, 1
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 2
je 0x407f9c
test ebp, eax
je 0x407f9c
xor eax, 2
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 0x10
je 0x407fb5
test ax, 0x1000
je 0x407fb5
xor eax, 0x10
mov dword [esi + 0x244], eax
cmp dword [esi + 0x248], 0
je 0x408010
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x244]
test ebx, eax
jne 0x407fd8
mov byte [esp + 0x21], 0
test edi, eax
jne 0x407fe1
mov byte [esp + 0x22], 0
test ebp, eax
jne 0x407ff5
mov ecx, dword [esi + 0x254]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x408000
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408106
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x408031
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x408045
test dword [esi + 0x244], ebx
jne 0x408045
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.00408948
push 0x12
call ebp
test di, ax
jne 0x40805b
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x408072
test word [esi + 0x244], 0x100
jne 0x408072
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.00408948
push dword [esi + 0x254]
call ebp
test di, ax
jne 0x408090
push dword [esi + 0x254]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4080aa
test word [esi + 0x244], 0x200
jne 0x4080aa
mov eax, dword [esi + 0x254]
push 0
mov ecx, esi
call fcn.00408948
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x4080c3
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4080d9
test word [esi + 0x244], 0x400
jne 0x4080d9
push 0
mov eax, ebx
mov ecx, esi
call fcn.00408948
push 0x5b
call ebp
test di, ax
jne 0x4080ef
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x408106
test word [esi + 0x244], 0x1000
jne 0x408106
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.00408948
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x408110
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebx
mov ebx, dword [esp + 0x10c]
cmp dword [ebx + 0x248], 0
je 0x4081c9
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x408155
test word [ebx + 0x244], 0x800
jne 0x408155
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x40816b
test word [ebx + 0x244], 0x100
jne 0x40816b
or dword [esp + 4], 1
mov ecx, dword [ebx + 0x254]
cmp byte [esp + ecx + 8], al
je 0x40817d
cmp byte [esp + 0x18], al
jne 0x40818d
test word [ebx + 0x244], 0x200
jne 0x40818d
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x4081a6
test word [ebx + 0x244], 0x400
jne 0x4081a6
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x4082ab
test word [ebx + 0x244], 0x1000
jne 0x4082ab
or dword [esp + 4], 0x10
jmp 0x4082ab
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 0x4081ef
push 0x11
call ebp
test si, ax
je 0x408202
test word [ebx + 0x244], 0x800
jne 0x408202
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x408214
push 0x12
call ebp
test si, ax
je 0x408224
test word [ebx + 0x244], 0x100
jne 0x408224
or dword [esp + 0x10], 1
add ebx, 0x254
push dword [ebx]
call edi
test si, ax
jne 0x40823c
push dword [ebx]
call ebp
test si, ax
je 0x408253
mov eax, dword [esp + 0x118]
test word [eax + 0x244], 0x200
jne 0x408253
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x408268
push ebx
call ebp
test si, ax
je 0x40827f
mov eax, dword [esp + 0x118]
test word [eax + 0x244], 0x400
jne 0x40827f
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x408291
push 0x5b
call ebp
test si, ax
je 0x4082a8
mov eax, dword [esp + 0x118]
test word [eax + 0x244], 0x1000
jne 0x4082a8
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 0x4083d1
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 0x4085eb
mov eax, dword [esi + 0x248]
test eax, eax
je 0x40855d
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40855d
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x408421
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x40843f
mov eax, dword [esi + 0x254]
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 0x408451
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x408460
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x40846f
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 0x4084a4
movzx eax, byte [esi + 0x251]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x248]
call edi
cmp dword [ebp - 0x10], 0
je 0x4084c7
movzx eax, byte [esi + 0x24f]
shl eax, 0x10
or eax, 1
push eax
push dword [esi + 0x254]
push ebx
push dword [esi + 0x248]
call edi
cmp dword [ebp - 0x14], 0
je 0x4084e6
movzx eax, byte [esi + 0x250]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x248]
call edi
cmp dword [ebp - 8], 0
je 0x408505
movzx eax, byte [esi + 0x24c]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x248]
call edi
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x4085e2
cmp dword [ebp - 8], eax
jne 0x408536
test word [ebp + 8], 0x800
jne 0x408536
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x408550
cmp dword [ebp - 0xc], eax
je 0x4085e2
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x248]
call edi
jmp 0x4085e2
test bl, 0x10
je 0x408575
movzx eax, byte [esi + 0x251]
push eax
push 0x5b
xor ebx, ebx
mov eax, esi
call fcn.00407d02
test byte [ebp + 8], 2
je 0x408594
movzx eax, byte [esi + 0x24f]
push eax
movzx eax, byte [esi + 0x254]
push eax
xor ebx, ebx
mov eax, esi
call fcn.00407d02
test byte [ebp + 8], 4
je 0x4085b0
movzx eax, byte [esi + 0x250]
push eax
push 0xa1
xor ebx, ebx
mov eax, esi
call fcn.00407d02
test byte [ebp + 8], 8
je 0x4085c9
movzx eax, byte [esi + 0x24c]
push eax
push 0x11
xor ebx, ebx
mov eax, esi
call fcn.00407d02
test byte [ebp + 8], 1
je 0x4085e2
movzx eax, byte [esi + 0x24d]
push eax
push 0x12
xor ebx, ebx
mov eax, esi
call fcn.00407d02
mov edi, dword [esi + 4]
push esi
call fcn.00408ee9
pop edi
pop ebx
leave
ret 4
Function at 0x4085f1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test byte [ebp + 8], 0x1f
push ebx
push edi
je 0x40880a
mov eax, dword [esi + 0x248]
test eax, eax
je 0x408784
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x408784
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 0x40866d
test byte [ebp + 8], 8
jne 0x40866d
test word [ebp + 8], 0x800
jne 0x40866d
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x408684
test eax, eax
je 0x40868c
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x248]
call edi
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 8], eax
je 0x4086b2
movzx eax, byte [esi + 0x24c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x248]
call edi
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0xc], eax
je 0x4086dc
movzx eax, byte [esi + 0x24f]
shl eax, 0x10
or eax, 0xc0000001
push eax
push dword [esi + 0x254]
push ebx
push dword [esi + 0x248]
call edi
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x14], eax
je 0x408702
movzx eax, byte [esi + 0x250]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x248]
call edi
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x408728
movzx eax, byte [esi + 0x251]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x248]
call edi
xor edx, edx
cmp dword [ebp + 8], edx
mov cl, 0x80
je 0x408737
xor byte [ebp - 0xb9], cl
cmp dword [ebp - 0xc], edx
je 0x408751
mov eax, dword [esi + 0x254]
xor byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
xor byte [eax], cl
cmp dword [ebp - 0x14], edx
je 0x40875f
xor byte [ebp - 0x104], cl
xor byte [ebp - 0x73], cl
cmp dword [ebp - 8], edx
je 0x40876a
xor byte [ebp - 0x103], cl
cmp dword [ebp - 0x10], edx
je 0x408775
xor byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408802
test byte [ebp + 8], 1
push 2
pop ebx
je 0x40879e
movzx eax, byte [esi + 0x24d]
push eax
push 0x12
mov eax, esi
call fcn.00407d02
test byte [ebp + 8], 8
je 0x4087b5
movzx eax, byte [esi + 0x24c]
push eax
push 0x11
mov eax, esi
call fcn.00407d02
test byte [ebp + 8], bl
je 0x4087d1
movzx eax, byte [esi + 0x24f]
push eax
movzx eax, byte [esi + 0x254]
push eax
mov eax, esi
call fcn.00407d02
test byte [ebp + 8], 4
je 0x4087eb
movzx eax, byte [esi + 0x250]
push eax
push 0xa1
mov eax, esi
call fcn.00407d02
test byte [ebp + 8], 0x10
je 0x408802
movzx eax, byte [esi + 0x251]
push eax
push 0x5b
mov eax, esi
call fcn.00407d02
mov edi, dword [esi]
push esi
call fcn.00408ee9
pop edi
pop ebx
leave
ret 4