joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c840
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000824c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c8ca
cmp byte [rbp - 0x21], r15b
je 0x14000c8c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c900
call fcn.14000a948
test eax, eax
jne 0x14000c8ec
cmp byte [rbp - 0x21], r15b
je 0x14000c8e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c900
cmp byte [rbp - 0x21], r15b
je 0x14000c8fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000782c
test eax, eax
jne 0x14000c9a0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000824c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c93f
cmp byte [rbp - 0x21], r15b
je 0x14000c974
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c974
call fcn.14000a948
test eax, eax
jne 0x14000c960
cmp byte [rbp - 0x21], r15b
je 0x14000c959
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c974
cmp byte [rbp - 0x21], r15b
je 0x14000c971
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000782c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c9a0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c9a3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c9b1
mov rcx, rdi
call fcn.1400077dc
cmp byte [rbp + 0x3f], r15b
je 0x14000c9c0
mov rcx, qword [rbp + 0x27]
call fcn.1400077dc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000f7f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f818
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f818
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140650058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406501df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140650089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065006f
add dl, dl
jne 0x140650096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406500f6
xor eax, eax
add dl, dl
jne 0x1406500a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406501ad
add dl, dl
jne 0x1406500b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406500c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406500d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406500dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406500ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065007e
mov eax, 1
add dl, dl
jne 0x140650106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140650113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406500fb
sub eax, ebx
mov ebx, 1
jne 0x14065014c
mov ecx, 1
add dl, dl
jne 0x14065012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140650123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140650168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140650175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065015d
cmp eax, 0x7d00
jae 0x14065019b
cmp eax, 0x500
jb 0x140650196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065007e
cmp eax, 0x7f
ja 0x14065019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406501d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14065007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x141e2f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141e2f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141e2f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141e2f06f
add dl, dl
jne 0x141e2f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141e2f0f6
xor eax, eax
add dl, dl
jne 0x141e2f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141e2f1ad
add dl, dl
jne 0x141e2f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e2f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e2f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e2f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141e2f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141e2f07e
mov eax, 1
add dl, dl
jne 0x141e2f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e2f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141e2f0fb
sub eax, ebx
mov ebx, 1
jne 0x141e2f14c
mov ecx, 1
add dl, dl
jne 0x141e2f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141e2f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141e2f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141e2f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141e2f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141e2f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141e2f15d
cmp eax, 0x7d00
jae 0x141e2f19b
cmp eax, 0x500
jb 0x141e2f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141e2f07e
cmp eax, 0x7f
ja 0x141e2f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141e2f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141e2f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141e2f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002350
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140056aa0], 0
jne 0x140002365
xor edx, edx
mov ecx, 0x10001
jmp fcn.140001630
jmp 0x140006e30
push rbx
sub rsp, 0x80
mov rax, qword [0x140055fc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140006ec7
cmp dword [rsp + 0x38], 0x12
jne 0x140006e92
mov rbx, qword [0x140056e90]
test rbx, rbx
je 0x140006ea8
nop word [rax + rax]
mov rcx, rbx
call fcn.140001c00
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140006e80
jmp 0x140006ea8
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140006e67
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x140006ff2
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x140006ff2
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x140058820]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140006f36
cmp byte [rbx + 0x1dc], 1
jne 0x140006f36
call fcn.140008210
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.1400035b0
movsx edi, word [0x140058828]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140006f72
cmp byte [rbx + 0x1e0], 1
jne 0x140006f72
call fcn.140008210
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.1400035b0
movsx edi, word [0x140058826]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140006fae
cmp byte [rbx + 0x1df], 1
jne 0x140006fae
call fcn.140008210
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.1400035b0
movsx edi, word [0x14005882e]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140006fea
cmp byte [rbx + 0x1e3], 1
jne 0x140006fea
call fcn.140008210
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.1400035b0
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x140058f18]
test rbx, rbx
je 0x140007077
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x140007039
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x140007077
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14000cdc0
add rsp, 0x80
pop rbx
ret
Function at 0x140004a50
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x140055fc0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call fcn.14002ab40
xor edx, edx
lea rcx, [0x140058832]
mov r8d, 0x6d1
call fcn.14002ab40
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1400585b8]
xor r12d, r12d
lea r15, [0x1400588d2]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x140004c08
cmp ebx, 0x140
jb 0x140004b6f
cmp ebx, 0x14e
ja 0x140004b6f
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x140004b7e
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140004bd1
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x140004c08
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x140004ad1
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14000cdc0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140006160
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x140006190
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140004220
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140006970
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, r9
mov r8, r9
mov rsi, rdx
mov rbx, rcx
call fcn.140007a70
test eax, eax
je 0x140006ac3
cmp dword [rdi], 0
je 0x140006a31
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x1400069d0
call fcn.14000a800
test eax, eax
je 0x140006ac3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.14000a380
jmp 0x140006a16
cmp eax, 0x36002
jne 0x1400069f4
call fcn.14000bb60
test eax, eax
je 0x140006ac3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.14000b690
jmp 0x140006a16
cmp eax, 0x36003
jne 0x140006a1e
call fcn.14000c9d0
test eax, eax
je 0x140006ac3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.14000c7a0
test eax, eax
je 0x140006ac3
mov rdx, rdi
mov rcx, rbx
call fcn.1400027d0
test eax, eax
je 0x140006ac3
cmp qword [rbx + 0x48], 0
je 0x140006a96
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rbx
call fcn.1400077b0
mov rcx, rbx
call fcn.140008170
cmp dword [rsi + 0x2c], 0
je 0x140006abc
mov rcx, rbx
call fcn.140003330
mov eax, 1
jmp 0x140006ac5
cmp dword [rsi + 0x14], 0
je 0x140006abc
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x140006abc
mov rcx, rbx
call fcn.140006bc0
mov eax, 1
jmp 0x140006ac5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140006e30
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140056aa0], 0
jne 0x140002365
xor edx, edx
mov ecx, 0x10001
jmp fcn.140001630
jmp 0x140006e30
push rbx
sub rsp, 0x80
mov rax, qword [0x140055fc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140006ec7
cmp dword [rsp + 0x38], 0x12
jne 0x140006e92
mov rbx, qword [0x140056e90]
test rbx, rbx
je 0x140006ea8
nop word [rax + rax]
mov rcx, rbx
call fcn.140001c00
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140006e80
jmp 0x140006ea8
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140006e67
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x140006ff2
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x140006ff2
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x140058820]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140006f36
cmp byte [rbx + 0x1dc], 1
jne 0x140006f36
call fcn.140008210
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.1400035b0
movsx edi, word [0x140058828]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140006f72
cmp byte [rbx + 0x1e0], 1
jne 0x140006f72
call fcn.140008210
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.1400035b0
movsx edi, word [0x140058826]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140006fae
cmp byte [rbx + 0x1df], 1
jne 0x140006fae
call fcn.140008210
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.1400035b0
movsx edi, word [0x14005882e]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140006fea
cmp byte [rbx + 0x1e3], 1
jne 0x140006fea
call fcn.140008210
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.1400035b0
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x140058f18]
test rbx, rbx
je 0x140007077
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x140007039
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x140007077
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14000cdc0
add rsp, 0x80
pop rbx
ret
Function at 0x140007f60
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x140058f18], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140007fbc
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x140058f08], xmm0
movsd qword [0x140058f10], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x140008000
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140007fe1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x140008008
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x140008008
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140003330
mov rcx, rbx
call fcn.1400079f0
cmp dword [rbx + 0x1f8], 0
je 0x14000805b
mov rax, qword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x14000805b
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140004220
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140008070
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x1400080c0
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400080c0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140004220
xor ecx, ecx
mov qword [0x140058f18], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x140058f08]
mov qword [0x140058f20], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x140058f10]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x388], ecx
mov rcx, qword [rbx + 0x350]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [rbx + 0x7c], 0x34001
jne 0x140008160
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140008144
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
Function at 0x140008210
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x12
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret