joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408375
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
push edi
mov dword [ebp - 8], ebx
je 0x40847c
push ebx
push ebx
push 3
push ebx
push ebx
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x408417
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 8]
push eax
push 0x4506f0
push ebx
push ebx
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 esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x40841e
xor eax, eax
jmp 0x4084a9
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_GetObjectA]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
cmp edx, ebx
mov eax, dword [ebp + 0x14]
jne 0x408453
cmp dword [eax], ebx
jne 0x408453
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40845b
mov dword [ebp - 0x28], edx
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
push 0x2000
push dword [eax]
push dword [ecx]
push ebx
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 0x40847f
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x408490
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
push eax
push ebx
push 0x172
push dword [ebp + 0xc]
mov dword [esi + 0x44], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x408a9b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov esi, eax
mov eax, dword [esi + 0x4144]
cmp eax, dword [ebp + 8]
push edi
je 0x408b26
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x408b1d
lea edi, [esi + 0x50]
mov eax, dword [edi]
test eax, eax
je 0x408b0f
cmp byte [eax + 0x78], 0xb
je 0x408b0f
mov cl, byte [eax + 0x7a]
movzx edx, cl
cmp edx, dword [esi + 0x4144]
je 0x408af1
cmp byte [esi + 0x414c], 0
je 0x408b0f
cmp cl, 0xff
je 0x408b0f
cmp byte [eax + 0x78], 0xa
je 0x408b0f
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x79], 0x40
je 0x408b0f
cmp byte [eax + 0x78], 0x1a
jne 0x408b0f
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 0x408ac3
mov eax, dword [ebp + 8]
mov dword [esi + 0x4144], eax
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x408b86
lea edi, [esi + 0x50]
mov eax, dword [edi]
test eax, eax
je 0x408b78
cmp byte [eax + 0x78], 0xb
je 0x408b78
movzx ecx, byte [eax + 0x7a]
cmp ecx, dword [esi + 0x4144]
jne 0x408b78
test byte [eax + 0x79], 0x20
jne 0x408b78
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 + 0x79], 0x40
je 0x408b78
cmp byte [eax + 0x78], 0x1a
jne 0x408b78
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 0x408b34
add esi, 0x413c
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e041
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.00448b10
push ebx
xor ebx, ebx
push edi
push 0x400
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x210], ebx
mov dword [esi + 0x218], ebx
call fcn.0043f7a8
pop ecx
mov dword [esi + 0x214], eax
mov edi, 0x104
push edi
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.0044018d
push edi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.004402e0
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00440415
push 0x105
call fcn.0043f7a8
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x218], eax
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.0043f3b0
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 0x40e24a
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 0x40e241
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 cl, byte [eax]
cmp cl, bl
mov byte [ebp - 4], cl
mov byte [ebp - 3], bl
je 0x40e1ab
cmp cl, 0x3b
je 0x40e1ab
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0043f3c0
pop ecx
pop ecx
jmp 0x40e236
lea eax, [ebp - 0x118]
push eax
call fcn.0043f830
test eax, eax
pop ecx
je 0x40e1e9
lea eax, [ebp - 0x118]
push eax
call fcn.0043f830
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40e1e9
lea eax, [ebp - 0x118]
push 0x4523c4
push eax
call fcn.0043f3c0
pop ecx
pop ecx
push 0x105
call fcn.0043f7a8
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x218], eax
push edi
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.0043f940
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x40e241
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
jmp 0x40e183
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x40ef0d
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_MapVirtualKeyA]
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 + 0xc], ebx
mov byte [esi + 8], 1
mov byte [esi + 9], bl
call edi
push ebx
push 0x10
mov dword [esi + 0x20], eax
call edi
push ebx
push 0x11
mov dword [esi + 0x1c], eax
call edi
push ebx
push 0x12
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor esi, esi
inc esi
xor eax, eax
mov al, byte [esi + 0x45b7ec]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
je 0x40ef88
lea eax, [ebp - 6]
push 0x452414
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
jne 0x40ef8f
mov byte [esi + 0x45b7ec], 0x20
inc esi
cmp esi, 7
jle 0x40ef5f
lea eax, [ebp - 6]
push 0x452410
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x40efb5
mov byte [0x45b7f0], 0x20
leave
ret
lea eax, [ebp - 6]
push 0x45240c
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
jne 0x40efd0
mov byte [0x45b7ef], 0x20
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0x10], al
mov byte [ebp - 1], al
je 0x40f241
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0xc]
call esi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
call fcn.00413473
push 0
push 2
push 0
push dword [ebp + 0xc]
call esi
push eax
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call fcn.00413473
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f367
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
test ah, 2
je 0x40f376
or dword [esi + 0xc], 4
test ah, 4
je 0x40f37f
or dword [esi + 0xc], 1
test ah, 1
je 0x40f388
or dword [esi + 0xc], 2
mov eax, dword [esi + 0xc]
test al, 4
je 0x40f399
test al, 0x40
je 0x40f399
xor eax, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 1
je 0x40f3aa
test al, 0x10
je 0x40f3aa
xor eax, 1
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 2
je 0x40f3bb
test al, 0x20
je 0x40f3bb
xor eax, 2
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 8
je 0x40f3cc
test al, al
jns 0x40f3cc
xor eax, 8
mov dword [esi + 0xc], eax
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x40f412
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 0x40
jne 0x40f3ea
mov byte [esp + 0x15], bl
test al, 0x10
jne 0x40f3f2
mov byte [esp + 0x16], bl
test al, 0x20
jne 0x40f3fa
mov byte [esp + 0x14], bl
test al, al
js 0x40f402
mov byte [esp + 0x5f], bl
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40f4c7
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
movsx eax, ax
mov ebp, connect
test ebp, eax
jne 0x40f436
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x40f449
test byte [esi + 0xc], 0x40
jne 0x40f449
push ebx
push 0x11
pop eax
mov ebx, esi
call fcn.0040f99a
xor ebx, ebx
push 0x12
call edi
movsx eax, ax
test ebp, eax
jne 0x40f460
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x40f473
test byte [esi + 0xc], 0x10
jne 0x40f473
push ebx
push 0x12
pop eax
mov ebx, esi
call fcn.0040f99a
xor ebx, ebx
push 0x10
call edi
movsx eax, ax
test ebp, eax
jne 0x40f48a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x40f49d
test byte [esi + 0xc], 0x20
jne 0x40f49d
push ebx
push 0x10
pop eax
mov ebx, esi
call fcn.0040f99a
xor ebx, ebx
push 0x5b
call edi
movsx eax, ax
pop edi
test ebp, eax
pop ebp
jne 0x40f4b6
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x40f4c7
test byte [esi + 0xc], 0x80
jne 0x40f4c7
push ebx
push 0x5b
pop eax
mov ebx, esi
call fcn.0040f99a
pop ebx
add esp, 0x100
ret
Function at 0x40f5f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [esi + 0xc]
test al, 0xf
je 0x40f73f
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
push edi
jne 0x40f660
test al, 8
mov edi, dword [sym.imp.USER32.dll_keybd_event]
je 0x40f623
xor eax, eax
mov al, byte [esi + 0x20]
push ebx
push ebx
push eax
push 0x5b
call edi
test byte [esi + 0xc], 2
je 0x40f635
xor eax, eax
mov al, byte [esi + 0x1c]
push ebx
push ebx
push eax
push 0x10
call edi
test byte [esi + 0xc], 4
je 0x40f647
xor eax, eax
mov al, byte [esi + 0x14]
push ebx
push ebx
push eax
push 0x11
call edi
test byte [esi + 0xc], 1
je 0x40f735
xor eax, eax
mov al, byte [esi + 0x18]
push ebx
push ebx
push eax
push 0x12
jmp 0x40f733
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 8
je 0x40f67b
or byte [ebp - 0xa5], 0x80
test al, 2
je 0x40f686
or byte [ebp - 0xf0], 0x80
test al, 4
je 0x40f691
or byte [ebp - 0xef], 0x80
test al, 1
je 0x40f69c
or byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test byte [esi + 0xc], 8
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, 0x100
je 0x40f6cc
mov eax, dword [esi + 0x20]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x40f6e4
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x40f6fc
mov eax, dword [esi + 0x14]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x10]
call edi
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 1
je 0x40f71f
test al, 0x44
jne 0x40f71f
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x40f730
test ecx, ecx
je 0x40f735
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
mov edi, dword [esi + 4]
call fcn.00413473
pop edi
pop ebx
leave
ret
Function at 0x40f741
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [esi + 0xc]
test al, 0xf
je 0x40f89d
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
push edi
jne 0x40f7b7
test al, 1
mov edi, dword [sym.imp.USER32.dll_keybd_event]
je 0x40f775
xor eax, eax
mov al, byte [esi + 0x18]
push ebx
push 2
push eax
push 0x12
call edi
test byte [esi + 0xc], 4
je 0x40f788
xor eax, eax
mov al, byte [esi + 0x14]
push ebx
push 2
push eax
push 0x11
call edi
test byte [esi + 0xc], 2
je 0x40f79b
xor eax, eax
mov al, byte [esi + 0x1c]
push ebx
push 2
push eax
push 0x10
call edi
test byte [esi + 0xc], 8
je 0x40f894
xor eax, eax
mov al, byte [esi + 0x20]
push ebx
push 2
push eax
push 0x5b
call edi
jmp 0x40f894
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, eax
and ecx, 1
mov ebx, 0x101
je 0x40f7f2
test al, 0x44
jne 0x40f7f2
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x40f805
test ecx, ecx
je 0x40f80a
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x40f824
mov eax, dword [esi + 0x14]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x40f83e
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 8
je 0x40f858
mov eax, dword [esi + 0x20]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
mov eax, dword [esi + 0xc]
test al, 8
je 0x40f866
xor byte [ebp - 0xa5], 0x80
test al, 2
je 0x40f871
xor byte [ebp - 0xf0], 0x80
test al, 4
je 0x40f87c
xor byte [ebp - 0xef], 0x80
test al, 1
je 0x40f887
xor byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov edi, dword [esi]
call fcn.00413473
pop edi
pop ebx
leave
ret
Function at 0x40f8c0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ecx, ecx
cmp dword [ebx + 0x10], ecx
mov esi, eax
je 0x40f96c
cmp edi, 0x14
je 0x40f96c
cmp edi, 0x90
je 0x40f96c
cmp edi, 0x91
je 0x40f96c
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + edi - 0x100], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
shl esi, 0x10
or esi, 1
cmp byte [ebp + 8], 1
je 0x40f935
mov eax, edi
call fcn.0040f4cf
cmp al, 1
jne 0x40f93b
or esi, 0x1000000
mov eax, dword [ebx + 0xc]
test al, 0x11
jne 0x40f947
cmp edi, 0x12
jne 0x40f963
test al, 0x44
jne 0x40f963
or esi, 0x20000000
push esi
push edi
push 0x104
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40f98c
push esi
push edi
push 0x100
jmp 0x40f958
cmp byte [ebp + 8], 1
je 0x40f981
mov eax, edi
call fcn.0040f4cf
cmp al, 1
je 0x40f981
push ecx
push ecx
jmp 0x40f984
push ecx
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
mov edi, dword [ebx + 4]
call fcn.00413473
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ecx, ecx
cmp dword [ebx + 0x10], ecx
mov esi, eax
je 0x40fa4b
cmp edi, 0x14
je 0x40fa4b
cmp edi, 0x90
je 0x40fa4b
cmp edi, 0x91
je 0x40fa4b
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp byte [ebp + 8], 1
je 0x40f9fd
mov eax, edi
call fcn.0040f4cf
cmp al, 1
jne 0x40fa03
or esi, 0x1000000
mov eax, dword [ebx + 0xc]
test al, 0x11
jne 0x40fa0f
cmp edi, 0x12
jne 0x40fa22
test al, 0x44
jne 0x40fa22
or esi, 0x20000000
push esi
push edi
push 0x105
jmp 0x40fa29
push esi
push edi
push 0x101
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp + edi - 0x100]
xor byte [eax], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40fa6c
cmp byte [ebp + 8], 1
je 0x40fa61
mov eax, edi
call fcn.0040f4cf
cmp al, 1
je 0x40fa61
push ecx
push 2
jmp 0x40fa64
push ecx
push 3
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
mov edi, dword [ebx]
call fcn.00413473
pop edi
pop esi
leave
ret 4
Function at 0x40fec4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor eax, eax
xor ebx, ebx
cmp byte [esi], al
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], eax
jne 0x40fee4
xor al, al
jmp 0x40ffea
mov ecx, dword [ebp + 0x18]
mov byte [ecx], al
mov ecx, dword [ebp + 0x14]
mov byte [ecx], al
mov ecx, dword [ebp + 0x10]
mov byte [edi], al
push esi
mov byte [ecx], al
call fcn.0043f830
inc eax
push eax
call fcn.0043f7a8
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov al, byte [ebx + esi]
cmp al, 0x2b
je 0x40ff1e
cmp al, 0x5e
je 0x40ff1a
cmp al, 0x21
je 0x40ff1a
cmp al, 0x23
jne 0x40ff42
cmp al, 0x2b
jne 0x40ff23
mov eax, dword [ebp + 0x10]
jmp 0x40ff3c
cmp al, 0x5e
jne 0x40ff2c
mov byte [edi], 1
jmp 0x40ff3f
cmp al, 0x21
jne 0x40ff35
mov eax, dword [ebp + 0x14]
jmp 0x40ff3c
cmp al, 0x23
jne 0x40ff3f
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
inc ebx
jmp 0x40ff07
mov al, byte [ebx + esi]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x10], al
mov dword [ebp + 0x18], ebx
jne 0x40ffa4
mov ebx, dword [ebp - 8]
lea edx, [ebp + 0x18]
add al, 2
call fcn.0040fe87
test eax, eax
jne 0x40ff90
push dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push dword [esi*4 + 0x45b4a0]
call fcn.004419ba
test eax, eax
pop ecx
pop ecx
je 0x40ff82
inc esi
cmp esi, 0x5d
mov dword [ebp - 0xc], esi
jl 0x40ff61
cmp esi, 0x5d
je 0x40ff90
cmp byte [esi + 0x45b618], 0
je 0x40ff96
mov byte [ebp - 1], 0
jmp 0x40ffd5
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40ffd5
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 0xc]
movsx eax, ax
test ah, 2
mov dword [ecx], eax
je 0x40ffbd
mov byte [edi], 1
test byte [ecx + 1], 4
je 0x40ffc9
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
test byte [ecx + 1], 1
je 0x40ffd5
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
push dword [ebp - 8]
and dword [eax], 0xff
call fcn.0043f3aa
mov al, byte [ebp - 1]
pop ecx
pop esi
pop ebx
leave
ret 0x14
Function at 0x410062
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x410084
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
mov edi, dword [esp + 0x1c]
cmp edi, esi
je 0x41016a
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4100a4
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x41016a
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x20], ebx
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call esi
push 1
push edi
push ebx
call esi
push 1
push dword [esp + 0x14]
push edi
call esi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x410154
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ebp
push dword [esp + 0x14]
push ebx
call esi
push ebp
push edi
push ebx
call esi
push ebp
push dword [esp + 0x14]
push edi
call esi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4

Function at 0x410241
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x10]
cmp dword [eax], ebx
je 0x41025a
inc edi
add eax, 8
cmp edi, 0x10
jl 0x41024d
cmp edi, 0x10
jne 0x410263
xor eax, eax
jmp 0x4102c6
cmp byte [esi + 8], 1
jne 0x41029d
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 0xc]
push ebx
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push 0x1000
push dword [ebp + 8]
mov dword [esi + edi*8 + 0xc], eax
push ebx
push eax
lea edi, [esi + edi*8 + 0x10]
call dword [esi]
jmp 0x4102c4
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0xc], eax
push eax
lea edi, [esi + edi*8 + 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi], eax
pop edi
pop ebx
pop ebp
ret 8