joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
mov al, dl
mov byte [esp + 6], cl
xor dl, dl
mov byte [esp + 5], al
cmp dword [0x4db79c], 0
movzx ebx, dl
mov edx, 1
push ebp
cmovne ebx, edx
cmp dword [0x4db798], 0
push esi
push edi
mov dword [esp + 0x14], ebx
je 0x40da8f
or ebx, 2
mov dword [esp + 0x14], ebx
cmp cl, bl
je 0x40dc9f
test bl, bl
jne 0x40dad8
test al, al
jne 0x40dad8
push 0x4dc228
push 0
push 0
push 0x40dd70
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4dc240], eax
test eax, eax
je 0x40db79
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, byte [esp + 0x11]
mov cl, byte [esp + 0x12]
mov ebp, dword [sym.imp.USER32.dll_PostThreadMessageW]
xor ebx, ebx
xor esi, esi
movzx edi, cl
test al, al
sete bl
nop word [eax + eax]
push ebx
push edi
push 0x417
push dword [0x4dc228]
call ebp
test eax, eax
jne 0x40db11
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x40daf0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor al, al
mov byte [esp + 0x13], al
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, eax
mov ebx, dword [esp + 0x14]
mov cl, byte [esp + 0x12]
mov al, byte [esp + 0x11]
test cl, cl
je 0x40db86
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x40dbbb
cmp dword [esp + 0x24], 0
je 0x40db93
mov byte [esp + 0x13], 1
call fcn.0040e110
test al, al
jne 0x40db93
mov al, byte [esp + 0x11]
test al, al
jne 0x40dc72
xor cl, cl
mov byte [esp + 0x12], cl
jmp 0x40db33
call fcn.0040e130
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x40dba0
call fcn.0040e110
test al, al
jne 0x40dbbb
cmp byte [esp + 0x11], 0
jne 0x40dc6a
jmp 0x40dbee
lea eax, [esp + 0x18]
push eax
push dword [0x4dc240]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x40dbd3
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x40db93
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40db2b
push dword [0x4dc240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dc240], 0
call fcn.0040e130
cmp dword [0x4db79c], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x40dc14
test bl, 1
jne 0x40dc2f
push str.0abdf7
push 0
push 0
call esi
mov dword [0x4dc248], eax
jmp 0x40dc2f
test bl, 1
je 0x40dc2f
push dword [0x4dc248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dc248], 0
cmp dword [0x4db798], 0
je 0x40dc4f
test bl, 2
jne 0x40dc6a
push str.0abdf6
push 0
push 0
call esi
mov dword [0x4dc244], eax
jmp 0x40dc6a
test bl, 2
je 0x40dc6a
push dword [0x4dc244]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dc244], 0
mov al, byte [esp + 0x13]
test al, al
je 0x40dc9f
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4d89b8], 0
mov edx, 0x10000
mov ecx, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.0047ce40
add esp, 8
mov dword [0x4d89b8], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40eff0
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, ecx
push eax
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor dl, dl
xor cl, cl
call fcn.0040da50
mov eax, dword [0x4db764]
test eax, eax
je 0x40f017
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push edi
xor eax, eax
xor edi, edi
cmp ax, word [0x4dd210]
jae 0x40f0a0
mov edx, dword [0x4ddfc8]
push ebx
mov ebx, dword [0x4ddfcc]
push ebp
mov ebp, dword [sym.imp.USER32.dll_UnregisterHotKey]
push esi
nop word [eax + eax]
mov esi, dword [edi*4 + 0x4dc268]
test esi, esi
je 0x40f091
cmp byte [esi + 0x18], 0
je 0x40f072
movzx eax, word [esi + 4]
push eax
push dword [0x4db780]
call ebp
mov edx, dword [0x4ddfc8]
test eax, eax
mov ebx, dword [0x4ddfcc]
sete al
mov byte [esi + 0x18], al
cmp esi, edx
jne 0x40f091
test edx, edx
je 0x40f091
mov eax, dword [ebx + 4]
mov ecx, eax
sub ecx, edx
add dword [ebx + 8], ecx
sub eax, ecx
xor edx, edx
mov dword [ebx + 4], eax
mov dword [0x4ddfc8], edx
movzx eax, word [0x4dd210]
inc edi
cmp edi, eax
jl 0x40f040
pop esi
pop ebp
pop ebx
push dword [esp + 4]
call fcn.0049e03f
pop edi
int3

Function at 0x40f670
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1000
call fcn.004ab360
cmp byte [0x4df818], 0
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x40f7c3
cmp dword [0x4dd218], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40f6a3
call edi
mov dword [0x4dd218], eax
inc dword [0x4df814]
call edi
mov ebp, dword [0x4df814]
mov ecx, eax
sub ecx, dword [0x4dd218]
mov edx, dword [0x4d9bb0]
mov dword [0x4dd214], eax
cmp ebp, dword [0x4d9bb4]
jbe 0x40f740
cmp ecx, edx
jae 0x40f740
push ecx
push ebp
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
lea eax, [esp + 0x1c]
mov esi, 1
push 0x800
push eax
call fcn.004782d0
add esp, 0x14
call fcn.0040e670
push 0
push 0
xorps xmm3, xmm3
mov byte [0x4df818], 1
lea edx, [esi + 3]
mov dword [0x4d89b8], 0
lea ecx, [esp + 0x18]
call fcn.0047ce40
add esp, 8
cmp eax, 7
jne 0x40f72c
push 0
push esi
mov ecx, 0x4de0d0
call fcn.0041c630
mov eax, dword [0x4dd214]
mov dword [0x4d89b8], esi
mov byte [0x4df818], 0
jmp 0x40f746
xor esi, esi
cmp ecx, edx
jbe 0x40f759
mov dword [0x4df814], 0
mov dword [0x4dd218], eax
test esi, esi
jne 0x40f7c3
mov esi, dword [esp + 0x1014]
mov ecx, esi
mov al, byte [ebx + 0xf]
push 0
push 0
mov byte [0x4deb92], al
inc byte [esi + 0x16]
push 0
push dword [0x4deb20]
call fcn.00473000
dec byte [esi + 0x16]
test eax, eax
jne 0x40f795
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
cmp byte [esi + 0x1b], 0
je 0x40f7c3
mov byte [esi + 0x1b], 0
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x40f7c3
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x4db780]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
Function at 0x4138c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov al, byte [ebp + 0xc]
or byte [ebp + 8], al
push ebx
mov bl, cl
mov dword [esp + 8], edx
mov al, bl
sub al, 1
push esi
push edi
cmp al, 5
ja 0x4138e5
cmp bl, 3
jne 0x4138ed
mov al, bl
add al, 0x66
cmp al, 5
ja 0x4138f1
mov bh, 1
jmp 0x4138f3
xor bh, bh
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x413a1a
cmp dword [0x4dd21c], 0
jne 0x413967
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d89c0]
sub eax, dword [0x4debcc]
cmp eax, dword [ecx + 0xd8]
jbe 0x41396d
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41395c
mov edx, 1
mov dword [0x4d89b8], 0
or ecx, 0xffffffff
call fcn.004016e0
mov dword [0x4d89b8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4debcc], eax
mov ecx, dword [0x4d89c0]
cmp byte [ebp + 0x18], 0
jne 0x4139c1
mov al, byte [ecx + 0xf6]
test al, al
je 0x413989
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x41398e
mov esi, 0xffc3d44f
cmp dword [0x4dd21c], 0
je 0x41399e
mov al, byte [0x4dee03]
jmp 0x4139a5
xor cl, cl
call fcn.00416310
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.00415cf0
mov ecx, dword [0x4d89c0]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bh, bh
je 0x4139eb
test edi, edi
jne 0x4139eb
push dword [ebp + 0x28]
movzx eax, byte [ecx + 0xef]
mov cl, bl
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push eax
push 1
push dword [ebp + 0x24]
call fcn.00414e60
add esp, 0x14
jmp 0x413a0e
movzx eax, byte [ecx + 0xf6]
mov dl, bl
mov ecx, 0xffc3d44d
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
push 1
push edi
push dword [esp + 0x1c]
call fcn.00413e60
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x413901
cmp byte [ebp + 0x18], 0
jne 0x413a5b
cmp dword [0x4dd21c], 0
je 0x413a30
mov al, byte [0x4dee03]
jmp 0x413a37
xor cl, cl
call fcn.00416310
mov cl, al
xor cl, byte [ebp + 0xc]
and cl, al
and cl, 0xcc
je 0x413a5b
push 0xffc3d44d
push 0
not cl
mov dl, al
push 1
push edi
and cl, al
call fcn.00415cf0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413a70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
cmp dword [0x4dd21c], 2
push ebx
push ebp
sete bl
push esi
mov esi, edx
test bl, bl
je 0x413ab5
movzx ecx, cx
lea eax, [esp + 0x2c]
test ecx, 0xffffff80
je 0x413aa3
mov eax, 0x30
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push 0xa
push eax
push ecx
call fcn.00494572
mov ebp, dword [esp + 0x18]
add esp, 0xc
jmp 0x413ab8
movzx ebp, cx
test esi, esi
jle 0x413b6b
mov bh, byte [esp + 0x50]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [eax + eax]
cmp dword [0x4dd21c], 0
jne 0x413b2e
call edi
mov ecx, dword [0x4d89c0]
sub eax, dword [0x4debcc]
cmp eax, dword [ecx + 0xd8]
jbe 0x413b2e
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x413b27
mov edx, 1
mov dword [0x4d89b8], 0
or ecx, 0xffffffff
call fcn.004016e0
mov dword [0x4d89b8], 1
call edi
mov dword [0x4debcc], eax
test bl, bl
je 0x413b3d
lea ecx, [esp + 0x30]
call fcn.00413b80
jmp 0x413b46
mov dl, bh
mov ecx, ebp
call fcn.004126a0
cmp dword [0x4dd21c], 2
mov eax, dword [0x4d89c0]
jne 0x413b59
mov ecx, dword [eax + 0x60]
jmp 0x413b5c
mov ecx, dword [eax + 0x5c]
call fcn.004159f0
sub esi, 1
jne 0x413ad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x415280
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov ecx, dword [edi]
cmp ecx, 0x80000000
je 0x415442
mov eax, dword [ebp]
cmp eax, 0x80000000
je 0x415442
cmp dword [0x4dd21c], 2
jne 0x4152f1
mov bl, byte [esp + 0x2c]
push eax
push ecx
mov eax, closesocket
test bl, bl
mov ecx, 1
cmovne ecx, eax
xor edx, edx
call fcn.00415630
add esp, 8
call fcn.00415a50
test bl, bl
je 0x415442
mov dword [edi], closesocket
mov dword [ebp], closesocket
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
or dword [eax], 0x8001
cmp byte [esp + 0x2c], 0
je 0x41534b
cmp dword [0x4dd21c], 1
jne 0x415335
mov eax, dword [0x4dee1c]
cmp eax, 0x80000000
jne 0x415329
push 0x4dee1c
call ebx
mov eax, dword [0x4dee1c]
add dword [edi], eax
mov eax, dword [0x4dee20]
add dword [ebp], eax
jmp 0x415357
lea eax, [esp + 0x18]
push eax
call ebx
mov eax, dword [esp + 0x18]
add dword [edi], eax
mov eax, dword [esp + 0x1c]
add dword [ebp], eax
jmp 0x415357
push 2
mov ecx, edi
call fcn.00479620
add esp, 4
cmp dword [0x4dd21c], 1
jne 0x41536f
mov eax, dword [edi]
mov dword [0x4dee1c], eax
mov eax, dword [ebp]
mov dword [0x4dee20], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [esp + 0x14], eax
call esi
mov ecx, dword [edi]
mov esi, eax
mov eax, ecx
mov dword [esp + 0x14], esi
shl eax, 0x10
cdq
idiv dword [esp + 0x10]
sar ecx, 0x1f
and ecx, 0xfffffffe
inc ecx
add eax, ecx
mov dword [edi], eax
mov ecx, dword [ebp]
mov eax, ecx
shl eax, 0x10
cdq
idiv esi
mov esi, dword [esp + 0x28]
sar ecx, 0x1f
and ecx, 0xfffffffe
inc ecx
add eax, ecx
mov dword [ebp], eax
test esi, esi
js 0x41542b
cmp esi, 0x64
jle 0x4153c9
mov esi, 0x64
jmp 0x4153cd
test esi, esi
je 0x41542b
cmp dword [0x4dd21c], 1
je 0x41542b
lea eax, [esp + 0x18]
push eax
call ebx
push esi
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov eax, esi
shl eax, 0x10
cdq
idiv dword [esp + 0x18]
push dword [ebp]
test esi, esi
mov esi, dword [esp + 0x20]
push dword [edi]
mov edi, eax
setns cl
mov eax, esi
shl eax, 0x10
cdq
idiv dword [esp + 0x1c]
lea edi, [edi + ecx*2]
xor ecx, ecx
test esi, esi
lea edx, [edi - 1]
setns cl
lea eax, [eax + ecx*2]
lea ecx, [eax - 1]
call fcn.00458ca0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
push dword [edi]
xor edx, edx
mov ecx, 0x8001
call fcn.00415450
add esp, 8
call fcn.00415a50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4158a0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x4dd21c], 1
push esi
mov byte [esp + 7], dl
mov esi, ecx
jne 0x41595e
xor al, al
cmp dword [0x4db79c], 0
push ebx
movzx ebx, al
mov eax, 1
cmovne ebx, eax
cmp dword [0x4db798], 0
mov dword [esp + 0xc], ebx
je 0x4158e0
or ebx, 2
mov dword [esp + 0xc], ebx
test bl, bl
je 0x4158f5
mov cl, byte [0x4dee24]
mov dl, al
not cl
and cl, bl
call fcn.0040da50
push 0x1c
push dword [0x4dd220]
push dword [0x4dee10]
call dword [0x4deda4]
test bl, bl
je 0x4159e1
mov al, byte [0x4dee24]
and al, bl
test al, 1
je 0x415950
mov cl, 1
call fcn.00416310
mov bl, al
xor bl, byte [esp + 0xb]
mov dl, bl
and bl, al
and dl, byte [esp + 0xb]
not dl
and dl, byte [0x4dc210]
or dl, bl
mov byte [0x4dc210], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0xc]
mov dword [0x4db8f8], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
add esp, 8
jmp fcn.0040da50
push 0
push dword [0x4db7c4]
mov dword [0x4dee18], 0
push 0x413c10
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4db764], eax
test eax, eax
je 0x4159e2
mov byte [0x4dc0ef], 1
nop dword [eax]
mov edx, 1
mov dword [0x4d89b8], 0
mov ecx, 0x8000012f
call fcn.004016e0
cmp dword [0x4db764], 0
mov dword [0x4d89b8], 1
jne 0x415990
mov eax, dword [0x4d9bc4]
mov byte [0x4dc0ef], 0
mov ecx, dword [eax]
mov eax, dword [0x4dee10]
cmp dword [ecx + eax*8 - 8], 0
jne 0x4159e2
mov eax, dword [ecx + eax*8 - 4]
mov dword [esi], eax
pop esi
add esp, 8
ret
pop ebx
pop esi
add esp, 8
ret

Function at 0x415ac0
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4db794]
test edi, edi
je 0x415bd2
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4db7d0], 0xd4
mov byte [esi + edi + 6], cl
mov byte [esi + edi], dl
mov word [esi + edi + 2], ax
mov eax, 0x69
mov word [esi + edi + 4], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x4db794]
mov ecx, edx
mov dword [0x4db7cc], edx
sub ecx, dword [0x4dec2c]
mov dword [0x4dec2c], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4d3230]
imul ecx, dword [0x4db7d0], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4d3164]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x415b95
mov eax, dword [0x4db794]
cmp edi, dword [0x4db7c8]
je 0x415b80
imul edx, dword [0x4db7d0], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [0x4db7d0]
jmp 0x415bb9
mov esi, dword [0x4db7d0]
imul ecx, esi, 0xd4
xor edx, edx
mov word [ecx + eax + 0xc], dx
jmp 0x415bb9
mov esi, dword [0x4db7d0]
mov ecx, dword [0x4db794]
mov eax, dword [0x4c7b94]
imul edx, esi, 0xd4
mov dword [edx + ecx + 0xc], eax
mov eax, dword [0x4c7b98]
mov dword [edx + ecx + 0x10], eax
inc esi
mov dword [0x4db7c8], edi
xor eax, eax
cmp esi, dword [0x4d89c4]
cmovge esi, eax
mov dword [0x4db7d0], esi
pop esi
pop edi
ret
Function at 0x415be0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
mov bl, cl
push esi
push edi
movzx eax, bl
mov edi, edx
push eax
mov dword [esp + 0x14], eax
call ebp
and al, 1
movzx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp edi, 1
je 0x415c13
cmp edi, 2
jne 0x415ce8
cmp esi, edi
je 0x415ce8
push dword [esp + 0x10]
call ebp
mov ecx, 0x8000
test cx, ax
je 0x415c45
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00413e60
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.00413e60
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4de014]
sete bh
test bh, bh
je 0x415c9c
mov edx, 1
mov dword [0x4d89b8], 0
or ecx, 0xffffffff
call fcn.004016e0
mov dword [0x4d89b8], 1
cmp bl, 0x14
jne 0x415ce8
cmp edi, 2
jne 0x415ce8
push 0x14
call ebp
test al, 1
je 0x415ce8
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.00413e60
add esp, 0x10
test bh, bh
je 0x415ce8
lea edx, [edi - 1]
mov dword [0x4d89b8], 0
or ecx, 0xffffffff
call fcn.004016e0
mov dword [0x4d89b8], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x416310
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4db79c], 0
je 0x416325
test cl, cl
jne 0x416325
mov al, byte [0x4dc212]
pop ecx
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0xa0
call esi
mov bx, ax
shr bx, 0xb
push 0xa1
and bl, 0x10
call esi
mov cl, bl
mov edi, 0x8000
or cl, 0x20
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0xa2
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 1
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0xa3
cmove ebx, ecx
call esi
mov cl, bl
or cl, 2
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0xa4
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 4
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0xa5
cmove ebx, ecx
call esi
mov cl, bl
or cl, 8
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0x5b
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 0x40
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0x5c
cmove ebx, ecx
call esi
test di, ax
je 0x4163f5
or bl, 0x80
cmp dword [0x4db79c], 0
je 0x416432
mov al, byte [0x4dc212]
mov cl, bl
not cl
and cl, al
je 0x416432
mov dl, byte [0x4dc210]
not cl
and byte [0x4dc211], cl
and dl, cl
and al, cl
mov byte [0x4dc210], dl
mov ecx, 0x4dc110
mov byte [0x4dc212], al
call fcn.00416440
pop edi
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x416910
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x38
push esi
xor esi, esi
test ecx, ecx
je 0x41694f
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [esp + 8], 0x30
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x41694f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41694f
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop esi
add esp, 0x38
ret

Function at 0x416960
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x284
push ebx
push ebp
mov eax, ecx
xor ebx, ebx
push ebx
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov ebp, eax
test ebp, ebp
je 0x4169e1
push esi
push edi
mov ecx, 0x19
lea edi, [esp + 0x14]
mov esi, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
lea eax, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
pop edi
pop esi
test eax, eax
je 0x4169d2
push ebx
push ecx
lea eax, [esp + 0x8c]
push eax
push str.Layout_File
lea edx, [esp + 0x1c]
call fcn.00479760
add esp, 0x10
test eax, eax
je 0x4169d2
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp dword [esp + 8], ebp
je 0x4169e1
push 0
push ebp
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
pop ebp
mov eax, ebx
pop ebx
add esp, 0x284
ret

Function at 0x416bb0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x110
push ebx
push esi
push 0
mov bl, cl
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [ebx - 0x41]
mov esi, eax
cmp dl, 0x19
ja 0x416ca0
push ebp
push edi
push 0x100
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00493930
mov ebp, dword [sym.imp.USER32.dll_ToUnicodeEx]
lea eax, [esp + 0x24]
add esp, 0xc
xor edi, edi
push esi
push edi
push 2
push eax
lea eax, [esp + 0x30]
push eax
push edi
push 0x6e
call ebp
cmp eax, 2
jne 0x416c0b
movzx edi, word [esp + 0x18]
push esi
push 0
push 2
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push 0
movzx eax, bl
push eax
call ebp
mov ebx, eax
test ebx, ebx
jns 0x416c3d
push esi
push 0
push 2
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x6e
call ebp
test di, di
je 0x416c81
push 1
push esi
lea edx, [esp + 0x1a]
mov ecx, edi
call fcn.00416e40
add esp, 8
mov byte [esp + 0x13], al
test al, al
je 0x416c81
mov dl, byte [esp + 0x12]
lea ecx, [esp + 0x20]
call fcn.00416440
push esi
push 0
push 2
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
movzx eax, byte [esp + 0x27]
push 0
push eax
call ebp
pop edi
pop ebp
test ebx, ebx
je 0x416c95
movzx eax, word [esp + 0x10]
pop esi
pop ebx
add esp, 0x110
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
push 2
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x416e40
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp di, 0xa
jne 0x416e53
pop edi
mov al, 0xd
pop esi
pop ecx
ret
push ebx
push dword [esp + 0x14]
push edi
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx edx, ax
mov ecx, edx
shr ecx, 8
cmp cl, 0xff
jne 0x416eb4
cmp dl, 0xff
jne 0x416eb4
cmp byte [esp + 0x18], 0
je 0x416eb9
movzx ebx, di
test ebx, 0xffffff80
jne 0x416eb9
push 0x103
push ebx
call fcn.00498ea3
add esp, 8
test eax, eax
je 0x416eb9
mov ecx, edi
call fcn.0040e460
push 1
push ebx
mov byte [esp + 0x14], al
call fcn.00498ea3
mov edx, dword [esp + 0x14]
add esp, 8
test eax, eax
setne cl
test cl, 0x38
je 0x416ec0
pop ebx
pop edi
xor al, al
pop esi
pop ecx
ret
test esi, esi
je 0x416efe
mov al, cl
and al, 6
cmp al, 6
jne 0x416ed1
or byte [esi], 8
jmp 0x416eef
test cl, 2
je 0x416ee0
mov al, byte [esi]
test al, 3
jne 0x416ee0
or al, 1
mov byte [esi], al
test cl, 4
je 0x416eef
mov al, byte [esi]
test al, 0xc
jne 0x416eef
or al, 4
mov byte [esi], al
test cl, 1
je 0x416efe
mov al, byte [esi]
test al, 0x30
jne 0x416efe
or al, 0x10
mov byte [esi], al
pop ebx
pop edi
mov al, dl
pop esi
pop ecx
ret

Function at 0x4172e0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
movzx esi, cl
mov bl, dl
lea eax, [esi - 0x13]
cmp eax, 0x92
ja case.0x4172fc.20
movzx eax, byte [eax + 0x417490]
jmp dword [eax*4 + 0x417424]
mov eax, 0x2a
jmp 0x4173cc
mov eax, 0x136
jmp 0x4173cc
mov eax, 0x1d
jmp 0x4173cc
mov eax, 0x11d
jmp 0x4173cc
mov eax, 0x38
jmp 0x4173cc
mov eax, 0x138
jmp 0x4173cc
mov eax, 0x15b
jmp 0x4173cc
mov eax, 0x15c
jmp 0x4173cc
mov eax, 0x45
jmp 0x4173cc
mov eax, 0x52
jmp 0x4173cc
mov eax, 0x4f
jmp 0x4173cc
mov eax, 0x50
jmp 0x4173cc
mov eax, 0x51
jmp 0x4173cc
mov eax, 0x4b
jmp 0x4173cc
mov eax, 0x4c
jmp 0x4173cc
mov eax, 0x4d
jmp 0x4173cc
mov eax, 0x47
jmp 0x4173cc
mov eax, 0x48
jmp 0x4173cc
mov eax, 0x49
jmp 0x4173cc
mov eax, 0x53
jmp 0x4173cc
mov eax, 0x145
jmp 0x4173cc
mov eax, 0x135
jmp 0x4173cc
mov eax, 0x37
jmp 0x4173cc
mov eax, 0x4a
jmp 0x4173cc
mov eax, 0x4e
jmp 0x4173cc
mov eax, 0x137
test bl, bl
jne 0x4173e7
pop esi
movzx eax, ax
pop ebx
ret
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx ecx, ax
test cx, cx
jne 0x4173ec
pop esi
xor eax, eax
pop ebx
ret
add esi, 0xfffffffd
cmp esi, 0xb4
ja case.0x4173fe.4
movzx eax, byte [esi + 0x417530]
jmp dword [eax*4 + 0x417524]
or ecx, 0x100
test bl, bl
jne 0x4173e7
movzx eax, cx
pop esi
pop ebx
ret
mov eax, ecx
test bl, bl
je 0x417412
pop esi
or eax, 0x100
pop ebx
ret