joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b20
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x405b39
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x405c19
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0xc]
push str.Link_Source
push eax
call fcn.004af905
add esp, 0xc
test eax, eax
je 0x405c0c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.004af78f
add esp, 8
test eax, eax
je 0x405c0c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.004af78f
add esp, 8
test eax, eax
je 0x405c0c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.004af78f
add esp, 8
test eax, eax
je 0x405c0c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.004af78f
add esp, 8
test eax, eax
je 0x405c0c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.004af78f
add esp, 8
test eax, eax
je 0x405c02
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x405c20
test esi, esi
je 0x405c0c
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 8], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
add esp, 0x20c
ret 8

Function at 0x405c40
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
mov ebx, ecx
push ebp
push esi
push edi
cmp dword [ebx + 0x18], 0
jne 0x405cc5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push dword [0x4f78ec]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebp, eax
call edi
test eax, eax
jne 0x405cbe
nop
mov eax, dword [0x4f48d8]
cmp eax, 0xffffffff
je 0x405c8f
test eax, eax
je 0x405cd2
call esi
mov ecx, dword [0x4f48d8]
add ecx, ebp
sub ecx, eax
cmp ecx, 5
jle 0x405cd2
mov edx, 1
mov dword [0x4f48c4], 0
mov ecx, 0x8000012f
call fcn.00401890
push dword [0x4f78ec]
mov dword [0x4f48c4], 1
call edi
test eax, eax
je 0x405c70
mov dword [ebx + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ea0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp byte [0x4fa568], 0
push ebx
push esi
push edi
jne 0x405ebe
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword fs:[0x24]
cmp dword [0x4f9a38], ebx
je 0x405ed9
push dword [0x4f9a3c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x405ee6
xor esi, esi
jmp 0x405f20
lea eax, [esp + 0x13]
mov ecx, 0x4f9a70
push eax
push 3
lea eax, [esp + 0x1c]
push eax
push 0
push edi
call fcn.0042ed10
mov esi, eax
test esi, esi
jne 0x405f20
cmp byte [esp + 0x13], al
mov ecx, 0x4f9a70
setne al
inc eax
push eax
push dword [esp + 0x18]
push esi
push edi
call fcn.0042f250
mov esi, eax
cmp dword [ebp + 0xc], 0
mov cl, byte [esi + 0x17]
je 0x405f7c
cmp cl, 4
je 0x406083
push 0x14
push dword [0x4f7790]
call fcn.004b1133
add esp, 8
test eax, eax
je 0x406073
mov dword [0x4f7790], eax
cmp dword [0x4f9a38], ebx
je 0x405f68
push dword [0x4f9a3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4f7790]
push 0
push esi
mov ecx, eax
call fcn.00401350
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 4
je 0x405f9c
test cl, cl
jne 0x405f8a
mov eax, dword [esi + 0xc]
jmp 0x405f8c
mov eax, esi
test byte [eax + 0x15], 0xa
jne 0x405f9c
cmp dword [eax + 0xc], 0
je 0x406083
mov eax, dword [esi + 8]
cmp word [eax], 0
jne 0x406048
mov eax, dword [esi + 0x10]
cmp cl, 4
jne 0x405fbb
push edi
push 0
call eax
add esp, 8
jmp 0x405fc2
test eax, eax
jne 0x405fc2
mov eax, dword [esi + 0xc]
add eax, 0x101
push eax
push dword [0x4f7790]
call fcn.004b1133
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x406073
mov al, byte [esi + 0x17]
mov dword [0x4f7790], ecx
cmp al, 4
jne 0x40601b
mov eax, dword [esi + 0x10]
push edi
push ecx
cmp eax, 0x451110
jne 0x4060d3
add dword [0x4f48cc], 0x108
call eax
add esp, 8
sub dword [0x4f48cc], 0x108
jmp 0x4060d8
test al, al
jne 0x406031
mov eax, dword [esi + 0xc]
push dword [eax + 4]
push dword [eax]
call fcn.00401350
jmp 0x4060d5
cmp al, 1
jne 0x4060d8
push dword [esi + 4]
push dword [esi]
call fcn.00401350
jmp 0x4060d5
cmp cl, 4
jne 0x40605a
mov eax, dword [esi + 0x10]
push edi
push 0
call eax
add esp, 8
jmp 0x406060
mov eax, dword [esi + 0xc]
add eax, 2
push eax
push dword [0x4f7790]
call fcn.004b1133
add esp, 8
test eax, eax
jne 0x4060a3
push edi
push str.Out_of_memory.
mov ecx, 0x4f9a70
call fcn.0043bff0
cmp dword [0x4f9a38], ebx
je 0x406097
push dword [0x4f9a3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 0x4cd2cc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [esi + 0x17]
mov dword [0x4f7790], eax
test cl, cl
jne 0x4060ba
mov ecx, dword [esi + 0xc]
push eax
call fcn.00496410
jmp 0x4060d8
cmp cl, 1
jne 0x4060c9
push eax
mov ecx, esi
call fcn.00496410
jmp 0x4060d8
cmp cl, 4
jne 0x4060d8
push edi
push eax
mov eax, dword [esi + 0x10]
call eax
add esp, 8
cmp dword [0x4f9a38], ebx
je 0x4060ec
push dword [0x4f9a3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4f7790]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406100
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp byte [0x4fa568], 0
push esi
je 0x406193
mov esi, dword fs:[0x24]
cmp dword [0x4f9a38], esi
je 0x406129
push dword [0x4f9a3c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406133
sub ecx, edi
sar ecx, 1
push 3
push ecx
push edx
mov ecx, 0x4f9a70
call fcn.0042eca0
pop edi
test eax, eax
jne 0x40616e
cmp dword [0x4f9a38], esi
je 0x406169
push dword [0x4f9a3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
or eax, 0xffffffff
pop esi
ret
push 1
push 0
push 0xffffffffffffffff
push dword [esp + 0x18]
mov ecx, eax
call fcn.00495fe0
cmp dword [0x4f9a38], esi
je 0x406193
push dword [0x4f9a3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
ret
Function at 0x40b0e0
Capabilities:
Check for time delay via gettickcount
Create thread

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 [0x4f790c], 0
movzx ebx, dl
mov edx, 1
push ebp
push esi
cmovne ebx, edx
cmp dword [0x4f7908], 0
push edi
je 0x40b117
or bl, 2
cmp cl, bl
je 0x40b321
test bl, bl
jne 0x40b160
test al, al
jne 0x40b160
push 0x4f8404
push 0
push 0
push 0x40b390
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4fa768], eax
test eax, eax
je 0x40b1f9
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 [0x4f8404]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40b195
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x40b170
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 0x40b206
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x40b23b
cmp dword [esp + 0x24], 0
je 0x40b213
mov byte [esp + 0x17], 1
call fcn.0040b6f0
test al, al
jne 0x40b213
mov al, byte [esp + 0x15]
test al, al
jne 0x40b2f4
xor cl, cl
mov byte [esp + 0x16], cl
jmp 0x40b1b3
call fcn.0040b710
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x40b220
call fcn.0040b6f0
test al, al
jne 0x40b23b
cmp byte [esp + 0x15], 0
jne 0x40b2ed
jmp 0x40b26e
lea eax, [esp + 0x18]
push eax
push dword [0x4fa768]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x40b253
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x40b213
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b1ab
push dword [0x4fa768]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fa768], 0
call fcn.0040b710
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov al, bl
and al, 1
cmp dword [0x4f790c], 0
je 0x40b297
test al, al
jne 0x40b2b1
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4fa760], eax
jmp 0x40b2b1
test al, al
je 0x40b2b1
push dword [0x4fa760]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fa760], 0
and bl, 2
cmp dword [0x4f7908], 0
je 0x40b2d3
test bl, bl
jne 0x40b2ed
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4fa764], eax
jmp 0x40b2ed
test bl, bl
je 0x40b2ed
push dword [0x4fa764]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fa764], 0
cmp byte [esp + 0x17], 0
je 0x40b321
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4f48c4], 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.00497b50
add esp, 8
mov dword [0x4f48c4], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c7a0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
mov eax, ecx
push edi
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor dl, dl
xor cl, cl
call fcn.0040b0e0
mov eax, dword [0x4f78cc]
test eax, eax
je 0x40c7cb
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
xor edi, edi
cmp ax, word [0x4f843c]
jae 0x40c84f
mov ebp, dword [sym.imp.USER32.dll_UnregisterHotKey]
mov edx, dword [0x4f91a8]
mov ebx, dword [0x4f91ac]
nop word [eax + eax]
mov esi, dword [0x4f842c]
mov esi, dword [esi + edi*4]
test esi, esi
je 0x40c843
cmp byte [esi + 0x18], 0
je 0x40c824
movzx eax, word [esi + 4]
push eax
push dword [0x4f78ec]
call ebp
mov edx, dword [0x4f91a8]
test eax, eax
mov ebx, dword [0x4f91ac]
sete al
mov byte [esi + 0x18], al
cmp esi, edx
jne 0x40c843
test edx, edx
je 0x40c843
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 [0x4f91a8], edx
movzx eax, word [0x4f843c]
inc edi
cmp edi, eax
jl 0x40c7f0
push dword [esp + 0x10]
call fcn.004b289f
int3
Function at 0x411ee0
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 0x411f05
cmp bh, 3
jne 0x411f0d
mov al, bh
add al, 0x66
cmp al, 5
ja 0x411f14
mov byte [esp + 0xf], 1
jmp 0x411f19
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x41204c
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4fa7fc], 0
jne 0x411f96
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f48cc]
sub eax, dword [0x4fa584]
cmp eax, dword [ecx + 0xd8]
jbe 0x411f9c
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 0x411f8b
mov edx, 1
mov dword [0x4f48c4], 0
or ecx, 0xffffffff
call fcn.00401890
mov dword [0x4f48c4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fa584], eax
mov ecx, dword [0x4f48cc]
cmp byte [ebp + 0x18], 0
jne 0x411ff0
mov al, byte [ecx + 0xf6]
test al, al
je 0x411fb8
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x411fbd
mov esi, 0xffc3d44f
cmp dword [0x4fa7fc], 0
je 0x411fcd
mov al, byte [0x4fa7f0]
jmp 0x411fd4
xor cl, cl
call fcn.00414ad0
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.00414460
mov ecx, dword [0x4f48cc]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x41201a
test edi, edi
jne 0x41201a
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.004133e0
add esp, 0x14
jmp 0x41203d
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.004124d0
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x411f30
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x412088
cmp dword [0x4fa7fc], 0
je 0x412062
mov al, byte [0x4fa7f0]
jmp 0x412069
xor cl, cl
call fcn.00414ad0
not bl
and bl, al
and bl, 0xcc
je 0x412088
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.00414460
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412090
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
cmp dword [0x4fa7fc], 2
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
sete byte [esp + 0xf]
jne 0x4120d5
movzx edx, bx
mov ecx, edx
and ecx, 0xffffff80
je 0x4120bc
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 fcn.004af6a6
add esp, 0xc
test esi, esi
jle 0x4121e6
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
cmp dword [0x4fa7fc], 0
jne 0x41214e
call edi
mov ecx, dword [0x4f48cc]
sub eax, dword [0x4fa584]
cmp eax, dword [ecx + 0xd8]
jbe 0x41214e
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 0x412147
mov edx, 1
mov dword [0x4f48c4], 0
or ecx, 0xffffffff
call fcn.00401890
mov dword [0x4f48c4], 1
call edi
mov dword [0x4fa584], eax
cmp byte [esp + 0x13], 0
je 0x412160
lea ecx, [esp + 0x30]
call fcn.004121f0
jmp 0x41216b
mov dl, byte [esp + 0x54]
mov ecx, ebx
call fcn.00410d90
cmp dword [0x4fa7fc], 2
mov eax, dword [0x4f48cc]
jne 0x41217e
mov ecx, dword [eax + 0x60]
jmp 0x412181
mov ecx, dword [eax + 0x5c]
mov edx, dword fs:[0x24]
test ecx, ecx
js 0x4121dc
mov eax, dword [0x4fa7fc]
test eax, eax
je 0x4121b1
cmp eax, 2
jne 0x4121dc
test ecx, ecx
jle 0x4121dc
push ecx
push 0
push 0
xor dl, dl
xor cl, cl
call fcn.00413b30
add esp, 0xc
jmp 0x4121dc
mov dword [0x4f48c4], 0
cmp dword [0x4f9a38], edx
je 0x4121c8
push ecx
call ebp
jmp 0x4121d2
mov edx, 1
call fcn.00401890
mov dword [0x4f48c4], 1
sub esi, 1
jne 0x4120f0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x414220
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4f7904]
test edi, edi
je 0x414332
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4f7974], 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 [0x4f7904]
mov ecx, edx
mov dword [0x4f7970], edx
sub ecx, dword [0x4fa730]
mov dword [0x4fa730], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4eea00]
imul ecx, dword [0x4f7974], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4ee934]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x4142f5
mov eax, dword [0x4f7904]
cmp edi, dword [0x4f796c]
je 0x4142e0
imul edx, dword [0x4f7974], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [0x4f7974]
jmp 0x414319
mov esi, dword [0x4f7974]
imul ecx, esi, 0xd4
xor edx, edx
mov word [ecx + eax + 0xc], dx
jmp 0x414319
mov esi, dword [0x4f7974]
mov ecx, dword [0x4f7904]
mov eax, dword [0x4e1cbc]
imul edx, esi, 0xd4
mov dword [edx + ecx + 0xc], eax
mov eax, dword [0x4e1cc0]
mov dword [edx + ecx + 0x10], eax
inc esi
mov dword [0x4f796c], edi
xor eax, eax
cmp esi, dword [0x4f48d0]
cmovge esi, eax
mov dword [0x4f7974], esi
pop esi
pop edi
ret

Function at 0x414340
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
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 0x414370
cmp edi, 2
jne 0x414447
cmp esi, edi
je 0x414447
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4143a3
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.004124d0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.004124d0
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4f9a38]
sete bh
jne 0x4143f8
mov edx, 1
mov dword [0x4f48c4], 0
or ecx, 0xffffffff
call fcn.00401890
mov dword [0x4f48c4], 1
cmp bl, 0x14
jne 0x414447
cmp edi, 2
jne 0x414447
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x414447
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.004124d0
add esp, 0x10
test bh, bh
je 0x414447
lea edx, [edi - 1]
mov dword [0x4f48c4], 0
or ecx, 0xffffffff
call fcn.00401890
mov dword [0x4f48c4], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414ad0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4f790c], 0
je 0x414ae5
test cl, cl
jne 0x414ae5
mov al, byte [0x4f82e4]
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 [0x4f790c], 0
mov dword [esp + 0xc], edx
je 0x414c22
mov cl, byte [0x4f82e4]
mov bl, dl
not bl
and bl, cl
je 0x414c22
mov dl, byte [0x4f79aa]
mov al, bl
not al
and byte [0x4f79ab], al
and cl, al
and dl, al
mov byte [0x4f82e4], cl
mov ecx, 0x4f82e8
mov byte [0x4f79aa], dl
call fcn.00414c30
mov ecx, dword [0x4f840c]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x414c22
test byte [ecx + 8], bl
mov eax, 0
cmovne ecx, eax
mov dword [0x4f840c], ecx
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret

Function at 0x4150f0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x38
push esi
xor esi, esi
test ecx, ecx
je 0x41512f
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 0x41512f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41512f
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 0x415140
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 + 0x4fa790]
test esi, esi
je 0x415165
cmp esi, ebp
je 0x415191
inc eax
cmp eax, 0xa
jl 0x415150
cmp eax, 0xa
mov ecx, 9
cmovl ecx, eax
mov dword [esp + 0xc], ecx
test edx, edx
je 0x4151b6
pop esi
mov dword [ecx*8 + 0x4fa790], ebp
mov eax, edx
mov dword [ecx*8 + 0x4fa794], edx
pop ebp
add esp, 0x288
ret
test edx, edx
je 0x4151a6
cmp dword [eax*8 + 0x4fa794], 0
jne 0x4151a6
mov dword [eax*8 + 0x4fa794], edx
mov eax, dword [eax*8 + 0x4fa794]
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 0x415289
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 0x415221
push ebx
push ecx
lea eax, [esp + 0x94]
push eax
push str.Layout_File
lea edx, [esp + 0x24]
call fcn.004932b0
add esp, 0x10
test eax, eax
je 0x415221
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x415223
xor esi, esi
mov eax, dword [esp + 0xc]
cmp ebp, eax
je 0x415234
push 0
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test esi, esi
je 0x415289
push str.KbdLayerDescriptor
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415282
call eax
cmp dword [0x4fa75c], 0
mov ebx, eax
je 0x415277
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4fa75c]
test eax, eax
je 0x415277
cmp dword [esp + 0xc], 0
je 0x415277
mov ebx, dword [ebx + 0x50]
jmp 0x41527a
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 + 0x4fa794], ebx
mov dword [eax*8 + 0x4fa790], ebp
mov eax, ebx
pop ebx
pop esi
pop ebp
add esp, 0x288
ret
Function at 0x415320
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 + 0x4f4984], bl
je 0x41549f
inc edi
cmp edi, 0x6d
jl 0x415330
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [ebx - 0x41]
mov esi, eax
cmp cl, 0x19
ja 0x41542f
push 0x100
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004ad280
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 0x415399
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 0x4153d5
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 0x41541d
push 1
push esi
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.00415680
mov bh, al
add esp, 8
test bh, bh
je 0x41541d
mov dl, byte [esp + 0x13]
lea ecx, [esp + 0x28]
call fcn.00414c30
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 0x41542b
movzx eax, word [esp + 0x18]
jmp 0x41543f
xor eax, eax
jmp 0x41543f
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 0x41545b
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 0x41548c
test bl, bl
je 0x41548c
push edi
push str.vk_02X
push dword [esp + 0x134]
push ebp
call fcn.00491dd0
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 + 0x4f4980]
push ebp
call fcn.004b3100
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