joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800e7830
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x18017a650]
lea rbx, [0x18017a650]
test rcx, rcx
je 0x1800e78c1
mov qword [rsp + 0x30], rdi
xor edi, edi
cmp dword [rcx], 0x52727464
jne 0x1800e78b0
lea r9, [rcx + 0x10000]
mov r8d, edi
lea rdx, [rcx + 0xa8]
nop dword [rax]
mov rax, qword [rdx]
test rax, rax
je 0x1800e7882
cmp rax, rcx
jb 0x1800e78b0
cmp rax, r9
jae 0x1800e78b0
inc r8d
add rdx, 0x60
cmp r8d, 0x2a9
jb 0x1800e7870
mov rax, qword [rcx + 8]
xor edx, edx
mov r8d, 0x8000
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x18017a658], rdi
jmp 0x1800e78b4
lea rbx, [rcx + 8]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1800e7850
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x1800e7940
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x18017a668], 0
je 0x1800e7957
mov eax, 0x10dd
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r11d, eax
xor eax, eax
lock cmpxchg dword [0x18017a668], r11d
jne 0x1800e794d
xor eax, eax
mov qword [rsp + 0x20], rbx
mov rbx, qword [0x18017a650]
mov qword [0x18017a680], rax
mov qword [0x18017a678], rax
mov dword [0x18017a66c], eax
mov qword [0x18017a670], rax
test rbx, rbx
je 0x1800e79c2
nop dword [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1800e79a0
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x1800e79d0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18017a668], eax
je 0x1800e79ec
mov eax, 0x10dd
add rsp, 0x28
ret
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x20], rdi
mov rdi, qword [0x18017a680]
xor ebp, ebp
test rdi, rdi
je 0x1800e7a79
mov qword [rsp + 0x48], rsi
nop
mov rax, qword [rdi + 0x20]
mov r8d, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x18]
movzx edx, byte [rax + 0x3e]
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [rdi + 8], ebp
jne 0x1800e7a61
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x1800e7a61
xor edx, edx
mov rbx, rsi
mov rcx, rsi
lea r8d, [rdx + 0x60]
and rbx, 0xffffffffffff0000
call sub.MSVCR90.dll_memset
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x48], rax
mov qword [rbx + 0x10], rsi
mov qword [rdi + 0x20], rbp
mov rbx, qword [rdi]
mov rcx, rdi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov rdi, rbx
test rbx, rbx
jne 0x1800e7a10
mov rsi, qword [rsp + 0x48]
mov qword [0x18017a680], rbp
call fcn.1800e73d0
mov rdi, qword [0x18017a678]
test rdi, rdi
je 0x1800e7aae
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rdi]
mov rcx, rdi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov rdi, rbx
test rbx, rbx
jne 0x1800e7a91
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x38]
mov qword [0x18017a678], rbp
mov dword [0x18017a668], ebp
mov rbp, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x28
ret
Function at 0x1800e7f00
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x18017a66c]
mov rbx, rcx
test eax, eax
jne 0x1800e7f9e
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rbx, rax
jne 0x1800e7f2a
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rdi
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
test rax, rax
jne 0x1800e7f46
lea ebx, [rax + 8]
jmp 0x1800e7f64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1800e7f82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov rdi, qword [rsp + 0x30]
mov dword [0x18017a66c], ebx
mov qword [0x18017a670], 0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
mov rax, qword [0x18017a678]
mov qword [rdi + 8], rbx
mov qword [0x18017a678], rdi
mov qword [rdi], rax
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1800e8330
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x20
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18017a668], eax
je 0x1800e835e
mov eax, 0x10dd
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov eax, dword [0x18017a66c]
test eax, eax
jne 0x1800e848d
test rsi, rsi
je 0x1800e8388
cmp qword [rsi], 0
jne 0x1800e8398
mov dword [0x18017a66c], 6
mov qword [0x18017a670], rsi
mov eax, 6
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov ecx, 0x30
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
test rax, rax
jne 0x1800e83bc
lea edi, [rax + 8]
jmp 0x1800e8467
mov rcx, qword [rsi]
xor edx, edx
call fcn.1800e78d0
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.1800e78d0
movzx ecx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
mov rdx, rcx
sub rbp, rcx
test ecx, ecx
je 0x1800e8459
cmp ecx, 0x1e
ja 0x1800e8459
cmp qword [rdi + 0x50], rax
je 0x1800e8400
cmp dword [0x18017a660], 0
mov edi, 9
jne 0x1800e846d
jmp 0x1800e8467
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rbp
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800e842a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1800e8467
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x28], eax
mov rax, qword [0x18017a680]
mov qword [0x18017a680], rbx
mov qword [rbx], rax
xor eax, eax
jmp 0x1800e8483
cmp dword [0x18017a660], 0
mov edi, 9
jne 0x1800e846d
mov dword [0x18017a66c], edi
test rbx, rbx
je 0x1800e847a
mov rcx, rbx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [0x18017a670], rsi
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x1800ea4eb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180176020]
jne 0x1800e9d8a
rol rcx, 0x10
test cx, 0xffff
jne 0x1800e9d86
repz ret
ror rcx, 0x10
jmp 0x1800ea444
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180179b40]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180179c38]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800ea4c9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180179b40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800ea4eb
mov rax, qword [rsp + 0x88]
mov qword [0x180179c38], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180179bd8], rax
mov rax, qword [0x180179c38]
mov qword [0x180179ab0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180179bc0], rax
mov dword [0x180179aa0], 0xc0000409
mov dword [0x180179aa4], 1
mov rax, qword [0x180176020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180176028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180179b38], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180118f78]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180179b38], 0
jne 0x1800ea572
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140004dc0
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [0x140103f98], 0
mov rdi, r8
mov rsi, rdx
je 0x140004de7
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rsi, rsi
je 0x140004e4b
mov eax, 0xffffffff
cmp r8, rax
jne 0x140004e0c
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140004e00
mov edi, eax
test rdi, rdi
je 0x140004e4b
lea rdx, [rdi + 1]
lea rcx, [0x140103f80]
call fcn.140004e70
test rax, rax
je 0x140004dda
mov qword [rsp + 0x30], rbx
mov r8, rdi
mov rbx, qword [0x140103f98]
mov rdx, rsi
mov rcx, rbx
call fcn.1400b02e4
xor eax, eax
mov word [rbx + rdi*2], ax
mov rbx, qword [rsp + 0x30]
lea rcx, [0x140103f80]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140004f30
Function at 0x140004f30
Capabilities:
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rdi, rcx
jne 0x140004f5c
call fcn.1400052d0
test eax, eax
jne 0x140004f5c
lea rdx, [0x1400cb290]
mov rcx, rdi
add rsp, 0x20
pop rdi
jmp 0x140005080
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140004faa
cmp dword [rdi + 0x2c], eax
je 0x140004f91
xor esi, esi
cmp qword [rdi + 0x10], rsi
je 0x140004f85
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
lea rdx, [0x1400cb2d8]
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140005080
mov rcx, qword [rdi + 8]
xor esi, esi
test rcx, rcx
je 0x140004fed
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140005021
cmp word [rax], si
mov qword [rsp + 0x30], rbx
sete bl
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test bl, bl
mov qword [rdi + 0x18], rsi
mov rbx, qword [rsp + 0x30]
mov dword [rdi + 0x28], esi
je 0x140005021
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rdi + 8], rax
cmp dword [rdi + 0x2c], esi
je 0x140005011
cmp qword [rdi + 0x10], rsi
je 0x140005005
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rdi + 8]
mov ecx, SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14000503b
mov qword [rdi + 8], rsi
jmp 0x140004fed
cmp dword [rdi + 0x2c], esi
je 0x14000505f
cmp qword [rdi + 0x10], rsi
je 0x140005053
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
lea rdx, [0x1400cb2f8]
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140005080
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 0x1400050bb
cmp qword [rcx + 0x10], rsi
je 0x1400050af
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 0x1400050d2
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 0x1400050e5
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
cmp word [rdi], si
je 0x14000510f
lea r8, [0x1400e70b8]
mov rdx, rdi
lea rcx, [0x140103350]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140035a70
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400051b0
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 0x1400051cc
mov dword [r8], ecx
lea eax, [rdx - 0xc000]
cmp eax, 0x3fff
ja 0x1400052ab
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, [0x1400cb320]
lea rcx, [rsp + 0x20]
call fcn.1400a9808
test eax, eax
je 0x140005298
lea rdx, [0x1400cb338]
lea rcx, [rsp + 0x20]
call fcn.1400a7220
test eax, eax
je 0x140005298
lea rdx, [0x1400cb350]
lea rcx, [rsp + 0x20]
call fcn.1400a7220
test eax, eax
je 0x140005298
lea rdx, [0x1400cb368]
lea rcx, [rsp + 0x20]
call fcn.1400a7220
test eax, eax
je 0x140005298
lea rdx, [0x1400cb378]
lea rcx, [rsp + 0x20]
call fcn.1400a7220
test eax, eax
je 0x140005298
lea rdx, [0x1400cb398]
lea rcx, [rsp + 0x20]
call fcn.1400a7220
test eax, eax
je 0x14000528d
lea rdx, [0x1400cb3c0]
lea rcx, [rsp + 0x20]
call fcn.1400a7220
test eax, eax
jne 0x1400052b0
test rbx, rbx
je 0x140005298
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 0x1400052d0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
je 0x1400052ea
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 [0x1400feeb0]
mov edi, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140005364
xor esi, esi
nop
mov ecx, dword [0x1400faa64]
cmp ecx, 0xffffffff
je 0x140005334
test ecx, ecx
je 0x140005380
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x1400faa64]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x140005380
mov edx, 1
mov dword [0x1400faa50], esi
mov ecx, 0x8000012f
call fcn.1400016e0
mov rcx, qword [0x1400feeb0]
mov dword [0x1400faa50], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140005310
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 0x14000c080
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x1040
call fcn.1400bc4c0
sub rsp, rax
cmp byte [0x140104bcc], 0
mov rbx, rdx
mov rbp, rcx
jne 0x14000c20f
cmp dword [0x140101d48], 0
jne 0x14000c0bb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140101d48], eax
inc dword [0x140104bc8]
mov qword [rsp + 0x1050], rsi
mov qword [rsp + 0x1058], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x140104bc8]
mov ecx, eax
sub ecx, dword [0x140101d48]
cmp r9d, dword [0x1400fc3f4]
mov edx, dword [0x1400fc3f0]
mov dword [0x140101d44], eax
jbe 0x14000c178
cmp ecx, edx
jae 0x14000c178
mov dword [rsp + 0x20], ecx
lea r8, [0x1400de510]
lea rcx, [rsp + 0x40]
mov edx, 0x800
mov esi, 1
call fcn.140087360
call fcn.14000afd0
xor edi, edi
mov byte [0x140104bcc], sil
xor r8d, r8d
mov dword [0x1400faa50], edi
lea edx, [rsi + 3]
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x40]
xorps xmm3, xmm3
call fcn.14008cb20
cmp eax, 7
jne 0x14000c163
xor r9d, r9d
lea rcx, [0x140103350]
xor r8d, r8d
mov edx, esi
call fcn.140018f60
mov eax, dword [0x140101d44]
mov dword [0x1400faa50], esi
mov byte [0x140104bcc], dil
jmp 0x14000c180
xor edi, edi
mov esi, edi
cmp ecx, edx
jbe 0x14000c190
mov dword [0x140104bc8], edi
mov dword [0x140101d48], eax
test esi, esi
jne 0x14000c1ff
movzx eax, byte [rbp + 0x19]
lea r8, [0x1400caf98]
mov byte [0x140103eae], 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.14007e830
dec byte [rbx + 0x37]
test eax, eax
jne 0x14000c1cb
mov byte [rbx + 0x3c], al
jmp 0x14000c1ff
cmp byte [rbx + 0x3c], 0
je 0x14000c1ff
mov byte [rbx + 0x3c], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 8]
cmp eax, 0x3e8
ja 0x14000c1ff
movzx r8d, word [rbp]
xor r9d, r9d
mov rcx, qword [0x1400feeb0]
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 0x1400109e0
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 0x140010a10
mov eax, gethostbyname
lea rdx, [rsp + 0x32]
mov word [rsp + 0x30], ax
mov r8d, 0xa
call fcn.1400a7118
test ebx, ebx
jle 0x140010b7e
mov qword [rsp + 0x90], rbp
xor ebp, ebp
mov qword [rsp + 0x98], rdi
mov rdi, rbx
cmp dword [0x140101d4c], ebp
jne 0x140010a9f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400faa58]
sub eax, dword [0x140103efc]
cmp eax, dword [rcx + 0x118]
jbe 0x140010a9f
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 0x140010a93
mov edx, 1
mov dword [0x1400faa50], ebp
or ecx, 0xffffffff
call fcn.1400016e0
mov dword [0x1400faa50], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140103efc], eax
cmp dword [0x140101d4c], 2
je 0x140010ab8
or edx, 0xffffffff
movzx ecx, si
call fcn.14000eef0
jmp 0x140010b44
movzx edx, byte [0x140104196]
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.140013210
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x140010b26
cmp ax, 0x39
ja 0x140010b26
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.140010ec0
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x140010af0
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.140010ec0
cmp dword [0x140101d4c], 2
mov rax, qword [0x1400faa58]
jne 0x140010b5c
mov ecx, dword [rax + 0x80]
jmp 0x140010b5f
mov ecx, dword [rax + 0x7c]
call fcn.140012d70
sub rdi, 1
jne 0x140010a38
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rsi
ret
Function at 0x140012570
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 0x14001275c
mov r9d, dword [rdx]
cmp r9d, 0x80000000
je 0x14001275c
cmp dword [0x140101d4c], 2
mov qword [rsp + 0x58], rbp
jne 0x1400125f2
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.140012970
call fcn.140012e60
test bl, bl
je 0x140012757
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 0x140012658
cmp dword [0x140101d4c], 1
jne 0x14001263f
mov eax, dword [0x1401041d0]
cmp eax, 0x80000000
jne 0x140012633
lea rcx, [0x1401041d0]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x1401041d0]
add dword [rdi], eax
mov eax, dword [0x1401041d4]
add dword [rsi], eax
jmp 0x140012663
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 0x140012663
mov r8d, 2
call fcn.1400889f0
cmp dword [0x140101d4c], 1
jne 0x14001267c
mov eax, dword [rdi]
mov dword [0x1401041d0], eax
mov eax, dword [rsi]
mov dword [0x1401041d4], 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 0x140012739
cmp ebx, 0x64
jle 0x1400126d7
lea ebx, [rbp + 0x63]
jmp 0x1400126db
test ebx, ebx
je 0x140012739
cmp dword [0x140101d4c], ebp
je 0x140012739
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.140061e90
jmp 0x14001274d
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x8001
call fcn.140012770
call fcn.140012e60
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 0x140014030
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
xor r8d, r8d
lea rcx, [0x140101d60]
nop dword [rax]
nop word [rax + rax]
movsxd rax, r8d
add rax, rax
mov r9, qword [rcx + rax*8]
test r9, r9
je 0x14001406d
cmp r9, rsi
je 0x1400140a0
inc r8d
cmp r8d, 0xa
jl 0x140014050
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 0x1400140c5
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 0x1400140b5
movsxd rax, r8d
add rax, rax
cmp dword [rcx + rax*8 + 8], 0
jne 0x1400140b5
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 0x1400140fa
and ax, bp
cmp ax, bp
je 0x140014106
inc ebx
cmp ebx, 0xffff
jle 0x1400140e0
jmp 0x14001410d
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 0x1400142b0
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 0x140014423
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.1400a61b0
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 0x140014396
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 0x1400143f1
mov r8, rdi
lea rdx, [rsp + 0x170]
movzx ecx, bp
call fcn.140014660
movzx esi, al
test al, al
je 0x1400143f1
movzx edx, byte [rsp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.140013b40
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 0x14001440e
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