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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp byte [esi + 8], 0
push edi
je 0x402d28
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 0x30], eax
jne 0x402d21
mov dword [esi + 0x38], edi
xor eax, eax
jmp 0x402e39
mov dword [ebp - 4], 1
cmp byte [esi + 4], 0
mov edi, dword [sym.imp.USER32.dll_GetClassNameW]
push ebx
mov ebx, 0x100
je 0x402d67
push ebx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
jne 0x402d64
mov dword [ebp - 8], 1
inc dword [ebp - 4]
cmp byte [esi + 7], 0
je 0x402dd9
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x80c]
push eax
push ebx
call edi
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.00448d62
push eax
lea eax, [ebp - 0x80c]
push eax
push edi
call fcn.00448d2d
add esp, 0x10
test eax, eax
jne 0x402dd4
inc dword [esi + 0x3c]
push dword [esi + 0x3c]
lea eax, [ebp - 0x80c]
push eax
push str._s_u
push eax
call fcn.00448d78
push dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.00448c09
add esp, 0x18
test eax, eax
jne 0x402dd4
mov dword [esi + 0x38], ebx
xor eax, eax
jmp 0x402e38
inc dword [ebp - 4]
jmp 0x402ddc
mov ebx, dword [ebp + 8]
cmp byte [esi + 6], 0
je 0x402e0e
push 0x400
lea eax, [ebp - 0x80c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x402dcd
inc dword [ebp - 4]
cmp byte [esi + 5], 0
je 0x402e2d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x402e2a
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x34]
jne 0x402e2a
inc dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
je 0x402dcd
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret 4

Function at 0x402f43
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x402f6e
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 0x402f89
push 1
jmp 0x402f70
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 0x403029
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 0xc], 1
jne 0x403041
push dword [esp + 8]
call fcn.00403ce8
test al, al
jne 0x40305d
push 1
jmp 0x403043
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 0x4030f4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x45b6e0
push dword [ebp + 8]
call fcn.00416b9f
mov eax, dword [ebx]
test eax, eax
jne 0x40310f
xor al, al
jmp 0x403163
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0xe
push eax
call esi
mov edi, eax
test edi, edi
je 0x40315f
lea eax, [edi + edi + 2]
push eax
call fcn.00448b1a
pop ecx
push eax
inc edi
push edi
push 0xd
push dword [ebx]
mov dword [ebp - 4], eax
call esi
test eax, eax
push dword [ebp - 4]
jg 0x40314e
call fcn.00448a22
pop ecx
xor al, al
jmp 0x403161
push dword [ebp + 8]
call fcn.00416b9f
push dword [ebp - 4]
call fcn.00448a22
pop ecx
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x403a61
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp byte [edi + 0xb], 0
je 0x403a81
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 0x403aba
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [edi + 0x48]
lea ecx, [ebp - 0x818]
push ecx
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
jne 0x403ab7
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 6], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x403b50
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call ebx
cmp byte [edi + 0xc], 0
jne 0x403af9
lea eax, [ebp - 0x818]
push eax
call fcn.00448d62
pop ecx
push eax
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov eax, dword [edi + 0x10]
dec eax
je 0x403b2f
dec eax
je 0x403b18
dec eax
jne 0x403b4d
push dword [edi + 0x14]
lea eax, [ebp - 0x818]
push eax
call fcn.00448c09
pop ecx
pop ecx
jmp 0x403b46
push dword [edi + 0x14]
lea eax, [ebp - 0x818]
push eax
call fcn.00448eb2
test eax, eax
pop ecx
pop ecx
je 0x403b4d
jmp 0x403b4a
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
lea eax, [ebp - 0x818]
push eax
push ecx
call fcn.00448d2d
add esp, 0xc
test eax, eax
jne 0x403b4d
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 7], 0
je 0x403b92
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x818]
push eax
lea esi, [ebp - 0x14]
call fcn.00416a9d
lea esi, [edi + 0x2c]
lea eax, [ebp - 0x14]
call fcn.0040f1e1
push dword [ebp - 0x14]
mov bl, al
call fcn.00448a22
test bl, bl
pop ecx
je 0x403b8f
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 8], 0
pop ebx
je 0x403bb5
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403bb2
push dword [ebp + 8]
mov esi, edi
call fcn.00403bfd
test al, al
je 0x403bb2
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 0xa], 0
je 0x403bd4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x403bd1
inc dword [edi + 0x58]
mov eax, dword [edi + 0x58]
cmp eax, dword [edi + 0x54]
jne 0x403bd1
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403bf5
lea eax, [ebp + 8]
push eax
lea esi, [edi + 0x68]
call fcn.0041082e
inc dword [edi + 0x5c]
xor eax, eax
cmp byte [edi + 4], al
sete al
jmp 0x403bf8
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x403c48
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x403c61
cmp byte [ebx + 5], 1
jne 0x403cdf
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xe
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
je 0x403cdf
lea eax, [edi + edi + 2]
push eax
call fcn.00448b1a
pop ecx
push eax
inc edi
push edi
push 0xd
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
test eax, eax
jg 0x403c99
xor esi, esi
inc esi
jmp 0x403cc9
cmp byte [ebx + 0xc], 0
jne 0x403cb2
push dword [ebp - 4]
call fcn.00448d62
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push dword [ebx + 0x20]
push dword [ebp - 4]
call fcn.00448eb2
test eax, eax
pop ecx
pop ecx
je 0x403cd6
mov byte [ebx + 0x60], 1
xor esi, esi
push dword [ebp - 4]
call fcn.00448a22
pop ecx
mov eax, esi
jmp 0x403ce2
push dword [ebp - 4]
call fcn.00448a22
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x405dc6
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 0x405e0e
cmp edx, dword [esi + 0x4138]
je 0x405e2a
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [esi + 0x4138], edx
jne 0x405e2a
push edx
push ecx
push esi
push dword [ebp + 8]
push 0xfffffffffffffff5
pop ebx
call fcn.004043a1
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 1
call ebx
mov edi, 0x8000
test di, ax
jne 0x405e52
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405e52
and dword [ebp - 8], 0
jmp 0x405e59
mov dword [ebp - 8], 1
push 2
call ebx
test di, ax
jne 0x405e75
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405e75
and dword [ebp - 4], 0
jmp 0x405e7c
mov dword [ebp - 4], 1
mov edi, dword [ebp - 8]
cmp edi, dword [esi + 0x413c]
je 0x405ede
cmp dword [ebp + 0xc], 1
jne 0x405ede
test edi, edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405e9f
push 0xfffffffffffffff9
jmp 0x405ed1
push 0xfffffffffffffff8
pop ebx
call fcn.004043a1
cmp byte [esi + 0x4144], 0
je 0x405ed7
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405ecf
push 0xfffffffffffffffa
jmp 0x405ed1
push 0xfffffffffffffff4
pop ebx
call fcn.004043a1
mov byte [esi + 0x4144], 0
cmp dword [ebp + 0xc], 0
je 0x405eea
mov dword [esi + 0x413c], edi
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x4140]
pop edi
je 0x405f1c
cmp dword [ebp + 0xc], 1
jne 0x405f1c
test eax, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405f14
push 0xfffffffffffffff7
pop ebx
call fcn.004043a1
jmp 0x405f22
push 0xfffffffffffffff6
pop ebx
call fcn.004043a1
cmp dword [ebp + 0xc], 0
je 0x405f2b
mov eax, dword [ebp - 4]
mov dword [esi + 0x4140], eax
pop ebx
leave
ret 8
Function at 0x40ad34
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor esi, esi
cmp word [eax], si
push edi
mov dword [ebp - 8], esi
je 0x40ae3c
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40add7
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0xc]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 8]
push eax
push 0x459ea8
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, esi
jne 0x40adde
xor eax, eax
jmp 0x40ae68
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, esi
mov eax, dword [ebp + 0x10]
jne 0x40ae13
cmp dword [eax], esi
jne 0x40ae13
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40ae1b
mov dword [ebp - 0x28], edx
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
push 0x2000
push dword [eax]
push dword [ecx]
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40ae3f
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x40ae50
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
push eax
push esi
mov dword [edi + 0x44], eax
mov edi, dword [edi]
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b5e6
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 0x40b66e
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x40b665
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b657
cmp byte [eax + 0x70], 0xb
je 0x40b657
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4150]
je 0x40b639
cmp byte [esi + 0x4158], 0
je 0x40b657
cmp cl, 0xff
je 0x40b657
cmp byte [eax + 0x70], 0xa
je 0x40b657
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x40b657
cmp byte [eax + 0x70], 0x1a
jne 0x40b657
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 0x40b60b
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 0x40b6ce
lea edi, [esi + 0x5c]
mov eax, dword [edi]
test eax, eax
je 0x40b6c0
cmp byte [eax + 0x70], 0xb
je 0x40b6c0
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4150]
jne 0x40b6c0
test byte [eax + 0x72], 0x20
jne 0x40b6c0
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 0x40b6c0
cmp byte [eax + 0x70], 0x1a
jne 0x40b6c0
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 0x40b67c
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi + 0x4148]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 4
Function at 0x40f6ad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.0044ba00
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], 0x45bd10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
push edi
mov dword [esi + 0x28], 0x45bd0c
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0x400
mov dword [esi + 0x40], ebx
call fcn.00448b1a
pop ecx
mov dword [esi + 0x3c], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00449756
push edi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.004498b1
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004498ee
push 0x20a
call fcn.00448b1a
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x40], eax
lea eax, [ebp - 0x21c]
push eax
push ecx
call fcn.00448afe
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x45c0b0
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f8c3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20630]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x1fffe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f8ba
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add eax, eax
mov word [ebp + eax - 0x20630], bx
mov word [ebp + eax - 0x2062e], bx
lea eax, [ebp - 0x20630]
mov word [ebp - 0x21c], bx
mov dword [ebp - 8], eax
mov cx, word [eax]
cmp cx, bx
mov word [ebp - 0x10], cx
mov word [ebp - 0xe], bx
je 0x40f832
cmp cx, 0x3b
je 0x40f832
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00448ad4
pop ecx
pop ecx
jmp 0x40f8ae
lea eax, [ebp - 0x21c]
push eax
call fcn.00448d62
test eax, eax
pop ecx
je 0x40f86e
lea eax, [ebp - 0x21c]
push eax
call fcn.00448d62
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x40f86e
lea eax, [ebp - 0x21c]
push 0x45c0ac
push eax
call fcn.00448ad4
pop ecx
pop ecx
push 0x20a
call fcn.00448b1a
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x40], eax
push edi
lea eax, [ebp - 0x21c]
push eax
push ecx
call fcn.00449187
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x40f8ba
add dword [ebp - 8], 2
mov eax, dword [ebp - 8]
jmp 0x40f808
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x410912
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
push 5
pop eax
xor ebx, ebx
push ebx
push 0x5b
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x244], ebx
mov byte [esi + 8], 1
mov byte [esi + 9], bl
call edi
push ebx
push 0x10
mov byte [esi + 0x251], al
call edi
push ebx
push 0xa0
mov byte [esi + 0x24e], al
call edi
push ebx
push 0xa1
mov byte [esi + 0x24f], al
call edi
push ebx
push 0x11
mov byte [esi + 0x250], al
call edi
push ebx
push 0x12
mov byte [esi + 0x24c], al
call edi
mov byte [esi + 0x24d], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
xor eax, eax
lea esi, [edi + 0x4658a0]
mov al, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x4109a9
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x41098f
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.00449a10
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x4109f1
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.00449aa0
add esp, 0xc
test eax, eax
mov byte [0x4658a5], 0x20
mov byte [0x4658a2], 0x20
je 0x410a83
jmp 0x410a6e
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.00449a10
test eax, eax
pop ecx
pop ecx
je 0x410a36
lea eax, [ebp - 6]
push 0x45c12c
push eax
call fcn.00449a10
test eax, eax
pop ecx
pop ecx
jne 0x410a22
mov byte [0x4658a5], 0x20
jmp 0x410a7c
lea eax, [ebp - 6]
push 0x45c128
push eax
call fcn.00449a10
test eax, eax
pop ecx
pop ecx
jne 0x410a3f
mov byte [0x4658a2], 0x20
jmp 0x410a67
lea eax, [ebp - 6]
push 0x45c124
push eax
call fcn.00449a10
test eax, eax
pop ecx
pop ecx
je 0x410a7c
lea eax, [ebp - 6]
push 0x45c120
push eax
call fcn.00449a10
test eax, eax
pop ecx
pop ecx
jne 0x410a83
mov byte [0x4658a5], 0x20
mov byte [0x4658a3], 0x20
mov byte [str.___Id:_qmath.h_v_1.1_2004_01_15_19:50:35_jonbennett_Exp__], 0x20
mov byte [0x4658a4], 0x20
leave
ret
Function at 0x410c75
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
cmp ebx, edi
jne 0x410c8c
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x410d52
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 0x410d1e
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 [0x47d7a4], eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x410cfe
lea eax, [esp + 0x10]
push eax
push ebx
call edi
mov ecx, dword [0x47d7a4]
cmp ecx, eax
mov dword [0x47d7a0], eax
je 0x410cf4
push 1
push eax
push ecx
call esi
mov dword [esp + 0xc], eax
mov eax, dword [0x47d7a0]
push 1
push eax
push ebp
call esi
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
jne 0x410d50
cmp dword [esp + 0xc], eax
jne 0x410d50
cmp dword [esp + 0x10], eax
jne 0x410d50
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x248], eax
jmp 0x410d50
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x410d46
push edi
push dword [0x47d7a0]
push ebp
call esi
mov ecx, dword [0x47d7a4]
mov eax, dword [0x47d7a0]
cmp ecx, eax
je 0x410d46
push edi
push eax
push ecx
call esi
push edi
push dword [0x47d7a4]
push ebp
call esi
pop esi
pop ebp
pop edi
pop ecx
pop ecx
ret 8

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

Function at 0x410e24
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 0x410e47
mov al, byte [esp + 0xc]
mov ebx, esi
call fcn.00410ec2
jmp 0x410e80
mov eax, ebx
call fcn.00410f66
push dword [esi + 0x244]
call fcn.004113fd
cmp dword [esp + 0x10], 0
je 0x410e75
push edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
push 0
push edi
push esi
call fcn.0041182c
dec ebx
jne 0x410e68
pop edi
push dword [esi + 0x244]
call fcn.00411613
pop esi
pop ebx
ret 8
Function at 0x410f66
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
push edi
mov edi, 0x200
test edi, eax
je 0x410f7e
or dword [esi + 0x244], 8
test ah, 4
je 0x410f8a
or dword [esi + 0x244], 1
mov ebx, 0x100
test ebx, eax
je 0x410f9a
or dword [esi + 0x244], 2
mov eax, dword [esi + 0x244]
test al, 8
je 0x410fb1
test ebx, eax
je 0x410fb1
xor eax, 8
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 1
je 0x410fc8
test al, 0x20
je 0x410fc8
xor eax, 1
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 2
je 0x410fdf
test al, 0xc0
je 0x410fdf
xor eax, 2
mov dword [esi + 0x244], eax
mov eax, dword [esi + 0x244]
test al, 0x10
je 0x410ff6
test edi, eax
je 0x410ff6
xor eax, 0x10
mov dword [esi + 0x244], eax
cmp dword [esi + 0x248], 0
je 0x41105d
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x244]
test ebx, eax
jne 0x411019
mov byte [esp + 0x19], 0
test al, 0x20
jne 0x411022
mov byte [esp + 0x1a], 0
test al, 0x40
jne 0x411033
mov byte [esp + 0x18], 0
mov byte [esp + 0xa8], 0
test al, al
js 0x411044
mov byte [esp + 0x18], 0
mov byte [esp + 0xa8], 0
test edi, eax
jne 0x41104d
mov byte [esp + 0x63], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x411144
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x41107f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411093
test dword [esi + 0x244], ebx
jne 0x411093
push 0
push 0x11
pop eax
mov ecx, esi
call fcn.00411947
push 0x12
call ebp
test di, ax
jne 0x4110a9
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4110be
test byte [esi + 0x244], 0x20
jne 0x4110be
push 0
push 0x12
pop eax
mov ecx, esi
call fcn.00411947
mov ebx, 0xa0
push ebx
call ebp
test di, ax
jne 0x4110d7
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x4110eb
test byte [esi + 0x244], 0x40
jne 0x4110eb
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411947
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x411104
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411118
test byte [esi + 0x244], 0x80
jne 0x411118
push 0
mov eax, ebx
mov ecx, esi
call fcn.00411947
push 0x5b
call ebp
test di, ax
pop ebp
jne 0x41112f
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x411144
test byte [esi + 0x245], 2
jne 0x411144
push 0
push 0x5b
pop eax
mov ecx, esi
call fcn.00411947
pop edi
pop ebx
add esp, 0x100
ret