joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
lea r15, [0x1401166a8]
mov esi, r12d
lea r14, [0x1401154b0]
cmp byte [r15], r12b
je 0x140004844
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WSOCK32.dll_gethostbyname
mov ecx, esi
mov dword [rsp + 0x24], 0x80
call qword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x140004844
mov eax, dword [rsp + 0x40]
mov ebp, eax
xor ebp, dword [r14]
mov dword [r14], eax
and ebp, eax
je 0x140004844
movzx edx, word [0x1401166d8]
mov ebx, r12d
cmp r12w, dx
jae 0x140004844
mov rdi, r12
nop
mov rax, qword [0x1401166c8]
mov rax, qword [rdi + rax]
cmp byte [rax + 0x12], 4
jne 0x140004837
movzx ecx, byte [rax + 0x10]
cmp ecx, esi
jne 0x140004837
movzx ecx, word [rax + 8]
sub ecx, 0xc
movzx eax, cl
bt ebp, eax
jae 0x140004837
mov rcx, qword [0x1401156f0]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
movzx edx, word [0x1401166d8]
inc ebx
movzx eax, dx
add rdi, 8
cmp ebx, eax
jl 0x1400047f0
inc esi
inc r15
add r14, 4
cmp esi, 0x10
jl 0x1400047a2
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400066e0
Capabilities:
Write clipboard data

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
jne 0x14000670c
call fcn.140006a00
test eax, eax
jne 0x14000670c
lea rdx, str.Cant_open_clipboard_for_writing.
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140006830
mov qword [rsp + 0x38], rdi
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x14000675a
cmp dword [rbx + 0x2c], eax
je 0x140006741
xor edi, edi
cmp qword [rbx + 0x10], rdi
je 0x140006735
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], edi
mov qword [rbx], rdi
lea rdx, [0x1400e0c58]
mov rcx, rbx
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x140006830
mov rdx, qword [rbx + 8]
xor edi, edi
test rdx, rdx
je 0x1400067a8
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x30], rsi
xor sil, sil
test rax, rax
je 0x140006791
cmp word [rax], di
mov rcx, rdx
sete sil
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x28], edi
test sil, sil
mov rsi, qword [rsp + 0x30]
je 0x1400067dc
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
cmp dword [rbx + 0x2c], edi
je 0x1400067cc
cmp qword [rbx + 0x10], rdi
je 0x1400067c0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], edi
mov qword [rbx], rdi
mov rdi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov ecx, SafeArrayDestroy
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400067f2
mov qword [rbx + 8], rdi
jmp 0x1400067a8
cmp dword [rbx + 0x2c], edi
je 0x140006816
cmp qword [rbx + 0x10], rdi
je 0x14000680a
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], edi
mov qword [rbx], rdi
lea rdx, [0x1400e0c78]
mov rcx, rbx
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x140006830
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0x2c], esi
je 0x14000686b
cmp qword [rcx + 0x10], rsi
je 0x14000685f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], esi
mov qword [rbx], rsi
cmp qword [rbx + 0x18], rsi
je 0x140006882
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x28], esi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140006895
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
cmp word [rdi], si
je 0x1400068bf
lea r8, [0x1400e0684]
mov rdx, rdi
lea rcx, [0x140118bf0]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14004dd50
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400068e0
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 0x1400068fc
mov dword [r8], ecx
lea eax, [rdx - 0xc000]
cmp eax, 0x3fff
ja 0x1400069e2
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 qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1400069cf
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400069cf
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400069cf
lea rdx, str.Native
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400069cf
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400069cf
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400069c4
lea rdx, str.MSDEVLineSelect
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400069e7
test rbx, rbx
je 0x1400069cf
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 0x140006a00
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
je 0x140006a1a
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 [0x1401156f0]
mov edi, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140006a94
xor esi, esi
nop
mov ecx, dword [0x140112070]
cmp ecx, 0xffffffff
je 0x140006a64
test ecx, ecx
je 0x140006ab0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x140112070]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x140006ab0
mov edx, 1
mov dword [0x140112054], esi
mov ecx, 0x8000012f
call fcn.1400018c0
mov rcx, qword [0x1401156f0]
mov dword [0x140112054], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140006a40
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 0x1400070c0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
cmp byte [0x1401197d0], 0
mov rbp, rdx
mov rdi, rcx
je 0x14000719a
mov esi, dword gs:[0x48]
cmp dword [0x140117b88], esi
je 0x1400070fc
mov rcx, qword [0x140118bd0]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140007103
cmp word [rdi], 0
je 0x1400071a9
lea rax, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
mov rdx, rdi
mov dword [rsp + 0x20], 3
lea rcx, [0x140118bf0]
call fcn.14003d2b0
test rax, rax
jne 0x14000716e
cmp byte [rsp + 0x60], al
lea rcx, [0x140118bf0]
mov r9d, dword [rsp + 0x68]
mov r8, rbx
setne al
mov rdx, rdi
inc eax
mov dword [rsp + 0x20], eax
call fcn.14003d7f0
test rax, rax
je 0x1400071a9
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rdx, rbp
mov rcx, rax
lea r8, [r9 - 1]
call fcn.1400c3f40
cmp dword [0x140117b88], esi
je 0x14000719a
mov rcx, qword [0x140118bd0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
cmp dword [0x140117b88], esi
je 0x1400071be
mov rcx, qword [0x140118bd0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x50]
mov eax, 0xffffffff
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ef80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor edx, edx
xor ecx, ecx
call fcn.14000d590
mov rcx, qword [0x1401156b8]
test rcx, rcx
je 0x14000efad
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
movzx edx, word [0x1401166d8]
xor ebx, ebx
cmp bx, dx
jae 0x14000effe
mov qword [rsp + 0x30], rdi
mov edi, ebx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x1401166c8]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14000efec
call fcn.14000f010
movzx edx, word [0x1401166d8]
inc ebx
movzx eax, dx
add rdi, 8
cmp ebx, eax
jl 0x14000efd0
mov rdi, qword [rsp + 0x30]
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14000f6b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov eax, 0x1040
call fcn.1400ddab0
sub rsp, rax
cmp byte [0x14011b1e4], 0
mov rbx, rdx
mov rsi, rcx
jne 0x14000f894
cmp dword [0x1401166e0], 0
jne 0x14000f6eb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401166e0], eax
inc dword [0x14011b1e0]
mov qword [rsp + 0x1050], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x14011b1e0]
mov ecx, eax
sub ecx, dword [0x1401166e0]
cmp r9d, dword [0x140113a94]
mov edx, dword [0x140113a90]
mov dword [0x1401166dc], eax
jbe 0x14000f80a
cmp ecx, edx
jae 0x14000f80a
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
call fcn.1400bf0b0
movzx r9d, word [0x1401166d8]
xor edi, edi
mov r8d, edi
cmp di, r9w
jae 0x14000f7a5
mov edx, edi
nop
mov rax, qword [0x1401166c8]
mov rcx, qword [rdx + rax]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000f795
nop dword [rax]
nop dword [rax + rax]
mov byte [rax + 0x27], dil
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14000f780
movzx r9d, word [0x1401166d8]
inc r8d
movzx eax, r9w
add rdx, 8
cmp r8d, eax
jl 0x14000f760
xor r8d, r8d
mov byte [0x14011b1e4], 1
xorps xmm3, xmm3
mov dword [0x140112054], edi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
lea edx, [r8 + 4]
call fcn.1400c64e0
cmp eax, 7
jne 0x14000f7e2
xor r8d, r8d
lea edx, [rax - 3]
lea rcx, [0x140118bf0]
call fcn.14002c310
mov eax, dword [0x1401166dc]
mov dword [0x1401166e0], eax
mov dword [0x140112054], 1
mov byte [0x14011b1e4], dil
mov dword [0x14011b1e0], edi
jmp 0x14000f88c
xor edi, edi
cmp ecx, edx
jbe 0x14000f81c
mov dword [0x14011b1e0], edi
mov dword [0x1401166e0], eax
movzx eax, byte [rsi + 0xf]
lea r8, [0x1400e0708]
mov byte [0x14011979e], 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.1400a9aa0
dec byte [rbx + 0x22]
test eax, eax
jne 0x14000f858
mov byte [rbx + 0x27], dil
jmp 0x14000f88c
cmp byte [rbx + 0x27], dil
je 0x14000f88c
mov byte [rbx + 0x27], dil
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, 0x3e8
ja 0x14000f88c
movzx r8d, word [rsi + 4]
xor r9d, r9d
mov rcx, qword [0x1401156f0]
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
mov rdi, qword [rsp + 0x1050]
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1040
pop rsi
ret
Function at 0x1400113a0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
movzx r8d, byte [0x14011655d]
or r8b, 2
cmp qword [0x140115718], 0
mov byte [0x14011655d], r8b
jne 0x1400113d8
movzx edx, word [0x1401166d8]
movzx r9d, byte [0x14011655e]
mov rcx, qword [0x1401166c8]
jmp fcn.14000c560
ret
Function at 0x140016e00
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov word [rax + 0x10], dx
push rsi
push rdi
sub rsp, 0x98
mov qword [rax + 8], rbx
movzx edi, r9b
mov qword [rax - 0x18], rbp
movzx ebx, dx
mov qword [rax - 0x20], r12
movzx ebp, cl
mov qword [rax - 0x28], r13
movzx r13d, r8b
mov qword [rax - 0x38], r15
or r13b, r9b
lea eax, [rbp - 1]
cmp al, 5
ja 0x140016e45
cmp cl, 3
jne 0x140016e4c
lea eax, [rbp + 0x66]
cmp al, 5
ja 0x140016e51
mov r15b, 1
jmp 0x140016e54
xor r15b, r15b
mov eax, dword [rsp + 0xd0]
mov rsi, qword [rsp + 0xe8]
movzx r12d, byte [rsp + 0xe0]
test eax, eax
jle 0x140016fde
mov edi, dword [rsp + 0xd8]
mov qword [rsp + 0x78], r14
mov r14d, eax
cmp dword [0x140119b54], 0
jne 0x140016ef3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140112060]
sub eax, dword [0x1401197ec]
cmp eax, dword [rcx + 0x118]
jbe 0x140016efa
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 0x140016ee7
mov edx, 1
mov dword [0x140112054], 0
lea ecx, [rdx - 2]
call fcn.1400018c0
mov dword [0x140112054], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401197ec], eax
mov rcx, qword [0x140112060]
test r12b, r12b
jne 0x140016f5b
movzx eax, byte [rcx + 0x136]
test al, al
je 0x140016f13
mov ebx, 0xffc3d44d
sub ebx, eax
jmp 0x140016f18
mov ebx, 0xffc3d44f
cmp dword [0x140119b54], 0
je 0x140016f2a
movzx eax, byte [0x140119b50]
jmp 0x140016f31
xor ecx, ecx
call fcn.14001a330
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8, rsi
mov byte [rsp + 0x20], 1
movzx edx, al
movzx ecx, r13b
call fcn.140019aa0
mov rcx, qword [0x140112060]
movzx ebx, word [rsp + 0xb8]
test r15b, r15b
je 0x140016f9e
test rsi, rsi
jne 0x140016f9e
movzx eax, byte [rcx + 0x12f]
lea r9d, [rsi + 1]
movzx ecx, byte [rsp + 0x100]
mov r8d, dword [rsp + 0xf8]
mov edx, dword [rsp + 0xf0]
mov byte [rsp + 0x30], cl
movzx ecx, bpl
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.1400186d0
jmp 0x140016fc7
movzx eax, byte [rcx + 0x136]
mov r9, rsi
mov ecx, 0xffc3d44d
movzx r8d, bx
sub ecx, eax
movzx edx, bpl
mov dword [rsp + 0x28], ecx
mov ecx, edi
mov byte [rsp + 0x20], 1
call fcn.140017570
sub r14, 1
jne 0x140016e83
movzx edi, byte [rsp + 0xc8]
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
test r12b, r12b
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb0]
jne 0x14001704b
cmp dword [0x140119b54], 0
je 0x14001701a
movzx eax, byte [0x140119b50]
jmp 0x140017021
xor ecx, ecx
call fcn.14001a330
not dil
and dil, al
and dil, 0xcc
je 0x14001704b
mov dword [rsp + 0x28], 0xffc3d44d
mov r9b, 1
mov r8, rsi
mov byte [rsp + 0x20], 0
movzx edx, dil
xor ecx, ecx
call fcn.140019aa0
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x140017060
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x80
cmp dword [0x140119b54], 2
movzx r14d, r8b
mov ebx, edx
sete bpl
movzx esi, cx
jne 0x1400170b5
mov eax, esi
mov ecx, esi
and eax, 0xffffff80
je 0x140017099
mov edx, gethostbyname
mov word [rsp + 0x30], dx
lea r8, [rsp + 0x32]
test eax, eax
lea rdx, [rsp + 0x30]
cmovne rdx, r8
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
test ebx, ebx
jle 0x14001722c
mov qword [rsp + 0xa0], rdi
mov rdi, rbx
mov qword [rsp + 0xa8], r15
xor r15d, r15d
cmp dword [0x140119b54], r15d
jne 0x14001713d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140112060]
sub eax, dword [0x1401197ec]
cmp eax, dword [rcx + 0x118]
jbe 0x14001713d
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 0x140017131
mov edx, 1
mov dword [0x140112054], r15d
lea ecx, [rdx - 2]
call fcn.1400018c0
mov dword [0x140112054], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401197ec], eax
test bpl, bpl
je 0x1400171e6
cmp dword [0x140119b54], r15d
je 0x140017158
movzx eax, byte [0x140119b50]
jmp 0x14001715f
xor ecx, ecx
call fcn.14001a330
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.140019aa0
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x1400171c6
cmp ax, 0x39
ja 0x1400171c6
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
lea edx, [rax + 0x30]
mov byte [rsp + 0x20], r8b
xor r9d, r9d
lea ecx, [r8 + 2]
call fcn.140017570
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x140017193
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.140017570
jmp 0x1400171f2
movzx edx, r14b
movzx ecx, si
call fcn.1400151b0
cmp dword [0x140119b54], 2
mov rax, qword [0x140112060]
jne 0x14001720a
mov ecx, dword [rax + 0x80]
jmp 0x14001720d
mov ecx, dword [rax + 0x7c]
call fcn.1400195b0
sub rdi, 1
jne 0x1400170d3
mov r15, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rsi
pop rbp
ret
Function at 0x140019810
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140115710]
test r10, r10
je 0x140019947
movsxd rax, dword [0x1401157d4]
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 [0x1401157d0], eax
sub ecx, dword [0x140119a08]
xorps xmm0, xmm0
mov dword [0x140119a08], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x1401157d4]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x1401033a0]
mov rcx, qword [0x140115710]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140019901
cmp rax, qword [0x1401157c8]
je 0x1400198e5
movsxd rcx, dword [0x1401157d4]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x140115710]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x1401157d4]
jmp 0x140019925
movsxd rdx, dword [0x1401157d4]
mov rax, qword [0x140115710]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140019925
movsxd rdx, dword [0x1401157d4]
movabs r8, 0x41002f004e
mov rax, qword [0x140115710]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x1401157c8], rbx
cmp edx, dword [0x14011205c]
mov rbx, qword [rsp + 0x30]
cmovge edx, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x1401157d4], edx
add rsp, 0x28
ret
Function at 0x140019950
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movzx edi, cl
mov esi, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
lea eax, [rsi - 1]
xor ebx, 0xffffffff
and ebx, 1
inc ebx
cmp eax, 1
ja 0x140019a95
cmp ebx, esi
je 0x140019a95
mov ecx, edi
mov qword [rsp + 0x40], r14
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x1400199c4
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.140017570
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.140017570
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140117b88]
sete r14b
jne 0x140019a22
mov edx, 1
mov dword [0x140112054], 0
lea ecx, [rdx - 2]
call fcn.1400018c0
mov dword [0x140112054], 1
cmp dil, 0x14
jne 0x140019a79
cmp esi, 2
jne 0x140019a79
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140019a79
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.140017570
test r14b, r14b
je 0x140019a79
lea edx, [rsi - 1]
mov dword [0x140112054], 0
lea ecx, [rsi - 3]
call fcn.1400018c0
mov dword [0x140112054], 1
mov r14, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, ebx
jmp 0x140019a80
Function at 0x14001a330
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x140115720], 0
je 0x14001a34e
test cl, cl
jne 0x14001a34e
movzx eax, byte [0x14011655a]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
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 edi, 0x8000
or cl, 0x20
movzx edx, cl
and ax, di
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, di
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, di
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, di
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, di
mov ecx, 0x5b
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x40
movzx edx, cl
and ax, di
mov ecx, 0x5c
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
and ax, di
movzx ecx, bl
or cl, 0x80
test ax, ax
movzx edi, cl
cmove edi, ebx
cmp qword [0x140115720], 0
je 0x14001a4a4
movzx ecx, byte [0x14011655a]
movzx ebx, dil
not bl
and bl, cl
je 0x14001a4a4
movzx edx, byte [0x140116558]
movzx eax, bl
not al
and byte [0x140116559], al
and cl, al
and dl, al
mov byte [0x14011655a], cl
lea rcx, [0x140116560]
mov byte [0x140116558], dl
call fcn.14001a4c0
mov rcx, qword [0x1401166a0]
test rcx, rcx
je 0x14001a4a4
test byte [rcx + 0xc], bl
mov eax, 0
cmovne rcx, rax
mov qword [0x1401166a0], rcx
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret