joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d180
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 8
cmp byte [0x4dc0c8], 0
push ebx
push esi
push edi
je 0x40d222
mov edi, dword fs:[0x24]
cmp dword [0x4dba60], edi
je 0x40d1ae
push dword [0x4dba64]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [esp + 0x18]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40d1b7
sub esi, ecx
cmp byte [ebx], al
je 0x40d22b
lea eax, [esp + 0xf]
mov ecx, 0x4dba98
push eax
push 3
lea eax, [esp + 0x18]
push eax
push esi
push ebx
call fcn.0043ece0
test eax, eax
jne 0x40d1fd
cmp byte [esp + 0xf], al
mov ecx, 0x4dba98
setne al
inc eax
push eax
push dword [esp + 0x14]
push esi
push ebx
call fcn.0043f230
test eax, eax
je 0x40d22b
push 1
push 0
push 0xffffffffffffffff
push dword [esp + 0x28]
mov ecx, eax
call fcn.004b04f0
cmp dword [0x4dba60], edi
je 0x40d222
push dword [0x4dba64]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [0x4dba60], edi
je 0x40d23f
push dword [0x4dba64]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x412b50
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 [0x4d9998], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4d9994], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x412b8d
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x412d8a
test al, al
jne 0x412bce
test bh, bh
jne 0x412bce
push 0x4da404
push 0
push 0
push 0x412e00
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4dc2c4], eax
test eax, eax
je 0x412c86
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 [0x4da404]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x412c05
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x412be0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor bh, bh
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, eax
mov dh, bl
mov dl, bh
test bl, bl
je 0x412c93
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x412c71
cmp dword [esp + 0x24], 0
je 0x412cad
mov bh, 1
call fcn.00413170
test al, al
jne 0x412cad
cmp byte [esp + 0x13], al
jne 0x412d5d
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4dc2c4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x412cba
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x412cad
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412c17
call fcn.00413190
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 0x412c56
call fcn.00413170
test al, al
je 0x412d59
jmp 0x412c71
cmp byte [esp + 0x13], 0
jne 0x412d59
jmp 0x412cd5
push dword [0x4dc2c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dc2c4], 0
call fcn.00413190
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
and al, 1
cmp dword [0x4d9998], 0
je 0x412d00
test al, al
jne 0x412d1a
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4dc2bc], eax
jmp 0x412d1a
test al, al
je 0x412d1a
push dword [0x4dc2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dc2bc], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4d9994], 0
je 0x412d3f
test al, al
jne 0x412d59
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4dc2c0], eax
jmp 0x412d59
test al, al
je 0x412d59
push dword [0x4dc2c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dc2c0], 0
test bh, bh
je 0x412d8a
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4d70ec], 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.004b2410
add esp, 8
mov dword [0x4d70ec], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414480
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x804
cmp byte [0x4dd520], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x41467c
cmp dword [0x4da46c], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x4144b4
call edi
mov dword [0x4da46c], eax
inc dword [0x4dd51c]
call edi
mov esi, dword [0x4dd51c]
mov ecx, eax
sub ecx, dword [0x4da46c]
mov edx, dword [0x4d82e0]
mov dword [0x4da468], eax
cmp esi, dword [0x4d82e4]
jbe 0x4145a5
cmp ecx, edx
jae 0x4145a7
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 + 0x1c]
push 0x800
push eax
call fcn.004abdd0
mov dx, word [0x4da464]
xor eax, eax
add esp, 0x14
xor ecx, ecx
cmp ax, dx
jae 0x41453b
mov eax, dword [0x4da454]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x414533
mov byte [eax + 0x1b], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x414521
mov dx, word [0x4da464]
inc ecx
movzx eax, dx
cmp ecx, eax
jl 0x414512
push 0
push 0
xorps xmm3, xmm3
mov byte [0x4dd520], 1
mov edx, 4
mov dword [0x4d70ec], 0
lea ecx, [esp + 0x18]
call fcn.004b2410
add esp, 8
cmp eax, 7
jne 0x414577
push 0
push 4
mov ecx, 0x4dba98
call fcn.0042d940
mov eax, dword [0x4da468]
mov dword [0x4d70ec], 1
mov byte [0x4dd520], 0
mov dword [0x4dd51c], 0
mov dword [0x4da46c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ecx, edx
jbe 0x4145b8
mov dword [0x4dd51c], 0
mov dword [0x4da46c], eax
mov esi, dword [ebp + 8]
mov al, byte [ebx + 0xf]
mov byte [0x4dc0ad], al
inc byte [esi + 0x16]
mov ecx, dword [0x4d8a7c]
mov edx, dword [0x4dc03c]
mov dword [esp + 0xc], edx
cmp ecx, dword [0x4d8a80]
jne 0x4145ed
call fcn.00406580
mov ecx, dword [0x4d8a7c]
mov edx, dword [esp + 0xc]
cmp ecx, dword [0x4d8a78]
jb 0x414602
mov eax, dword [0x4dbe24]
mov dword [ecx], eax
mov ecx, dword [0x4d8a7c]
add ecx, 0xc
push 0
push 0
mov dword [0x4d8a7c], ecx
push 0
mov dword [ecx + 4], edx
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov ecx, dword [esi]
mov edx, ecx
push 0
push str.call
call fcn.0049a540
sub dword [0x4d8a7c], 0xc
add esp, 0x14
dec byte [esi + 0x16]
test eax, eax
jne 0x41464e
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x1b], 0
je 0x41467c
mov byte [esi + 0x1b], 0
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x41467c
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x4d9978]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41a030
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 0x41a055
cmp bh, 3
jne 0x41a05d
mov al, bh
add al, 0x66
cmp al, 5
ja 0x41a064
mov byte [esp + 0xf], 1
jmp 0x41a069
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x41a19c
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4dc358], 0
jne 0x41a0e6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d70f4]
sub eax, dword [0x4dc0ec]
cmp eax, dword [ecx + 0xb8]
jbe 0x41a0ec
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x41a0db
mov edx, 1
mov dword [0x4d70ec], 0
or ecx, 0xffffffff
call fcn.00401870
mov dword [0x4d70ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4dc0ec], eax
mov ecx, dword [0x4d70f4]
cmp byte [ebp + 0x18], 0
jne 0x41a140
mov al, byte [ecx + 0xd6]
test al, al
je 0x41a108
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x41a10d
mov esi, 0xffc3d44f
cmp dword [0x4dc358], 0
je 0x41a11d
mov al, byte [0x4dc34c]
jmp 0x41a124
xor cl, cl
call fcn.0041d100
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.0041c9d0
mov ecx, dword [0x4d70f4]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x41a16a
test edi, edi
jne 0x41a16a
push dword [ebp + 0x28]
movzx eax, byte [ecx + 0xcf]
mov cl, bh
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push eax
push 1
push dword [ebp + 0x24]
call fcn.0041b7b0
add esp, 0x14
jmp 0x41a18d
movzx eax, byte [ecx + 0xd6]
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.0041a670
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x41a080
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x41a1d8
cmp dword [0x4dc358], 0
je 0x41a1b2
mov al, byte [0x4dc34c]
jmp 0x41a1b9
xor cl, cl
call fcn.0041d100
not bl
and bl, al
and bl, 0xcc
je 0x41a1d8
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.0041c9d0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a1e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x34
cmp dword [0x4dc358], 2
push ebx
mov bl, cl
sete bh
push esi
mov esi, edx
mov byte [esp + 8], bl
jne 0x41a22c
movzx eax, byte [esp + 0x10]
and cl, 0x80
mov edx, 0x30
cmovne eax, edx
lea edx, [esp + 0x11]
mov byte [esp + 0x10], al
test cl, cl
lea eax, [esp + 0x10]
cmovne eax, edx
push 0xa
push eax
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
jmp 0x41a24c
push 1
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x14]
push eax
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x41a300
test esi, esi
jle 0x41a300
mov bl, byte [esp + 0x40]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4dc358], 0
jne 0x41a2c0
call edi
mov ecx, dword [0x4d70f4]
sub eax, dword [0x4dc0ec]
cmp eax, dword [ecx + 0xb8]
jbe 0x41a2c0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
call ebp
test eax, eax
je 0x41a2b9
mov edx, 1
mov dword [0x4d70ec], 0
or ecx, 0xffffffff
call fcn.00401870
mov dword [0x4d70ec], 1
call edi
mov dword [0x4dc0ec], eax
test bh, bh
je 0x41a2cf
lea ecx, [esp + 0x18]
call fcn.0041a310
jmp 0x41a2da
mov ecx, dword [esp + 0x14]
mov dl, bl
call fcn.00418980
cmp dword [0x4dc358], 2
mov eax, dword [0x4d70f4]
jne 0x41a2ed
mov ecx, dword [eax + 0x60]
jmp 0x41a2f0
mov ecx, dword [eax + 0x5c]
call fcn.0041c5c0
sub esi, 1
jne 0x41a266
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x41c3b0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0xc
mov eax, dword fs:[0x24]
cmp dword [0x4dc358], 1
push ebp
push esi
mov byte [esp + 0xb], dl
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x41c528
xor al, al
mov ebp, 1
cmp dword [0x4d9998], 0
push ebx
movzx ebx, al
cmovne ebx, ebp
cmp dword [0x4d9994], 0
mov dword [esp + 0x10], ebx
je 0x41c3fb
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x41c410
mov cl, byte [0x4dc34d]
mov dl, 1
not cl
and cl, bl
call fcn.00412b50
mov eax, dword [0x4dc340]
xor edx, edx
mov ecx, dword [0x4da470]
push edi
xor edi, edi
test eax, eax
je 0x41c4c7
xor esi, esi
xor ebx, ebx
nop dword [eax]
cmp dword [esi + ecx], ebp
jne 0x41c4a5
cmp word [esi + ecx + 4], 0
jne 0x41c4a5
cmp word [esi + ecx + 6], 0
jne 0x41c4a5
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 [0x4da470]
mov dword [0x4d70ec], 0
cmp dword [0x4dba60], eax
je 0x41c483
mov eax, dword [esi + ecx + 0x10]
test eax, eax
js 0x41c483
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41c48e
mov ecx, dword [esi + ecx + 0x10]
mov edx, ebp
call fcn.00401870
mov eax, dword [0x4dc340]
lea edx, [edi + 1]
mov ecx, dword [0x4da470]
lea ebx, [esi + 0x1c]
mov dword [0x4d70ec], ebp
inc edi
add esi, 0x1c
cmp edi, eax
jb 0x41c430
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x41c4c7
lea eax, [edx*8]
sub eax, edx
push 0x1c
lea eax, [ecx + eax*4]
push eax
push edx
jmp 0x41c4cb
push 0x1c
push ecx
push eax
call dword [sym.imp.USER32.dll_SendInput]
pop edi
test bl, bl
je 0x41c5ab
mov al, byte [0x4dc34d]
and al, bl
test al, 1
je 0x41c519
mov cl, 1
call fcn.0041d100
mov bl, al
xor bl, byte [esp + 0xf]
mov dl, bl
and bl, al
and dl, byte [esp + 0xf]
not dl
and dl, byte [0x4da2e4]
or dl, bl
mov byte [0x4da2e4], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x4d9b14], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
pop ebp
add esp, 0xc
jmp fcn.00412b50
push 0
push 0
mov dword [0x4dc348], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x41a3a0
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x4d9958], eax
test eax, eax
je 0x41c5ac
mov byte [0x4da2d5], 1
mov ebp, 1
nop
mov edx, ebp
mov dword [0x4d70ec], 0
mov ecx, 0x8000012f
call fcn.00401870
cmp dword [0x4d9958], 0
mov dword [0x4d70ec], ebp
jne 0x41c560
mov eax, dword [0x4d8ae8]
mov byte [0x4da2d5], 0
mov ecx, dword [eax]
mov eax, dword [0x4dc340]
cmp dword [ecx + eax*8 - 8], 0
jne 0x41c5ac
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 0x41c7d0
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4d9990]
test edi, edi
je 0x41c8bc
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4d9a04], 0x70
mov byte [esi + edi + 5], cl
mov byte [esi + edi], dl
mov word [esi + edi + 2], ax
mov byte [esi + edi + 4], 0x69
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x4d9990]
mov ecx, edx
mov dword [0x4d9a00], edx
sub ecx, dword [0x4dc278]
mov dword [0x4dc278], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4d0b80]
imul ecx, dword [0x4d9a04], 0x70
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4d0acc]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4d9990]
test esi, esi
je 0x41c892
cmp esi, dword [0x4d99fc]
je 0x41c882
imul edx, dword [0x4d9a04], 0x70
push 0x64
add edx, 0xc
add eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x4d9a04]
jmp 0x41c8a3
mov edx, dword [0x4d9a04]
imul ecx, edx, 0x70
mov byte [ecx + eax + 0xc], 0
jmp 0x41c8a3
mov edx, dword [0x4d9a04]
imul ecx, edx, 0x70
mov dword [ecx + eax + 0xc], 0x412f4e
inc edx
mov dword [0x4d99fc], esi
xor eax, eax
cmp edx, dword [0x4d70f8]
pop esi
cmovge edx, eax
mov dword [0x4d9a04], edx
pop edi
ret

Function at 0x41c8c0
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 0x41c8ea
cmp edi, 2
jne 0x41c9be
cmp esi, edi
je 0x41c9be
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x41c91a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041a670
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.0041a670
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4dba60]
sete bh
jne 0x41c96f
mov edx, 1
mov dword [0x4d70ec], 0
or ecx, 0xffffffff
call fcn.00401870
mov dword [0x4d70ec], 1
cmp bl, 0x14
jne 0x41c9be
cmp edi, 2
jne 0x41c9be
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x41c9be
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.0041a670
add esp, 0x10
test bh, bh
je 0x41c9be
lea edx, [edi - 1]
mov dword [0x4d70ec], 0
or ecx, 0xffffffff
call fcn.00401870
mov dword [0x4d70ec], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x41d100
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4d9998], 0
je 0x41d115
test cl, cl
jne 0x41d115
mov al, byte [0x4da2e6]
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 [0x4d9998], 0
mov dword [esp + 0xc], edx
je 0x41d252
mov cl, byte [0x4da2e6]
mov bl, dl
not bl
and bl, cl
je 0x41d252
mov dl, byte [0x4da2e4]
mov al, bl
not al
and byte [0x4da2e5], al
and cl, al
and dl, al
mov byte [0x4da2e6], cl
mov ecx, 0x4da2e8
mov byte [0x4da2e4], dl
call fcn.0041d260
mov ecx, dword [0x4da434]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x41d252
test byte [ecx + 8], bl
mov eax, 0
cmovne ecx, eax
mov dword [0x4da434], ecx
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret
Function at 0x41d6c0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
push ebx
push esi
mov al, cl
mov ebx, edx
push edi
mov byte [esp + 0xd], al
xor edi, edi
cmp byte [edi*8 + 0x4d7174], al
je 0x41d836
inc edi
cmp edi, 0x6d
jl 0x41d6d3
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
mov al, byte [esp + 0xd]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x41d7cf
push ebp
push 0x100
lea eax, [esp + 0x28]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebp, dword [sym.imp.USER32.dll_ToAsciiEx]
lea eax, [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x12], 0
push esi
push 0
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x6e
call ebp
movzx ecx, byte [esp + 0x14]
cmp eax, 2
movzx edx, byte [esp + 0x12]
lea eax, [esp + 0x14]
movzx edi, byte [esp + 0x11]
cmove edx, ecx
push esi
push 0
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x28], edx
push eax
push 0
push edi
call ebp
mov dword [esp + 0x20], eax
test eax, eax
jns 0x41d779
push esi
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x6e
call ebp
mov eax, dword [esp + 0x1c]
test al, al
je 0x41d7be
push 1
push esi
lea edx, [esp + 0x1a]
mov cl, al
call fcn.0041da60
add esp, 8
mov byte [esp + 0x13], al
test al, al
je 0x41d7be
mov dl, byte [esp + 0x12]
lea ecx, [esp + 0x24]
call fcn.0041d260
push esi
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
movzx eax, byte [esp + 0x23]
push 0
push eax
call ebp
movzx eax, byte [esp + 0x14]
xor ecx, ecx
cmp dword [esp + 0x20], ecx
pop ebp
cmovne ecx, eax
jmp 0x41d7de
push esi
movzx edi, al
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
mov cl, al
mov byte [ebx], cl
test cl, cl
je 0x41d7f4
pop edi
pop esi
mov byte [ebx + 1], 0
mov eax, ebx
pop ebx
add esp, 0x114
ret
cmp byte [esp + 0x128], 0
je 0x41d827
cmp byte [esp + 0xd], 0
je 0x41d827
push edi
push str.vk_02X
push dword [esp + 0x12c]
push ebx
call fcn.004abdd0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret
pop edi
pop esi
mov byte [ebx], 0
mov eax, ebx
pop ebx
add esp, 0x114
ret
mov esi, dword [esp + 0x124]
dec esi
push esi
push dword [edi*8 + 0x4d7170]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [esi + ebx], 0
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret
Function at 0x41d950
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov bl, byte [edi]
test bl, bl
je 0x41da56
cmp byte [edi + 1], 0
jne 0x41d97b
push 1
push dword [esp + 0x20]
mov cl, bl
call fcn.0041da60
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
movzx eax, bl
test eax, 0xffffff80
je 0x41d98f
xor eax, eax
jmp 0x41d997
push 2
push eax
call esi
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dl, 0x56
jne 0x41da03
mov bl, byte [edi + 1]
movzx eax, bl
test eax, 0xffffff80
je 0x41d9bd
xor eax, eax
jmp 0x41d9c5
push 2
push eax
call esi
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dl, 0x4b
jne 0x41da03
push 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov ecx, dword [esp + 0x18]
add esp, 0xc
xor ebx, ebx
movzx edx, al
cmp byte [ecx], bl
pop edi
cmove ebx, edx
pop esi
mov al, bl
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
xor esi, esi
nop dword [eax + eax]
push edi
push dword [esi*8 + 0x4d7170]
call ebx
add esp, 8
test eax, eax
je 0x41da4a
inc esi
cmp esi, 0x6d
jl 0x41da10
cmp byte [esp + 0x14], 0
jne 0x41da56
xor edx, edx
mov ecx, edi
call fcn.0041d860
movzx ecx, ax
test cx, cx
je 0x41da56
pop edi
pop esi
pop ebx
add esp, 4
jmp fcn.0041e330
mov al, byte [esi*8 + 0x4d7174]
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret

Function at 0x41da60
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
mov ebx, ecx
push edi
mov edi, edx
cmp bl, 0xa
jne 0x41da72
pop edi
mov al, 0xd
pop ebx
pop ecx
ret
push ebp
push esi
push dword [esp + 0x18]
push ebx
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx eax, ax
mov edx, eax
mov dword [esp + 0x10], eax
shr edx, 8
cmp dl, 0xff
jne 0x41dae7
cmp al, 0xff
jne 0x41dae7
cmp byte [esp + 0x1c], 0
je 0x41daf0
movzx ebp, bl
test ebp, 0xffffff80
jne 0x41daf0
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
push 0x103
push ebp
call esi
add esp, 8
test eax, eax
je 0x41daf0
push 2
push ebp
call esi
push 1
push ebp
mov esi, eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 0x10
mov cl, bl
test eax, eax
movzx eax, bl
setne dl
and cl, 0xdf
test esi, esi
movzx ecx, cl
cmove ecx, eax
mov bl, cl
jmp 0x41daeb
mov ebx, dword [esp + 0x10]
test dl, 0x38
je 0x41daf8
pop esi
pop ebp
pop edi
xor al, al
pop ebx
pop ecx
ret
test edi, edi
je 0x41db38
mov al, dl
and al, 6
cmp al, 6
jne 0x41db09
or byte [edi], 8
jmp 0x41db27
test dl, 2
je 0x41db18
mov al, byte [edi]
test al, 3
jne 0x41db18
or al, 1
mov byte [edi], al
test dl, 4
je 0x41db27
mov al, byte [edi]
test al, 0xc
jne 0x41db27
or al, 4
mov byte [edi], al
test dl, 1
je 0x41db38
mov cl, byte [edi]
test cl, 0x30
jne 0x41db38
or cl, 0x10
mov byte [edi], cl
pop esi
pop ebp
pop edi
mov al, bl
pop ebx
pop ecx
ret