joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ada6
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 0x40aeae
push esi
push esi
push 3
push esi
push esi
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ae49
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 0x459e98
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 0x40ae50
xor eax, eax
jmp 0x40aeda
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 0x40ae85
cmp dword [eax], esi
jne 0x40ae85
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40ae8d
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 0x40aeb1
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x40aec2
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 0x40b655
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 0x40b6dd
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x40b6d4
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b6c6
cmp byte [eax + 0x70], 0xb
je 0x40b6c6
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4150]
je 0x40b6a8
cmp byte [esi + 0x4158], 0
je 0x40b6c6
cmp cl, 0xff
je 0x40b6c6
cmp byte [eax + 0x70], 0xa
je 0x40b6c6
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x40b6c6
cmp byte [eax + 0x70], 0x1a
jne 0x40b6c6
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 0x40b67a
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 0x40b73d
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b72f
cmp byte [eax + 0x70], 0xb
je 0x40b72f
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4150]
jne 0x40b72f
test byte [eax + 0x72], 0x20
jne 0x40b72f
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 0x40b72f
cmp byte [eax + 0x70], 0x1a
jne 0x40b72f
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 0x40b6eb
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 0x40f6e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.0044b8a0
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], 0x45bd00
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
push edi
mov dword [esi + 0x28], 0x45bcfc
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0x400
mov dword [esi + 0x40], ebx
call fcn.004489c4
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.004495f6
push edi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.00449751
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044978e
push 0x20a
call fcn.004489c4
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.004489a8
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x45c0a0
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f8fc
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 0x40f8f3
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 0x40f86b
cmp cx, 0x3b
je 0x40f86b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044897e
pop ecx
pop ecx
jmp 0x40f8e7
lea eax, [ebp - 0x21c]
push eax
call fcn.00448c0c
test eax, eax
pop ecx
je 0x40f8a7
lea eax, [ebp - 0x21c]
push eax
call fcn.00448c0c
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x40f8a7
lea eax, [ebp - 0x21c]
push 0x45c09c
push eax
call fcn.0044897e
pop ecx
pop ecx
push 0x20a
call fcn.004489c4
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.00449027
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x40f8f3
add dword [ebp - 8], 2
mov eax, dword [ebp - 8]
jmp 0x40f841
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x4108d2
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
push 5
pop eax
xor ebx, ebx
push ebx
push 0x5b
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x244], ebx
mov byte [esi + 8], 1
mov byte [esi + 9], bl
call edi
push ebx
push 0x10
mov byte [esi + 0x251], al
call edi
push ebx
push 0xa0
mov byte [esi + 0x24e], al
call edi
push ebx
push 0xa1
mov byte [esi + 0x24f], al
call edi
push ebx
push 0x11
mov byte [esi + 0x250], 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 + 0x4658a0]
mov al, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x410969
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x41094f
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.004498b0
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x4109b1
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.00449940
add esp, 0xc
test eax, eax
mov byte [0x4658a5], 0x20
mov byte [0x4658a2], 0x20
je 0x410a43
jmp 0x410a2e
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.004498b0
test eax, eax
pop ecx
pop ecx
je 0x4109f6
lea eax, [ebp - 6]
push 0x45c11c
push eax
call fcn.004498b0
test eax, eax
pop ecx
pop ecx
jne 0x4109e2
mov byte [0x4658a5], 0x20
jmp 0x410a3c
lea eax, [ebp - 6]
push 0x45c118
push eax
call fcn.004498b0
test eax, eax
pop ecx
pop ecx
jne 0x4109ff
mov byte [0x4658a2], 0x20
jmp 0x410a27
lea eax, [ebp - 6]
push 0x45c114
push eax
call fcn.004498b0
test eax, eax
pop ecx
pop ecx
je 0x410a3c
lea eax, [ebp - 6]
push 0x45c110
push eax
call fcn.004498b0
test eax, eax
pop ecx
pop ecx
jne 0x410a43
mov byte [0x4658a5], 0x20
mov byte [0x4658a3], 0x20
mov byte [str.___Id:_qmath.h_v_1.1_2004_01_15_19:50:35_jonbennett_Exp__], 0x20
mov byte [0x4658a4], 0x20
leave
ret
Function at 0x410c35
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
cmp ebx, edi
jne 0x410c4c
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x410d12
push ebp
push esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [esp + 0x1c], 0
mov ebp, eax
je 0x410cde
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 ebp
mov dword [0x47d7a4], eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x410cbe
lea eax, [esp + 0x10]
push eax
push ebx
call edi
mov ecx, dword [0x47d7a4]
cmp ecx, eax
mov dword [0x47d7a0], eax
je 0x410cb4
push 1
push eax
push ecx
call esi
mov dword [esp + 0xc], eax
mov eax, dword [0x47d7a0]
push 1
push eax
push ebp
call esi
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
jne 0x410d10
cmp dword [esp + 0xc], eax
jne 0x410d10
cmp dword [esp + 0x10], eax
jne 0x410d10
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x248], eax
jmp 0x410d10
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x410d06
push edi
push dword [0x47d7a0]
push ebp
call esi
mov ecx, dword [0x47d7a4]
mov eax, dword [0x47d7a0]
cmp ecx, eax
je 0x410d06
push edi
push eax
push ecx
call esi
push edi
push dword [0x47d7a4]
push ebp
call esi
pop esi
pop ebp
pop edi
pop ecx
pop ecx
ret 8

Function at 0x410d7e
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 0x410de0
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.00410d18
mov edi, dword [esi + 4]
push esi
call fcn.00411e82
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.00410d18
mov edi, dword [esi]
push esi
call fcn.00411e82
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x410de4
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 0x410e07
mov al, byte [esp + 0xc]
mov ebx, esi
call fcn.00410e82
jmp 0x410e40
mov eax, ebx
call fcn.00410f26
push dword [esi + 0x244]
call fcn.004113bd
cmp dword [esp + 0x10], 0
je 0x410e35
push edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
push 0
push edi
push esi
call fcn.004117ec
dec ebx
jne 0x410e28
pop edi
push dword [esi + 0x244]
call fcn.004115d3
pop esi
pop ebx
ret 8
Function at 0x410f26
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
push edi
mov edi, 0x200
test edi, eax
je 0x410f3e
or dword [esi + 0x244], 8
test ah, 4
je 0x410f4a
or dword [esi + 0x244], 1
mov ebx, 0x100
test ebx, eax
je 0x410f5a
or dword [esi + 0x244], 2
mov eax, dword [esi + 0x244]
test al, 8
je 0x410f71
test ebx, eax
je 0x410f71
xor eax, 8
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 1
je 0x410f88
test al, 0x20
je 0x410f88
xor eax, 1
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 2
je 0x410f9f
test al, 0xc0
je 0x410f9f
xor eax, 2
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 0x10
je 0x410fb6
test edi, eax
je 0x410fb6
xor eax, 0x10
mov dword [esi + 0x244], eax
cmp dword [esi + 0x248], 0
je 0x41101d
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x244]
test ebx, eax
jne 0x410fd9
mov byte [esp + 0x19], 0
test al, 0x20
jne 0x410fe2
mov byte [esp + 0x1a], 0
test al, 0x40
jne 0x410ff3
mov byte [esp + 0x18], 0
mov byte [esp + 0xa8], 0
test al, al
js 0x411004
mov byte [esp + 0x18], 0
mov byte [esp + 0xa8], 0
test edi, eax
jne 0x41100d
mov byte [esp + 0x63], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x411104
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x41103f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411053
test dword [esi + 0x244], ebx
jne 0x411053
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.00411907
push 0x12
call ebp
test di, ax
jne 0x411069
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x41107e
test byte [esi + 0x244], 0x20
jne 0x41107e
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.00411907
mov ebx, 0xa0
push ebx
call ebp
test di, ax
jne 0x411097
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4110ab
test byte [esi + 0x244], 0x40
jne 0x4110ab
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411907
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x4110c4
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4110d8
test byte [esi + 0x244], 0x80
jne 0x4110d8
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411907
push 0x5b
call ebp
test di, ax
pop ebp
jne 0x4110ef
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411104
test byte [esi + 0x245], 2
jne 0x411104
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.00411907
pop edi
pop ebx
add esp, 0x100
ret
Function at 0x41110d
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebp
mov ebp, dword [esp + 0x10c]
cmp dword [ebp + 0x248], 0
je 0x4111b9
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x411150
test byte [ebp + 0x245], 1
jne 0x411150
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x411164
test byte [ebp + 0x244], 0x20
jne 0x411164
or dword [esp + 4], 1
cmp byte [esp + 0xa8], al
je 0x411173
cmp byte [esp + 0x18], al
jne 0x411181
test byte [ebp + 0x244], 0x40
jne 0x411181
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x411198
test byte [ebp + 0x244], 0x80
jne 0x411198
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x41128e
test byte [ebp + 0x245], 2
jne 0x41128e
or dword [esp + 4], 0x10
jmp 0x41128e
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
test si, ax
jne 0x4111df
push 0x11
call ebx
test si, ax
je 0x4111f0
test byte [ebp + 0x245], 1
jne 0x4111f0
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x411202
push 0x12
call ebx
test si, ax
je 0x411210
test byte [ebp + 0x244], 0x20
jne 0x411210
or dword [esp + 0x10], 1
mov ebp, 0xa0
push ebp
call edi
test si, ax
jne 0x411225
push ebp
call ebx
test si, ax
je 0x41123a
mov eax, dword [esp + 0x118]
test byte [eax + 0x244], 0x40
jne 0x41123a
or dword [esp + 0x10], 2
mov ebp, 0xa1
push ebp
call edi
test si, ax
jne 0x41124f
push ebp
call ebx
test si, ax
je 0x411264
mov eax, dword [esp + 0x118]
test byte [eax + 0x244], 0x80
jne 0x411264
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x411276
push 0x5b
call ebx
test si, ax
je 0x41128b
mov eax, dword [esp + 0x118]
test byte [eax + 0x245], 2
jne 0x41128b
or dword [esp + 0x10], 0x10
pop edi
pop esi
pop ebx
mov eax, dword [esp + 4]
pop ebp
add esp, 0x104
ret 4
Function at 0x4113bd
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 0x4115ce
mov eax, dword [esi + 0x248]
push edi
xor edi, edi
cmp eax, edi
je 0x411538
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x411538
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov al, 0x80
je 0x41140f
or byte [ebp - 0xb5], al
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 2
je 0x411421
or byte [ebp - 0x100], al
or byte [ebp - 0x70], al
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 4
je 0x411433
or byte [ebp - 0x100], al
or byte [ebp - 0x6f], al
mov dword [ebp - 4], ebx
and dword [ebp - 4], 8
je 0x411442
or byte [ebp - 0xff], al
mov dword [ebp - 8], ebx
and dword [ebp - 8], 1
je 0x411451
or byte [ebp - 0xfe], al
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test edi, edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, 0x100
je 0x411486
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 - 0xc], 0
je 0x4114a5
movzx eax, byte [esi + 0x24f]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x248]
call edi
cmp dword [ebp - 0x10], 0
je 0x4114c4
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 - 4], 0
je 0x4114e3
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 - 8], eax
je 0x4115c4
cmp dword [ebp - 4], eax
jne 0x41151c
test dword [ebp + 8], ebx
jne 0x41151c
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
push dword [esi + 0x248]
call edi
jmp 0x4115c4
cmp dword [ebp - 8], eax
je 0x4115c4
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
jmp 0x41150f
test bl, 0x10
je 0x411552
xor eax, eax
mov al, byte [esi + 0x251]
push edi
xor ebx, ebx
push eax
push 0x5b
mov eax, esi
call fcn.00410d18
test byte [ebp + 8], 2
je 0x411570
xor eax, eax
mov al, byte [esi + 0x24f]
push edi
xor ebx, ebx
push eax
push 0xa0
mov eax, esi
call fcn.00410d18
test byte [ebp + 8], 4
je 0x41158e
xor eax, eax
mov al, byte [esi + 0x250]
push edi
xor ebx, ebx
push eax
push 0xa1
mov eax, esi
call fcn.00410d18
test byte [ebp + 8], 8
je 0x4115a9
xor eax, eax
mov al, byte [esi + 0x24c]
push edi
xor ebx, ebx
push eax
push 0x11
mov eax, esi
call fcn.00410d18
test byte [ebp + 8], 1
je 0x4115c4
xor eax, eax
mov al, byte [esi + 0x24d]
push edi
xor ebx, ebx
push eax
push 0x12
mov eax, esi
call fcn.00410d18
mov edi, dword [esi + 4]
push esi
call fcn.00411e82
pop edi
pop ebx
leave
ret 4
Function at 0x4115d3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
test byte [ebp + 8], 0x1f
je 0x4117e8
mov eax, dword [esi + 0x248]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x411759
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x411759
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
and eax, 1
mov dword [ebp - 0xc], eax
mov edi, 0x101
je 0x41164f
test byte [ebp + 8], 8
jne 0x41164f
test byte [ebp + 9], 1
jne 0x41164f
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x411666
test eax, eax
je 0x41166e
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push edi
push dword [esi + 0x248]
call ebx
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 4], eax
je 0x411694
movzx eax, byte [esi + 0x24c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push edi
push dword [esi + 0x248]
call ebx
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 8], eax
je 0x4116ba
movzx eax, byte [esi + 0x24f]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push edi
push dword [esi + 0x248]
call ebx
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x10], eax
je 0x4116e0
movzx eax, byte [esi + 0x250]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push edi
push dword [esi + 0x248]
call ebx
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x411706
movzx eax, byte [esi + 0x251]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push edi
push dword [esi + 0x248]
call ebx
xor ecx, ecx
cmp dword [ebp + 8], ecx
mov al, 0x80
je 0x411715
xor byte [ebp - 0xb5], al
cmp dword [ebp - 8], ecx
je 0x411723
xor byte [ebp - 0x100], al
xor byte [ebp - 0x70], al
cmp dword [ebp - 0x10], ecx
je 0x411731
xor byte [ebp - 0x100], al
xor byte [ebp - 0x6f], al
cmp dword [ebp - 4], ecx
je 0x41173c
xor byte [ebp - 0xff], al
cmp dword [ebp - 0xc], ecx
je 0x411747
xor byte [ebp - 0xfe], al
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x4117de
test byte [ebp + 8], 1
push 2
pop ebx
je 0x411775
xor eax, eax
mov al, byte [esi + 0x24d]
push edi
push eax
push 0x12
mov eax, esi
call fcn.00410d18
test byte [ebp + 8], 8
je 0x41178e
xor eax, eax
mov al, byte [esi + 0x24c]
push edi
push eax
push 0x11
mov eax, esi
call fcn.00410d18
test byte [ebp + 8], bl
je 0x4117a9
xor eax, eax
mov al, byte [esi + 0x24f]
push edi
push eax
push 0xa0
mov eax, esi
call fcn.00410d18
test byte [ebp + 8], 4
je 0x4117c5
xor eax, eax
mov al, byte [esi + 0x250]
push edi
push eax
push 0xa1
mov eax, esi
call fcn.00410d18
test byte [ebp + 8], 0x10
je 0x4117de
xor eax, eax
mov al, byte [esi + 0x251]
push edi
push eax
push 0x5b
mov eax, esi
call fcn.00410d18
mov edi, dword [esi]
push esi
call fcn.00411e82
pop edi
pop ebx
leave
ret 4