joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adfc
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 0x40af04
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 0x40ae9f
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 0x45aea8
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 0x40aea6
xor eax, eax
jmp 0x40af30
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 0x40aedb
cmp dword [eax], esi
jne 0x40aedb
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40aee3
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 0x40af07
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x40af18
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 0x40b6ae
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 0x40b736
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x40b72d
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b71f
cmp byte [eax + 0x70], 0xb
je 0x40b71f
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4150]
je 0x40b701
cmp byte [esi + 0x4158], 0
je 0x40b71f
cmp cl, 0xff
je 0x40b71f
cmp byte [eax + 0x70], 0xa
je 0x40b71f
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x40b71f
cmp byte [eax + 0x70], 0x1a
jne 0x40b71f
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 0x40b6d3
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 0x40b796
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b788
cmp byte [eax + 0x70], 0xb
je 0x40b788
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4150]
jne 0x40b788
test byte [eax + 0x72], 0x20
jne 0x40b788
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 0x40b788
cmp byte [eax + 0x70], 0x1a
jne 0x40b788
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 0x40b744
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 0x40f71a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.0044c070
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], 0x45cd00
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
push edi
mov dword [esi + 0x28], 0x45ccfc
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0x400
mov dword [esi + 0x40], ebx
call fcn.00449170
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.00449da6
push edi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.00449f01
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00449f3e
push 0x20a
call fcn.00449170
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.00449154
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x45d0a0
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f930
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 0x40f927
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 0x40f89f
cmp cx, 0x3b
je 0x40f89f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044912a
pop ecx
pop ecx
jmp 0x40f91b
lea eax, [ebp - 0x21c]
push eax
call fcn.004493b8
test eax, eax
pop ecx
je 0x40f8db
lea eax, [ebp - 0x21c]
push eax
call fcn.004493b8
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x40f8db
lea eax, [ebp - 0x21c]
push 0x45d09c
push eax
call fcn.0044912a
pop ecx
pop ecx
push 0x20a
call fcn.00449170
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.004497d7
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x40f927
add dword [ebp - 8], 2
mov eax, dword [ebp - 8]
jmp 0x40f875
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x4108e0
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 + 0x466890]
mov al, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x410977
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x41095d
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.0044a060
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x4109bf
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.0044a0f0
add esp, 0xc
test eax, eax
mov byte [0x466895], 0x20
mov byte [0x466892], 0x20
je 0x410a51
jmp 0x410a3c
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.0044a060
test eax, eax
pop ecx
pop ecx
je 0x410a04
lea eax, [ebp - 6]
push 0x45d11c
push eax
call fcn.0044a060
test eax, eax
pop ecx
pop ecx
jne 0x4109f0
mov byte [0x466895], 0x20
jmp 0x410a4a
lea eax, [ebp - 6]
push 0x45d118
push eax
call fcn.0044a060
test eax, eax
pop ecx
pop ecx
jne 0x410a0d
mov byte [0x466892], 0x20
jmp 0x410a35
lea eax, [ebp - 6]
push 0x45d114
push eax
call fcn.0044a060
test eax, eax
pop ecx
pop ecx
je 0x410a4a
lea eax, [ebp - 6]
push 0x45d110
push eax
call fcn.0044a060
test eax, eax
pop ecx
pop ecx
jne 0x410a51
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 0x410c44
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
cmp ebx, edi
jne 0x410c5b
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x410d21
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 0x410ced
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 [0x47e7a4], eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x410ccd
lea eax, [esp + 0x10]
push eax
push ebx
call edi
mov ecx, dword [0x47e7a4]
cmp ecx, eax
mov dword [0x47e7a0], eax
je 0x410cc3
push 1
push eax
push ecx
call esi
mov dword [esp + 0xc], eax
mov eax, dword [0x47e7a0]
push 1
push eax
push ebp
call esi
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
jne 0x410d1f
cmp dword [esp + 0xc], eax
jne 0x410d1f
cmp dword [esp + 0x10], eax
jne 0x410d1f
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x248], eax
jmp 0x410d1f
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x410d15
push edi
push dword [0x47e7a0]
push ebp
call esi
mov ecx, dword [0x47e7a4]
mov eax, dword [0x47e7a0]
cmp ecx, eax
je 0x410d15
push edi
push eax
push ecx
call esi
push edi
push dword [0x47e7a4]
push ebp
call esi
pop esi
pop ebp
pop edi
pop ecx
pop ecx
ret 8

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

Function at 0x410df3
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 0x410e16
mov al, byte [esp + 0xc]
mov ebx, esi
call fcn.00410e91
jmp 0x410e4f
mov eax, ebx
call fcn.00410f35
push dword [esi + 0x244]
call fcn.004113cc
cmp dword [esp + 0x10], 0
je 0x410e44
push edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
push 0
push edi
push esi
call fcn.004117fb
dec ebx
jne 0x410e37
pop edi
push dword [esi + 0x244]
call fcn.004115e2
pop esi
pop ebx
ret 8
Function at 0x410f35
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
push edi
mov edi, 0x200
test edi, eax
je 0x410f4d
or dword [esi + 0x244], 8
test ah, 4
je 0x410f59
or dword [esi + 0x244], 1
mov ebx, 0x100
test ebx, eax
je 0x410f69
or dword [esi + 0x244], 2
mov eax, dword [esi + 0x244]
test al, 8
je 0x410f80
test ebx, eax
je 0x410f80
xor eax, 8
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 1
je 0x410f97
test al, 0x20
je 0x410f97
xor eax, 1
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 2
je 0x410fae
test al, 0xc0
je 0x410fae
xor eax, 2
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 0x10
je 0x410fc5
test edi, eax
je 0x410fc5
xor eax, 0x10
mov dword [esi + 0x244], eax
cmp dword [esi + 0x248], 0
je 0x41102c
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x244]
test ebx, eax
jne 0x410fe8
mov byte [esp + 0x19], 0
test al, 0x20
jne 0x410ff1
mov byte [esp + 0x1a], 0
test al, 0x40
jne 0x411002
mov byte [esp + 0x18], 0
mov byte [esp + 0xa8], 0
test al, al
js 0x411013
mov byte [esp + 0x18], 0
mov byte [esp + 0xa8], 0
test edi, eax
jne 0x41101c
mov byte [esp + 0x63], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x411113
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x41104e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411062
test dword [esi + 0x244], ebx
jne 0x411062
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.00411916
push 0x12
call ebp
test di, ax
jne 0x411078
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x41108d
test byte [esi + 0x244], 0x20
jne 0x41108d
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.00411916
mov ebx, 0xa0
push ebx
call ebp
test di, ax
jne 0x4110a6
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4110ba
test byte [esi + 0x244], 0x40
jne 0x4110ba
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411916
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x4110d3
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4110e7
test byte [esi + 0x244], 0x80
jne 0x4110e7
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411916
push 0x5b
call ebp
test di, ax
pop ebp
jne 0x4110fe
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411113
test byte [esi + 0x245], 2
jne 0x411113
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.00411916
pop edi
pop ebx
add esp, 0x100
ret
Function at 0x41111c
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 0x4111c8
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x41115f
test byte [ebp + 0x245], 1
jne 0x41115f
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x411173
test byte [ebp + 0x244], 0x20
jne 0x411173
or dword [esp + 4], 1
cmp byte [esp + 0xa8], al
je 0x411182
cmp byte [esp + 0x18], al
jne 0x411190
test byte [ebp + 0x244], 0x40
jne 0x411190
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x4111a7
test byte [ebp + 0x244], 0x80
jne 0x4111a7
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x41129d
test byte [ebp + 0x245], 2
jne 0x41129d
or dword [esp + 4], 0x10
jmp 0x41129d
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 0x4111ee
push 0x11
call ebx
test si, ax
je 0x4111ff
test byte [ebp + 0x245], 1
jne 0x4111ff
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x411211
push 0x12
call ebx
test si, ax
je 0x41121f
test byte [ebp + 0x244], 0x20
jne 0x41121f
or dword [esp + 0x10], 1
mov ebp, 0xa0
push ebp
call edi
test si, ax
jne 0x411234
push ebp
call ebx
test si, ax
je 0x411249
mov eax, dword [esp + 0x118]
test byte [eax + 0x244], 0x40
jne 0x411249
or dword [esp + 0x10], 2
mov ebp, 0xa1
push ebp
call edi
test si, ax
jne 0x41125e
push ebp
call ebx
test si, ax
je 0x411273
mov eax, dword [esp + 0x118]
test byte [eax + 0x244], 0x80
jne 0x411273
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x411285
push 0x5b
call ebx
test si, ax
je 0x41129a
mov eax, dword [esp + 0x118]
test byte [eax + 0x245], 2
jne 0x41129a
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 0x4113cc
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 0x4115dd
mov eax, dword [esi + 0x248]
push edi
xor edi, edi
cmp eax, edi
je 0x411547
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x411547
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov al, 0x80
je 0x41141e
or byte [ebp - 0xb5], al
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 2
je 0x411430
or byte [ebp - 0x100], al
or byte [ebp - 0x70], al
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 4
je 0x411442
or byte [ebp - 0x100], al
or byte [ebp - 0x6f], al
mov dword [ebp - 4], ebx
and dword [ebp - 4], 8
je 0x411451
or byte [ebp - 0xff], al
mov dword [ebp - 8], ebx
and dword [ebp - 8], 1
je 0x411460
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 0x411495
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 0x4114b4
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 0x4114d3
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 0x4114f2
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 0x4115d3
cmp dword [ebp - 4], eax
jne 0x41152b
test dword [ebp + 8], ebx
jne 0x41152b
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
push dword [esi + 0x248]
call edi
jmp 0x4115d3
cmp dword [ebp - 8], eax
je 0x4115d3
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
jmp 0x41151e
test bl, 0x10
je 0x411561
xor eax, eax
mov al, byte [esi + 0x251]
push edi
xor ebx, ebx
push eax
push 0x5b
mov eax, esi
call fcn.00410d27
test byte [ebp + 8], 2
je 0x41157f
xor eax, eax
mov al, byte [esi + 0x24f]
push edi
xor ebx, ebx
push eax
push 0xa0
mov eax, esi
call fcn.00410d27
test byte [ebp + 8], 4
je 0x41159d
xor eax, eax
mov al, byte [esi + 0x250]
push edi
xor ebx, ebx
push eax
push 0xa1
mov eax, esi
call fcn.00410d27
test byte [ebp + 8], 8
je 0x4115b8
xor eax, eax
mov al, byte [esi + 0x24c]
push edi
xor ebx, ebx
push eax
push 0x11
mov eax, esi
call fcn.00410d27
test byte [ebp + 8], 1
je 0x4115d3
xor eax, eax
mov al, byte [esi + 0x24d]
push edi
xor ebx, ebx
push eax
push 0x12
mov eax, esi
call fcn.00410d27
mov edi, dword [esi + 4]
push esi
call fcn.00411e91
pop edi
pop ebx
leave
ret 4
Function at 0x4115e2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
test byte [ebp + 8], 0x1f
je 0x4117f7
mov eax, dword [esi + 0x248]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x411768
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x411768
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 0x41165e
test byte [ebp + 8], 8
jne 0x41165e
test byte [ebp + 9], 1
jne 0x41165e
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x411675
test eax, eax
je 0x41167d
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 0x4116a3
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 0x4116c9
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 0x4116ef
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 0x411715
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 0x411724
xor byte [ebp - 0xb5], al
cmp dword [ebp - 8], ecx
je 0x411732
xor byte [ebp - 0x100], al
xor byte [ebp - 0x70], al
cmp dword [ebp - 0x10], ecx
je 0x411740
xor byte [ebp - 0x100], al
xor byte [ebp - 0x6f], al
cmp dword [ebp - 4], ecx
je 0x41174b
xor byte [ebp - 0xff], al
cmp dword [ebp - 0xc], ecx
je 0x411756
xor byte [ebp - 0xfe], al
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x4117ed
test byte [ebp + 8], 1
push 2
pop ebx
je 0x411784
xor eax, eax
mov al, byte [esi + 0x24d]
push edi
push eax
push 0x12
mov eax, esi
call fcn.00410d27
test byte [ebp + 8], 8
je 0x41179d
xor eax, eax
mov al, byte [esi + 0x24c]
push edi
push eax
push 0x11
mov eax, esi
call fcn.00410d27
test byte [ebp + 8], bl
je 0x4117b8
xor eax, eax
mov al, byte [esi + 0x24f]
push edi
push eax
push 0xa0
mov eax, esi
call fcn.00410d27
test byte [ebp + 8], 4
je 0x4117d4
xor eax, eax
mov al, byte [esi + 0x250]
push edi
push eax
push 0xa1
mov eax, esi
call fcn.00410d27
test byte [ebp + 8], 0x10
je 0x4117ed
xor eax, eax
mov al, byte [esi + 0x251]
push edi
push eax
push 0x5b
mov eax, esi
call fcn.00410d27
mov edi, dword [esi]
push esi
call fcn.00411e91
pop edi
pop ebx
leave
ret 4