joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ed84
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x473f2f
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x473f44
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x473f58
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x474033
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x47400f
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x474014
push 4
jmp 0x474011
push 3
pop ebx
jmp 0x474017
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x474036
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x41eda2
Function at 0x433b00
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4badc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [section..data]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004280ec
mov dword [ebp - 0x14], eax
cmp dword [0x4c1048], edi
jne 0x433bf1
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x433b7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x433cd1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x433cd1
push 0x49ba60
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433cd1
push eax
call ebx
push 0x49ba6c
push esi
mov dword [0x4c1048], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4c104c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4c1050], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c1058], eax
test eax, eax
je 0x433bee
push 0x49baac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c1054], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x433c16
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x433c09
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x433c2b
push 4
pop eax
jmp 0x433cd3
cmp dword [ebp - 0x14], edi
je 0x433c2b
push dword [0x4c1048]
call dword [0x4ba004]
push 3
jmp 0x433c10
mov eax, dword [0x4c1054]
mov ebx, dword [0x4ba004]
cmp eax, esi
je 0x433c89
cmp dword [0x4c1058], esi
je 0x433c89
push eax
call ebx
push dword [0x4c1058]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x433c89
test eax, eax
je 0x433c89
call ecx
test eax, eax
je 0x433c7e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x433c7e
test byte [ebp - 8], 1
jne 0x433c89
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x433cb9
mov eax, dword [0x4c104c]
cmp eax, esi
je 0x433cb6
push eax
call ebx
test eax, eax
je 0x433cb6
call eax
mov edi, eax
test edi, edi
je 0x433cb6
mov eax, dword [0x4c1050]
cmp eax, esi
je 0x433cb6
push eax
call ebx
test eax, eax
je 0x433cb6
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4c1048]
call ebx
test eax, eax
je 0x433cd1
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x433cd3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a8ec
leave
ret
Function at 0x43a313
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov edi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call fcn.0040dc00
lea ecx, [ebp - 0x20]
call fcn.0040dc00
lea ecx, [ebp - 0x40]
call fcn.0040dc00
push 0x4b287c
lea ecx, [ebp - 0x30]
call fcn.00404f02
push esi
lea ecx, [ebp - 0x30]
call fcn.004055cc
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.004055cc
lea ecx, [ebp - 0x20]
call fcn.0040d90b
test edi, edi
je 0x43a396
push 0x5c
pop eax
cmp word [edi], ax
je 0x43a396
cmp word [edi + 2], ax
je 0x43a396
push 0x4b28b0
lea ecx, [ebp - 0x20]
call fcn.00404f02
push edi
lea ecx, [ebp - 0x20]
call fcn.004055cc
cmp dword [ebp + 0xc], ebx
je 0x43a3e7
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00420f20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], ebx
call fcn.004097df
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.004055cc
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x43a473
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x43a473
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x43a46e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x43a469
mov eax, dword [ebp - 0xc]
push dword [ebp + 8]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.0040126c
lea ecx, [ebp - 0x20]
call fcn.0040126c
lea ecx, [ebp - 0x30]
call fcn.0040126c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x43ac89
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
xor ebx, ebx
push ebx
push dword [eax]
mov edi, ecx
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x43ace0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43ace3
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x43ace3
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x43ace3
xor ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x43b12a
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
call fcn.0043ae52
test al, al
je 0x43b13c
pop ebp
jmp fcn.0043ae8b
pop ebp
jmp fcn.0043b142

Function at 0x43b2cb
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0x14]
push dword [ebp + 0x1c]
and eax, 2
push 0
or eax, 4
shr eax, 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x18

Function at 0x43b428
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
mov ebx, eax
push 0
push ebx
call edi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea eax, [ebx + 8]
push eax
call edi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 4], eax
xor eax, eax
push eax
push eax
push ebx
push 0x43b499
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x43b775
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 0xb0
push dword [esi]
mov dword [ebp - 0x10], esi
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x43b7a5
xor al, al
jmp 0x43b81f
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x43b81c
cmp edi, dword [ebp - 8]
jb 0x43b81c
cmp edi, dword [ebp - 4]
jb 0x43b81c
xor ecx, ecx
push 2
lea esi, [edi + 1]
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f6ba
pop ecx
push eax
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x43b811
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x43b800
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea eax, [esi + eax*2]
push eax
call fcn.00404f02
mov bl, 1
push esi
call fcn.0041f72e
pop ecx
mov al, bl
jmp 0x43b81e
xor al, al
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x43c1b5
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 1
push dword [esi]
mov dword [ebp - 4], esi
call fcn.0043d3be
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 1
push eax
cmp dword [ebp + 8], ebx
jge 0x43c20d
push 0x25
push 0x100
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x43c235
push 0x27
push 0x100
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
mov edi, dword [ebp - 4]
push 0x101
push dword [edi]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [edi]
call fcn.0043d3be
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4

Function at 0x43c9f2
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp byte [ebp + 0xc], 1
jne 0x43ca1d
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x43ca36
push 1
jmp 0x43ca1e
push esi
push esi
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 esi
pop ebp
ret 8

Function at 0x43d56e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 8], ebx
call fcn.0040d90b
push dword [ebx]
call fcn.0040103b
test al, al
je 0x43d593
xor al, al
jmp 0x43d60f
mov ecx, ebx
call fcn.0043d616
mov ebx, eax
test ebx, ebx
jne 0x43d5a5
mov ebx, 0x7fff
xor ecx, ecx
push 2
lea esi, [ebx + 1]
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f6ba
pop ecx
mov edi, eax
mov eax, dword [ebp - 8]
push edi
push esi
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x43d606
push edi
call fcn.004219a0
pop ecx
push edi
cmp eax, ebx
jne 0x43d5fe
lea ecx, [ebp - 0x18]
call fcn.0043d37b
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0040c8fe
lea ecx, [ebp - 0x18]
call fcn.0040126c
jmp 0x43d606
mov ecx, dword [ebp + 8]
call fcn.00404f02
push edi
call fcn.0041f72e
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4422ee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov ecx, dword [ebx]
push edi
mov edi, dword [ebp + 8]
lea eax, [ecx + 4]
mov esi, dword [ecx + edi]
mov dword [ebx], eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
mov dword [ebp + 8], esi
neg ecx
or ecx, eax
push ecx
call fcn.0041f6ba
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
push esi
push ecx
mov edi, eax
push edi
call fcn.0041f050
mov ecx, dword [ebp + 8]
add dword [ebx], esi
xor eax, eax
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x442349
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x442340
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44299f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esi], eax
mov word [esi + 4], ax
cmp dword [edi + 0x20], eax
je 0x442a42
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x442b27
mov eax, 0x80
cmp byte [ebp - 0x60], al
je 0x4429e7
cmp byte [ebp - 0xf0], al
jne 0x4429f0
cmp byte [edi + 0x1a], 0
jne 0x4429f0
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x4429ff
cmp byte [edi + 0x1b], 0
jne 0x4429ff
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x442a11
cmp byte [edi + 0x1c], 0
jne 0x442a11
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x442a23
cmp byte [edi + 0x1d], 0
jne 0x442a23
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x442b27
cmp byte [edi + 0x1e], 0
jne 0x442b27
mov byte [esi + 4], 1
jmp 0x442b27
push ebx
push 0xa0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x442a6f
push 0xa0
call ebx
mov ecx, 0x8000
test cx, ax
je 0x442a78
cmp byte [edi + 0x1a], 0
jne 0x442a78
mov byte [esi], 1
push 0xa1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x442a9e
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x442aa8
cmp byte [edi + 0x1b], 0
jne 0x442aa8
mov byte [esi + 1], 1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x442ac8
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
je 0x442ad2
cmp byte [edi + 0x1c], 0
jne 0x442ad2
mov byte [esi + 2], 1
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x442af2
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
je 0x442afc
cmp byte [edi + 0x1d], 0
jne 0x442afc
mov byte [esi + 3], 1
push 0x5b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x442b1c
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
je 0x442b26
cmp byte [edi + 0x1e], 0
jne 0x442b26
mov byte [esi + 4], 1
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x442cc3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10c
cmp byte [eax], 0
push esi
mov esi, ecx
je 0x442cdb
mov byte [esi + 0x14], 1
cmp byte [eax + 2], 0
je 0x442ce5
mov byte [esi + 0x16], 1
cmp byte [eax + 3], 0
je 0x442cef
mov byte [esi + 0x17], 1
xor eax, eax
cmp byte [esi + 0x14], al
je 0x442cfe
cmp byte [esi + 0x1a], al
je 0x442cfe
mov byte [esi + 0x14], al
cmp byte [esi + 0x15], al
je 0x442d0b
cmp byte [esi + 0x1b], al
je 0x442d0b
mov byte [esi + 0x15], al
cmp byte [esi + 0x16], al
je 0x442d18
cmp byte [esi + 0x1c], al
je 0x442d18
mov byte [esi + 0x16], al
cmp byte [esi + 0x17], al
je 0x442d25
cmp byte [esi + 0x1d], al
je 0x442d25
mov byte [esi + 0x17], al
cmp byte [esi + 0x18], al
je 0x442d32
cmp byte [esi + 0x1e], al
je 0x442d32
mov byte [esi + 0x18], al
cmp dword [esi + 0x20], eax
je 0x442db4
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x442eec
mov cl, byte [esi + 0x1a]
mov dl, byte [esi + 0x1b]
test cl, cl
sete al
dec al
and byte [ebp - 0x6c], al
test dl, dl
sete al
dec al
and byte [ebp - 0x6b], al
test cl, cl
jne 0x442d77
test dl, dl
sete al
dec al
and byte [ebp - 0xfc], al
cmp byte [esi + 0x1c], 0
sete al
dec al
and byte [ebp - 0xfb], al
cmp byte [esi + 0x1d], 0
sete al
dec al
and byte [ebp - 0xfa], al
test cl, cl
sete al
dec al
and byte [ebp - 0xb1], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x442eec
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.0044291b
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call ebx
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x442dec
push 0xa0
call edi
mov ecx, 0x8000
test cx, ax
je 0x442e0a
cmp byte [esi + 0x1a], 0
jne 0x442e0a
push 0xa0
lea ecx, [ebp - 0xc]
call fcn.00444047
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.004438c9
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x442e2c
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
je 0x442e4a
cmp byte [esi + 0x1b], 0
jne 0x442e4a
push 0xa1
lea ecx, [ebp - 0xc]
call fcn.00444047
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.004438c9
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x442e66
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0x442e81
cmp byte [esi + 0x1c], 0
jne 0x442e81
push 0x11
lea ecx, [ebp - 0xc]
call fcn.00444047
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.004438c9
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x442e9d
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
je 0x442eb8
cmp byte [esi + 0x1d], 0
jne 0x442eb8
push 0x12
lea ecx, [ebp - 0xc]
call fcn.00444047
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.004438c9
push 0x5b
call ebx
mov ebx, 0x8000
test bx, ax
jne 0x442ecf
push 0x5b
call edi
test bx, ax
je 0x442eea
cmp byte [esi + 0x1e], 0
jne 0x442eea
push 0x5b
lea ecx, [ebp - 0xc]
call fcn.00444047
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.004438c9
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x44370b
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
movzx edi, al
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov bx, ax
and bl, 1
cmp byte [ebp + 0xc], bl
je 0x44376c
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ecx
push 0
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00443f84
mov ecx, dword [ebp - 4]
call fcn.00442984
push ecx
push 2
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00443f84
mov ecx, dword [ebp - 4]
call fcn.0044296b
pop esi
pop edi
mov al, bl
pop ebx
leave
ret 8

Function at 0x443774
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, word [edi + 8]
cmp dword [esi + 0x20], 0
mov bl, byte [edi]
mov bh, byte [edi + 7]
mov byte [ebp - 8], bl
mov byte [ebp - 4], bh
mov dword [ebp - 0xc], eax
je 0x44385f
cmp bl, 0x14
je 0x44385f
cmp bl, 0x90
je 0x44385f
cmp bl, 0x91
je 0x44385f
mov ecx, edi
call fcn.00442c72
test al, al
je 0x443846
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4437f0
movzx eax, bl
or byte [ebp + eax - 0x128], 0x80
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov ecx, dword [ebp + 8]
movzx edi, bh
shl edi, 0x10
or edi, 1
call fcn.00442bb2
cmp al, 1
jne 0x44380b
or edi, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x44381c
cmp byte [esi + 0x1d], 0
jne 0x44381c
cmp bl, 0x12
jne 0x44383a
cmp byte [esi + 0x16], 0
jne 0x44383a
cmp byte [esi + 0x1c], 0
jne 0x44383a
or edi, 0x20000000
movzx eax, bl
push edi
push eax
push 0x104
jmp 0x443854
movzx eax, bl
push edi
push eax
push 0x100
jmp 0x443854
mov eax, dword [ebp - 0xc]
movzx eax, ax
push 1
push eax
push 0x102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4438bb
mov ecx, edi
call fcn.00442c72
test al, al
je 0x44388b
mov ecx, edi
call fcn.00442bb2
push ecx
mov ecx, esi
cmp al, 1
jne 0x44387c
push 1
jmp 0x44387e
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00443f84
jmp 0x4438bb
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x24], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x22], ax
push 0x1c
xor ecx, ecx
lea eax, [ebp - 0x28]
inc ecx
push eax
push ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 4
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.00442984
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4438c9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov bl, byte [edi]
cmp dword [esi + 0x20], 0
mov bh, byte [edi + 7]
mov byte [ebp - 4], bl
mov byte [ebp - 8], bh
je 0x4439a4
cmp bl, 0x14
je 0x4439a4
cmp bl, 0x90
je 0x4439a4
cmp bl, 0x91
je 0x4439a4
mov ecx, edi
call fcn.00442c72
test al, al
je 0x443a00
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x443942
movzx eax, bl
xor byte [ebp + eax - 0x124], 0x80
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov ecx, dword [ebp + 8]
movzx edi, bh
shl edi, 0x10
or edi, 0xc0000001
call fcn.00442bb2
cmp al, 1
jne 0x443960
or edi, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x443971
cmp byte [esi + 0x1d], 0
jne 0x443971
cmp bl, 0x12
jne 0x44398f
cmp byte [esi + 0x16], 0
jne 0x44398f
cmp byte [esi + 0x1c], 0
jne 0x44398f
or edi, 0x20000000
movzx eax, bl
push edi
push eax
push 0x105
jmp 0x443999
movzx eax, bl
push edi
push eax
push 0x101
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x443a00
mov ecx, edi
call fcn.00442c72
test al, al
je 0x4439d0
mov ecx, edi
call fcn.00442bb2
push ecx
mov ecx, esi
cmp al, 1
jne 0x4439c1
push 3
jmp 0x4439c3
push 2
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00443f84
jmp 0x443a00
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x20], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x1e], ax
push 0x1c
xor ecx, ecx
lea eax, [ebp - 0x24]
inc ecx
push eax
push ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 6
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.0044296b
pop edi
pop esi
pop ebx
leave
ret 4