joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003d80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003dad
xor eax, eax
jmp 0x140003f19
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003de7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003de7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003f19
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003f0c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003e2a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003e55
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003f11
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003ec4
sub eax, 1
je 0x140003ec4
cmp eax, 2
jne 0x140003f0c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003f11
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003ef2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140003f0c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003f11
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005910
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400042e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400043b3
cmp byte [rcx + 0x71], 0
je 0x1400043b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400043af
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004374
sub eax, 1
je 0x140004378
cmp eax, 2
jne 0x1400043af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005910
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400043a6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400043af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000435c
xor al, al
jmp 0x14000435c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005910
add rsp, 0x60
pop rbx
ret

Function at 0x14000629c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400062e6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400062e6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400062e6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400062e6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400062e6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400062e8
xor al, al
add rsp, 0x28
ret
Function at 0x1400049d0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rbx, qword [0x1401144a8]
movzx r12d, r9b
movzx edi, r8b
movzx esi, dl
mov ebp, ecx
test r8b, r8b
je 0x140004a17
inc dword [0x140119934]
add rbx, 0x150
mov qword [0x1401144a8], rbx
lea rdx, [0x140118220]
mov rcx, rbx
mov r8d, 0x150
call fcn.1400cb2e0
mov dword [rbx + 0x3c], ebp
test dil, dil
je 0x140004a42
lea rcx, [0x14011b1d0]
xor edx, edx
call fcn.14001f650
xor edi, edi
cmp dword [0x140119980], edi
mov qword [0x14011bd90], rdi
je 0x140004a76
mov rax, qword [0x140115e50]
lea rcx, [0x1400e346c]
test rax, rax
je 0x140004a70
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test sil, sil
jne 0x140004b02
cmp byte [rbx + 0x12e], dil
jne 0x140004aaa
cmp r12b, 0x65
sete dil
mov byte [rbx + 0x12e], dil
test dil, dil
je 0x140004aaa
mov qword [rbx], 0xffffffffffffffff
mov dword [rbx + 0x34], 0xffffffff
cmp dword [0x14011bd9c], 0
je 0x140004abc
cmp dword [0x14011bd98], 0
jne 0x140004ac5
cmp byte [rbx + 0x12e], 0
je 0x140004b02
cmp byte [rbx + 0x12e], 0
mov byte [rbx + 0x12c], 0
jne 0x140004b02
cmp dword [0x14011bd9c], 0
jge 0x140004aea
mov dword [rbx + 0x120], 0xffffffff
jmp 0x140004b02
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [rbx + 0x11c], eax
mov eax, dword [0x14011bd9c]
mov dword [rbx + 0x120], eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400060c0
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp qword [0x14011be40], 0
mov rbx, rdx
mov rsi, rcx
je 0x1400060e7
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rdi
test rcx, rcx
je 0x140006157
mov eax, 0xffffffff
cmp rdx, rax
jne 0x140006110
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
mov ebx, ebx
test rbx, rbx
je 0x140006157
lea rdx, [rbx + 1]
lea rcx, [0x14011be28]
call fcn.140006180
test rax, rax
jne 0x14000613a
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdi, qword [0x14011be40]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1400cd7f4
xor r11d, r11d
mov word [rdi + rbx*2], r11w
lea rcx, [0x14011be28]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp fcn.140006240
Function at 0x1400064c0
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
mov edi, ecx
xor ecx, ecx
mov rbx, rdx
test rdx, rdx
je 0x1400064db
mov dword [rdx], ecx
lea eax, [rdi - 0xc000]
cmp eax, 0x3fff
ja 0x1400065ba
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
lea rdx, str.Link_Source
lea rcx, [rsp + 0x20]
mov r8d, reloc.OLEAUT32.dll_VariantChangeType
call fcn.1400cab74
test eax, eax
je 0x1400065a7
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, str.Native
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x1400065a7
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
je 0x14000659c
lea rdx, str.MSDEVLineSelect
lea rcx, [rsp + 0x20]
call fcn.1400ca91c
test eax, eax
jne 0x1400065bf
test rbx, rbx
je 0x1400065a7
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 0x1400065e0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
je 0x1400065fa
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 [0x140119798]
mov edi, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140006674
xor esi, esi
nop
mov ecx, dword [0x140114470]
cmp ecx, 0xffffffff
je 0x140006644
test ecx, ecx
je 0x140006690
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [0x140114470]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x140006690
mov edx, 1
mov ecx, 0x8000012f
mov dword [0x140114474], esi
call fcn.140001a70
mov rcx, qword [0x140119798]
mov dword [0x140114474], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140006620
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov dword [rbx + 0x2c], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000d310
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
xor al, al
cmp qword [0x1401198e8], 0
mov esi, 1
movzx edi, al
cmovne edi, esi
cmp qword [0x1401198f0], 0
je 0x14000d33b
or dil, 2
xor ebp, ebp
mov qword [rsp + 0x58], rbx
test dil, dil
je 0x14000d495
mov qword [rsp + 0x60], r12
mov ebx, ebp
mov ecx, dword [0x1401185d8]
mov r9, rsi
xor r8d, r8d
mov edx, 0x417
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x14000d37d
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.DLL_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x14000d352
xor r12b, r12b
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ebx, eax
nop dword [rax + rax]
mov rcx, qword [0x14011a348]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [rsp + 0x50], 0x103
jne 0x14000d3c5
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, ebx
cmp eax, 0x1f4
ja 0x14000d3de
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14000d390
mov rcx, qword [0x14011a348]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [0x14011a348], rbp
call fcn.14000c160
cmp qword [0x1401198e8], rbp
je 0x14000d406
test sil, dil
jne 0x14000d41f
lea r8, str.AHK_Keybd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov qword [0x14011a338], rax
jmp 0x14000d41f
test sil, dil
je 0x14000d41f
mov rcx, qword [0x14011a338]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [0x14011a338], rbp
cmp qword [0x1401198f0], rbp
je 0x14000d448
test dil, 2
jne 0x14000d462
lea r8, str.AHK_Mouse
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov qword [0x14011a340], rax
jmp 0x14000d462
test dil, 2
je 0x14000d462
mov rcx, qword [0x14011a340]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [0x14011a340], rbp
test r12b, r12b
mov r12, qword [rsp + 0x60]
je 0x14000d495
xorpd xmm3, xmm3
lea rcx, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
xor r8d, r8d
mov edx, 0x10000
mov dword [0x140114474], ebp
mov qword [rsp + 0x20], rbp
call fcn.1400b3ef0
mov dword [0x140114474], esi
mov rcx, qword [0x1401198f8]
test rcx, rcx
je 0x14000d4a7
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov r8, qword [0x140115e60]
mov edi, ebp
cmp bp, word [r8]
jae 0x14000d54b
mov rdx, qword [0x14011b128]
mov r9, qword [0x14011b120]
mov rsi, rbp
nop dword [rax + rax]
mov rax, qword [0x14011a388]
mov rbx, qword [rsi + rax]
test rbx, rbx
je 0x14000d53d
cmp byte [rbx + 0x18], bpl
je 0x14000d514
movzx edx, word [rbx + 4]
mov rcx, qword [0x140119798]
call qword [sym.imp.USER32.dll_UnregisterHotKey]
mov r8, qword [0x140115e60]
mov rdx, qword [0x14011b128]
mov r9, qword [0x14011b120]
test eax, eax
sete al
mov byte [rbx + 0x18], al
cmp rbx, rdx
jne 0x14000d53d
test rdx, rdx
je 0x14000d53d
mov rax, qword [r9 + 8]
mov rcx, rax
sub rcx, rdx
mov rdx, rbp
sub rax, rcx
add qword [r9 + 0x10], rcx
mov qword [0x14011b128], rdx
mov qword [r9 + 8], rax
movzx eax, word [r8]
inc edi
add rsi, 8
cmp edi, eax
jl 0x14000d4d0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000dc20
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x1040
call fcn.1400d23b0
sub rsp, rax
cmp byte [0x14011bff0], 0
mov rbx, rdx
mov rbp, rcx
jne 0x14000ddae
cmp dword [0x14011a37c], 0
jne 0x14000dc5b
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14011a37c], eax
inc dword [0x14011bff4]
mov qword [rsp + 0x1050], rsi
mov qword [rsp + 0x1058], rdi
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov r9d, dword [0x14011bff4]
mov edx, dword [0x14011448c]
mov ecx, eax
mov dword [0x14011a380], eax
sub ecx, dword [0x14011a37c]
cmp r9d, dword [0x140114488]
jbe 0x14000dd17
cmp ecx, edx
jae 0x14000dd17
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.1400ad210
call fcn.14000c7b0
xor edi, edi
xorpd xmm3, xmm3
lea edx, [rsi + 3]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov byte [0x14011bff0], sil
mov dword [0x140114474], edi
mov qword [rsp + 0x20], rdi
call fcn.1400b3ef0
cmp eax, 7
jne 0x14000dd02
lea edx, [rsi + 3]
lea rcx, [0x14011b1d0]
xor r8d, r8d
call fcn.14001fcf0
mov eax, dword [0x14011a380]
mov dword [0x140114474], esi
mov byte [0x14011bff0], dil
jmp 0x14000dd1f
xor edi, edi
mov esi, edi
cmp ecx, edx
jbe 0x14000dd2f
mov dword [0x14011bff4], edi
mov dword [0x14011a37c], eax
test esi, esi
jne 0x14000dd9e
movzx eax, byte [rbp + 0xf]
mov dword [rsp + 0x30], edi
lea r8, [0x1400e34f0]
mov byte [0x14011bd4e], al
mov rcx, qword [rbx]
inc byte [rbx + 0x22]
mov rdx, rcx
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.1400a33d0
dec byte [rbx + 0x22]
test eax, eax
jne 0x14000dd6a
mov byte [rbx + 0x27], al
jmp 0x14000dd9e
cmp byte [rbx + 0x27], 0
je 0x14000dd9e
mov byte [rbx + 0x27], 0
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, 0x3e8
ja 0x14000dd9e
movzx r8d, word [rbp + 4]
mov rcx, qword [0x140119798]
xor r9d, r9d
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 0x140016cf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
cmp dword [0x14011a3bc], 2
movzx ebp, r8b
mov ebx, edx
sete sil
movzx edi, cx
test sil, sil
je 0x140016d4a
movzx ecx, cx
lea rdx, [rsp + 0x30]
test ecx, 0xffffff80
je 0x140016d37
mov eax, gethostbyname
lea rdx, [rsp + 0x32]
mov word [rsp + 0x30], ax
mov r8d, 0xa
call fcn.1400ca670
movzx edi, word [rsp + 0xa8]
test ebx, ebx
jle 0x140016e18
mov qword [rsp + 0xa0], r12
xor r12d, r12d
nop dword [rax]
cmp dword [0x14011a3bc], r12d
jne 0x140016dca
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rcx, qword [0x1401144a8]
sub eax, dword [0x14011bda4]
cmp eax, dword [rcx + 0x118]
jbe 0x140016dca
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140016dbe
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140114474], r12d
call fcn.140001a70
mov dword [0x140114474], 1
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14011bda4], eax
test sil, sil
je 0x140016ddb
lea rcx, [rsp + 0x30]
call fcn.140016e30
jmp 0x140016de7
movzx edx, bpl
movzx ecx, di
call fcn.140014c20
cmp dword [0x14011a3bc], 2
mov rax, qword [0x1401144a8]
jne 0x140016dff
mov ecx, dword [rax + 0x80]
jmp 0x140016e02
mov ecx, dword [rax + 0x7c]
call fcn.1400192b0
dec rbx
jne 0x140016d60
mov r12, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016e30
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [0x14011a3bc], 0
mov qword [rsp + 0x40], rbx
mov rsi, rcx
je 0x140016e53
movzx ebx, byte [0x1401185ef]
jmp 0x140016fab
cmp qword [0x1401198e8], 0
je 0x140016e69
movzx ebx, byte [0x140119791]
jmp 0x140016fab
mov ecx, 0xa0
mov qword [rsp + 0x48], rdi
xor bl, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x8000
movzx ebx, bl
test di, ax
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016ea1
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016eb4
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016ec7
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016eda
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016eed
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016f00
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x140016f13
or bl, 0x80
cmp qword [0x1401198e8], 0
je 0x140016fa6
movzx edi, bl
not dil
and dil, byte [0x140119791]
cmp byte [0x140119796], 0
je 0x140016f54
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x14011844c]
cmp eax, 0x14
jae 0x140016f54
movzx eax, byte [0x140119796]
not al
and dil, al
test dil, dil
je 0x140016fa6
movzx edx, byte [0x140119793]
movzx eax, dil
lea rcx, [0x1401197e0]
not al
and byte [0x140119791], al
and byte [0x140119792], al
and dl, al
mov byte [0x140119793], dl
call fcn.14001a140
mov rcx, qword [0x1401185e0]
test rcx, rcx
je 0x140016fa6
test byte [rcx + 0xc], dil
mov eax, 0
cmovne rcx, rax
mov qword [0x1401185e0], rcx
mov rdi, qword [rsp + 0x48]
movzx ecx, bl
xor r9d, r9d
xor r8d, r8d
and cl, 0xc4
movzx edx, bl
mov dword [rsp + 0x28], 0xffc3d44f
or cl, 4
mov byte [rsp + 0x20], 1
call fcn.140019770
movzx eax, word [rsi]
mov rbx, qword [rsp + 0x40]
cmp ax, 0x30
jb 0x140017016
nop dword [rax]
cmp ax, 0x39
ja 0x140017016
movzx edx, byte [rsi]
xor r8d, r8d
xor r9d, r9d
lea ecx, [r8 + 2]
add dl, 0x30
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.1400172d0
movzx eax, word [rsi + 2]
add rsi, 2
cmp ax, 0x30
jae 0x140016fe0
xor r8d, r8d
xor r9d, r9d
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.1400172d0
add rsp, 0x30
pop rsi
ret
Function at 0x1400194c0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14011a320]
test r9, r9
je 0x140019618
movsxd rax, dword [0x14011a328]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
imul rax, rax, 0xd4
mov byte [rax + r9 + 6], cl
mov byte [rax + r9], dl
mov ecx, 0x69
mov word [rax + r9 + 2], r8w
mov word [rax + r9 + 4], cx
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
movsxd rdx, dword [0x14011a328]
mov ecx, eax
pxor xmm0, xmm0
imul rdx, rdx, 0xd4
sub ecx, dword [0x14011b1c8]
mov dword [0x14011a32c], eax
mov dword [0x14011b1c8], eax
cvtsi2ss xmm0, rcx
mov rcx, qword [0x14011a320]
divss xmm0, dword [0x140101eb0]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x1400195b4
cmp rax, qword [0x14011a330]
je 0x140019595
mov rcx, qword [0x14011a320]
movsxd rdx, dword [0x14011a328]
lea r8d, [rdi + 0x64]
imul rdx, rdx, 0xd4
lea rdx, [rdx + rcx + 0xc]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r11d, dword [0x14011a328]
jmp 0x1400195f2
movsxd r11, dword [0x14011a328]
mov rax, qword [0x14011a320]
mov rcx, r11
imul rcx, rcx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x1400195f2
movsxd r11, dword [0x14011a328]
mov rax, qword [0x14011a320]
lea rdx, [0x1400e5848]
mov rcx, r11
imul rcx, rcx, 0xd4
sub rcx, rdx
lea r8, [rcx + rax + 0xc]
nop dword [rax + rax]
movzx eax, word [rdx]
add rdx, 2
mov word [r8 + rdx - 2], ax
test ax, ax
jne 0x1400195e0
inc r11d
mov qword [0x14011a330], rbx
mov rbx, qword [rsp + 0x30]
cmp r11d, dword [0x140114478]
cmovge r11d, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x14011a328], r11d
add rsp, 0x28
ret
Function at 0x140019fc0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x1401198e8], 0
je 0x140019fde
test cl, cl
jne 0x140019fde
movzx eax, byte [0x140119791]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x20], rdi
xor bl, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x8000
test di, ax
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
movzx ebx, bl
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a01b
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a02e
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a041
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a054
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a067
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a07a
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14001a08d
or bl, 0x80
cmp qword [0x1401198e8], 0
je 0x14001a120
movzx edi, bl
not dil
and dil, byte [0x140119791]
cmp byte [0x140119796], 0
je 0x14001a0ce
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x14011844c]
cmp eax, 0x14
jae 0x14001a0ce
movzx eax, byte [0x140119796]
not al
and dil, al
test dil, dil
je 0x14001a120
movzx edx, byte [0x140119793]
movzx eax, dil
lea rcx, [0x1401197e0]
not al
and byte [0x140119791], al
and byte [0x140119792], al
and dl, al
mov byte [0x140119793], dl
call fcn.14001a140
mov rcx, qword [0x1401185e0]
test rcx, rcx
je 0x14001a120
test byte [rcx + 0xc], dil
mov eax, 0
cmovne rcx, rax
mov qword [0x1401185e0], rcx
mov rdi, qword [rsp + 0x20]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x14001a520
Capabilities:
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
test rcx, rcx
je 0x14001a564
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 0x14001a564
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001a564
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