joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ef5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x412c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4130], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0x4134]
cmp ecx, dword [eax]
jne 0x405f3d
cmp edx, dword [esi + 0x4138]
je 0x405f59
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [esi + 0x4138], edx
jne 0x405f59
push edx
push ecx
push esi
push dword [ebp + 8]
push 0xfffffffffffffff5
pop ebx
call fcn.004043cb
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 1
call ebx
mov edi, 0x8000
test di, ax
jne 0x405f81
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405f81
and dword [ebp - 8], 0
jmp 0x405f88
mov dword [ebp - 8], 1
push 2
call ebx
test di, ax
jne 0x405fa4
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405fa4
and dword [ebp - 4], 0
jmp 0x405fab
mov dword [ebp - 4], 1
mov edi, dword [ebp - 8]
cmp edi, dword [esi + 0x413c]
je 0x406016
cmp dword [ebp + 0xc], 1
jne 0x406016
cmp byte [esi + 0x4168], 0
je 0x40601c
test edi, edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405fd7
push 0xfffffffffffffff9
jmp 0x406009
push 0xfffffffffffffff8
pop ebx
call fcn.004043cb
cmp byte [esi + 0x4144], 0
je 0x40600f
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x406007
push 0xfffffffffffffffa
jmp 0x406009
push 0xfffffffffffffff4
pop ebx
call fcn.004043cb
mov byte [esi + 0x4144], 0
cmp dword [ebp + 0xc], 0
je 0x406022
mov dword [esi + 0x413c], edi
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x4140]
pop edi
je 0x406054
cmp dword [ebp + 0xc], 1
jne 0x406054
test eax, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x40604c
push 0xfffffffffffffff7
pop ebx
call fcn.004043cb
jmp 0x40605a
push 0xfffffffffffffff6
pop ebx
call fcn.004043cb
cmp dword [ebp + 0xc], 0
je 0x406063
mov eax, dword [ebp - 4]
mov dword [esi + 0x4140], eax
pop ebx
leave
ret 8
Function at 0x40aea4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor esi, esi
cmp word [eax], si
push edi
mov dword [ebp - 8], esi
je 0x40afac
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40af47
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0xc]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 8]
push eax
push 0x45a7b0
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, esi
jne 0x40af4e
xor eax, eax
jmp 0x40afd8
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, esi
mov eax, dword [ebp + 0x10]
jne 0x40af83
cmp dword [eax], esi
jne 0x40af83
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40af8b
mov dword [ebp - 0x28], edx
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
push 0x2000
push dword [eax]
push dword [ecx]
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40afaf
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x40afc0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
push eax
push esi
mov dword [edi + 0x44], eax
mov edi, dword [edi]
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b756
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x4150]
cmp eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
je 0x40b7de
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x40b7d5
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b7c7
cmp byte [eax + 0x70], 0xb
je 0x40b7c7
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4150]
je 0x40b7a9
cmp byte [esi + 0x4158], 0
je 0x40b7c7
cmp cl, 0xff
je 0x40b7c7
cmp byte [eax + 0x70], 0xa
je 0x40b7c7
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x40b7c7
cmp byte [eax + 0x70], 0x1a
jne 0x40b7c7
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x40b77b
mov eax, dword [ebp + 8]
mov dword [esi + 0x4150], eax
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x40b83e
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b830
cmp byte [eax + 0x70], 0xb
je 0x40b830
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4150]
jne 0x40b830
test byte [eax + 0x72], 0x20
jne 0x40b830
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
push 4
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x40b830
cmp byte [eax + 0x70], 0x1a
jne 0x40b830
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x40b7ec
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi + 0x4148]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 4
Function at 0x40f82c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.0044c510
push ebx
xor ebx, ebx
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0x45c610
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
push edi
mov dword [esi + 0x28], 0x45c60c
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0x400
mov dword [esi + 0x40], ebx
call fcn.00449614
pop ecx
mov dword [esi + 0x3c], eax
mov edi, 0x104
push edi
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.0044a246
push edi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.0044a3a1
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044a3de
push 0x20a
call fcn.00449614
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x40], eax
lea eax, [ebp - 0x21c]
push eax
push ecx
call fcn.004495f8
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x45c9b0
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fa42
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 0x40fa39
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 cx, word [eax]
cmp cx, bx
mov word [ebp - 0x10], cx
mov word [ebp - 0xe], bx
je 0x40f9b1
cmp cx, 0x3b
je 0x40f9b1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004495ce
pop ecx
pop ecx
jmp 0x40fa2d
lea eax, [ebp - 0x21c]
push eax
call fcn.0044985c
test eax, eax
pop ecx
je 0x40f9ed
lea eax, [ebp - 0x21c]
push eax
call fcn.0044985c
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x40f9ed
lea eax, [ebp - 0x21c]
push 0x45c9ac
push eax
call fcn.004495ce
pop ecx
pop ecx
push 0x20a
call fcn.00449614
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x40], eax
push edi
lea eax, [ebp - 0x21c]
push eax
push ecx
call fcn.00449c77
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x40fa39
add dword [ebp - 8], 2
mov eax, dword [ebp - 8]
jmp 0x40f987
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x410a19
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, eax
push edi
xor ebx, ebx
cmp byte [esi + 0x219], bl
push 5
pop eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x244], ebx
mov byte [esi + 8], 1
mov byte [esi + 9], bl
je 0x410a4f
mov dword [esi + 0x254], 0x10
jmp 0x410a59
mov dword [esi + 0x254], 0xa0
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ebx
push 0x5b
call edi
push ebx
push dword [esi + 0x254]
mov byte [esi + 0x250], al
call edi
push ebx
push 0xa1
mov byte [esi + 0x24e], al
call edi
push ebx
push 0x11
mov byte [esi + 0x24f], al
call edi
push ebx
push 0x12
mov byte [esi + 0x24c], al
call edi
mov byte [esi + 0x24d], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
xor eax, eax
lea esi, [edi + 0x466890]
mov al, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x410ac4
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x410aaa
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.0044a500
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x410b0c
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.0044a590
add esp, 0xc
test eax, eax
mov byte [0x466895], 0x20
mov byte [0x466892], 0x20
je 0x410b9e
jmp 0x410b89
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.0044a500
test eax, eax
pop ecx
pop ecx
je 0x410b51
lea eax, [ebp - 6]
push 0x45ca2c
push eax
call fcn.0044a500
test eax, eax
pop ecx
pop ecx
jne 0x410b3d
mov byte [0x466895], 0x20
jmp 0x410b97
lea eax, [ebp - 6]
push 0x45ca28
push eax
call fcn.0044a500
test eax, eax
pop ecx
pop ecx
jne 0x410b5a
mov byte [0x466892], 0x20
jmp 0x410b82
lea eax, [ebp - 6]
push 0x45ca24
push eax
call fcn.0044a500
test eax, eax
pop ecx
pop ecx
je 0x410b97
lea eax, [ebp - 6]
push 0x45ca20
push eax
call fcn.0044a500
test eax, eax
pop ecx
pop ecx
jne 0x410b9e
mov byte [0x466895], 0x20
mov byte [0x466893], 0x20
mov byte [str.___Id:_qmath.h_v_1.1_2004_01_15_19:50:35_jonbennett_Exp__], 0x20
mov byte [0x466894], 0x20
leave
ret
Function at 0x410d91
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x410dab
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x410e83
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 0x410e4c
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 [0x47e7b4], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x410e1e
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x47e7b4]
cmp ecx, eax
mov dword [0x47e7b0], eax
je 0x410e13
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x47e7b0]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x410e82
cmp dword [ebp - 8], ecx
jne 0x410e82
cmp dword [ebp - 0xc], ecx
jne 0x410e82
mov eax, dword [0x47e7b4]
cmp dword [ebp - 4], eax
jne 0x410e82
cmp eax, dword [0x47e7b0]
jne 0x410e82
mov eax, dword [ebp + 8]
mov dword [eax + 0x248], ecx
jmp 0x410e82
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x410e76
push edi
push dword [0x47e7b0]
push dword [ebp - 4]
call esi
mov ecx, dword [0x47e7b4]
mov eax, dword [0x47e7b0]
cmp ecx, eax
je 0x410e76
push edi
push eax
push ecx
call esi
push edi
push dword [0x47e7b4]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
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 0x410f50
push ebx
push edi
push 0
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.00410e88
mov edi, dword [esi + 4]
push esi
call fcn.00412048
push ebx
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.00410e88
mov edi, dword [esi]
push esi
call fcn.00412048
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x410f54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx ebx, ax
cmp ebx, 0xffffffff
jne 0x410f77
mov al, byte [esp + 0xc]
mov ebx, esi
call fcn.00410ff4
jmp 0x410fb2
mov eax, ebx
mov ecx, esi
call fcn.00411098
push dword [esi + 0x244]
call fcn.0041154e
cmp dword [esp + 0x10], 0
je 0x410fa7
push edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
push 0
push edi
push esi
call fcn.00411987
dec ebx
jne 0x410f9a
pop edi
push dword [esi + 0x244]
call fcn.0041176a
pop esi
pop ebx
ret 8
Function at 0x411098
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov ebp, 0x200
test ebp, eax
push edi
mov esi, ecx
je 0x4110b4
or dword [esi + 0x244], 8
test ah, 4
je 0x4110c0
or dword [esi + 0x244], 1
mov edi, 0x100
test edi, eax
je 0x4110d0
or dword [esi + 0x244], 2
mov eax, dword [esi + 0x244]
test al, 8
mov ebx, 0x800
je 0x4110ec
test ebx, eax
je 0x4110ec
xor eax, 8
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 1
je 0x411103
test edi, eax
je 0x411103
xor eax, 1
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 2
je 0x41111b
test ah, 6
je 0x41111b
xor eax, 2
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 0x10
je 0x411133
test ah, 0x10
je 0x411133
xor eax, 0x10
mov dword [esi + 0x244], eax
cmp dword [esi + 0x248], 0
je 0x4111a2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esi, dword [esi + 0x244]
test ebx, esi
jne 0x411156
mov byte [esp + 0x21], 0
test edi, esi
jne 0x41115f
mov byte [esp + 0x22], 0
test ebp, esi
jne 0x411170
mov byte [esp + 0x20], 0
mov byte [esp + 0xb0], 0
test esi, 0x400
jne 0x411185
mov byte [esp + 0x20], 0
mov byte [esp + 0xb0], 0
test esi, 0x1000
jne 0x411192
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x411290
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x4111c3
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4111d7
test dword [esi + 0x244], ebx
jne 0x4111d7
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.00411aac
push 0x12
call ebp
test di, ax
jne 0x4111ed
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411202
test byte [esi + 0x245], 1
jne 0x411202
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.00411aac
push dword [esi + 0x254]
call ebp
test di, ax
jne 0x411220
push dword [esi + 0x254]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411238
test byte [esi + 0x245], 2
jne 0x411238
mov eax, dword [esi + 0x254]
push 0
mov ecx, esi
call fcn.00411aac
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x411251
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411265
test byte [esi + 0x245], 4
jne 0x411265
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411aac
push 0x5b
call ebp
test di, ax
jne 0x41127b
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411290
test byte [esi + 0x245], 0x10
jne 0x411290
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.00411aac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x41129b
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 0x411347
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x4112de
test byte [ebx + 0x245], 8
jne 0x4112de
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x4112f2
test byte [ebx + 0x245], 1
jne 0x4112f2
or dword [esp + 4], 1
cmp byte [esp + 0xa8], al
je 0x411301
cmp byte [esp + 0x18], al
jne 0x41130f
test byte [ebx + 0x245], 2
jne 0x41130f
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x411326
test byte [ebx + 0x245], 4
jne 0x411326
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x41141f
test byte [ebx + 0x245], 0x10
jne 0x41141f
or dword [esp + 4], 0x10
jmp 0x41141f
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 0x41136d
push 0x11
call ebp
test si, ax
je 0x41137e
test byte [ebx + 0x245], 8
jne 0x41137e
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x411390
push 0x12
call ebp
test si, ax
je 0x41139e
test byte [ebx + 0x245], 1
jne 0x41139e
or dword [esp + 0x10], 1
add ebx, 0x254
push dword [ebx]
call edi
test si, ax
jne 0x4113b6
push dword [ebx]
call ebp
test si, ax
je 0x4113cb
mov eax, dword [esp + 0x118]
test byte [eax + 0x245], 2
jne 0x4113cb
or dword [esp + 0x10], 2
mov ebx, 0xa1
push ebx
call edi
test si, ax
jne 0x4113e0
push ebx
call ebp
test si, ax
je 0x4113f5
mov eax, dword [esp + 0x118]
test byte [eax + 0x245], 4
jne 0x4113f5
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x411407
push 0x5b
call ebp
test si, ax
je 0x41141c
mov eax, dword [esp + 0x118]
test byte [eax + 0x245], 0x10
jne 0x41141c
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 0x41154e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov ebx, dword [ebp + 8]
test bl, 0x1f
je 0x411765
mov eax, dword [esi + 0x248]
push edi
xor edi, edi
cmp eax, edi
je 0x4116cb
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4116cb
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
and ebx, 0x10
mov al, 0x80
je 0x41159e
or byte [ebp - 0xb5], al
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], edi
and dword [ebp - 0xc], 2
je 0x4115b3
or byte [ebp - 0x100], al
or byte [ebp - 0x70], al
mov dword [ebp - 0x10], edi
and dword [ebp - 0x10], 4
je 0x4115c5
or byte [ebp - 0x100], al
or byte [ebp - 0x6f], al
mov dword [ebp - 4], edi
and dword [ebp - 4], 8
je 0x4115d4
or byte [ebp - 0xff], al
mov dword [ebp - 8], edi
and dword [ebp - 8], 1
je 0x4115e3
or byte [ebp - 0xfe], al
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test ebx, ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 0x100
je 0x411618
movzx eax, byte [esi + 0x250]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push edi
push dword [esi + 0x248]
call ebx
cmp dword [ebp - 0xc], 0
je 0x411637
movzx eax, byte [esi + 0x24e]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push edi
push dword [esi + 0x248]
call ebx
cmp dword [ebp - 0x10], 0
je 0x411656
movzx eax, byte [esi + 0x24f]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push edi
push dword [esi + 0x248]
call ebx
cmp dword [ebp - 4], 0
je 0x411675
movzx eax, byte [esi + 0x24c]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push edi
push dword [esi + 0x248]
call ebx
xor eax, eax
cmp dword [ebp - 8], eax
je 0x41175b
cmp dword [ebp - 4], eax
jne 0x4116af
test byte [ebp + 9], 8
jne 0x4116af
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
push dword [esi + 0x248]
call ebx
jmp 0x41175b
cmp dword [ebp - 8], eax
je 0x41175b
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push edi
jmp 0x4116a2
test bl, 0x10
je 0x4116e5
xor eax, eax
mov al, byte [esi + 0x250]
push edi
xor ebx, ebx
push eax
push 0x5b
mov eax, esi
call fcn.00410e88
test byte [ebp + 8], 2
je 0x411707
xor eax, eax
mov al, byte [esi + 0x24e]
push edi
xor ebx, ebx
push eax
xor eax, eax
mov al, byte [esi + 0x254]
push eax
mov eax, esi
call fcn.00410e88
test byte [ebp + 8], 4
je 0x411725
xor eax, eax
mov al, byte [esi + 0x24f]
push edi
xor ebx, ebx
push eax
push 0xa1
mov eax, esi
call fcn.00410e88
test byte [ebp + 8], 8
je 0x411740
xor eax, eax
mov al, byte [esi + 0x24c]
push edi
xor ebx, ebx
push eax
push 0x11
mov eax, esi
call fcn.00410e88
test byte [ebp + 8], 1
je 0x41175b
xor eax, eax
mov al, byte [esi + 0x24d]
push edi
xor ebx, ebx
push eax
push 0x12
mov eax, esi
call fcn.00410e88
mov edi, dword [esi + 4]
push esi
call fcn.00412048
pop edi
pop ebx
leave
ret 4