joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e29
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp byte [esi + 8], 0
push edi
je 0x402e61
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 0x30], eax
jne 0x402e5a
mov dword [esi + 0x38], edi
xor eax, eax
jmp 0x402f72
mov dword [ebp - 4], 1
cmp byte [esi + 4], 0
mov edi, dword [sym.imp.USER32.dll_GetClassNameA]
push ebx
mov ebx, 0x100
je 0x402ea0
push ebx
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x40c]
push ecx
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
jne 0x402e9d
mov dword [ebp - 8], 1
inc dword [ebp - 4]
cmp byte [esi + 7], 0
je 0x402f12
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x40c]
push eax
push ebx
call edi
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0x40c]
push eax
call fcn.00448e50
push eax
lea eax, [ebp - 0x40c]
push eax
push edi
call fcn.00448e10
add esp, 0x10
test eax, eax
jne 0x402f0d
inc dword [esi + 0x3c]
push dword [esi + 0x3c]
lea eax, [ebp - 0x40c]
push eax
push str._s_u
push eax
call fcn.00448edb
push dword [esi + 0x18]
lea eax, [ebp - 0x40c]
push eax
call fcn.00448c50
add esp, 0x18
test eax, eax
jne 0x402f0d
mov dword [esi + 0x38], ebx
xor eax, eax
jmp 0x402f71
inc dword [ebp - 4]
jmp 0x402f15
mov ebx, dword [ebp + 8]
cmp byte [esi + 6], 0
je 0x402f47
push 0x400
lea eax, [ebp - 0x40c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x40c]
push ecx
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x402f06
inc dword [ebp - 4]
cmp byte [esi + 5], 0
je 0x402f66
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x402f63
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x34]
jne 0x402f63
inc dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
je 0x402f06
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret 4

Function at 0x40307c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x4030a7
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_SendMessageTimeoutA]
test eax, eax
je 0x4030c2
push 1
jmp 0x4030a9
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 0x403188
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 0xc], 1
jne 0x4031a0
push dword [esp + 8]
call fcn.00403162
test al, al
jne 0x4031bc
push 1
jmp 0x4031a2
push 0
push 0
push dword [esp + 0x10]
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]
ret 0xc
Function at 0x403253
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x45a5dc
push dword [ebp + 8]
call fcn.00416988
mov eax, dword [ebx]
test eax, eax
jne 0x40326e
xor al, al
jmp 0x4032be
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xe
push eax
call esi
test eax, eax
je 0x4032bb
push edi
lea edi, [eax + 1]
push edi
call fcn.00448ad8
pop ecx
push eax
push edi
push 0xd
push dword [ebx]
mov dword [ebp - 4], eax
call esi
test eax, eax
pop edi
push dword [ebp - 4]
jg 0x4032aa
call fcn.0044896c
pop ecx
xor al, al
jmp 0x4032bd
push dword [ebp + 8]
call fcn.00416988
push dword [ebp - 4]
call fcn.0044896c
pop ecx
mov al, 1
pop esi
leave
ret 4
Function at 0x403a10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp byte [edi + 0xb], 0
je 0x403a30
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
cmp byte [edi + 9], 0
push esi
mov esi, 0x400
je 0x403a69
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, dword [edi + 0x48]
lea ecx, [ebp - 0x418]
push ecx
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
jne 0x403a66
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 6], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
je 0x403aff
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call ebx
cmp byte [edi + 0xc], 0
jne 0x403aa8
lea eax, [ebp - 0x418]
push eax
call fcn.00448e50
pop ecx
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
mov eax, dword [edi + 0x10]
dec eax
je 0x403ade
dec eax
je 0x403ac7
dec eax
jne 0x403afc
push dword [edi + 0x14]
lea eax, [ebp - 0x418]
push eax
call fcn.00448c50
pop ecx
pop ecx
jmp 0x403af5
push dword [edi + 0x14]
lea eax, [ebp - 0x418]
push eax
call fcn.00448fc0
test eax, eax
pop ecx
pop ecx
je 0x403afc
jmp 0x403af9
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
lea eax, [ebp - 0x418]
push eax
push ecx
call fcn.00448e10
add esp, 0xc
test eax, eax
jne 0x403afc
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 7], 0
je 0x403b41
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x418]
push eax
lea esi, [ebp - 0x14]
call fcn.00416898
lea esi, [edi + 0x2c]
lea eax, [ebp - 0x14]
call fcn.0040f0bc
push dword [ebp - 0x14]
mov bl, al
call fcn.0044896c
test bl, bl
pop ecx
je 0x403b3e
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 8], 0
pop ebx
je 0x403b64
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403b61
push dword [ebp + 8]
mov esi, edi
call fcn.00403bac
test al, al
je 0x403b61
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 0xa], 0
je 0x403b83
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x403b80
inc dword [edi + 0x58]
mov eax, dword [edi + 0x58]
cmp eax, dword [edi + 0x54]
jne 0x403b80
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403ba4
lea eax, [ebp + 8]
push eax
lea esi, [edi + 0x68]
call fcn.0041061b
inc dword [edi + 0x5c]
xor eax, eax
cmp byte [edi + 4], al
sete al
jmp 0x403ba7
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x403bf7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x403c0f
cmp byte [ebx + 5], 1
jne 0x403c8b
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xe
push dword [ebp + 8]
call esi
test eax, eax
je 0x403c8b
push edi
lea edi, [eax + 1]
push edi
call fcn.00448ad8
pop ecx
push eax
push edi
push 0xd
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
test eax, eax
pop edi
jg 0x403c45
xor esi, esi
inc esi
jmp 0x403c75
cmp byte [ebx + 0xc], 0
jne 0x403c5e
push dword [ebp - 4]
call fcn.00448e50
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push dword [ebx + 0x20]
push dword [ebp - 4]
call fcn.00448fc0
test eax, eax
pop ecx
pop ecx
je 0x403c82
mov byte [ebx + 0x60], 1
xor esi, esi
push dword [ebp - 4]
call fcn.0044896c
pop ecx
mov eax, esi
jmp 0x403c8e
push dword [ebp - 4]
call fcn.0044896c
pop ecx
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x405d3a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x412c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4130], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0x4134]
cmp ecx, dword [eax]
jne 0x405d82
cmp edx, dword [esi + 0x4138]
je 0x405d9e
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [esi + 0x4138], edx
jne 0x405d9e
push edx
push ecx
push esi
push dword [ebp + 8]
push 0xfffffffffffffff5
pop ebx
call fcn.0040431f
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 1
call ebx
mov edi, 0x8000
test di, ax
jne 0x405dc6
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405dc6
and dword [ebp - 8], 0
jmp 0x405dcd
mov dword [ebp - 8], 1
push 2
call ebx
test di, ax
jne 0x405de9
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405de9
and dword [ebp - 4], 0
jmp 0x405df0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 8]
cmp edi, dword [esi + 0x413c]
je 0x405e52
cmp dword [ebp + 0xc], 1
jne 0x405e52
test edi, edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405e13
push 0xfffffffffffffff9
jmp 0x405e45
push 0xfffffffffffffff8
pop ebx
call fcn.0040431f
cmp byte [esi + 0x4144], 0
je 0x405e4b
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x1000000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405e43
push 0xfffffffffffffffa
jmp 0x405e45
push 0xfffffffffffffff4
pop ebx
call fcn.0040431f
mov byte [esi + 0x4144], 0
cmp dword [ebp + 0xc], 0
je 0x405e5e
mov dword [esi + 0x413c], edi
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x4140]
pop edi
je 0x405e90
cmp dword [ebp + 0xc], 1
jne 0x405e90
test eax, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405e88
push 0xfffffffffffffff7
pop ebx
call fcn.0040431f
jmp 0x405e96
push 0xfffffffffffffff6
pop ebx
call fcn.0040431f
cmp dword [ebp + 0xc], 0
je 0x405e9f
mov eax, dword [ebp - 4]
mov dword [esi + 0x4140], eax
pop ebx
leave
ret 8
Function at 0x40ac9f
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 0x40ada6
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 0x40ad41
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 0x458e60
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 0x40ad48
xor eax, eax
jmp 0x40add2
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 + 0xc]
mov edx, dword [ecx]
cmp edx, ebx
mov eax, dword [ebp + 0x10]
jne 0x40ad7d
cmp dword [eax], ebx
jne 0x40ad7d
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40ad85
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 0x40ada9
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x40adba
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
push eax
push ebx
mov dword [esi + 0x44], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b553
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 0x40b5db
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x40b5d2
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b5c4
cmp byte [eax + 0x70], 0xb
je 0x40b5c4
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4150]
je 0x40b5a6
cmp byte [esi + 0x4158], 0
je 0x40b5c4
cmp cl, 0xff
je 0x40b5c4
cmp byte [eax + 0x70], 0xa
je 0x40b5c4
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x40b5c4
cmp byte [eax + 0x70], 0x1a
jne 0x40b5c4
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 0x40b578
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 0x40b63b
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b62d
cmp byte [eax + 0x70], 0xb
je 0x40b62d
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4150]
jne 0x40b62d
test byte [eax + 0x72], 0x20
jne 0x40b62d
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 0x40b62d
cmp byte [eax + 0x70], 0x1a
jne 0x40b62d
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 0x40b5e9
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi + 0x4148]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop ebx
leave
ret 4
Function at 0x40f51b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.0044ba90
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], 0x45aa28
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
push edi
mov dword [esi + 0x28], 0x45aa24
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0x400
mov dword [esi + 0x40], ebx
call fcn.00448ad8
pop ecx
mov dword [esi + 0x3c], 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.00449745
push edi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.00449890
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004499c5
push 0x105
call fcn.00448ad8
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 - 0x118]
push eax
push ecx
call fcn.004489e0
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 0x40f723
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 0x40f71a
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 0x40f693
cmp cl, 0x3b
je 0x40f693
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004489f0
pop ecx
pop ecx
jmp 0x40f70f
lea eax, [ebp - 0x118]
push eax
call fcn.00448e50
test eax, eax
pop ecx
je 0x40f6d1
lea eax, [ebp - 0x118]
push eax
call fcn.00448e50
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40f6d1
lea eax, [ebp - 0x118]
push 0x45ac08
push eax
call fcn.004489f0
pop ecx
pop ecx
push 0x105
call fcn.00448ad8
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 - 0x118]
push eax
push ecx
call fcn.00449220
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x40f71a
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
jmp 0x40f66e
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x410718
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 + 0x144], ebx
mov byte [esi + 8], 1
mov byte [esi + 9], bl
call edi
push ebx
push 0x10
mov byte [esi + 0x151], al
call edi
push ebx
push 0xa0
mov byte [esi + 0x14e], al
call edi
push ebx
push 0xa1
mov byte [esi + 0x14f], al
call edi
push ebx
push 0x11
mov byte [esi + 0x150], al
call edi
push ebx
push 0x12
mov byte [esi + 0x14c], al
call edi
mov byte [esi + 0x14d], 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 + 0x462898]
mov al, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x4107af
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x410795
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x4107f7
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.00448e10
add esp, 0xc
test eax, eax
mov byte [0x46289d], 0x20
mov byte [0x46289a], 0x20
je 0x410889
jmp 0x410874
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x41083c
lea eax, [ebp - 6]
push 0x45ac68
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
jne 0x410828
mov byte [0x46289d], 0x20
jmp 0x410882
lea eax, [ebp - 6]
push 0x45ac64
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
jne 0x410845
mov byte [0x46289a], 0x20
jmp 0x41086d
lea eax, [ebp - 6]
push 0x45ac60
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x410882
lea eax, [ebp - 6]
push 0x45ac5c
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
jne 0x410889
mov byte [0x46289d], 0x20
mov byte [0x46289b], 0x20
mov byte [0x46289e], 0x20
mov byte [0x46289c], 0x20
leave
ret
Function at 0x410a76
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
cmp ebx, edi
jne 0x410a8d
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x410b53
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 0x410b1f
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 [0x470d04], eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x410aff
lea eax, [esp + 0x10]
push eax
push ebx
call edi
mov ecx, dword [0x470d04]
cmp ecx, eax
mov dword [0x470d00], eax
je 0x410af5
push 1
push eax
push ecx
call esi
mov dword [esp + 0xc], eax
mov eax, dword [0x470d00]
push 1
push eax
push ebp
call esi
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
jne 0x410b51
cmp dword [esp + 0xc], eax
jne 0x410b51
cmp dword [esp + 0x10], eax
jne 0x410b51
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x148], eax
jmp 0x410b51
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x410b47
push edi
push dword [0x470d00]
push ebp
call esi
mov ecx, dword [0x470d04]
mov eax, dword [0x470d00]
cmp ecx, eax
je 0x410b47
push edi
push eax
push ecx
call esi
push edi
push dword [0x470d04]
push ebp
call esi
pop esi
pop ebp
pop edi
pop ecx
pop ecx
ret 8

Function at 0x410bbf
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 0x410c21
push ebx
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov eax, esi
call fcn.00410b59
mov edi, dword [esi + 4]
push esi
call fcn.00411cc3
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push dword [ebp + 8]
mov eax, esi
push 2
pop ebx
call fcn.00410b59
mov edi, dword [esi]
push esi
call fcn.00411cc3
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x410c25
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 0x410c48
mov al, byte [esp + 0xc]
mov ebx, esi
call fcn.00410cc3
jmp 0x410c81
mov eax, ebx
call fcn.00410d67
push dword [esi + 0x144]
call fcn.004111fe
cmp dword [esp + 0x10], 0
je 0x410c76
push edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
push 0
push edi
push esi
call fcn.0041162d
dec ebx
jne 0x410c69
pop edi
push dword [esi + 0x144]
call fcn.00411414
pop esi
pop ebx
ret 8
Function at 0x410d67
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
push edi
mov edi, 0x200
test edi, eax
je 0x410d7f
or dword [esi + 0x144], 8
test ah, 4
je 0x410d8b
or dword [esi + 0x144], 1
mov ebx, 0x100
test ebx, eax
je 0x410d9b
or dword [esi + 0x144], 2
mov eax, dword [esi + 0x144]
test al, 8
je 0x410db2
test ebx, eax
je 0x410db2
xor eax, 8
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 1
je 0x410dc9
test al, 0x20
je 0x410dc9
xor eax, 1
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 2
je 0x410de0
test al, 0xc0
je 0x410de0
xor eax, 2
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x144]
test al, 0x10
je 0x410df7
test edi, eax
je 0x410df7
xor eax, 0x10
mov dword [esi + 0x144], eax
cmp dword [esi + 0x148], 0
je 0x410e5e
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x144]
test ebx, eax
jne 0x410e1a
mov byte [esp + 0x19], 0
test al, 0x20
jne 0x410e23
mov byte [esp + 0x1a], 0
test al, 0x40
jne 0x410e34
mov byte [esp + 0x18], 0
mov byte [esp + 0xa8], 0
test al, al
js 0x410e45
mov byte [esp + 0x18], 0
mov byte [esp + 0xa8], 0
test edi, eax
jne 0x410e4e
mov byte [esp + 0x63], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x410f45
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x410e80
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x410e94
test dword [esi + 0x144], ebx
jne 0x410e94
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.00411748
push 0x12
call ebp
test di, ax
jne 0x410eaa
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x410ebf
test byte [esi + 0x144], 0x20
jne 0x410ebf
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.00411748
mov ebx, 0xa0
push ebx
call ebp
test di, ax
jne 0x410ed8
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x410eec
test byte [esi + 0x144], 0x40
jne 0x410eec
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411748
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x410f05
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x410f19
test byte [esi + 0x144], 0x80
jne 0x410f19
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411748
push 0x5b
call ebp
test di, ax
pop ebp
jne 0x410f30
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x410f45
test byte [esi + 0x145], 2
jne 0x410f45
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.00411748
pop edi
pop ebx
add esp, 0x100
ret