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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
xor al, al
mov bl, cl
cmp dword [0x4dbeb0], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4dbeac], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x40934d
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x40954a
test al, al
jne 0x40938e
test bh, bh
jne 0x40938e
push 0x4dbfc8
push 0
push 0
push 0x4095c0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4dd660], eax
test eax, eax
je 0x409446
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx edi, bh
xor esi, esi
xor edi, 1
movzx ebp, bl
nop dword [eax]
push edi
push ebp
push 0x417
push dword [0x4dbfc8]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x4093c5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4093a0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor bh, bh
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, eax
mov dh, bl
mov dl, bh
test bl, bl
je 0x409453
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x409431
cmp dword [esp + 0x24], 0
je 0x40946d
mov bh, 1
call fcn.00409920
test al, al
jne 0x40946d
cmp byte [esp + 0x13], al
jne 0x40951d
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4dd660]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x40947a
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x40946d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4093d7
call fcn.00409940
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x13], 0
mov bh, dl
mov bl, dh
je 0x409416
call fcn.00409920
test al, al
je 0x409519
jmp 0x409431
cmp byte [esp + 0x13], 0
jne 0x409519
jmp 0x409495
push dword [0x4dd660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dd660], 0
call fcn.00409940
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
and al, 1
cmp dword [0x4dbeb0], 0
je 0x4094c0
test al, al
jne 0x4094da
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4dd658], eax
jmp 0x4094da
test al, al
je 0x4094da
push dword [0x4dd658]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dd658], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4dbeac], 0
je 0x4094ff
test al, al
jne 0x409519
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4dd65c], eax
jmp 0x409519
test al, al
je 0x409519
push dword [0x4dd65c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dd65c], 0
test bh, bh
je 0x40954a
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4d78c0], 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.0047fbd0
add esp, 8
mov dword [0x4d78c0], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a9d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1014
call fcn.004ac150
cmp byte [0x4de0f4], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x40ab5b
cmp dword [0x4dc004], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40aa02
call edi
mov dword [0x4dc004], eax
inc dword [0x4de0f0]
call edi
mov esi, dword [0x4de0f0]
mov ecx, eax
sub ecx, dword [0x4dc004]
mov edx, dword [0x4d7e28]
mov dword [0x4dc000], eax
cmp esi, dword [0x4d7e2c]
jbe 0x40aac2
cmp ecx, edx
jae 0x40aac4
push ecx
push esi
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 + 0x2c]
push 0x800
push eax
call fcn.0047a7e0
add esp, 0x14
call fcn.00409e30
push 0
push 0
xorps xmm3, xmm3
mov byte [0x4de0f4], 1
mov edx, 4
mov dword [0x4d78c0], 0
lea ecx, [esp + 0x28]
call fcn.0047fbd0
add esp, 8
cmp eax, 7
jne 0x40aa91
push 0
push 5
mov ecx, 0x4dcd68
call fcn.00415de0
mov eax, dword [0x4dc000]
mov dword [0x4d78c0], 1
mov byte [0x4de0f4], 0
mov dword [0x4de0f0], 0
mov dword [0x4dc004], eax
pop edi
pop esi
pop ebx
add esp, 0x1014
ret 4
cmp ecx, edx
jbe 0x40aad5
mov dword [0x4de0f0], 0
mov dword [0x4dc004], eax
mov al, byte [ebx + 0xf]
mov esi, dword [esp + 0x1024]
mov byte [0x4dd416], al
push 0
push 0
inc byte [esi + 0x1a]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esi]
mov edx, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 1
push eax
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0xffffffff
call fcn.0046f110
dec byte [esi + 0x1a]
add esp, 0x14
test eax, eax
jne 0x40ab2d
mov byte [esi + 0x1f], al
pop edi
pop esi
pop ebx
add esp, 0x1014
ret 4
cmp byte [esi + 0x1f], 0
je 0x40ab5b
mov byte [esi + 0x1f], 0
call edi
sub eax, dword [esi + 0x10]
cmp eax, 0x3e8
ja 0x40ab5b
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x4dbc70]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
add esp, 0x1014
ret 4
Function at 0x40fe00
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
dec al
mov dword [esp + 8], edx
push esi
push edi
cmp al, 5
ja 0x40fe25
cmp bh, 3
jne 0x40fe2d
mov al, bh
add al, 0x66
cmp al, 5
ja 0x40fe34
mov byte [esp + 0xf], 1
jmp 0x40fe39
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x40ff69
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4dd6f4], 0
jne 0x40feb3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d78c8]
sub eax, dword [0x4dd444]
cmp eax, dword [ecx + 0x5c]
jbe 0x40feb9
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 0x40fea8
mov edx, 1
mov dword [0x4d78c0], 0
or ecx, 0xffffffff
call fcn.00401950
mov dword [0x4d78c0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4dd444], eax
mov ecx, dword [0x4d78c8]
cmp byte [ebp + 0x18], 0
jne 0x40ff0d
mov al, byte [ecx + 0x99]
test al, al
je 0x40fed5
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x40feda
mov esi, 0xffc3d44f
cmp dword [0x4dd6f4], 0
je 0x40feea
mov al, byte [0x4dd6e8]
jmp 0x40fef1
xor cl, cl
call fcn.00412810
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.004121f0
mov ecx, dword [0x4d78c8]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x40ff37
test edi, edi
jne 0x40ff37
push dword [ebp + 0x28]
movzx eax, byte [ecx + 0x97]
mov cl, bh
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push eax
push 1
push dword [ebp + 0x24]
call fcn.00411140
add esp, 0x14
jmp 0x40ff5a
movzx eax, byte [ecx + 0x99]
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.004103a0
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x40fe50
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x40ffa5
cmp dword [0x4dd6f4], 0
je 0x40ff7f
mov al, byte [0x4dd6e8]
jmp 0x40ff86
xor cl, cl
call fcn.00412810
not bl
and bl, al
and bl, 0xcc
je 0x40ffa5
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.004121f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ffb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
mov eax, dword [0x4dd6f4]
cmp eax, 2
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
sete byte [esp + 0xf]
jne 0x40fffb
movzx edx, bx
mov ecx, edx
and ecx, 0xffffff80
je 0x40ffdd
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.0049993e
mov eax, dword [0x4dd6f4]
add esp, 0xc
test esi, esi
jle 0x4100aa
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x410062
call edi
mov ecx, dword [0x4d78c8]
sub eax, dword [0x4dd444]
cmp eax, dword [ecx + 0x5c]
jbe 0x410062
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call ebp
test eax, eax
je 0x41005b
mov edx, 1
mov dword [0x4d78c0], 0
or ecx, 0xffffffff
call fcn.00401950
mov dword [0x4d78c0], 1
call edi
mov dword [0x4dd444], eax
cmp byte [esp + 0x13], 0
je 0x410074
lea ecx, [esp + 0x30]
call fcn.004100c0
jmp 0x41007f
mov dl, byte [esp + 0x54]
mov ecx, ebx
call fcn.0040e850
cmp dword [0x4dd6f4], 2
mov eax, dword [0x4d78c8]
jne 0x410092
mov ecx, dword [eax + 0x70]
jmp 0x410095
mov ecx, dword [eax + 0x6c]
call fcn.00411e00
sub esi, 1
je 0x4100a9
mov eax, dword [0x4dd6f4]
jmp 0x410010
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x411ca0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0xc
cmp dword [0x4dd6f4], 1
push ebx
push esi
mov byte [esp + 0xf], dl
mov esi, ecx
jne 0x411d70
xor al, al
cmp dword [0x4dbeb0], 0
movzx ebx, al
mov eax, 1
cmovne ebx, eax
cmp dword [0x4dbeac], 0
mov dword [esp + 0x10], ebx
je 0x411ce0
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x411d56
mov cl, byte [0x4dd6e9]
mov dl, al
not cl
and cl, bl
call fcn.00409310
push 0x1c
push dword [0x4dc00c]
push dword [0x4dd6dc]
call dword [sym.imp.USER32.dll_SendInput]
mov al, byte [0x4dd6e9]
and al, bl
test al, 1
je 0x411d48
mov cl, 1
call fcn.00412810
mov bl, al
xor bl, byte [esp + 0xf]
mov dl, bl
and bl, al
and dl, byte [esp + 0xf]
not dl
and dl, byte [0x4dbebb]
or dl, bl
mov byte [0x4dbebb], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x4dbd68], eax
mov dl, 1
mov cl, bl
pop esi
pop ebx
add esp, 0xc
jmp fcn.00409310
push 0x1c
push dword [0x4dc00c]
push dword [0x4dd6dc]
call dword [sym.imp.USER32.dll_SendInput]
pop esi
pop ebx
add esp, 0xc
ret
push 0
push dword [0x4dbca0]
mov dword [0x4dd6e4], 0
push 0x410150
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4dbc5c], eax
test eax, eax
je 0x411dec
mov byte [0x4dbeb8], 1
nop
mov edx, 1
mov dword [0x4d78c0], 0
mov ecx, 0x8000012f
call fcn.00401950
cmp dword [0x4dbc5c], 0
mov dword [0x4d78c0], 1
jne 0x411da0
mov eax, dword [0x4da9b8]
mov byte [0x4dbeb8], 0
mov ecx, dword [eax]
mov eax, dword [0x4dd6dc]
cmp dword [ecx + eax*8 - 8], 0
jne 0x411dec
mov eax, dword [ecx + eax*8 - 4]
mov dword [esi], eax
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x411fd0
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4dbc80]
test edi, edi
je 0x4120da
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4dbcac], 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 [0x4dbc80]
mov ecx, edx
mov dword [0x4dbca8], edx
sub ecx, dword [0x4dd5f0]
mov dword [0x4dd5f0], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4d17a0]
imul ecx, dword [0x4dbcac], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4d1704]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4dbc80]
test esi, esi
je 0x4120a5
cmp esi, dword [0x4dbca4]
je 0x412090
imul edx, dword [0x4dbcac], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x4dbcac]
jmp 0x4120c1
mov edx, dword [0x4dbcac]
imul ecx, edx, 0xd4
xor edi, edi
mov word [ecx + eax + 0xc], di
jmp 0x4120c1
mov edx, dword [0x4dbcac]
imul ecx, edx, 0xd4
mov dword [ecx + eax + 0xc], 0x2f004e
mov dword [ecx + eax + 0x10], 0x41
inc edx
mov dword [0x4dbca4], esi
xor eax, eax
cmp edx, dword [0x4d78cc]
pop esi
cmovge edx, eax
mov dword [0x4dbcac], edx
pop edi
ret
Function at 0x4120e0
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 0x41210a
cmp edi, 2
jne 0x4121de
cmp esi, edi
je 0x4121de
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x41213a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.004103a0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.004103a0
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4dcd34]
sete bh
jne 0x41218f
mov edx, 1
mov dword [0x4d78c0], 0
or ecx, 0xffffffff
call fcn.00401950
mov dword [0x4d78c0], 1
cmp bl, 0x14
jne 0x4121de
cmp edi, 2
jne 0x4121de
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x4121de
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.004103a0
add esp, 0x10
test bh, bh
je 0x4121de
lea edx, [edi - 1]
mov dword [0x4d78c0], 0
or ecx, 0xffffffff
call fcn.00401950
mov dword [0x4d78c0], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x412810
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4dbeb0], 0
je 0x412825
test cl, cl
jne 0x412825
mov al, byte [0x4dbebd]
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 [0x4dbeb0], 0
mov dword [esp + 0xc], edx
je 0x412962
mov cl, byte [0x4dbebd]
mov bl, dl
not bl
and bl, cl
je 0x412962
mov dl, byte [0x4dbebb]
mov al, bl
not al
and byte [0x4dbebc], al
and cl, al
and dl, al
mov byte [0x4dbebd], cl
mov ecx, 0x4dbec0
mov byte [0x4dbebb], dl
call fcn.00412970
mov ecx, dword [0x4dbfcc]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x412962
test byte [ecx + 8], bl
mov eax, 0
cmovne ecx, eax
mov dword [0x4dbfcc], ecx
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret
Function at 0x412d50
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x288
xor eax, eax
push ebp
mov ebp, ecx
nop dword [eax + eax]
mov edx, dword [eax*8 + 0x4dd688]
test edx, edx
je 0x412d79
cmp edx, ebp
je 0x412df3
inc eax
cmp eax, 0xa
jl 0x412d60
cmp eax, 0xa
mov ecx, 9
push ebx
cmovb ecx, eax
xor ebx, ebx
push ebx
push ebp
mov dword [esp + 0x14], ecx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov dword [esp + 8], eax
test eax, eax
je 0x412e63
push esi
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]
test eax, eax
je 0x412e02
push ebx
push ecx
lea eax, [esp + 0x98]
push eax
push str.Layout_File
lea edx, [esp + 0x28]
call fcn.0047c0f0
add esp, 0x10
test eax, eax
je 0x412e02
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x412e04
mov eax, dword [eax*8 + 0x4dd68c]
pop ebp
add esp, 0x288
ret
xor esi, esi
mov eax, dword [esp + 0x10]
cmp ebp, eax
je 0x412e15
push 0
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test esi, esi
je 0x412e61
push str.KbdLayerDescriptor
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412e5a
call eax
mov ebx, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x412e4f
cmp dword [esp + 0x10], 0
je 0x412e4f
mov ebx, dword [ebx + 0x50]
jmp 0x412e52
mov ebx, dword [ebx + 0x28]
not ebx
and ebx, 1
add ebx, 3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, dword [esp + 0xc]
mov dword [eax*8 + 0x4dd68c], ebx
mov dword [eax*8 + 0x4dd688], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0x288
ret
Function at 0x412e80
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 + 0x4d7944], bl
je 0x412fff
inc edi
cmp edi, 0x6b
jl 0x412e90
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [ebx - 0x41]
mov esi, eax
cmp cl, 0x19
ja 0x412f8f
push 0x100
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004956d0
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 0x412ef9
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 0x412f35
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 0x412f7d
push 1
push esi
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.00413270
mov bh, al
add esp, 8
test bh, bh
je 0x412f7d
mov dl, byte [esp + 0x13]
lea ecx, [esp + 0x28]
call fcn.00412970
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 0x412f8b
movzx eax, word [esp + 0x18]
jmp 0x412f9f
xor eax, eax
jmp 0x412f9f
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 0x412fbb
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 0x412fec
test bl, bl
je 0x412fec
push edi
push str.vk_02X
push dword [esp + 0x134]
push ebp
call fcn.0047a7e0
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 + 0x4d7940]
push ebp
call fcn.0049fc44
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 0x413120
Capabilities:
Log keystrokes

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
movzx eax, word [edi]
mov esi, eax
test ax, ax
je 0x41325b
cmp word [edi + 2], 0
jne 0x41314e
push 1
push dword [esp + 0x1c]
mov ecx, eax
call fcn.00413270
add esp, 8
pop edi
pop esi
pop ecx
ret
test eax, 0xffffff80
je 0x413159
xor eax, eax
jmp 0x413162
push eax
call fcn.00498650
add esp, 4
mov ecx, esi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, esi
cmove edx, ecx
cmp dx, 0x56
jne 0x4131d6
movzx eax, word [edi + 2]
mov esi, eax
test eax, 0xffffff80
je 0x41318b
xor eax, eax
jmp 0x413194
push eax
call fcn.00498650
add esp, 4
mov ecx, esi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, esi
cmove edx, ecx
cmp dx, 0x4b
jne 0x4131d6
push ebx
push 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 4]
push eax
call fcn.0049afeb
mov ecx, dword [esp + 0x18]
add esp, 0xc
xor ebx, ebx
movzx edx, al
cmp word [ecx], bx
cmove ebx, edx
mov al, bl
pop ebx
pop edi
pop esi
pop ecx
ret
xor esi, esi
nop dword [eax + eax]
push edi
push dword [esi*8 + 0x4d7940]
call fcn.004979b3
add esp, 8
test eax, eax
je 0x413250
inc esi
cmp esi, 0x6b
jl 0x4131e0
cmp byte [esp + 0x10], 0
jne 0x41325b
xor edx, edx
mov ecx, edi
call fcn.00413030
movzx edx, ax
test dx, dx
je 0x41325b
mov ecx, edx
mov eax, edx
sub ecx, 0x45
je 0x41324a
sub ecx, 0xf1
je 0x413228
sub ecx, 0xf
jne 0x41322b
movzx eax, dl
test eax, 0x100
je 0x41323a
movzx eax, al
or eax, 0xe000
push 3
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
pop edi
pop esi
pop ecx
ret
pop edi
mov al, 0x13
pop esi
pop ecx
ret
mov al, byte [esi*8 + 0x4d7944]
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x413270
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
mov ebx, ecx
push edi
mov edi, edx
cmp bx, 0xa
jne 0x413283
pop edi
mov al, 0xd
pop ebx
pop ecx
ret
push ebp
push dword [esp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx eax, ax
mov edx, eax
mov dword [esp + 0xc], eax
shr edx, 8
cmp dl, 0xff
jne 0x4132ef
cmp al, 0xff
jne 0x4132ef
cmp byte [esp + 0x18], 0
je 0x4132f8
movzx ebp, bx
test ebp, 0xffffff80
jne 0x4132f8
push ebp
call fcn.004985eb
add esp, 4
test eax, eax
je 0x4132f8
push esi
push ebp
call fcn.00498650
push ebp
mov esi, eax
call fcn.00498681
add esp, 8
mov cl, bl
test eax, eax
movzx eax, bl
setne dl
and cl, 0xdf
test esi, esi
movzx ecx, cl
pop esi
cmove ecx, eax
mov bl, cl
jmp 0x4132f3
mov ebx, dword [esp + 0xc]
test dl, 0x38
je 0x4132ff
pop ebp
pop edi
xor al, al
pop ebx
pop ecx
ret
test edi, edi
je 0x41333f
mov al, dl
and al, 6
cmp al, 6
jne 0x413310
or byte [edi], 8
jmp 0x41332e
test dl, 2
je 0x41331f
mov al, byte [edi]
test al, 3
jne 0x41331f
or al, 1
mov byte [edi], al
test dl, 4
je 0x41332e
mov al, byte [edi]
test al, 0xc
jne 0x41332e
or al, 4
mov byte [edi], al
test dl, 1
je 0x41333f
mov cl, byte [edi]
test cl, 0x30
jne 0x41333f
or cl, 0x10
mov byte [edi], cl
pop ebp
pop edi
mov al, bl
pop ebx
pop ecx
ret