joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412720
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 + 0xa], cl
xor dl, dl
mov byte [esp + 9], al
cmp dword [0x4e5a08], 0
movzx ebx, dl
mov edx, 1
push ebp
push esi
cmovne ebx, edx
cmp dword [0x4e5a04], 0
push edi
je 0x412757
or bl, 2
cmp cl, bl
je 0x412961
test bl, bl
jne 0x4127a0
test al, al
jne 0x4127a0
push 0x4e64f0
push 0
push 0
push 0x4129d0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4e888c], eax
test eax, eax
je 0x412839
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, byte [esp + 0x15]
mov cl, byte [esp + 0x16]
movzx edi, al
xor esi, esi
xor edi, 1
movzx ebp, cl
nop dword [eax + eax]
push edi
push ebp
push 0x417
push dword [0x4e64f0]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x4127d5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4127b0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor al, al
mov byte [esp + 0x17], al
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, eax
mov cl, byte [esp + 0x16]
mov al, byte [esp + 0x15]
test cl, cl
je 0x412846
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x41287b
cmp dword [esp + 0x24], 0
je 0x412853
mov byte [esp + 0x17], 1
call fcn.00412d30
test al, al
jne 0x412853
mov al, byte [esp + 0x15]
test al, al
jne 0x412934
xor cl, cl
mov byte [esp + 0x16], cl
jmp 0x4127f3
call fcn.00412d50
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x412860
call fcn.00412d30
test al, al
jne 0x41287b
cmp byte [esp + 0x15], 0
jne 0x41292d
jmp 0x4128ae
lea eax, [esp + 0x18]
push eax
push dword [0x4e888c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x412893
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x412853
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4127eb
push dword [0x4e888c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e888c], 0
call fcn.00412d50
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov al, bl
and al, 1
cmp dword [0x4e5a08], 0
je 0x4128d7
test al, al
jne 0x4128f1
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4e8884], eax
jmp 0x4128f1
test al, al
je 0x4128f1
push dword [0x4e8884]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e8884], 0
and bl, 2
cmp dword [0x4e5a04], 0
je 0x412913
test bl, bl
jne 0x41292d
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4e8888], eax
jmp 0x41292d
test bl, bl
je 0x41292d
push dword [0x4e8888]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e8888], 0
cmp byte [esp + 0x17], 0
je 0x412961
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4e30ec], 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.004a25e0
add esp, 8
mov dword [0x4e30ec], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413d50
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.00412720
mov eax, dword [0x4e59c8]
test eax, eax
je 0x413d77
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push edi
xor eax, eax
xor edi, edi
cmp ax, word [0x4e6550]
jae 0x413e02
mov edx, dword [0x4e72c4]
push ebx
mov ebx, dword [0x4e72c8]
push ebp
mov ebp, dword [sym.imp.USER32.dll_UnregisterHotKey]
push esi
nop word [eax + eax]
mov esi, dword [0x4e6540]
mov esi, dword [esi + edi*4]
test esi, esi
je 0x413df3
cmp byte [esi + 0x18], 0
je 0x413dd4
movzx eax, word [esi + 4]
push eax
push dword [0x4e59e8]
call ebp
mov edx, dword [0x4e72c4]
test eax, eax
mov ebx, dword [0x4e72c8]
sete al
mov byte [esi + 0x18], al
cmp esi, edx
jne 0x413df3
test edx, edx
je 0x413df3
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 [0x4e72c4], edx
movzx eax, word [0x4e6550]
inc edi
cmp edi, eax
jl 0x413da0
pop esi
pop ebp
pop ebx
push dword [esp + 4]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop edi
int3
Function at 0x419530
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov bl, byte [ebp + 0xc]
mov bh, cl
or byte [ebp + 8], bl
mov al, bh
sub al, 1
mov dword [esp + 8], edx
push esi
push edi
cmp al, 5
ja 0x419555
cmp bh, 3
jne 0x41955d
mov al, bh
add al, 0x66
cmp al, 5
ja 0x419564
mov byte [esp + 0xf], 1
jmp 0x419569
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x41969c
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4e8920], 0
jne 0x4195e6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e30f4]
sub eax, dword [0x4e868c]
cmp eax, dword [ecx + 0xd8]
jbe 0x4195ec
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 0x4195db
mov edx, 1
mov dword [0x4e30ec], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x4e30ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4e868c], eax
mov ecx, dword [0x4e30f4]
cmp byte [ebp + 0x18], 0
jne 0x419640
mov al, byte [ecx + 0xf6]
test al, al
je 0x419608
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x41960d
mov esi, 0xffc3d44f
cmp dword [0x4e8920], 0
je 0x41961d
mov al, byte [0x4e8914]
jmp 0x419624
xor cl, cl
call fcn.0041c0a0
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.0041ba30
mov ecx, dword [0x4e30f4]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x41966a
test edi, edi
jne 0x41966a
push dword [ebp + 0x28]
movzx eax, byte [ecx + 0xef]
mov cl, bh
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push eax
push 1
push dword [ebp + 0x24]
call fcn.0041a9a0
add esp, 0x14
jmp 0x41968d
movzx eax, byte [ecx + 0xf6]
mov dl, bh
mov ecx, 0xffc3d44d
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
push 1
push edi
push dword [esp + 0x1c]
call fcn.00419ad0
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x419580
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x4196d8
cmp dword [0x4e8920], 0
je 0x4196b2
mov al, byte [0x4e8914]
jmp 0x4196b9
xor cl, cl
call fcn.0041c0a0
not bl
and bl, al
and bl, 0xcc
je 0x4196d8
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.0041ba30
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4196e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
mov eax, dword [0x4e8920]
cmp eax, 2
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
sete byte [esp + 0xf]
jne 0x41972c
movzx edx, bx
mov ecx, edx
and ecx, 0xffffff80
je 0x41970d
mov eax, 0x30
mov word [esp + 0x2c], ax
test ecx, ecx
lea eax, [esp + 0x2c]
lea edi, [esp + 0x2e]
push 0xa
cmovne eax, edi
push eax
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
mov eax, dword [0x4e8920]
add esp, 0xc
test esi, esi
jle 0x4197de
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x419796
call edi
mov ecx, dword [0x4e30f4]
sub eax, dword [0x4e868c]
cmp eax, dword [ecx + 0xd8]
jbe 0x419796
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call ebp
test eax, eax
je 0x41978f
mov edx, 1
mov dword [0x4e30ec], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x4e30ec], 1
call edi
mov dword [0x4e868c], eax
cmp byte [esp + 0x13], 0
je 0x4197a8
lea ecx, [esp + 0x30]
call fcn.004197f0
jmp 0x4197b3
mov dl, byte [esp + 0x54]
mov ecx, ebx
call fcn.00418340
cmp dword [0x4e8920], 2
mov eax, dword [0x4e30f4]
jne 0x4197c6
mov ecx, dword [eax + 0x60]
jmp 0x4197c9
mov ecx, dword [eax + 0x5c]
call fcn.0041b6f0
sub esi, 1
je 0x4197dd
mov eax, dword [0x4e8920]
jmp 0x419741
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x41b4e0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0xc
mov eax, dword fs:[0x24]
cmp dword [0x4e8920], 1
push ebp
push esi
mov byte [esp + 0xb], dl
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x41b658
xor al, al
mov ebp, 1
cmp dword [0x4e5a08], 0
push ebx
movzx ebx, al
cmovne ebx, ebp
cmp dword [0x4e5a04], 0
mov dword [esp + 0x10], ebx
je 0x41b52b
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x41b540
mov cl, byte [0x4e8915]
mov dl, 1
not cl
and cl, bl
call fcn.00412720
mov eax, dword [0x4e8908]
xor edx, edx
mov ecx, dword [0x4e655c]
push edi
xor edi, edi
test eax, eax
je 0x41b5f7
xor esi, esi
xor ebx, ebx
nop dword [eax]
cmp dword [esi + ecx], ebp
jne 0x41b5d5
cmp word [esi + ecx + 4], 0
jne 0x41b5d5
cmp word [esi + ecx + 6], 0
jne 0x41b5d5
push 0x1c
lea eax, [ebx + ecx]
push eax
mov eax, edi
sub eax, edx
push eax
call dword [sym.imp.USER32.dll_SendInput]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4e655c]
mov dword [0x4e30ec], 0
cmp dword [0x4e72e4], eax
je 0x41b5b3
mov eax, dword [esi + ecx + 0x10]
test eax, eax
js 0x41b5b3
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41b5be
mov ecx, dword [esi + ecx + 0x10]
mov edx, ebp
call fcn.004019f0
mov eax, dword [0x4e8908]
lea edx, [edi + 1]
mov ecx, dword [0x4e655c]
lea ebx, [esi + 0x1c]
mov dword [0x4e30ec], ebp
inc edi
add esi, 0x1c
cmp edi, eax
jb 0x41b560
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x41b5f7
lea eax, [edx*8]
sub eax, edx
push 0x1c
lea eax, [ecx + eax*4]
push eax
push edx
jmp 0x41b5fb
push 0x1c
push ecx
push eax
call dword [sym.imp.USER32.dll_SendInput]
pop edi
test bl, bl
je 0x41b6db
mov al, byte [0x4e8915]
and al, bl
test al, 1
je 0x41b649
mov cl, 1
call fcn.0041c0a0
mov bl, al
xor bl, byte [esp + 0xf]
mov dl, bl
and bl, al
and dl, byte [esp + 0xf]
not dl
and dl, byte [0x4e64d0]
or dl, bl
mov byte [0x4e64d0], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x4e5bb4], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
pop ebp
add esp, 0xc
jmp fcn.00412720
push 0
push 0
mov dword [0x4e8910], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x419880
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4e59c8], eax
test eax, eax
je 0x41b6dc
mov byte [0x4e5a93], 1
mov ebp, 1
nop
mov edx, ebp
mov dword [0x4e30ec], 0
mov ecx, 0x8000012f
call fcn.004019f0
cmp dword [0x4e59c8], 0
mov dword [0x4e30ec], ebp
jne 0x41b690
mov eax, dword [0x4e4b54]
mov byte [0x4e5a93], 0
mov ecx, dword [eax]
mov eax, dword [0x4e8908]
cmp dword [ecx + eax*8 - 8], 0
jne 0x41b6dc
mov eax, dword [ecx + eax*8 - 4]
mov dword [esi], eax
pop esi
pop ebp
add esp, 0xc
ret
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x41b800
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4e5a00]
test edi, edi
je 0x41b912
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4e5a6c], 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 [0x4e5a00]
mov ecx, edx
mov dword [0x4e5a68], edx
sub ecx, dword [0x4e86ec]
mov dword [0x4e86ec], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4dd110]
imul ecx, dword [0x4e5a6c], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4dd04c]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x41b8d5
mov eax, dword [0x4e5a00]
cmp edi, dword [0x4e5a64]
je 0x41b8c0
imul edx, dword [0x4e5a6c], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [0x4e5a6c]
jmp 0x41b8f9
mov esi, dword [0x4e5a6c]
imul ecx, esi, 0xd4
xor edx, edx
mov word [ecx + eax + 0xc], dx
jmp 0x41b8f9
mov esi, dword [0x4e5a6c]
mov ecx, dword [0x4e5a00]
mov eax, dword [0x4cf7cc]
imul edx, esi, 0xd4
mov dword [edx + ecx + 0xc], eax
mov eax, dword [0x4cf7d0]
mov dword [edx + ecx + 0x10], eax
inc esi
mov dword [0x4e5a64], edi
xor eax, eax
cmp esi, dword [0x4e30f8]
cmovge esi, eax
mov dword [0x4e5a6c], esi
pop esi
pop edi
ret

Function at 0x41b920
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov bl, cl
push edi
movzx ebp, bl
mov edi, edx
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
xor esi, 0xffffffff
and esi, 1
inc esi
cmp edi, 1
je 0x41b94a
cmp edi, 2
jne 0x41ba21
cmp esi, edi
je 0x41ba21
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x41b97d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419ad0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.00419ad0
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4e72e4]
sete bh
jne 0x41b9d2
mov edx, 1
mov dword [0x4e30ec], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x4e30ec], 1
cmp bl, 0x14
jne 0x41ba21
cmp edi, 2
jne 0x41ba21
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x41ba21
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.00419ad0
add esp, 0x10
test bh, bh
je 0x41ba21
lea edx, [edi - 1]
mov dword [0x4e30ec], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x4e30ec], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x41c0a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4e5a08], 0
je 0x41c0b5
test cl, cl
jne 0x41c0b5
mov al, byte [0x4e64d2]
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
mov cl, bl
or cl, 0x80
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dword [0x4e5a08], 0
mov dword [esp + 0xc], edx
je 0x41c1f2
mov cl, byte [0x4e64d2]
mov bl, dl
not bl
and bl, cl
je 0x41c1f2
mov dl, byte [0x4e64d0]
mov al, bl
not al
and byte [0x4e64d1], al
and cl, al
and dl, al
mov byte [0x4e64d2], cl
mov ecx, 0x4e63d0
mov byte [0x4e64d0], dl
call fcn.0041c200
mov ecx, dword [0x4e6520]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x41c1f2
test byte [ecx + 8], bl
mov eax, 0
cmovne ecx, eax
mov dword [0x4e6520], ecx
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret

Function at 0x41c6c0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x38
push esi
xor esi, esi
test ecx, ecx
je 0x41c6ff
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 0x41c6ff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41c6ff
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 0x41c710
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x288
xor eax, eax
push ebp
push esi
mov ebp, ecx
nop dword [eax]
mov esi, dword [eax*8 + 0x4e88b0]
test esi, esi
je 0x41c735
cmp esi, ebp
je 0x41c761
inc eax
cmp eax, 0xa
jl 0x41c720
cmp eax, 0xa
mov ecx, 9
cmovl ecx, eax
mov dword [esp + 0xc], ecx
test edx, edx
je 0x41c786
pop esi
mov dword [ecx*8 + 0x4e88b0], ebp
mov eax, edx
mov dword [ecx*8 + 0x4e88b4], edx
pop ebp
add esp, 0x288
ret
test edx, edx
je 0x41c776
cmp dword [eax*8 + 0x4e88b4], 0
jne 0x41c776
mov dword [eax*8 + 0x4e88b4], edx
mov eax, dword [eax*8 + 0x4e88b4]
pop esi
pop ebp
add esp, 0x288
ret
push ebx
xor ebx, ebx
push ebx
push ebp
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41c859
push edi
mov ecx, 0x19
lea edi, [esp + 0x18]
mov esi, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
lea eax, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
pop edi
test eax, eax
je 0x41c7f1
push ebx
push ecx
lea eax, [esp + 0x94]
push eax
push str.Layout_File
lea edx, [esp + 0x24]
call fcn.0049db50
add esp, 0x10
test eax, eax
je 0x41c7f1
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x41c7f3
xor esi, esi
mov eax, dword [esp + 0xc]
cmp ebp, eax
je 0x41c804
push 0
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test esi, esi
je 0x41c859
push str.KbdLayerDescriptor
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c852
call eax
cmp dword [0x4e8880], 0
mov ebx, eax
je 0x41c847
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4e8880]
test eax, eax
je 0x41c847
cmp dword [esp + 0xc], 0
je 0x41c847
mov ebx, dword [ebx + 0x50]
jmp 0x41c84a
mov ebx, dword [ebx + 0x28]
not ebx
and ebx, 1
add ebx, 3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
mov dword [eax*8 + 0x4e88b4], ebx
mov dword [eax*8 + 0x4e88b0], ebp
mov eax, ebx
pop ebx
pop esi
pop ebp
add esp, 0x288
ret
Function at 0x41c8f0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov bl, cl
xor edi, edi
cmp byte [edi*8 + 0x4e3174], bl
je 0x41ca6f
inc edi
cmp edi, 0x6d
jl 0x41c900
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [ebx - 0x41]
mov esi, eax
cmp cl, 0x19
ja 0x41c9ff
push 0x100
lea eax, [esp + 0x2c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [esp + 0x14], eax
push esi
push eax
push 2
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 2
jne 0x41c969
movzx eax, word [esp + 0x18]
mov dword [esp + 0x14], eax
push esi
push 0
push 2
lea eax, [esp + 0x24]
movzx edi, bl
push eax
lea eax, [esp + 0x38]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov dword [esp + 0x24], eax
test eax, eax
jns 0x41c9a5
push esi
push 0
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov eax, dword [esp + 0x14]
test ax, ax
je 0x41c9ed
push 1
push esi
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.0041cc60
mov bh, al
add esp, 8
test bh, bh
je 0x41c9ed
mov dl, byte [esp + 0x13]
lea ecx, [esp + 0x28]
call fcn.0041c200
push esi
push 0
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
movzx eax, bh
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp dword [esp + 0x24], 0
je 0x41c9fb
movzx eax, word [esp + 0x18]
jmp 0x41ca0f
xor eax, eax
jmp 0x41ca0f
push esi
push 2
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
movzx eax, ax
mov word [ebp], ax
test ax, ax
je 0x41ca2b
pop edi
xor eax, eax
mov word [ebp + 2], ax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
cmp byte [esp + 0x130], 0
je 0x41ca5c
test bl, bl
je 0x41ca5c
push edi
push str.vk_02X
push dword [esp + 0x134]
push ebp
call fcn.0049c650
add esp, 0x10
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
pop edi
xor eax, eax
mov word [ebp], ax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov esi, dword [esp + 0x12c]
dec esi
push esi
push dword [edi*8 + 0x4e3170]
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [ebp + esi*2], ax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x41cb90
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
movzx ecx, word [edi]
test cx, cx
je 0x41cc56
cmp word [edi + 2], 0
jne 0x41cbbc
push 1
push dword [esp + 0x20]
call fcn.0041cc60
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
call fcn.004130a0
cmp ax, 0x56
jne 0x41cc00
mov cx, word [edi + 2]
call fcn.004130a0
cmp ax, 0x4b
jne 0x41cc00
push 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ecx, dword [esp + 0x18]
add esp, 0xc
xor ebx, ebx
movzx edx, al
cmp word [ecx], bx
pop edi
cmove ebx, edx
pop esi
mov al, bl
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor esi, esi
nop dword [eax + eax]
push edi
push dword [esi*8 + 0x4e3170]
call ebx
add esp, 8
test eax, eax
je 0x41cc4a
inc esi
cmp esi, 0x6d
jl 0x41cc10
cmp byte [esp + 0x14], 0
jne 0x41cc56
xor edx, edx
mov ecx, edi
call fcn.0041caa0
movzx ecx, ax
test cx, cx
je 0x41cc56
pop edi
pop esi
pop ebx
add esp, 4
jmp fcn.0041d520
mov al, byte [esi*8 + 0x4e3174]
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret

Function at 0x41cc60
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edx
cmp di, 0xa
jne 0x41cc71
pop edi
mov al, 0xd
pop esi
ret
push ebx
push dword [esp + 0x10]
push edi
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ebx, ax
mov ecx, ebx
shr ecx, 8
cmp cl, 0xff
jne 0x41cccd
cmp bl, 0xff
jne 0x41cccd
cmp byte [esp + 0x14], 0
je 0x41ccd2
movzx eax, di
test eax, 0xffffff80
jne 0x41ccd2
push 0x103
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x41ccd2
mov ecx, edi
call fcn.004130a0
mov edx, 1
mov ecx, edi
mov bl, al
call fcn.00406550
test eax, eax
setne cl
test cl, 0x38
je 0x41ccd8
pop ebx
pop edi
xor al, al
pop esi
ret
test esi, esi
je 0x41cd16
mov al, cl
and al, 6
cmp al, 6
jne 0x41cce9
or byte [esi], 8
jmp 0x41cd07
test cl, 2
je 0x41ccf8
mov al, byte [esi]
test al, 3
jne 0x41ccf8
or al, 1
mov byte [esi], al
test cl, 4
je 0x41cd07
mov al, byte [esi]
test al, 0xc
jne 0x41cd07
or al, 4
mov byte [esi], al
test cl, 1
je 0x41cd16
mov al, byte [esi]
test al, 0x30
jne 0x41cd16
or al, 0x10
mov byte [esi], al
mov al, bl
pop ebx
pop edi
pop esi
ret
Function at 0x41d520
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx edx, bx
mov eax, edx
cmp edx, 0x11c
ja 0x41d598
je 0x41d594
sub eax, 0x1d
cmp eax, 0x36
ja case.0x41d5a9.286
movzx eax, byte [eax + 0x41d64c]
jmp dword [eax*4 + 0x41d600]
mov al, 0xa0
pop ebx
ret
mov al, 0xa2
pop ebx
ret
mov al, 0xa4
pop ebx
ret
mov al, 0x6a
pop ebx
ret
mov al, 0x6d
pop ebx
ret
mov al, 0x6b
pop ebx
ret
mov al, 0x2e
pop ebx
ret
mov al, 0xc
pop ebx
ret
mov al, 0x2d
pop ebx
ret
mov al, 0x26
pop ebx
ret
mov al, 0x28
pop ebx
ret
mov al, 0x25
pop ebx
ret
mov al, 0x27
pop ebx
ret
mov al, 0x24
pop ebx
ret
mov al, 0x23
pop ebx
ret
mov al, 0x21
pop ebx
ret
mov al, 0x22
pop ebx
ret
mov al, 0x13
pop ebx
ret
mov al, 0xd
pop ebx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x41d5a9.286
movzx eax, byte [eax + 0x41d6ac]
jmp dword [eax*4 + 0x41d684]
mov al, 0xa1
pop ebx
ret
mov al, 0xa3
pop ebx
ret
mov al, 0xa5
pop ebx
ret
mov al, 0x5b
pop ebx
ret
mov al, 0x5c
pop ebx
ret
mov al, 0x90
pop ebx
ret
mov al, 0x6f
pop ebx
ret
mov al, 0x5d
pop ebx
ret
mov al, 0x2c
pop ebx
ret
test ebx, 0x100
je 0x41d5f1
movzx eax, dl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x41d5fd
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
pop ebx
ret