joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
xor edi, edi
test byte [ebp + 0x14], 1
mov esi, eax
je 0x402610
inc edi
jmp 0x402619
test byte [ebp + 0x14], 2
je 0x402619
push 2
pop edi
xor bl, bl
test byte [ebp + 0x14], 4
je 0x402659
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push dword [ebp + 0x14]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x402686
push dword [ebp + 0x24]
or esi, 0x400
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 4]
push esi
push dword [ebp + 0x18]
push 0
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
cmp dword [ebp - 4], 0
je 0x402695
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x20

Function at 0x40281c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
mov edi, eax
push 0
push edi
call esi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
push 2
push 0
push 0
lea eax, [edi + 8]
push eax
call esi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call esi
push eax
call ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edi + 4], eax
xor eax, eax
push eax
push eax
push edi
push 0x40288d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x402e1d
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
push 1
push dword [esi]
call fcn.00404a28
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor eax, eax
push eax
push 0x25
cmp dword [ebp + 8], eax
jge 0x402e73
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
push eax
push 0x25
push pe_nt_image_headers32
push dword [esi]
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x402ea6
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
push eax
push 0x27
push pe_nt_image_headers32
push dword [esi]
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esi]
push edi
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x403303
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0xb0
push dword [edi]
call esi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x40332d
xor al, al
jmp 0x4033aa
push ebx
push 0
push 0
push 0xe
push dword [edi]
call esi
mov ebx, eax
test ebx, ebx
je 0x4033a7
cmp ebx, dword [ebp - 8]
jb 0x4033a7
cmp ebx, dword [ebp - 4]
jb 0x4033a7
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455667
pop ecx
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebx + 1]
push eax
push 0xd
push dword [edi]
call esi
test eax, eax
je 0x4033a3
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x403382
mov edx, dword [ebp - 0xc]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*2]
push eax
push dword [ebp + 8]
call fcn.0040204a
mov bl, 1
push dword [ebp - 0xc]
call fcn.0045526c
pop ecx
mov al, bl
jmp 0x4033a9
xor bl, bl
jmp 0x403396
xor al, al
pop ebx
pop esi
leave
ret 4
Function at 0x4046bc
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [ebp + 0xc]
push 0x46df88
call fcn.0040214f
mov edi, dword [ebp + 8]
push 1
push edi
call fcn.00404856
call dword [sym.imp.USER32.dll_GetFocus]
xor ebx, ebx
mov dword [esi + 0xd8], eax
cmp eax, ebx
je 0x40479f
push edi
push eax
call fcn.00404831
test eax, eax
je 0x40479f
push dword [esi + 0xd8]
call fcn.0040425c
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
push eax
push dword [esi + 0xd8]
mov dword [esi + 0xd4], edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x204]
push eax
lea eax, [esi + 0x8c]
call fcn.0040214f
and dword [esi + 0x130], ebx
push esi
push 0x4047bf
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
push dword [esi + 0x130]
lea eax, [ebp - 0x204]
push dword [esi + 0x8c]
push str._s_d
push eax
call fcn.0045732b
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040214f
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov al, 1
jmp 0x4047b8
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x404856
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x404881
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x40489c
push 1
jmp 0x404883
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
ret 8
Function at 0x4057fd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40581d
mov eax, dword [ebp + 8]
cmp byte [eax + 5], 1
jne 0x4058b4
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xe
push dword [ebp + 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x405839
mov esi, 0x7fff
push ebx
xor ecx, ecx
push 2
lea ebx, [esi + 1]
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455667
pop ecx
push eax
push ebx
push 0xd
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call edi
mov edi, dword [ebp - 4]
xor ecx, ecx
mov word [edi + esi*2], cx
pop ebx
test eax, eax
jg 0x40587c
xor esi, esi
inc esi
push edi
call fcn.0045526c
pop ecx
mov eax, esi
jmp 0x4058b7
mov esi, dword [ebp + 8]
cmp byte [esi + 0xc], cl
jne 0x405893
push edi
call fcn.00455251
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push dword [esi + 0x24]
push edi
call fcn.0045754d
pop ecx
pop ecx
test eax, eax
je 0x4058ad
mov byte [esi + 0xe8], 1
xor esi, esi
jmp 0x405871
push edi
call fcn.0045526c
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 8
Function at 0x409dcc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, esi
call fcn.00409d8b
mov word [esi + 8], dx
test dx, dx
jne 0x409ddf
xor al, al
ret
push edx
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
cmp ax, 0xffff
je 0x409ddc
push ebx
mov ebx, eax
mov byte [esi], al
movzx eax, al
push 0
push eax
sar ebx, 8
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [esi + 7], al
mov al, 1
test al, bl
je 0x409e0f
mov byte [esi + 1], al
test bl, 2
je 0x409e17
mov byte [esi + 3], al
test bl, 4
pop ebx
je 0x409e20
mov byte [esi + 4], al
ret

Function at 0x409ed7
Capabilities:
Log keystrokes

Disassembly:
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 5
xor ebx, ebx
pop eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov word [esi + 8], 1
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov word [esi + 0x18], bx
push ebx
mov dword [esi + 0x1a], ebx
mov word [esi + 0x1e], bx
push 0x5b
mov dword [esi + 0xc], 4
call edi
push ebx
push 0x10
mov byte [esi + 0x29], al
call edi
push ebx
push 0xa0
mov byte [esi + 0x26], al
call edi
push ebx
push 0xa1
mov byte [esi + 0x27], al
call edi
push ebx
push 0x11
mov byte [esi + 0x28], al
call edi
push ebx
push 0x12
mov byte [esi + 0x24], al
call edi
pop edi
mov byte [esi + 0x25], al
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
movzx ebx, byte [ebp + 8]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
mov byte [ebp - 1], al
cmp byte [ebp + 0xc], al
je 0x40a1ea
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push ebx
call esi
test byte [edi + 0xc], 4
mov byte [ebp + 0xc], al
push 0
je 0x40a19e
push dword [ebp + 0xc]
mov cl, byte [ebp + 8]
call fcn.0040b2cb
jmp 0x40a1ac
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_keybd_event]
mov ecx, edi
call fcn.0040b2a9
push 0
push ebx
call esi
test byte [edi + 0xc], 4
mov byte [ebp + 0xc], al
je 0x40a1d0
mov cl, byte [ebp + 8]
push 2
push dword [ebp + 0xc]
call fcn.0040b2cb
jmp 0x40a1e0
push 0
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_keybd_event]
mov ecx, edi
call fcn.0040b288
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 8
Function at 0x40a82c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp byte [eax], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x40a843
mov byte [edi + 0x14], 1
cmp byte [eax + 2], 0
je 0x40a84d
mov byte [edi + 0x16], 1
cmp byte [eax + 3], 0
je 0x40a857
mov byte [edi + 0x17], 1
cmp byte [edi + 0x14], 0
je 0x40a867
cmp byte [edi + 0x1a], 0
je 0x40a867
mov byte [edi + 0x14], 0
cmp byte [edi + 0x15], 0
je 0x40a877
cmp byte [edi + 0x1b], 0
je 0x40a877
mov byte [edi + 0x15], 0
cmp byte [edi + 0x16], 0
je 0x40a887
cmp byte [edi + 0x1c], 0
je 0x40a887
mov byte [edi + 0x16], 0
cmp byte [edi + 0x17], 0
je 0x40a897
cmp byte [edi + 0x1d], 0
je 0x40a897
mov byte [edi + 0x17], 0
cmp byte [edi + 0x18], 0
je 0x40a8a7
cmp byte [edi + 0x1e], 0
je 0x40a8a7
mov byte [edi + 0x18], 0
cmp dword [edi + 0x20], 0
je 0x40a912
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov cl, byte [edi + 0x1a]
test cl, cl
jne 0x40a8c4
mov byte [ebp - 0x70], cl
mov al, byte [edi + 0x1b]
test al, al
jne 0x40a8ce
mov byte [ebp - 0x6f], al
test cl, cl
jne 0x40a8dc
test al, al
jne 0x40a8dc
mov byte [ebp - 0x100], al
cmp byte [edi + 0x1c], 0
jne 0x40a8e9
mov byte [ebp - 0xff], 0
cmp byte [edi + 0x1d], 0
jne 0x40a8f6
mov byte [ebp - 0xfe], 0
test cl, cl
jne 0x40a900
mov byte [ebp - 0xb5], cl
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40aa25
xor eax, eax
mov esi, 0xa0
push esi
mov word [ebp - 4], ax
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 8], eax
mov byte [ebp - 2], al
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
test bx, ax
jne 0x40a947
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
je 0x40a95e
cmp byte [edi + 0x1a], 0
jne 0x40a95e
mov dl, 0xa0
lea esi, [ebp - 0xc]
call fcn.00409da9
mov eax, esi
call fcn.0040b142
mov esi, 0xa1
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
jne 0x40a97b
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
je 0x40a992
cmp byte [edi + 0x1b], 0
jne 0x40a992
mov dl, 0xa1
lea esi, [ebp - 0xc]
call fcn.00409da9
mov eax, esi
call fcn.0040b142
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
jne 0x40a9ac
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
je 0x40a9c3
cmp byte [edi + 0x1c], 0
jne 0x40a9c3
mov dl, 0x11
lea esi, [ebp - 0xc]
call fcn.00409da9
mov eax, esi
call fcn.0040b142
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
jne 0x40a9dd
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
je 0x40a9f4
cmp byte [edi + 0x1d], 0
jne 0x40a9f4
mov dl, 0x12
lea esi, [ebp - 0xc]
call fcn.00409da9
mov eax, esi
call fcn.0040b142
push 0x5b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
jne 0x40aa0e
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
je 0x40aa25
cmp byte [edi + 0x1e], 0
jne 0x40aa25
mov dl, 0x5b
lea esi, [ebp - 0xc]
call fcn.00409da9
mov eax, esi
call fcn.0040b142
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aa2a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [ebx + 0x20], 0
mov dword [edi], 0
mov word [edi + 4], 0
je 0x40aabc
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [ebp - 0x60], al
je 0x40aa61
cmp byte [ebp - 0xf0], al
jne 0x40aa6a
cmp byte [ebx + 0x1a], 0
jne 0x40aa6a
mov byte [edi], 1
cmp byte [ebp - 0x5f], al
jne 0x40aa79
cmp byte [ebx + 0x1b], 0
jne 0x40aa79
mov byte [edi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x40aa8b
cmp byte [ebx + 0x1c], 0
jne 0x40aa8b
mov byte [edi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x40aa9d
cmp byte [ebx + 0x1d], 0
jne 0x40aa9d
mov byte [edi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x40ab82
cmp byte [ebx + 0x1e], 0
jne 0x40ab82
mov byte [edi + 4], 1
jmp 0x40ab82
push esi
push 0xa0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, 0x8000
test si, ax
jne 0x40aae2
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x40aaeb
cmp byte [ebx + 0x1a], 0
jne 0x40aaeb
mov byte [edi], 1
push 0xa1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x40ab0b
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x40ab15
cmp byte [ebx + 0x1b], 0
jne 0x40ab15
mov byte [edi + 1], 1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x40ab2f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x40ab39
cmp byte [ebx + 0x1c], 0
jne 0x40ab39
mov byte [edi + 2], 1
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x40ab53
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x40ab5d
cmp byte [ebx + 0x1d], 0
jne 0x40ab5d
mov byte [edi + 3], 1
push 0x5b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x40ab77
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x40ab81
cmp byte [ebx + 0x1e], 0
jne 0x40ab81
mov byte [edi + 4], 1
pop esi
mov eax, edi
leave
ret
Function at 0x40ab86
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp byte [edi], 0
push ebx
jne 0x40abb1
cmp byte [edi + 1], 0
jne 0x40abb1
cmp byte [edi + 2], 0
jne 0x40abb1
cmp byte [edi + 3], 0
jne 0x40abb1
cmp byte [edi + 4], 0
je 0x40adb4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x40acd5
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40acd5
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
cmp byte [edi], 0
mov al, 0x80
je 0x40abe8
or byte [ebp - 0xf8], al
or byte [ebp - 0x68], al
cmp byte [edi + 1], 0
je 0x40abf7
or byte [ebp - 0xf8], al
or byte [ebp - 0x67], al
cmp byte [edi + 2], 0
je 0x40ac03
or byte [ebp - 0xf7], al
cmp byte [edi + 3], 0
je 0x40ac0f
or byte [ebp - 0xf6], al
cmp byte [edi + 4], 0
je 0x40ac1b
or byte [ebp - 0xad], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [edi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x40ac39
cmp byte [edi + 1], 0
je 0x40ac50
movzx eax, byte [esi + 0x26]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push pe_nt_image_headers32
push dword [esi + 0x20]
call ebx
cmp byte [edi + 2], 0
je 0x40ac6d
movzx eax, byte [esi + 0x24]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push pe_nt_image_headers32
push dword [esi + 0x20]
call ebx
mov al, byte [edi + 3]
test al, al
je 0x40acb1
cmp byte [edi + 2], 0
jne 0x40ac96
cmp byte [esi + 0x1c], 0
jne 0x40ac96
movzx eax, byte [esi + 0x25]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x40acac
test al, al
je 0x40acb1
movzx eax, byte [esi + 0x25]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push pe_nt_image_headers32
push dword [esi + 0x20]
call ebx
cmp byte [edi + 4], 0
je 0x40adad
movzx eax, byte [esi + 0x29]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push pe_nt_image_headers32
push dword [esi + 0x20]
jmp 0x40adab
cmp byte [edi], 0
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
je 0x40ad06
test byte [esi + 0xc], 4
mov al, byte [esi + 0x27]
mov byte [ebp - 4], al
push 0
je 0x40acfa
push dword [ebp - 4]
mov cl, 0xa0
call fcn.0040b2cb
jmp 0x40ad06
push 0
push dword [ebp - 4]
push 0xa0
call ebx
cmp byte [edi + 1], 0
je 0x40ad32
test byte [esi + 0xc], 4
mov al, byte [esi + 0x28]
mov byte [ebp - 4], al
push 0
je 0x40ad26
push dword [ebp - 4]
mov cl, 0xa1
call fcn.0040b2cb
jmp 0x40ad32
push 0
push dword [ebp - 4]
push 0xa1
call ebx
cmp byte [edi + 2], 0
je 0x40ad5b
test byte [esi + 0xc], 4
mov al, byte [esi + 0x24]
mov byte [ebp - 4], al
push 0
je 0x40ad52
push dword [ebp - 4]
mov cl, 0x11
call fcn.0040b2cb
jmp 0x40ad5b
push 0
push dword [ebp - 4]
push 0x11
call ebx
cmp byte [edi + 3], 0
je 0x40ad84
test byte [esi + 0xc], 4
mov al, byte [esi + 0x25]
mov byte [ebp - 4], al
push 0
je 0x40ad7b
push dword [ebp - 4]
mov cl, 0x12
call fcn.0040b2cb
jmp 0x40ad84
push 0
push dword [ebp - 4]
push 0x12
call ebx
cmp byte [edi + 4], 0
je 0x40adad
test byte [esi + 0xc], 4
mov al, byte [esi + 0x29]
mov byte [ebp - 4], al
push 0
je 0x40ada4
push dword [ebp - 4]
mov cl, 0x5b
call fcn.0040b2cb
jmp 0x40adad
push 0
push dword [ebp - 4]
push 0x5b
call ebx
mov ecx, esi
call fcn.0040b2a9
pop ebx
leave
ret
Function at 0x40affa
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov al, byte [esi]
mov cl, byte [esi + 7]
mov edx, dword [edi + 0x20]
push ebx
mov bl, al
mov byte [ebp - 4], cl
movzx ecx, word [esi + 8]
mov byte [ebp - 8], bl
test edx, edx
je 0x40b0c9
cmp bl, 0x14
je 0x40b0c9
cmp bl, 0x90
je 0x40b0c9
cmp bl, 0x91
je 0x40b0c9
cmp al, 0xff
je 0x40b0b8
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx ebx, bl
or byte [ebp + ebx - 0x128], 0x80
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx ecx, byte [ebp - 4]
shl ecx, 0x10
mov eax, esi
or ecx, 1
call fcn.00409e21
cmp al, 1
jne 0x40b07f
or ecx, 0x1000000
cmp byte [edi + 0x17], 0
jne 0x40b091
cmp byte [edi + 0x1d], 0
jne 0x40b091
cmp byte [ebp - 8], 0x12
jne 0x40b0ac
cmp byte [edi + 0x16], 0
jne 0x40b0ac
cmp byte [edi + 0x1c], 0
jne 0x40b0ac
or ecx, 0x20000000
push ecx
push ebx
push 0x104
jmp 0x40b0b3
push ecx
push ebx
push pe_nt_image_headers32
push dword [edi + 0x20]
jmp 0x40b0c1
push 1
push ecx
push 0x102
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40b138
cmp al, 0xff
je 0x40b10c
mov eax, esi
call fcn.00409e21
cmp al, 1
jne 0x40b0e8
test byte [edi + 0xc], 4
je 0x40b0e2
push 1
jmp 0x40b0f0
push 0
push 1
jmp 0x40b0fe
test byte [edi + 0xc], 4
push 0
je 0x40b0fc
push dword [ebp - 4]
mov cl, bl
call fcn.0040b2cb
jmp 0x40b138
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_keybd_event]
jmp 0x40b138
xor eax, eax
and dword [ebp - 0x18], eax
and dword [ebp - 0x14], eax
mov word [ebp - 0x20], ax
push 0x1c
lea eax, [ebp - 0x24]
push eax
push 1
mov dword [ebp - 0x24], 1
mov word [ebp - 0x1e], cx
mov dword [ebp - 0x1c], 4
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, edi
call fcn.0040b2a9
pop ebx
leave
ret
Function at 0x40b142
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov esi, eax
mov al, byte [esi]
mov cl, byte [esi + 7]
xor edx, edx
mov bl, al
mov byte [ebp - 4], cl
movzx ecx, word [esi + 8]
mov byte [ebp - 8], bl
cmp dword [edi + 0x20], edx
je 0x40b210
cmp bl, 0x14
je 0x40b210
cmp bl, 0x90
je 0x40b210
cmp bl, 0x91
je 0x40b210
cmp al, 0xff
je 0x40b27d
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx ebx, bl
xor byte [ebp + ebx - 0x128], 0x80
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx ecx, byte [ebp - 4]
shl ecx, 0x10
mov eax, esi
or ecx, 0xc0000001
call fcn.00409e21
cmp al, 1
jne 0x40b1d1
or ecx, 0x1000000
cmp byte [edi + 0x17], 0
jne 0x40b1e3
cmp byte [edi + 0x1d], 0
jne 0x40b1e3
cmp byte [ebp - 8], 0x12
jne 0x40b1fe
cmp byte [edi + 0x16], 0
jne 0x40b1fe
cmp byte [edi + 0x1c], 0
jne 0x40b1fe
or ecx, 0x20000000
push ecx
push ebx
push 0x105
jmp 0x40b205
push ecx
push ebx
push 0x101
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40b27d
cmp al, 0xff
je 0x40b253
mov eax, esi
call fcn.00409e21
cmp al, 1
jne 0x40b22e
test byte [edi + 0xc], 4
je 0x40b229
push 3
jmp 0x40b236
push edx
push 3
jmp 0x40b245
test byte [edi + 0xc], 4
je 0x40b242
push 2
push dword [ebp - 4]
mov cl, bl
call fcn.0040b2cb
jmp 0x40b27d
push edx
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_keybd_event]
jmp 0x40b27d
mov word [ebp - 0x1e], cx
push 0x1c
xor eax, eax
lea ecx, [ebp - 0x24]
inc eax
push ecx
xor esi, esi
push eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], si
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, edi
call fcn.0040b288
pop esi
pop ebx
leave
ret