joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005240
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 0x14000525c
mov dword [r8], ecx
lea eax, [rdx - 0xc000]
cmp eax, 0x3fff
ja 0x14000533b
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.1400aa898
test eax, eax
je 0x140005328
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x20]
call fcn.1400a82b0
test eax, eax
je 0x140005328
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x20]
call fcn.1400a82b0
test eax, eax
je 0x140005328
lea rdx, str.Native
lea rcx, [rsp + 0x20]
call fcn.1400a82b0
test eax, eax
je 0x140005328
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x20]
call fcn.1400a82b0
test eax, eax
je 0x140005328
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x20]
call fcn.1400a82b0
test eax, eax
je 0x14000531d
lea rdx, str.MSDEVLineSelect
lea rcx, [rsp + 0x20]
call fcn.1400a82b0
test eax, eax
jne 0x140005340
test rbx, rbx
je 0x140005328
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 0x140005360
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
je 0x14000537a
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 [0x140100ea0]
mov edi, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1400053f4
xor esi, esi
nop
mov ecx, dword [0x1400fca64]
cmp ecx, 0xffffffff
je 0x1400053c4
test ecx, ecx
je 0x140005410
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x1400fca64]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x140005410
mov edx, 1
mov dword [0x1400fca50], esi
mov ecx, 0x8000012f
call fcn.1400016e0
mov rcx, qword [0x140100ea0]
mov dword [0x1400fca50], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400053a0
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 0x140009180
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x28
test cl, 0x10
jne 0x1400091c6
cmp dl, 0xa0
je 0x140009193
cmp dl, 0x10
jne 0x140009210
test r8b, r8b
jne 0x140009210
cmp byte [0x140106177], r8b
je 0x1400091cd
xor eax, eax
lea rcx, [0x140106190]
nop word [rax + rax]
cmp byte [rax + rcx], 0
jne 0x1400091cd
inc rax
cmp rax, 0x16
jl 0x1400091b0
mov byte [0x140106177], 0
xor al, al
add rsp, 0x28
ret
cmp byte [0x140106181], 0
je 0x140009210
mov eax, 0x100
test word [0x140106184], ax
jne 0x140009210
movzx eax, byte [0x140106180]
cmp al, 0x2e
ja 0x140009210
movabs rcx, 0x61fe00001000
bt rcx, rax
jae 0x140009210
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140106188]
cmp eax, 0x16
jb 0x1400091c6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401052ec], eax
mov al, 1
add rsp, 0x28
ret
Function at 0x14000c1e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x1040
call fcn.1400bd540
sub rsp, rax
cmp byte [0x140106bc8], 0
mov rbx, rdx
mov rbp, rcx
jne 0x14000c36f
cmp dword [0x140103d44], 0
jne 0x14000c21b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140103d44], eax
inc dword [0x140106bc4]
mov qword [rsp + 0x1050], rsi
mov qword [rsp + 0x1058], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x140106bc4]
mov ecx, eax
sub ecx, dword [0x140103d44]
cmp r9d, dword [0x1400fe3e0]
mov edx, dword [0x1400fe3dc]
mov dword [0x140103d40], eax
jbe 0x14000c2d8
cmp ecx, edx
jae 0x14000c2d8
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.1400882f0
call fcn.14000b040
xor edi, edi
mov byte [0x140106bc8], sil
xor r8d, r8d
mov dword [0x1400fca50], edi
lea edx, [rsi + 3]
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x40]
xorps xmm3, xmm3
call fcn.14008db60
cmp eax, 7
jne 0x14000c2c3
xor r9d, r9d
lea rcx, [0x140105350]
xor r8d, r8d
mov edx, esi
call fcn.140019460
mov eax, dword [0x140103d40]
mov dword [0x1400fca50], esi
mov byte [0x140106bc8], dil
jmp 0x14000c2e0
xor edi, edi
mov esi, edi
cmp ecx, edx
jbe 0x14000c2f0
mov dword [0x140106bc4], edi
mov dword [0x140103d44], eax
test esi, esi
jne 0x14000c35f
movzx eax, byte [rbp + 0x19]
lea r8, [0x1400cbfa8]
mov byte [0x140105eae], al
xor r9d, r9d
inc byte [rbx + 0x22]
mov rcx, qword [rbx]
mov dword [rsp + 0x30], edi
mov rdx, rcx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.14007f550
dec byte [rbx + 0x22]
test eax, eax
jne 0x14000c32b
mov byte [rbx + 0x27], al
jmp 0x14000c35f
cmp byte [rbx + 0x27], 0
je 0x14000c35f
mov byte [rbx + 0x27], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, 0x3e8
ja 0x14000c35f
movzx r8d, word [rbp]
xor r9d, r9d
mov rcx, qword [0x140100ea0]
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 0x1400107e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov word [rax + 0x10], dx
push rbx
push rdi
sub rsp, 0x98
mov qword [rax - 0x18], rsi
movzx ebx, r9b
mov qword [rax - 0x20], r12
movzx esi, cl
mov qword [rax - 0x30], r14
movzx r12d, r8b
mov qword [rax - 0x38], r15
or r12b, r9b
lea eax, [rsi - 1]
cmp al, 5
ja 0x14001081e
cmp cl, 3
jne 0x140010825
lea eax, [rsi + 0x66]
cmp al, 5
ja 0x14001082a
mov r14b, 1
jmp 0x14001082d
xor r14b, r14b
mov eax, dword [rsp + 0xd0]
mov rdi, qword [rsp + 0xe8]
movzx r15d, byte [rsp + 0xe0]
test eax, eax
jle 0x1400109d2
mov qword [rsp + 0xb0], rbp
xor ebx, ebx
mov qword [rsp + 0x80], r13
mov ebp, eax
mov r13d, dword [rsp + 0xd8]
nop dword [rax]
cmp dword [0x140103d48], 0
jne 0x1400108d8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400fca58]
sub eax, dword [0x140105efc]
cmp eax, dword [rcx + 0x118]
jbe 0x1400108df
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400108cc
mov edx, 1
mov dword [0x1400fca50], ebx
or ecx, 0xffffffff
call fcn.1400016e0
mov dword [0x1400fca50], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140105efc], eax
mov rcx, qword [0x1400fca58]
test r15b, r15b
jne 0x14001093d
movzx eax, byte [rcx + 0x136]
test al, al
je 0x1400108fb
movzx eax, al
mov ebx, 0xffc3d44d
sub ebx, eax
jmp 0x140010900
mov ebx, 0xffc3d44f
cmp dword [0x140103d48], 0
je 0x140010912
movzx eax, byte [0x1401061a6]
jmp 0x140010919
xor ecx, ecx
call fcn.140013a30
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8, rdi
mov byte [rsp + 0x20], 1
movzx edx, al
movzx ecx, r12b
call fcn.140013270
mov rcx, qword [0x1400fca58]
xor ebx, ebx
test r14b, r14b
je 0x140010981
test rdi, rdi
jne 0x140010981
movzx eax, byte [rcx + 0x12f]
lea r9d, [rdi + 1]
movzx ecx, byte [rsp + 0x100]
mov r8d, dword [rsp + 0xf8]
mov edx, dword [rsp + 0xf0]
mov byte [rsp + 0x30], cl
movzx ecx, sil
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call fcn.140012230
jmp 0x1400109b0
movzx eax, byte [rcx + 0x136]
mov r9, rdi
movzx r8d, word [rsp + 0xb8]
mov ecx, 0xffc3d44d
sub ecx, eax
movzx edx, sil
mov dword [rsp + 0x28], ecx
mov ecx, r13d
mov byte [rsp + 0x20], 1
call fcn.140010f60
sub rbp, 1
jne 0x140010870
movzx ebx, byte [rsp + 0xc8]
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x78]
test r15b, r15b
mov r15, qword [rsp + 0x70]
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
jne 0x140010a35
cmp dword [0x140103d48], 0
je 0x140010a03
movzx eax, byte [0x1401061a6]
jmp 0x140010a0a
xor ecx, ecx
call fcn.140013a30
movzx ecx, al
xor cl, bl
and cl, al
and cl, 0xcc
je 0x140010a35
not cl
mov dword [rsp + 0x28], 0xffc3d44d
and cl, al
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8, rdi
movzx edx, al
call fcn.140013270
add rsp, 0x98
pop rdi
pop rbx
ret
Function at 0x140010a40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x80
cmp dword [0x140103d48], 2
movzx r14d, r8b
mov ebx, edx
movzx esi, cx
sete bpl
test bpl, bpl
je 0x140010a9b
movzx ecx, cx
lea rdx, [rsp + 0x30]
test ecx, 0xffffff80
je 0x140010a88
mov eax, gethostbyname
lea rdx, [rsp + 0x32]
mov word [rsp + 0x30], ax
mov r8d, 0xa
call fcn.1400a81a8
movzx esi, word [rsp + 0xa8]
test ebx, ebx
jle 0x140010c1c
mov qword [rsp + 0xa0], rdi
mov rdi, rbx
mov qword [rsp + 0xb0], r15
xor r15d, r15d
nop dword [rax]
cmp dword [0x140103d48], r15d
jne 0x140010b2a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400fca58]
sub eax, dword [0x140105efc]
cmp eax, dword [rcx + 0x118]
jbe 0x140010b2a
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140010b1e
mov edx, 1
mov dword [0x1400fca50], r15d
or ecx, 0xffffffff
call fcn.1400016e0
mov dword [0x1400fca50], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140105efc], eax
test bpl, bpl
je 0x140010bd6
cmp dword [0x140103d48], r15d
je 0x140010b45
movzx eax, byte [0x1401061a6]
jmp 0x140010b4c
xor ecx, ecx
call fcn.140013a30
movzx ecx, al
mov dword [rsp + 0x28], 0xffc3d44f
and cl, 0xc4
mov byte [rsp + 0x20], 1
or cl, 4
xor r9d, r9d
xor r8d, r8d
movzx edx, al
call fcn.140013270
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x140010bb6
cmp ax, 0x39
ja 0x140010bb6
movzx edx, byte [rbx]
xor r8d, r8d
add dl, 0x30
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
lea ecx, [r8 + 2]
call fcn.140010f60
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x140010b80
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
call fcn.140010f60
jmp 0x140010be2
movzx edx, r14b
movzx ecx, si
call fcn.14000ef30
cmp dword [0x140103d48], 2
mov rax, qword [0x1400fca58]
jne 0x140010bfa
mov ecx, dword [rax + 0x80]
jmp 0x140010bfd
mov ecx, dword [rax + 0x7c]
call fcn.140012dd0
sub rdi, 1
jne 0x140010ac0
mov r15, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop rsi
pop rbp
ret
Function at 0x1400125d0
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 0x1400127bc
mov r9d, dword [rdx]
cmp r9d, 0x80000000
je 0x1400127bc
cmp dword [0x140103d48], 2
mov qword [rsp + 0x58], rbp
jne 0x140012652
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.1400129d0
call fcn.140012ec0
test bl, bl
je 0x1400127b7
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 0x1400126b8
cmp dword [0x140103d48], 1
jne 0x14001269f
mov eax, dword [0x1401061c0]
cmp eax, 0x80000000
jne 0x140012693
lea rcx, [0x1401061c0]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x1401061c0]
add dword [rdi], eax
mov eax, dword [0x1401061c4]
add dword [rsi], eax
jmp 0x1400126c3
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 0x1400126c3
mov r8d, 2
call fcn.140089980
cmp dword [0x140103d48], 1
jne 0x1400126dc
mov eax, dword [rdi]
mov dword [0x1401061c0], eax
mov eax, dword [rsi]
mov dword [0x1401061c4], 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 0x140012799
cmp ebx, 0x64
jle 0x140012737
lea ebx, [rbp + 0x63]
jmp 0x14001273b
test ebx, ebx
je 0x140012799
cmp dword [0x140103d48], ebp
je 0x140012799
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.140062140
jmp 0x1400127ad
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x8001
call fcn.1400127d0
call fcn.140012ec0
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 0x140012c60
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, 1
movzx esi, dl
cmp dword [0x140103d48], edi
mov rbx, rcx
jne 0x140012d3d
xor al, al
cmp qword [0x140100ec8], 0
movzx ebx, al
cmovne ebx, edi
cmp qword [0x140100ec0], 0
je 0x140012ca3
or bl, 2
test bl, bl
je 0x140012cbb
movzx ecx, byte [0x1401061a7]
movzx edx, dil
not cl
and cl, bl
call fcn.14000a290
mov rdx, qword [0x140103d50]
mov r8d, 0x28
mov ecx, dword [0x1401061b4]
call qword [0x140106118]
test bl, bl
je 0x140012db6
movzx eax, byte [0x1401061a7]
and al, bl
test dil, al
je 0x140012d22
movzx ecx, dil
call fcn.140013a30
movzx r8d, al
xor r8b, sil
movzx edx, r8b
and r8b, al
and dl, sil
not dl
and dl, byte [0x140101c6c]
or dl, r8b
mov byte [0x140101c6c], dl
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [0x140101098], rax
movzx edx, dil
movzx ecx, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14000a290
mov r8, qword [0x140100f08]
lea rdx, [0x140010ce0]
xor esi, esi
xor r9d, r9d
mov ecx, edi
mov dword [0x1401061bc], esi
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140100e78], rax
test rax, rax
je 0x140012db6
mov byte [0x140101c4b], dil
mov edx, edi
mov dword [0x1400fca50], esi
mov ecx, 0x8000012f
call fcn.1400016e0
cmp qword [0x140100e78], rsi
mov dword [0x1400fca50], edi
jne 0x140012d71
mov edx, dword [0x1401061b4]
mov rax, qword [0x1400fe3f0]
dec edx
mov byte [0x140101c4b], sil
mov rcx, qword [rax]
cmp dword [rcx + rdx*8], esi
jne 0x140012db6
mov eax, dword [rcx + rdx*8 + 4]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140012fe0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140100eb8]
test r10, r10
je 0x140013117
movsxd rax, dword [0x140100f18]
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 [0x140100ed4], eax
sub ecx, dword [0x1401052e8]
xorps xmm0, xmm0
mov dword [0x1401052e8], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x140100f18]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x1400ea628]
mov rcx, qword [0x140100eb8]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x1400130d1
cmp rax, qword [0x140100f10]
je 0x1400130b5
movsxd rcx, dword [0x140100f18]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x140100eb8]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x140100f18]
jmp 0x1400130f5
movsxd rdx, dword [0x140100f18]
mov rax, qword [0x140100eb8]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x1400130f5
movsxd rdx, dword [0x140100f18]
movabs r8, 0x41002f004e
mov rax, qword [0x140100eb8]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x140100f10], rbx
cmp edx, dword [0x1400fca60]
mov rbx, qword [rsp + 0x30]
cmovge edx, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x140100f18], edx
add rsp, 0x28
ret

Function at 0x140013120
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 0x14001324d
cmp ebx, esi
je 0x14001324d
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x140013194
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.140010f60
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.140010f60
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x1401052c8]
sete bpl
test bpl, bpl
je 0x1400131f5
mov edx, 1
mov dword [0x1400fca50], 0
or ecx, 0xffffffff
call fcn.1400016e0
mov dword [0x1400fca50], 1
cmp dil, 0x14
jne 0x14001324d
cmp esi, 2
jne 0x14001324d
lea ecx, [rsi + 0x12]
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x14001324d
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.140010f60
test bpl, bpl
je 0x14001324d
lea edx, [rsi - 1]
mov dword [0x1400fca50], 0
or ecx, 0xffffffff
call fcn.1400016e0
mov dword [0x1400fca50], 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 0x140013a30
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x140100ec8], 0
je 0x140013a4e
test cl, cl
jne 0x140013a4e
movzx eax, byte [0x140101c6e]
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 0x140013b3f
or dil, 0x80
cmp qword [0x140100ec8], 0
je 0x140013b85
movzx eax, byte [0x140101c6e]
movzx ecx, dil
not cl
and cl, al
je 0x140013b85
movzx edx, byte [0x140101c6c]
not cl
and byte [0x140101c6d], cl
and dl, cl
and al, cl
mov byte [0x140101c6c], dl
lea rcx, [0x140101c70]
mov byte [0x140101c6e], al
call fcn.140013ba0
movzx eax, dil
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140014000
Capabilities:
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
test rcx, rcx
je 0x140014044
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x48
mov ecx, eax
mov ebx, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x140014044
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140014044
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
add rsp, 0x70
pop rbx
ret
Function at 0x140014060
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
xor r8d, r8d
lea rcx, [0x140103d60]
nop dword [rax]
nop word [rax + rax]
movsxd rax, r8d
add rax, rax
mov r9, qword [rcx + rax*8]
test r9, r9
je 0x14001409d
cmp r9, rsi
je 0x1400140d0
inc r8d
cmp r8d, 0xa
jl 0x140014080
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 0x1400140f5
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 0x1400140e5
movsxd rax, r8d
add rax, rax
cmp dword [rcx + rax*8 + 8], 0
jne 0x1400140e5
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 0x14001412a
and ax, bp
cmp ax, bp
je 0x140014136
inc ebx
cmp ebx, 0xffff
jle 0x140014110
jmp 0x14001413d
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 0x140014160
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push rbp
push r13
push r14
sub rsp, 0x80
lea rdx, [rsp + 0x20]
mov ecx, 0xa
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor r13d, r13d
movsxd r14, eax
mov ebp, r13d
test eax, eax
jle 0x140014273
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0x78], r12
lea r12, [0x140103d60]
mov qword [rsp + 0x70], r15
mov r15d, 0x600
mov qword [rsp + 0xa8], rsi
nop dword [rax]
mov rdi, qword [rsp + rbp*8 + 0x20]
mov eax, r13d
nop dword [rax + rax]
movsxd rcx, eax
add rcx, rcx
mov rdx, qword [r12 + rcx*8]
test rdx, rdx
je 0x1400141eb
cmp rdx, rdi
je 0x140014245
inc eax
cmp eax, 0xa
jl 0x1400141d0
cmp eax, 0xa
mov ecx, 9
mov ebx, SafeArrayAllocDescriptor
cmovl ecx, eax
movsxd rsi, ecx
add rsi, rsi
mov dword [r12 + rsi*8 + 8], r13d
nop word [rax + rax]
mov rdx, rdi
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
cmp ax, 0xffff
je 0x14001422c
and ax, r15w
cmp ax, r15w
je 0x140014238
inc ebx
cmp ebx, 0xffff
jle 0x140014210
jmp 0x140014241
mov dword [r12 + rsi*8 + 8], 3
mov qword [r12 + rsi*8], rdi
inc rbp
cmp rbp, r14
jl 0x1400141c0
mov r15, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop r14
pop r13
pop rbp
ret