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

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r14
sub rsp, 0x30
movzx r9d, byte [rdx + 9]
mov r14, rdx
mov r10d, dword [rdx + 4]
mov eax, r9d
mov qword [rsp + 0x50], rbx
mov edx, r9d
mov qword [rsp + 0x58], rsi
shr edx, 1
mov qword [rsp + 0x68], r12
mov r12, rcx
xor ecx, ecx
imul edx, r10d
mov qword [rsp + 0x28], r13
mov esi, ecx
mov qword [rsp + 0x20], r15
lea r15d, [rcx + 1]
add edx, dword [r14]
cmp r9d, edx
jge 0x14011589d
add eax, eax
inc esi
cmp eax, edx
jl 0x140115891
test esi, esi
jne 0x1401158b7
test r8d, r8d
jle 0x1401158ba
movzx eax, byte [r14 + 0xa]
lea rbp, [r14 + 0xa]
add eax, eax
cmp eax, r9d
jae 0x1401158da
mov ecx, r15d
jmp 0x1401158de
test r8d, r8d
jns 0x1401158da
movzx eax, byte [r14 + 0xa]
lea rbp, [r14 + 0xa]
add eax, eax
cmp eax, r9d
jb 0x1401158d1
mov ecx, r15d
jmp 0x1401158de
test esi, esi
je 0x1401158da
mov ecx, r15d
jmp 0x1401158de
lea rbp, [r14 + 0xa]
mov eax, r8d
lea rbx, [0x1402dfd30]
cdq
mov edi, eax
mov eax, 0x22
xor edi, edx
sub edi, edx
add edi, edi
sub edi, r10d
sub edi, ecx
movsxd rcx, dword [r12 + 0x1210]
mov r13d, edi
mov ebx, dword [rbx + rcx*4]
mov ecx, esi
sar r13d, cl
sub eax, ebx
cmp r13d, eax
jge 0x140115949
lea eax, [r13 + 1]
cmp eax, 0x1f
jle 0x140115938
mov eax, r13d
mov rcx, r12
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov r8d, eax
mov ebx, eax
call fcn.1401041f0
sub r13d, ebx
mov ecx, esi
lea r8d, [r13 + 1]
mov ebx, r15d
shl ebx, cl
dec ebx
and ebx, edi
jmp 0x14011597d
mov r8d, 0x23
sub r8d, ebx
cmp r8d, 0x1f
jle 0x14011596f
xor edx, edx
mov rcx, r12
lea r8d, [rdx + 0x1f]
call fcn.1401041f0
mov r8d, 4
sub r8d, ebx
lea ebx, [rdi - 1]
mov esi, 0xc
and ebx, 0xfff
mov rcx, r12
mov edx, r15d
call fcn.1401041f0
mov r8d, esi
mov edx, ebx
mov rcx, r12
call fcn.1401041f0
cmp dword [rsp + 0x60], 0
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jge 0x1401159b8
inc byte [rbp]
sub edi, dword [r14 + 4]
movzx eax, byte [r14 + 9]
inc edi
sar edi, 1
add edi, dword [r14]
mov dword [r14], edi
cmp al, byte [r14 + 8]
jne 0x1401159db
shr byte [rbp], 1
sar edi, 1
mov dword [r14], edi
shr al, 1
inc al
mov byte [r14 + 9], al
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret

Function at 0x140120bc0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140120c0a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140120c0a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140120c0a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140120c0a
cmp dword [rcx + 0x84], 0xe
jbe 0x140120c0a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140120c0c
xor al, al
add rsp, 0x28
ret
Function at 0x14004102c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14008c110]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400410a1
cmp byte [rcx + 0x71], 0
je 0x1400410a1
or edx, 0xffffffff
call fcn.140040110
cmp eax, 0xffffffff
je 0x1400410f6
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x140062ace.0]
test eax, eax
je 0x1400410bc
sub eax, 1
je 0x1400410c0
cmp eax, 2
jne 0x1400410f6
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004d060
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400410ed
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.14005672c
cmp rdi, rax
jne 0x1400410f6
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400410a3
xor al, al
jmp 0x1400410a3

Function at 0x140042e0c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140042c67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140042c67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140042c67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140042c67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140042c67
cmp dword [rcx + 0x84], 0xe
jbe 0x140042c67
cmp dword [rcx + 0xf8], 0
je 0x140042c67
mov ecx, ebx
call fcn.140042d14
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140042ae4
cmp dword [rbp + 0x20], 0
je 0x140042cb4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140042cc4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140042c00

Function at 0x14004d6e8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14008d110], eax
call fcn.14004d3dc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14008d110], 0
jne case.default.0x14004d73e
mov ecx, 1
call fcn.14004d3dc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
xchg ebp, eax
invalid
Function at 0x140001f00
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140001f5d
lea rbx, [0x1400384e0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140001f44
cmp r10, 2
jb 0x140001f44
cmp byte [r9], r8b
jne 0x140001f44
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140001f20
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140001f9f
lea rbx, [0x1400384e0]
cmp r8b, 0x23
jne 0x140001f83
cmp byte [r9], r8b
jne 0x140001f83
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140001f70
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140003010
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1400384e0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x1400c0630]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ebc], ebx
jne 0x1400030a6
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.14000a7a0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140003850
Capabilities:
Hash data with crc32

Disassembly:
mov r10d, 0xffffffff
lea r8, [0x14003cdb5]
mov eax, r10d
lea r11, [0x1400384e0]
mov r9b, 0x4c
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140003883
cmp byte [r8], r9b
jne 0x140003883
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140003870
mov rcx, qword [0x1400c0630]
not eax
movsxd rdx, dword [rcx + 0x3e68]
mov r9, qword [rcx + 0x3e70]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x140003901
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x1400038f9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x1400038fc
mov rdx, r8
test rdx, rdx
jne 0x1400038d0
cmp r9, r10
je 0x140003910
cmp dword [r9], eax
jne 0x140003910
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x14000a3e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [0x53c8], 0
mov rdi, r8
mov rsi, rdx
je 0x14000a492
mov ecx, dword [0x53d4]
mov ebx, 0x53d0
mov qword [rsp + 0x30], rbp
xor ebp, ebp
test ecx, ecx
jns 0x14000a432
mov eax, ecx
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, ecx
mov ecx, ebx
test eax, eax
cmovg edx, eax
call fcn.14000af60
mov r8, rdi
mov dword [rbx], ebp
mov rdx, rsi
mov rcx, rbx
call fcn.140002190
mov eax, dword [0x53d0]
mov edx, 1
mov r9, qword [0x53c8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [0x53d8]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400c0628]
cmovne rcx, rax
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 0x53d0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140002190

Function at 0x1400198b0
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 0x1400198f3
jmp 0x1400199e5
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 0x14001992c
lea rdx, str.Win32:_Failed_to_allocate_global_handle_for_clipboard
mov ecx, 0x10008
call fcn.1400268f0
jmp 0x1400199e5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140019965
lea rdx, [0x140049758]
mov ecx, 0x10008
call fcn.1400268f0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400199e5
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 [0x1400beb68]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1400199c9
lea rdx, [0x140049780]
mov ecx, 0x10008
call fcn.1400268f0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400199e5
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 0x140019a00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
sub rsp, 0x30
mov rcx, qword [0x1400beb68]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140019a2f
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.1400268f0
xor eax, eax
jmp 0x140019acb
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019a62
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.1400268f0
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x140019acb
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140019a95
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.1400268f0
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x140019acb
mov rcx, qword [0x1400beb80]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x28]
call fcn.140026540
mov qword [0x1400beb80], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x1400beb80]
add rsp, 0x30
pop rdi
ret
Function at 0x14001b510
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 [0x14006cf10]
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 0x14001b5b8
cmp dword [rsp + 0x40], 0x12
jne 0x14001b5a0
mov rax, qword [0x1400bd8a0]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14001b59e
mov rcx, qword [rsp + 0x80]
call fcn.140017d10
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
jmp 0x14001b571
jmp 0x14001b5b6
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14001b53c
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14001b746
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 0x14001b746
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 0x14001b66d
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 4
jge 0x14001b746
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, [0x1400bef88]
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 0x14001b6f7
jmp 0x14001b65d
movsxd rax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
movsx eax, byte [rcx + rax + 0x90]
cmp eax, 1
je 0x14001b719
jmp 0x14001b65d
call fcn.14001cbf0
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.140013b10
jmp 0x14001b65d
mov rax, qword [0x1400bf928]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14001b7e9
lea r8, [rsp + 0xf4]
lea rdx, [rsp + 0xd4]
mov rcx, qword [rsp + 0x80]
call fcn.14001a150
mov eax, dword [rsp + 0xd4]
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x394], eax
jne 0x14001b7b9
mov eax, dword [rsp + 0xf4]
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x398], eax
je 0x14001b7e9
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.140019470
mov rcx, rsp
lea rdx, [0x1400350c0]
call fcn.14002bc30
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002b370
add rsp, 0x120
pop rdi
ret
Function at 0x14001c5a0
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 0x14001c618
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400268f0
mov rcx, rsp
lea rdx, [0x1400353b0]
call fcn.14002bc30
add rsp, 0x50
pop rdi
ret

Function at 0x14001c640
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 0x14001c6b0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400268f0
mov rcx, rsp
lea rdx, [0x140035400]
call fcn.14002bc30
add rsp, 0x50
pop rdi
ret

Function at 0x14001cbf0
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 0x14001cc1e
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 0x14001cc3e
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 0x14001cc5e
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 0x14001cc96
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 0x14001ccb4
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 0x14001ccd2
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 0x140022a50
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 0x140022a80
mov r8d, 0x29
lea rdx, [0x140067260]
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 0x140022aae
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1400268f0
xor eax, eax
jmp 0x140022abe
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140022b10
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 0x140022b40
mov r8d, 0x40
lea rdx, [0x140067330]
lea rcx, [0x140067390]
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 0x140022b60
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 0x140022b95
mov r8d, 0x46
lea rdx, [0x1400673e0]
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
Function at 0x140026a40
Capabilities:
Log keystrokes

Disassembly:
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x40]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14006cf10]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov r8d, 0x6d1
xor edx, edx
lea rcx, [0x1400bf242]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x20
jmp 0x140026aa5
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x140026ca9
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x1400bef88]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x140026ad6
jmp 0x140026a9b
cmp dword [rsp + 0x40], 0x140
jl 0x140026bb2
cmp dword [rsp + 0x40], 0x14e
jg 0x140026bb2
mov dword [rsp + 0x1b8], 0x60
mov dword [rsp + 0x1bc], 0x61
mov dword [rsp + 0x1c0], 0x62
mov dword [rsp + 0x1c4], 0x63
mov dword [rsp + 0x1c8], 0x64
mov dword [rsp + 0x1cc], 0x65
mov dword [rsp + 0x1d0], 0x66
mov dword [rsp + 0x1d4], 0x67
mov dword [rsp + 0x1d8], 0x68
mov dword [rsp + 0x1dc], 0x69
mov dword [rsp + 0x1e0], 0x6e
mov dword [rsp + 0x1e4], 0x6f
mov dword [rsp + 0x1e8], 0x6a
mov dword [rsp + 0x1ec], 0x6d
mov dword [rsp + 0x1f0], 0x6b
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x1b8]
mov dword [rsp + 0x164], eax
jmp 0x140026bcb
mov edx, 1
mov ecx, dword [rsp + 0x168]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 0xffffffff
jne 0x140026c45
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 1
jge 0x140026c54
jmp 0x140026a9b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x1400bf242]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x178]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x140026a9b
mov rcx, rsp
lea rdx, [0x1400370a0]
call fcn.14002bc30
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.14002b370
add rsp, 0x220
pop rdi
ret