joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a350
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x20
cmp byte [rcx + 0x23], 0
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
jne 0x14000a376
mov rax, qword [rcx + 0x10]
movzx ecx, byte [rax + 0x21]
jmp 0x14000a37a
movzx ecx, byte [rcx + 0x21]
and cl, 1
mov byte [rdx + 0x5b], cl
movzx ecx, byte [rbx + 0x23]
test cl, cl
jne 0x14000a390
mov rax, qword [rbx + 0x10]
movzx ecx, byte [rax + 0x23]
xor r12d, r12d
cmp cl, 1
mov qword [rsp + 0x48], rsi
setne al
mov byte [rdx + 0x59], al
test al, al
je 0x14000a4db
movzx ecx, byte [rbx + 0x23]
test ecx, ecx
je 0x14000a430
dec ecx
je 0x14000a3e1
dec ecx
je 0x14000a3cc
dec ecx
je 0x14000a420
mov rdx, qword [rbx + 0x28]
xor ecx, ecx
call qword [rbx + reloc.OLEAUT32.dll_SafeArrayGetElement]
jmp 0x14000a43b
xor ecx, ecx
call fcn.140006960
mov ecx, 0xffffffff
cmp rax, rcx
cmove rax, r12
jmp 0x14000a43b
mov rcx, rbx
call fcn.140001130
cmp dword [0x14013b0c4], r12d
jne 0x14000a425
cmp qword [rbx + 0x10], r12
jne 0x14000a425
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000a419
mov qword [0x1401440e0], r12
dec eax
jmp 0x14000a43b
mov qword [0x1401440e0], rbx
mov rax, r12
jmp 0x14000a43b
mov rax, qword [rbx + 0x10]
shr rax, 1
jmp 0x14000a43b
mov rcx, qword [rbx + 0x10]
xor edx, edx
call fcn.1400e7270
mov rcx, qword [rbp]
lea rsi, [rax + 1]
test rcx, rcx
je 0x14000a457
call qword [sym.imp.MSVCR100.dll__msize]
lea rcx, [rsi + rsi]
cmp rax, rcx
jae 0x14000a487
mov rcx, qword [rbp]
call qword [sym.imp.MSVCR100.dll_free]
mov eax, 0x104
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + rsi]
call qword [sym.imp.MSVCR100.dll_malloc]
mov qword [rbp], rax
test rax, rax
jne 0x14000a487
mov eax, 0x3e6
jmp 0x14000a500
mov rdx, qword [rbp]
mov rcx, rbx
call fcn.1400e7270
mov r11, qword [rbp]
mov dword [rdi + 0x30], r12d
mov qword [rdi + 0x20], r11
cmp dword [0x140143dfc], r12d
je 0x14000a4fe
cmp qword [0x140143de0], r12
je 0x14000a4c5
mov rcx, qword [0x140143dd0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140143de0], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140143dfc], r12d
mov qword [0x140143dd0], r12
jmp 0x14000a4fe
add rdx, 0x20
mov rcx, rbx
call fcn.1400072f0
cmp byte [rbx + 0x23], r12b
jne 0x14000a4f1
mov rbx, qword [rbx + 0x10]
test byte [rbx + 0x21], 4
je 0x14000a4fe
mov dword [rdi + 0x30], 3
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret

Function at 0x14000cf00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x74], 0
mov rdi, rdx
mov rbx, rcx
je 0x14000cf22
lea r8, str.stderr
call fcn.14000cd80
cmp dword [rbx + 0x74], 2
je 0x14000cf31
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000cf40
Capabilities:
Receive data
Receive data on socket

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
xor esi, esi
mov r12, rdx
mov rbx, rcx
mov edi, esi
mov rcx, qword [rbx + 0x40]
cmp rdi, rcx
jae 0x14000cf84
mov rax, qword [rbx + 0x30]
cmp byte [rax + rdi], 0
je 0x14000d007
inc esi
mov edi, esi
cmp rdi, rcx
jb 0x14000cf71
cmp rcx, qword [rbx + 0x38]
jne 0x14000cfda
mov rcx, qword [rbx + 0x38]
lea rax, [rcx + rcx]
test rcx, rcx
jne 0x14000cf9c
mov eax, 0x800
cmp dword [rbx + 0x48], 0
jne 0x14000d01b
test rcx, rcx
mov ebp, 0x800
cmovne rbp, rcx
cmp rbp, rax
jae 0x14000cfbb
add rbp, rbp
cmp rbp, rax
jb 0x14000cfb3
cmp rbp, rcx
jbe 0x14000cfda
mov rcx, qword [rbx + 0x30]
mov rdx, rbp
call qword [sym.imp.MSVCR100.dll_realloc]
test rax, rax
je 0x14000d014
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rbp
mov r8d, dword [rbx + 0x38]
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x20]
sub r8d, dword [rbx + 0x40]
add rdx, qword [rbx + 0x40]
xor r9d, r9d
call qword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x14000d01b
cdqe
add qword [rbx + 0x40], rax
jmp 0x14000cf64
test r12, r12
je 0x14000d010
mov dword [r12], esi
xor eax, eax
jmp 0x14000d027
mov dword [rbx + 0x48], 1
lea rcx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.14000d6a0
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 0x14000d050
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rcx, qword [rcx + 0x60]
lea rdx, [rsp + 0x20]
add rcx, 0x26
mov r8d, 0xa
call qword [sym.imp.MSVCR100.dll__i64toa]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.MSVCR100.dll_strchr]
lea r8, str.__xml_version_1.0__encoding_UTF_8___
lea rdx, [0x140104b00]
lea rbx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_sprintf]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x20]
movsxd r8, eax
lea rax, [rsp + 0x20]
xor r9d, r9d
add r8, rbx
sub r8d, eax
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000d120
cmp dword [rdi + 0x68], 0
jne 0x14000d120
mov rdx, qword [rdi + 0x60]
lea rcx, [rdi + 0x50]
inc rdx
call fcn.14000e0b0
test eax, eax
jne 0x14000d120
mov rcx, qword [rdi + 0x60]
movzx eax, byte [0x1401035ac]
xor r9d, r9d
add rcx, qword [rdi + 0x50]
mov byte [rcx], al
inc qword [rdi + 0x60]
mov r8d, dword [rdi + 0x60]
mov rdx, qword [rdi + 0x50]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000d120
xor eax, eax
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x68], eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea rcx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.14000d6a0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000d770
Capabilities:
Encode data using base64

Disassembly:
push rbx
xor r9d, r9d
mov qword [rsp + 0x10], rdi
mov r11, rdx
mov r10, rcx
cmp r8, 0xffffffffffffffff
jne 0x14000d797
or rcx, r8
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, 2
jbe 0x14000d83e
lea rcx, [r8 - 3]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
mov rdi, rdx
shr rdi, 1
inc rdi
mov rax, rdi
imul rax, rax, 0xfffffffffffffffd
add r8, rax
nop dword [rax]
movzx eax, byte [r11 + 1]
movzx ecx, byte [r11]
add r9, 4
shl ecx, 8
add r11, 3
or ecx, eax
movzx eax, byte [r11 - 1]
shl ecx, 8
movsxd rdx, ecx
or rdx, rax
mov rax, rdx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 4], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 3], al
mov rax, rdx
and edx, 0x3f
shr rax, 6
and eax, 0x3f
dec rdi
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 2], al
movzx eax, byte [rdx + rbx]
mov byte [r10 + r9 - 1], al
jne 0x14000d7d0
mov rdi, qword [rsp + 0x10]
test r8, r8
je 0x14000d8b2
movzx eax, byte [r11]
shl eax, 0x10
movsxd rcx, eax
cmp r8, 1
jbe 0x14000d865
movzx eax, byte [r11 + 1]
shl eax, 8
cdqe
or rcx, rax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + r10], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + r10 + 1], al
cmp r8, 1
jbe 0x14000d89d
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
jmp 0x14000d89f
mov al, 0x3d
mov byte [r9 + r10 + 2], al
mov word [r9 + r10 + 3], 0x3d
lea rax, [r9 + 4]
pop rbx
ret
mov byte [r9 + r10], 0
mov rax, r9
pop rbx
ret

Function at 0x14000e880
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
xor r8d, r8d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x14000e8f3
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000e926
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x14000e8d4
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e8cb
call qword [sym.imp.MSVCR100.dll_free]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov rcx, rbx
call fcn.14000ea20
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14000ed00
mov r11, qword [rbx + 8]
mov r8d, edi
mov rdx, qword [r11]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140014d40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x28
test cl, 0x10
jne 0x140014d86
cmp dl, 0xa0
je 0x140014d53
cmp dl, 0x10
jne 0x140014dd0
test r8b, r8b
jne 0x140014dd0
cmp byte [0x14013e497], r8b
je 0x140014d8d
xor eax, eax
lea rcx, [0x14013e478]
nop word [rax + rax]
cmp byte [rax + rcx], 0
jne 0x140014d8d
inc rax
cmp rax, 0x16
jl 0x140014d70
mov byte [0x14013e497], 0
xor al, al
add rsp, 0x28
ret
cmp byte [0x14013e48f], 0
je 0x140014dd0
mov eax, 0x100
test word [0x14013e494], ax
jne 0x140014dd0
movzx eax, byte [0x14013e496]
cmp al, 0xc
je 0x140014dbf
cmp al, 0x20
jbe 0x140014dd0
cmp al, 0x28
jbe 0x140014dbf
cmp al, 0x2c
jbe 0x140014dd0
cmp al, 0x2e
ja 0x140014dd0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14013e490]
cmp eax, 0x16
jb 0x140014d86
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140143f6c], eax
mov dword [0x1401430ec], eax
mov al, 1
add rsp, 0x28
ret
Function at 0x1400178a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov ebp, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor edx, edx
xor ecx, ecx
call fcn.140016090
mov rcx, qword [0x14013f858]
test rcx, rcx
je 0x1400178d3
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov r8, qword [0x14013ccd8]
xor r12d, r12d
mov edi, r12d
cmp r12w, word [r8]
jae 0x140017995
mov rdx, qword [0x140141f48]
mov r9, qword [0x140141f40]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov esi, r12d
nop word [rax + rax]
mov rax, qword [0x140140518]
mov rbx, qword [rsi + rax]
test rbx, rbx
je 0x14001797d
cmp byte [rbx + 0x18], r12b
je 0x140017954
movzx edx, word [rbx + 4]
mov rcx, qword [0x14013f6f8]
call qword [sym.imp.USER32.dll_UnregisterHotKey]
mov r8, qword [0x14013ccd8]
mov rdx, qword [0x140141f48]
mov r9, qword [0x140141f40]
test eax, eax
sete al
mov byte [rbx + 0x18], al
cmp rbx, rdx
jne 0x14001797d
test rdx, rdx
je 0x14001797d
mov rax, qword [r9 + 8]
mov rcx, rax
sub rcx, rdx
mov rdx, r12
sub rax, rcx
add qword [r9 + 0x10], rcx
mov qword [0x140141f48], rdx
mov qword [r9 + 8], rax
movzx eax, word [r8]
inc edi
add rsi, 8
cmp edi, eax
jl 0x140017910
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov ecx, ebp
call qword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x140017f80
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov eax, 0x1030
call fcn.140100df0
sub rsp, rax
cmp byte [0x140143fe8], 0
mov rbx, rdx
mov rbp, rcx
jne 0x140018105
cmp dword [0x140140510], 0
jne 0x140017fbb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140140510], eax
inc dword [0x140143fec]
mov qword [rsp + 0x1040], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x140143fec]
mov edx, dword [0x14013b0e0]
mov ecx, eax
sub ecx, dword [0x140140510]
cmp r9d, dword [0x14013b0dc]
mov dword [0x140140514], eax
jbe 0x140018078
cmp ecx, edx
jae 0x140018078
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 + 0x30]
mov edx, 0x800
mov edi, 1
call fcn.1400e0640
call fcn.14000f100
lea edx, [rdi + 3]
xorpd xmm3, xmm3
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov byte [0x140143fe8], dil
mov dword [0x14013b0c8], 0
mov qword [rsp + 0x20], 0
call fcn.1400e9900
cmp eax, 7
jne 0x140018063
lea rcx, [0x140143150]
xor r8d, r8d
mov edx, edi
call fcn.140035b90
mov eax, dword [0x140140514]
mov dword [0x14013b0c8], edi
mov byte [0x140143fe8], 0
jmp 0x14001807e
xor edi, edi
cmp ecx, edx
jbe 0x140018092
mov dword [0x140143fec], 0
mov dword [0x140140510], eax
test edi, edi
jne 0x1400180fd
movzx eax, byte [rbp + 0xf]
xor r9d, r9d
xor r8d, r8d
mov byte [0x140143cf6], al
inc byte [rbx + 0x22]
mov rdx, qword [0x140143c48]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400d05e0
dec byte [rbx + 0x22]
test eax, eax
jne 0x1400180c9
mov byte [rbx + 0x27], al
jmp 0x1400180fd
cmp byte [rbx + 0x27], 0
je 0x1400180fd
mov byte [rbx + 0x27], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, 0x3e8
ja 0x1400180fd
movzx r8d, word [rbp + 4]
mov rcx, qword [0x14013f6f8]
xor r9d, r9d
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
mov rdi, qword [rsp + 0x1040]
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rbp
ret
Function at 0x14001feb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
cmp dword [0x1401405f0], 2
movzx ebp, r8b
mov ebx, edx
sete sil
movzx edi, cx
test sil, sil
je 0x14001ff0b
movzx ecx, cx
lea rdx, [rsp + 0x30]
test ecx, 0xffffff80
je 0x14001fef7
mov eax, gethostbyaddr
lea rdx, [rsp + 0x32]
mov word [rsp + 0x30], ax
mov r8d, 0xa
call qword [sym.imp.MSVCR100.dll__itow]
movzx edi, word [rsp + 0xa8]
test ebx, ebx
jle 0x14001ffd8
mov qword [rsp + 0xa0], r12
xor r12d, r12d
nop
cmp dword [0x1401405f0], r12d
jne 0x14001ff8a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14013b0f8]
sub eax, dword [0x140143d4c]
cmp eax, dword [rcx + 0x118]
jbe 0x14001ff8a
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 0x14001ff7e
mov edx, 1
or ecx, 0xffffffff
mov dword [0x14013b0c8], r12d
call fcn.140001b80
mov dword [0x14013b0c8], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140143d4c], eax
test sil, sil
je 0x14001ff9b
lea rcx, [rsp + 0x30]
call fcn.14001fff0
jmp 0x14001ffa7
movzx edx, bpl
movzx ecx, di
call fcn.14001de60
cmp dword [0x1401405f0], 2
mov rax, qword [0x14013b0f8]
jne 0x14001ffbf
mov ecx, dword [rax + 0x80]
jmp 0x14001ffc2
mov ecx, dword [rax + 0x7c]
call fcn.140022450
dec rbx
jne 0x14001ff20
mov r12, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001fff0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x30
cmp dword [0x1401405f0], 0
mov qword [rsp + 0x40], rbx
and al, 0x40
mov rdi, rcx
je 0x140020013
movzx ebx, byte [0x14013e4ab]
jmp 0x14002011d
cmp qword [0x14013f848], 0
je 0x140020029
movzx ebx, byte [0x14013f65f]
jmp 0x14002011d
mov ecx, 0xa0
mov qword [rsp + 0x48], rsi
xor bl, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, 0x8000
movzx ebx, bl
test si, ax
mov eax, reloc.WSOCK32.dll_recv
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x140020061
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x140020074
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x140020087
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x14002009a
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x1400200ad
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x1400200c0
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
mov rsi, qword [rsp + 0x48]
je 0x1400200d8
or bl, 0x80
cmp qword [0x14013f848], 0
je 0x14002011d
movzx ecx, byte [0x14013f65f]
movzx eax, bl
not al
and al, cl
je 0x14002011d
movzx edx, byte [0x14013f6f3]
not al
and byte [0x14013f6f2], al
and cl, al
and dl, al
mov byte [0x14013f65f], cl
lea rcx, [0x14013f740]
mov byte [0x14013f6f3], dl
call fcn.1400232d0
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.140022950
movzx eax, word [rdi]
mov rbx, qword [rsp + 0x40]
cmp ax, 0x30
jb 0x140020186
nop
cmp ax, 0x39
ja 0x140020186
movzx edx, byte [rdi]
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.140020440
movzx eax, word [rdi + 2]
add rdi, 2
cmp ax, 0x30
jae 0x140020150
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.140020440
add rsp, 0x30
pop rdi
ret
Function at 0x140021b60
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov r9d, dword [rdx]
mov rsi, rdx
mov rdi, rcx
cmp r9d, 0x80000000
je 0x140021d51
cmp dword [0x1401405f0], 2
jne 0x140021bcd
movzx ebx, byte [rsp + 0x80]
mov r8d, dword [rdi]
movzx eax, bl
neg al
sbb ecx, ecx
xor edx, edx
and ecx, 0x80000000
or ecx, 1
call fcn.140021f50
call fcn.140022560
test bl, bl
je 0x140021d51
mov dword [rdi], 0x80000000
mov dword [rsi], 0x80000000
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
or dword [r8], 0x8001
cmp byte [rsp + 0x80], 0
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
je 0x140021c42
cmp dword [0x1401405f0], 1
jne 0x140021c27
mov eax, dword [0x14013e4b0]
cmp eax, 0x80000000
jne 0x140021c1b
lea rcx, [0x14013e4b0]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x14013e4b0]
add dword [rdi], eax
mov eax, dword [0x14013e4b4]
add dword [rsi], eax
jmp 0x140021c4d
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11d, dword [rsp + 0x68]
mov eax, dword [rsp + 0x6c]
add dword [rdi], r11d
add dword [rsi], eax
jmp 0x140021c4d
mov r8d, 2
call fcn.1400e1d40
cmp dword [0x1401405f0], 1
jne 0x140021c66
mov eax, dword [rdi]
mov dword [0x14013e4b0], eax
mov eax, dword [rsi]
mov dword [0x14013e4b4], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, 1
mov ecx, ebp
mov r12d, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r8d, dword [rdi]
or r14d, 0xffffffff
mov r13d, eax
mov eax, r8d
mov ecx, ebp
shl eax, 0x10
cdq
idiv r12d
test r8d, r8d
cmovs ecx, r14d
add eax, ecx
mov ecx, ebp
mov dword [rdi], eax
mov r8d, dword [rsi]
mov eax, r8d
shl eax, 0x10
cdq
idiv r13d
test r8d, r8d
cmovs ecx, r14d
lea r9d, [rax + rcx]
mov dword [rsi], r9d
test ebx, ebx
js 0x140021d29
cmp ebx, 0x64
jle 0x140021cca
lea ebx, [rbp + 0x63]
jmp 0x140021cce
test ebx, ebx
je 0x140021d29
cmp dword [0x1401405f0], ebp
je 0x140021d29
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x68]
mov r9d, dword [rsi]
mov r8d, dword [rdi]
mov eax, r11d
shl eax, 0x10
mov r10d, ebp
mov dword [rsp + 0x20], ebx
cdq
idiv r13d
test r11d, r11d
cmovs r10d, r14d
add r10d, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv r12d
test ecx, ecx
mov edx, r10d
cmovs ebp, r14d
lea ecx, [rbp + rax]
call fcn.1400a7c50
jmp 0x140021d3d
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x8001
call fcn.140021d60
call fcn.140022560
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400226a0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1401404b8]
test r9, r9
je 0x1400227f8
movsxd rax, dword [0x1401404c0]
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 [0x1401404c0]
mov ecx, eax
pxor xmm0, xmm0
imul rdx, rdx, 0xd4
sub ecx, dword [0x1401430e8]
mov dword [0x1401404c4], eax
mov dword [0x1401430e8], eax
cvtsi2ss xmm0, rcx
mov rcx, qword [0x1401404b8]
divss xmm0, dword [0x1401279d0]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140022794
cmp rax, qword [0x1401404c8]
je 0x140022775
mov rcx, qword [0x1401404b8]
movsxd rdx, dword [0x1401404c0]
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 [0x1401404c0]
jmp 0x1400227d2
movsxd r11, dword [0x1401404c0]
mov rax, qword [0x1401404b8]
mov rcx, r11
imul rcx, rcx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x1400227d2
movsxd r11, dword [0x1401404c0]
mov rax, qword [0x1401404b8]
lea rdx, [0x140106dc8]
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 0x1400227c0
inc r11d
mov qword [0x1401404c8], rbx
mov rbx, qword [rsp + 0x30]
cmp r11d, dword [0x14013b0cc]
cmovge r11d, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x1401404c0], r11d
add rsp, 0x28
ret