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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
xor ecx, ecx
mov rbx, r8
mov edi, edx
test r8, r8
je 0x1400055dc
mov dword [r8], ecx
lea eax, [rdx - 0xc000]
cmp eax, 0x3fff
ja 0x1400056bb
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
lea rdx, str.Link_Source
lea rcx, [rsp + 0x20]
call fcn.1400cab68
test eax, eax
je 0x1400056a8
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x20]
call fcn.1400c8580
test eax, eax
je 0x1400056a8
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x20]
call fcn.1400c8580
test eax, eax
je 0x1400056a8
lea rdx, str.Native
lea rcx, [rsp + 0x20]
call fcn.1400c8580
test eax, eax
je 0x1400056a8
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x20]
call fcn.1400c8580
test eax, eax
je 0x1400056a8
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x20]
call fcn.1400c8580
test eax, eax
je 0x14000569d
lea rdx, str.MSDEVLineSelect
lea rcx, [rsp + 0x20]
call fcn.1400c8580
test eax, eax
jne 0x1400056c0
test rbx, rbx
je 0x1400056a8
mov dword [rbx], 1
xor eax, eax
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
mov word [rsp + 0x20], cx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
je 0x1400056fa
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140134420]
mov edi, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140005774
xor esi, esi
nop
mov ecx, dword [0x14012fa64]
cmp ecx, 0xffffffff
je 0x140005744
test ecx, ecx
je 0x140005790
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x14012fa64]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x140005790
mov edx, 1
mov dword [0x14012fa50], esi
mov ecx, 0x8000012f
call fcn.1400018b0
mov rcx, qword [0x140134420]
mov dword [0x14012fa50], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140005720
mov rsi, qword [rsp + 0x30]
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov dword [rbx + 0x2c], 1
add rsp, 0x20
pop rbx
ret
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x140009570
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x28
test cl, 0x10
jne 0x1400095b6
cmp dl, 0xa0
je 0x140009583
cmp dl, 0x10
jne 0x140009600
test r8b, r8b
jne 0x140009600
cmp byte [0x14013a449], r8b
je 0x1400095bd
xor eax, eax
lea rcx, [0x14013a460]
nop word [rax + rax]
cmp byte [rax + rcx], 0
jne 0x1400095bd
inc rax
cmp rax, 0x16
jl 0x1400095a0
mov byte [0x14013a449], 0
xor al, al
add rsp, 0x28
ret
cmp byte [0x14013a44b], 0
je 0x140009600
mov eax, 0x100
test word [0x14013a44c], ax
jne 0x140009600
movzx eax, byte [0x14013a44a]
cmp al, 0x2e
ja 0x140009600
movabs rcx, 0x61fe00001000
bt rcx, rax
jae 0x140009600
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14013a458]
cmp eax, 0x16
jb 0x1400095b6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14013a3bc], eax
mov al, 1
add rsp, 0x28
ret
Function at 0x14000c490
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x1040
call fcn.1400decd0
sub rsp, rax
cmp byte [0x14013ae9c], 0
mov rbx, rdx
mov rbp, rcx
jne 0x14000c61f
cmp dword [0x14013731c], 0
jne 0x14000c4cb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14013731c], eax
inc dword [0x14013ae98]
mov qword [rsp + 0x1050], rsi
mov qword [rsp + 0x1058], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x14013ae98]
mov ecx, eax
sub ecx, dword [0x14013731c]
cmp r9d, dword [0x140131480]
mov edx, dword [0x14013146c]
mov dword [0x140137318], eax
jbe 0x14000c588
cmp ecx, edx
jae 0x14000c588
mov dword [rsp + 0x20], ecx
lea r8, str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
lea rcx, [rsp + 0x40]
mov edx, 0x800
mov esi, 1
call fcn.1400a6680
call fcn.14000b3e0
xor edi, edi
mov byte [0x14013ae9c], sil
xor r8d, r8d
mov dword [0x14012fa50], edi
lea edx, [rsi + 3]
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x40]
xorps xmm3, xmm3
call fcn.1400ad390
cmp eax, 7
jne 0x14000c573
xor r9d, r9d
lea rcx, [0x1401395c0]
xor r8d, r8d
mov edx, esi
call fcn.140023360
mov eax, dword [0x140137318]
mov dword [0x14012fa50], esi
mov byte [0x14013ae9c], dil
jmp 0x14000c590
xor edi, edi
mov esi, edi
cmp ecx, edx
jbe 0x14000c5a0
mov dword [0x14013ae98], edi
mov dword [0x14013731c], eax
test esi, esi
jne 0x14000c60f
movzx eax, byte [rbp + 0x19]
lea r8, [0x1400ee1b8]
mov byte [0x14013a14e], al
xor r9d, r9d
inc byte [rbx + 0x37]
mov rcx, qword [rbx]
mov dword [rsp + 0x30], edi
mov rdx, rcx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.1400949a0
dec byte [rbx + 0x37]
test eax, eax
jne 0x14000c5db
mov byte [rbx + 0x3c], al
jmp 0x14000c60f
cmp byte [rbx + 0x3c], 0
je 0x14000c60f
mov byte [rbx + 0x3c], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 8]
cmp eax, 0x3e8
ja 0x14000c60f
movzx r8d, word [rbp]
xor r9d, r9d
mov rcx, qword [0x140134420]
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
mov rsi, qword [rsp + 0x1050]
mov rdi, qword [rsp + 0x1058]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1040
pop rbp
ret
Function at 0x140010ca0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov word [rax + 0x10], dx
push rbx
push rsi
sub rsp, 0x98
mov qword [rax + 8], rbp
movzx esi, r9b
mov qword [rax - 0x18], rdi
movzx edi, cl
mov qword [rax - 0x20], r12
movzx r12d, r8b
mov qword [rax - 0x30], r14
or r12b, r9b
lea eax, [rdi - 1]
cmp al, 5
ja 0x140010cde
cmp cl, 3
jne 0x140010ce5
lea eax, [rdi + 0x66]
cmp al, 5
ja 0x140010cea
mov bpl, 1
jmp 0x140010ced
xor bpl, bpl
mov eax, dword [rsp + 0xd0]
mov rbx, qword [rsp + 0xe8]
movzx r14d, byte [rsp + 0xe0]
test eax, eax
jle 0x140010e87
mov qword [rsp + 0x80], r13
mov esi, eax
movzx r13d, byte [rsp + 0x100]
mov qword [rsp + 0x70], r15
mov r15d, dword [rsp + 0xd8]
nop dword [rax]
cmp dword [0x140137320], 0
jne 0x140010da0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012fa58]
sub eax, dword [0x14013a19c]
cmp eax, dword [rcx + 0x118]
jbe 0x140010da0
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140010d94
mov edx, 1
mov dword [0x14012fa50], 0
or ecx, 0xffffffff
call fcn.1400018b0
mov dword [0x14012fa50], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14013a19c], eax
test r14b, r14b
jne 0x140010dee
cmp dword [0x140137320], 0
je 0x140010db7
movzx eax, byte [0x14013a45e]
jmp 0x140010dbe
xor ecx, ecx
call fcn.140014120
mov rcx, qword [0x14012fa58]
xor r9d, r9d
mov r8, rbx
movzx edx, byte [rcx + 0x136]
mov ecx, 0xffc3d44d
sub ecx, edx
movzx edx, al
mov dword [rsp + 0x28], ecx
movzx ecx, r12b
mov byte [rsp + 0x20], 1
call fcn.140013930
test bpl, bpl
je 0x140010e32
test rbx, rbx
jne 0x140010e32
mov rax, qword [0x14012fa58]
lea r9d, [rbx + 1]
mov r8d, dword [rsp + 0xf8]
mov edx, dword [rsp + 0xf0]
mov byte [rsp + 0x30], r13b
movzx ecx, byte [rax + 0x12f]
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], ecx
movzx ecx, dil
call fcn.1400126f0
jmp 0x140010e68
mov rax, qword [0x14012fa58]
mov r9, rbx
movzx r8d, word [rsp + 0xb8]
movzx edx, dil
movzx ecx, byte [rax + 0x136]
mov eax, 0xffc3d44d
sub eax, ecx
mov ecx, r15d
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], 1
call fcn.1400113e0
sub rsi, 1
jne 0x140010d30
movzx esi, byte [rsp + 0xc8]
mov r15, qword [rsp + 0x70]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
test r14b, r14b
mov r14, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xb0]
jne 0x140010eee
cmp dword [0x140137320], 0
je 0x140010ebb
movzx eax, byte [0x14013a45e]
jmp 0x140010ec2
xor ecx, ecx
call fcn.140014120
movzx ecx, al
xor cl, sil
and cl, al
and cl, 0xcc
je 0x140010eee
not cl
mov dword [rsp + 0x28], 0xffc3d44d
and cl, al
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8, rbx
movzx edx, al
call fcn.140013930
add rsp, 0x98
pop rsi
pop rbx
ret
Function at 0x140010f00
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x80
movzx esi, cx
mov ebx, edx
lea rdx, [rsp + 0x30]
mov ecx, esi
test esi, 0xffffff80
je 0x140010f30
mov eax, gethostbyname
lea rdx, [rsp + 0x32]
mov word [rsp + 0x30], ax
mov r8d, 0xa
call fcn.1400c8478
test ebx, ebx
jle 0x14001109e
mov qword [rsp + 0x90], rbp
xor ebp, ebp
mov qword [rsp + 0x98], rdi
mov rdi, rbx
cmp dword [0x140137320], ebp
jne 0x140010fbf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012fa58]
sub eax, dword [0x14013a19c]
cmp eax, dword [rcx + 0x118]
jbe 0x140010fbf
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140010fb3
mov edx, 1
mov dword [0x14012fa50], ebp
or ecx, 0xffffffff
call fcn.1400018b0
mov dword [0x14012fa50], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14013a19c], eax
cmp dword [0x140137320], 2
je 0x140010fd8
or edx, 0xffffffff
movzx ecx, si
call fcn.14000f300
jmp 0x140011064
movzx edx, byte [0x14013a45e]
xor r9d, r9d
movzx ecx, dl
mov dword [rsp + 0x28], 0xffc3d44f
and cl, 0xc4
mov byte [rsp + 0x20], 1
or cl, 4
xor r8d, r8d
call fcn.140013930
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x140011046
cmp ax, 0x39
ja 0x140011046
movzx edx, byte [rbx]
xor r8d, r8d
add dl, 0x30
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], bpl
lea ecx, [r8 + 2]
call fcn.1400113e0
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x140011010
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], bpl
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
call fcn.1400113e0
cmp dword [0x140137320], 2
mov rax, qword [0x14012fa58]
jne 0x14001107c
mov ecx, dword [rax + 0x80]
jmp 0x14001107f
mov ecx, dword [rax + 0x7c]
call fcn.140013430
sub rdi, 1
jne 0x140010f58
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rsi
ret
Function at 0x140012a90
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx]
mov ebx, r9d
mov rsi, rdx
mov rdi, rcx
cmp eax, 0x80000000
je 0x140012c7c
mov r9d, dword [rdx]
cmp r9d, 0x80000000
je 0x140012c7c
cmp dword [0x140137320], 2
mov qword [rsp + 0x58], rbp
jne 0x140012b12
movzx ebx, byte [rsp + 0x70]
mov ecx, 0x80000001
test bl, bl
mov ebp, 1
mov r8d, eax
cmovne ebp, ecx
xor edx, edx
mov ecx, ebp
call fcn.140012e90
call fcn.140013550
test bl, bl
je 0x140012c77
mov rbp, qword [rsp + 0x58]
mov dword [rdi], 0x80000000
mov dword [rsi], 0x80000000
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
or dword [r8], 0x8001
cmp byte [rsp + 0x70], 0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
je 0x140012b78
cmp dword [0x140137320], 1
jne 0x140012b5f
mov eax, dword [0x14013a498]
cmp eax, 0x80000000
jne 0x140012b53
lea rcx, [0x14013a498]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x14013a498]
add dword [rdi], eax
mov eax, dword [0x14013a49c]
add dword [rsi], eax
jmp 0x140012b83
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x50]
add dword [rdi], eax
mov eax, dword [rsp + 0x54]
add dword [rsi], eax
jmp 0x140012b83
mov r8d, 2
call fcn.1400a7d10
cmp dword [0x140137320], 1
jne 0x140012b9c
mov eax, dword [rdi]
mov dword [0x14013a498], eax
mov eax, dword [rsi]
mov dword [0x14013a49c], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, 1
mov r14d, eax
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [rdi]
mov r15d, eax
mov eax, ecx
sar ecx, 0x1f
shl eax, 0x10
and ecx, 0xfffffffe
cdq
inc ecx
idiv r14d
add ecx, eax
mov dword [rdi], ecx
mov ecx, dword [rsi]
mov eax, ecx
shl eax, 0x10
cdq
sar ecx, 0x1f
idiv r15d
and ecx, 0xfffffffe
lea r9d, [rcx + 1]
add r9d, eax
mov dword [rsi], r9d
test ebx, ebx
js 0x140012c59
cmp ebx, 0x64
jle 0x140012bf7
lea ebx, [rbp + 0x63]
jmp 0x140012bfb
test ebx, ebx
je 0x140012c59
cmp dword [0x140137320], ebp
je 0x140012c59
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r8d, dword [rsp + 0x54]
or r9d, 0xffffffff
mov rcx, qword [rsp + 0x50]
mov eax, r8d
shl eax, 0x10
mov r10d, ebp
cdq
mov dword [rsp + 0x20], ebx
idiv r15d
test r8d, r8d
mov r8d, dword [rdi]
cmovs r10d, r9d
add r10d, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv r14d
test ecx, ecx
mov edx, r10d
cmovs ebp, r9d
mov r9d, dword [rsi]
lea ecx, [rax + rbp]
call fcn.140074810
jmp 0x140012c6d
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x8001
call fcn.140012c90
call fcn.140013550
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400136a0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140134440]
test r10, r10
je 0x1400137d7
movsxd rax, dword [0x1401344d0]
imul r9, rax, 0xd4
mov eax, 0x69
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [r9 + r10 + 6], cl
mov byte [r9 + r10], dl
mov word [r9 + r10 + 2], r8w
mov word [r9 + r10 + 4], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x14013445c], eax
sub ecx, dword [0x14013a3b8]
xorps xmm0, xmm0
mov dword [0x14013a3b8], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x1401344d0]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x14011bbe8]
mov rcx, qword [0x140134440]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140013791
cmp rax, qword [0x1401344c8]
je 0x140013775
movsxd rcx, dword [0x1401344d0]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x140134440]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x1401344d0]
jmp 0x1400137b5
movsxd rdx, dword [0x1401344d0]
mov rax, qword [0x140134440]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x1400137b5
movsxd rdx, dword [0x1401344d0]
movabs r8, 0x41002f004e
mov rax, qword [0x140134440]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x1401344c8], rbx
cmp edx, dword [0x14012fa60]
mov rbx, qword [rsp + 0x30]
cmovge edx, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x1401344d0], edx
add rsp, 0x28
ret

Function at 0x1400137e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movzx edi, cl
mov esi, edx
mov ecx, edi
mov ebp, edi
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
lea r8d, [rsi - 1]
neg al
sbb ebx, ebx
add ebx, 2
cmp r8d, 1
ja 0x14001390d
cmp ebx, esi
je 0x14001390d
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x140013854
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 1]
call fcn.1400113e0
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 2]
call fcn.1400113e0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140139538]
sete bpl
test bpl, bpl
je 0x1400138b5
mov edx, 1
mov dword [0x14012fa50], 0
or ecx, 0xffffffff
call fcn.1400018b0
mov dword [0x14012fa50], 1
cmp dil, 0x14
jne 0x14001390d
cmp esi, 2
jne 0x14001390d
lea ecx, [rsi + 0x12]
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x14001390d
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, esi
call fcn.1400113e0
test bpl, bpl
je 0x14001390d
lea edx, [rsi - 1]
mov dword [0x14012fa50], 0
or ecx, 0xffffffff
call fcn.1400018b0
mov dword [0x14012fa50], 1
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140014120
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x140134450], 0
je 0x14001413e
test cl, cl
jne 0x14001413e
movzx eax, byte [0x14013522e]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xb
mov ecx, 0xa1
and al, 0x10
movzx ebx, al
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
mov esi, 0x8000
or cl, 0x20
movzx edx, cl
and ax, si
mov ecx, 0xa2
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 1
movzx edx, cl
and ax, si
mov ecx, 0xa3
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 2
movzx edx, cl
and ax, si
mov ecx, 0xa4
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 4
movzx edx, cl
and ax, si
mov ecx, 0xa5
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 8
movzx edx, cl
and ax, si
mov ecx, 0x5b
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x40
movzx edi, cl
and ax, si
mov ecx, 0x5c
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rbx, qword [rsp + 0x30]
test si, ax
mov rsi, qword [rsp + 0x38]
je 0x14001422f
or dil, 0x80
cmp qword [0x140134450], 0
je 0x140014275
movzx eax, byte [0x14013522e]
movzx ecx, dil
not cl
and cl, al
je 0x140014275
movzx edx, byte [0x14013522c]
not cl
and byte [0x14013522d], cl
and dl, cl
and al, cl
mov byte [0x14013522c], dl
lea rcx, [0x140135230]
mov byte [0x14013522e], al
call fcn.140014290
movzx eax, dil
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140014690
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1400146ac
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor ecx, ecx
lea r9, [0x140137330]
mov rdi, rax
movsxd rdx, ecx
add rdx, rdx
mov r8, qword [r9 + rdx*8]
test r8, r8
je 0x1400146db
cmp r8, rdi
je 0x140014736
inc ecx
cmp ecx, 0xa
jl 0x1400146c0
mov qword [rsp + 0x30], rbx
cmp ecx, 0xa
mov qword [rsp + 0x38], rbp
mov eax, 9
cmovl eax, ecx
mov qword [rsp + 0x40], rsi
movsxd rsi, eax
mov ebx, SafeArrayAllocDescriptor
shl rsi, 4
mov ebp, 0x600
add rsi, r9
mov dword [rsi + 8], 0
mov rdx, rdi
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
cmp ax, 0xffff
je 0x14001472a
and ax, bp
cmp ax, bp
je 0x14001474d
inc ebx
cmp ebx, 0xffff
jle 0x140014710
jmp 0x140014754
movsxd rax, ecx
add rax, rax
mov ecx, dword [r9 + rax*8 + 8]
cmp ecx, 3
sete al
add rsp, 0x20
pop rdi
ret
mov dword [rsi + 8], 3
mov ecx, dword [rsi + 8]
cmp ecx, 3
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
sete al
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140014780
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
xor r8d, r8d
lea rcx, [0x140137330]
nop dword [rax]
nop word [rax + rax]
movsxd rax, r8d
add rax, rax
mov r9, qword [rcx + rax*8]
test r9, r9
je 0x1400147bd
cmp r9, rsi
je 0x1400147f0
inc r8d
cmp r8d, 0xa
jl 0x1400147a0
mov qword [rsp + 0x40], rdi
cmp r8d, 0xa
mov eax, 9
cmovl eax, r8d
movsxd rdi, eax
shl rdi, 4
add rdi, rcx
test edx, edx
je 0x140014815
mov dword [rdi + 8], edx
mov eax, edx
mov qword [rdi], rsi
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
test edx, edx
je 0x140014805
movsxd rax, r8d
add rax, rax
cmp dword [rcx + rax*8 + 8], 0
jne 0x140014805
mov dword [rcx + rax*8 + 8], edx
movsxd rax, r8d
add rax, rax
mov eax, dword [rcx + rax*8 + 8]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbx
mov ebx, SafeArrayAllocDescriptor
mov qword [rsp + 0x38], rbp
mov ebp, 0x600
mov dword [rdi + 8], 0
mov rdx, rsi
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
cmp ax, 0xffff
je 0x14001484a
and ax, bp
cmp ax, bp
je 0x140014856
inc ebx
cmp ebx, 0xffff
jle 0x140014830
jmp 0x14001485d
mov dword [rdi + 8], 3
mov eax, dword [rdi + 8]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov qword [rdi], rsi
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret

Function at 0x140014a00
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rdx
push rsi
push rdi
sub rsp, 0x158
movzx esi, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [rsi - 0x41]
mov rdi, rax
cmp dl, 0x19
ja 0x140014b73
mov qword [rsp + 0x150], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x148], rbp
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x140], r14
call fcn.1400c7510
xor ebx, ebx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 2
xor edx, edx
lea ecx, [rbx + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x180]
cmp eax, 2
movzx ecx, sil
movzx ebp, bx
mov dword [rsp + 0x28], ebx
cmove bp, word [rsp + 0x180]
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r14d, eax
test eax, eax
jns 0x140014ae6
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x178]
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 2
lea ecx, [rbx + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test bp, bp
je 0x140014b41
mov r8, rdi
lea rdx, [rsp + 0x170]
movzx ecx, bp
call fcn.140014db0
movzx esi, al
test al, al
je 0x140014b41
movzx edx, byte [rsp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.140014290
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x178]
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x40]
xor edx, edx
movzx ecx, sil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rbp, qword [rsp + 0x148]
test r14d, r14d
mov r14, qword [rsp + 0x140]
je 0x140014b5e
movzx ebx, word [rsp + 0x180]
movzx eax, bx
mov rbx, qword [rsp + 0x150]
add rsp, 0x158
pop rdi
pop rsi
ret
movzx ecx, sil
mov r8, rdi
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
add rsp, 0x158
pop rdi
pop rsi
ret