joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ed80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400c6f10]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400cff20]
mov edi, edx
cmp byte [rbx + 0x1f4d], 0
jne 0x14000ede0
cmp byte [rbx + 0x1f4e], 0
jne 0x14000ede0
mov r9d, dword [rbx + 0x3028]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002430
test dil, 1
je 0x14000eefe
jmp 0x14000ee68
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3028]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14009431c]
mulss xmm1, dword [0x140094310]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1cc8], rax
mov dword [rbx + 0x1cb4], 1
movss dword [rbx + 0x1cc0], xmm0
movss dword [rbx + 0x1cc4], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x140094298]
or dword [rbx + 0x1cb0], 0x41
movss dword [rbx + 0x1d10], xmm0
call fcn.140002430
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14000eeb8
lea r11, [0x14008de20]
cmp r9b, 0x23
jne 0x14000ee9b
cmp byte [r8], r9b
jne 0x14000ee9b
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14000ee88
not ecx
call fcn.140008d10
test rax, rax
je 0x14000eefe
cmp byte [rax + 0x8e], 0
je 0x14000eefe
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3028]
mov edx, 0x10
mov r9d, dword [rbx + 0x3028]
call fcn.140002430
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000b360
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14006f220
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140013240
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x30c8], 0
lea rbx, [rcx + 0x30d0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400132e7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001329a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140015010
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140002bb0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30c8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x30d8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400cff18]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400132ef
mov rcx, rbx
call fcn.140002bb0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140032380
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400c6f10]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov eax, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov qword [rsp + 0x80], rcx
xor r8d, r8d
mov dword [rsp + 0x20], r8d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov dword [rsp + 0x20], 1
mov r15d, r8d
test eax, eax
jle 0x1400325d8
mov r12d, r8d
nop
movsxd rcx, r12d
add rcx, rdx
call fcn.140039800
mov rdi, rax
test rax, rax
je 0x1400325b4
lea rcx, [rax + 0x38]
call fcn.140039800
cmp rax, 0x11e0101
jne 0x1400325b4
lea rcx, [rdi + 0x430]
call fcn.140039800
mov rbp, rax
test rax, rax
je 0x1400325b4
lea rcx, [rdi + 0x3f0]
call fcn.140039800
mov r13, rax
lea rcx, [rax + 0x628]
call fcn.140039800
lea rcx, [rax + 0xf8]
call fcn.1400398b0
mov ebx, eax
lea r14, [rbp + 0x560]
mov rcx, r14
call fcn.1400398b0
mov dword [rsp + 0x24], eax
cmp ebx, dword [0x1400d2fa0]
je 0x1400325b4
lea rcx, [rdi + 0x9a8]
call fcn.140039800
mov qword [rsp + 0x30], rax
lea rcx, [rdi + 0x230]
call fcn.140039800
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x558]
call fcn.140039800
mov rbx, rax
mov rcx, qword [0x1400d2f30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400325cc
mov dword [rsp + 0x88], 0
mov rcx, qword [0x1400d2f30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400325cc
mov rax, r14
shr rax, 0x24
add rax, 0xfffffffffffffff8
mov r9d, 4
lea r8, [rsp + 0x88]
mov rcx, qword [0x1400d2f60]
test rax, 0xfffffffffffffff7
je 0x140032514
mov rdx, r14
call fcn.140031470
jmp 0x140032523
and r14d, 0xffffff
mov edx, r14d
call fcn.140031620
cmp dword [rsp + 0x88], 0
jne 0x14003253c
lea rcx, [rbp + 0x568]
call fcn.140039800
mov rbx, rax
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r13
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rbx
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x78], eax
mov byte [rsp + 0x7c], 1
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x1400325a7
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rdx + 0x20], xmm0
movsd xmm1, qword [rsp + 0x78]
movsd qword [rdx + 0x30], xmm1
add qword [rsi + 8], 0x38
jmp 0x1400325b4
lea r8, [rsp + 0x48]
mov rcx, rsi
call fcn.14003a3e0
inc r15d
add r12d, 8
cmp r15d, dword [rsp + 0x28]
jge 0x1400325d8
mov rdx, qword [rsp + 0x40]
jmp 0x1400323f0
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, rsi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006f220
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140032810
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x78]
sub rsp, 0x178
lea eax, [r8 + r8*2]
mov rdi, rcx
mov rcx, qword [0x1400d2f30]
mov rsi, rdx
shl eax, 4
movsxd rbx, eax
add rbx, qword [rdx + 0x28]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400329de
mov rcx, qword [0x1400d2f30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400329de
mov rcx, qword [0x1400d2f60]
lea r8, [rsp + 0x20]
mov rax, rbx
mov qword [rsp + 0x170], r14
shr rax, 0x24
mov r9d, 0x30
add rax, 0xfffffffffffffff8
test rax, 0xfffffffffffffff7
je 0x1400328a8
mov rdx, rbx
call fcn.140031470
jmp 0x1400328b5
and ebx, 0xffffff
mov edx, ebx
call fcn.140031620
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rbp - 0x10]
movaps xmm1, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm1
call fcn.140031af0
mov rbx, qword [rsi + 0x20]
mov r14, rax
mov rcx, qword [0x1400d2f30]
add rbx, 0x250
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400329d2
mov rcx, qword [0x1400d2f30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400329d2
mov rcx, qword [0x1400d2f60]
lea r8, [rsp + 0x20]
mov rax, rbx
mov r9d, 0x30
shr rax, 0x24
add rax, 0xfffffffffffffff8
test rax, 0xfffffffffffffff7
je 0x14003295a
mov rdx, rbx
call fcn.140031470
jmp 0x140032967
and ebx, 0xffffff
mov edx, ebx
call fcn.140031620
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rbp + 0x30]
movaps xmm1, xmmword [rsp + 0x30]
lea rcx, [rbp - 0x80]
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x70], xmm1
call fcn.140031af0
mov r8, rax
lea rdx, [rbp - 0x50]
mov rcx, r14
call fcn.1400316e0
movss xmm0, dword [rbp - 0x20]
mov rax, rdi
movss xmm1, dword [rbp - 0x1c]
mov r14, qword [rsp + 0x170]
movss dword [rdi], xmm0
movss xmm0, dword [rbp - 0x18]
movss dword [rdi + 8], xmm0
movss dword [rdi + 4], xmm1
add rsp, 0x178
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140039800
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c6f10]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rcx, qword [0x1400d2f30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140039897
mov rcx, qword [0x1400d2f30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140039897
mov rcx, qword [0x1400d2f60]
lea r8, [rsp + 0x20]
mov rax, rbx
mov r9d, 8
shr rax, 0x24
add rax, 0xfffffffffffffff8
test rax, 0xfffffffffffffff7
je 0x140039872
mov rdx, rbx
call fcn.140031470
jmp 0x14003987f
and ebx, 0xffffff
mov edx, ebx
call fcn.140031620
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006f220
add rsp, 0x30
pop rbx
ret
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400398b0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c6f10]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rcx, qword [0x1400d2f30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140039945
mov rcx, qword [0x1400d2f30]
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140039945
mov rcx, qword [0x1400d2f60]
lea r8, [rsp + 0x20]
mov rax, rbx
mov r9d, 4
shr rax, 0x24
add rax, 0xfffffffffffffff8
test rax, 0xfffffffffffffff7
je 0x140039921
mov rdx, rbx
call fcn.140031470
jmp 0x14003992e
and ebx, 0xffffff
mov edx, ebx
call fcn.140031620
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006f220
add rsp, 0x30
pop rbx
ret
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140039960
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c6f10]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rcx, qword [0x1400d2f30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400399f7
mov rcx, qword [0x1400d2f30]
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400399f7
mov rcx, qword [0x1400d2f60]
lea r8, [rsp + 0x20]
mov rax, rbx
mov r9d, 4
shr rax, 0x24
add rax, 0xfffffffffffffff8
test rax, 0xfffffffffffffff7
je 0x1400399d1
mov rdx, rbx
call fcn.140031470
jmp 0x1400399de
and ebx, 0xffffff
mov edx, ebx
call fcn.140031620
movss xmm0, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006f220
add rsp, 0x30
pop rbx
ret
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140039a10
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c6f10]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rcx, qword [0x1400d2f30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140039aa3
mov rcx, qword [0x1400d2f30]
mov byte [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140039aa3
mov rcx, qword [0x1400d2f60]
lea r8, [rsp + 0x20]
mov rax, rbx
mov r9d, 1
shr rax, 0x24
add rax, 0xfffffffffffffff8
test rax, 0xfffffffffffffff7
je 0x140039a7e
mov rdx, rbx
call fcn.140031470
jmp 0x140039a8b
and ebx, 0xffffff
mov edx, ebx
call fcn.140031620
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006f220
add rsp, 0x30
pop rbx
ret
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14005c270
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14005c2b3
jmp 0x14005c3a5
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov rdx, rax
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14005c2ec
lea rdx, str.Win32:_Failed_to_allocate_global_handle_for_clipboard
mov ecx, 0x10008
call fcn.140069200
jmp 0x14005c3a5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14005c325
lea rdx, [0x1400a2ca8]
mov ecx, 0x10008
call fcn.140069200
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14005c3a5
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [0x1400ce468]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14005c389
lea rdx, [0x1400a2cd0]
mov ecx, 0x10008
call fcn.140069200
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14005c3a5
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rsp + 0x38]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
add rsp, 0x50
pop rdi
ret
Function at 0x14005c3c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
sub rsp, 0x30
mov rcx, qword [0x1400ce468]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14005c3ef
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.140069200
xor eax, eax
jmp 0x14005c48b
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14005c422
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.140069200
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x14005c48b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14005c455
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.140069200
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x14005c48b
mov rcx, qword [0x1400ce480]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x28]
call fcn.140068e50
mov qword [0x1400ce480], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x1400ce480]
add rsp, 0x30
pop rdi
ret
Function at 0x14005ded0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x120
lea rdi, [rsp + 0x30]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400c6f10]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14005df78
cmp dword [rsp + 0x40], 0x12
jne 0x14005df60
mov rax, qword [0x1400cd1a0]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14005df5e
mov rcx, qword [rsp + 0x80]
call fcn.14005bbc0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
jmp 0x14005df31
jmp 0x14005df76
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14005defc
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14005e106
lea rdx, str.GLFW
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetPropW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14005e106
mov dword [rsp + 0x98], 0xa0
mov dword [rsp + 0x9c], 0x154
mov dword [rsp + 0xa0], 0xa1
mov dword [rsp + 0xa4], 0x158
mov dword [rsp + 0xa8], 0x5b
mov dword [rsp + 0xac], 0x157
mov dword [rsp + 0xb0], 0x5c
mov dword [rsp + 0xb4], 0x15b
mov dword [rsp + 0x88], 0
jmp 0x14005e02d
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 4
jge 0x14005e106
movsxd rax, dword [rsp + 0x88]
lea rax, [rsp + rax*8 + 0x98]
mov ecx, 4
imul rcx, rcx, 0
mov eax, dword [rax + rcx]
mov dword [rsp + 0xc4], eax
movsxd rax, dword [rsp + 0x88]
lea rax, [rsp + rax*8 + 0x98]
mov ecx, 4
imul rcx, rcx, 1
mov eax, dword [rax + rcx]
mov dword [rsp + 0xc8], eax
movsxd rax, dword [rsp + 0xc8]
lea rcx, [0x1400ce888]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0xcc], eax
mov ecx, dword [rsp + 0xc4]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14005e0b7
jmp 0x14005e01d
movsxd rax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
movsx eax, byte [rcx + rax + 0x90]
cmp eax, 1
je 0x14005e0d9
jmp 0x14005e01d
call fcn.14005f5b0
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, dword [rsp + 0xcc]
mov edx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
call fcn.1400579c0
jmp 0x14005e01d
mov rax, qword [0x1400cf228]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14005e1a9
lea r8, [rsp + 0xf4]
lea rdx, [rsp + 0xd4]
mov rcx, qword [rsp + 0x80]
call fcn.14005cb10
mov eax, dword [rsp + 0xd4]
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x394], eax
jne 0x14005e179
mov eax, dword [rsp + 0xf4]
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x398], eax
je 0x14005e1a9
mov eax, dword [rsp + 0xf4]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm0, eax
mov eax, dword [rsp + 0xd4]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm1, eax
movaps xmm2, xmm0
mov rcx, qword [rsp + 0x80]
call fcn.14005be30
mov rcx, rsp
lea rdx, [0x14008a900]
call fcn.14006fc34
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14006f220
add rsp, 0x120
pop rdi
ret
Function at 0x14005ef60
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov eax, 1
mov word [rsp + 0x28], ax
mov eax, 2
mov word [rsp + 0x2a], ax
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x358]
mov qword [rsp + 0x30], rax
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x14005efd8
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140069200
mov rcx, rsp
lea rdx, [0x14008abf0]
call fcn.14006fc34
add rsp, 0x50
pop rdi
ret

Function at 0x14005f000
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov eax, 1
mov word [rsp + 0x28], ax
mov eax, 2
mov word [rsp + 0x2a], ax
mov dword [rsp + 0x2c], 1
mov qword [rsp + 0x30], 0
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x14005f070
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140069200
mov rcx, rsp
lea rdx, [0x14008ac40]
call fcn.14006fc34
add rsp, 0x50
pop rdi
ret

Function at 0x14005f5b0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14005f5de
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14005f5fe
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14005f61e
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
mov dword [rsp + 0x24], eax
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
mov ecx, dword [rsp + 0x24]
or ecx, eax
mov eax, ecx
and eax, 0x8000
test eax, eax
je 0x14005f656
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x14005f674
mov eax, dword [rsp + 0x20]
or eax, 0x10
mov dword [rsp + 0x20], eax
mov ecx, 0x90
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x14005f692
mov eax, dword [rsp + 0x20]
or eax, 0x20
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x140066900
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x140066930
mov r8d, 0x29
lea rdx, [0x1400c1260]
lea rcx, str.tls__win32.allocated__GLFW_FALSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 0xffffffff
jne 0x14006695e
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140069200
xor eax, eax
jmp 0x14006696e
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x1400669c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x1400669f0
mov r8d, 0x40
lea rdx, [0x1400c1330]
lea rcx, [0x1400c1390]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x20
pop rdi
ret

Function at 0x140066a10
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x140066a45
mov r8d, 0x46
lea rdx, [0x1400c13e0]
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x20
pop rdi
ret