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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400d0fc0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400d4e18]
mov edi, ecx
cmp byte [rbx + 0x4cf1], 0
jne 0x140022071
cmp byte [rbx + 0x4cf2], 0
jne 0x140022071
movsx r9d, word [rbx + 0x5e38]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400116f0
test dil, 2
je 0x14002219f
jmp 0x1400220fa
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5e38]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400c0a7c]
mulss xmm1, dword [0x1400c0a74]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe48]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x49d0], rax
mov dword [rbx + 0x49bc], 1
movss dword [rbx + 0x49c8], xmm0
movss dword [rbx + 0x49cc], xmm1
movss xmm0, dword [rbx + 0x3a20]
mulss xmm0, dword [0x1400c09cc]
or dword [rbx + 0x49b8], 0x41
movss dword [rbx + 0x4a18], xmm0
call fcn.1400116f0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140022150
lea r11, [0x1400b3650]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140022133
cmp byte [r8], r9b
jne 0x140022133
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 0x140022120
not ecx
call fcn.140018cc0
test rax, rax
je 0x14002219f
cmp byte [rax + 0xbe], 0
je 0x14002219f
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x5e38]
movsx r9d, word [rbx + 0x5e38]
call fcn.1400116f0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.14001b840
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140092e60
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140027250
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 + 0x5f90], 0
lea rbx, [rcx + 0x5f98]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400272f7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400272aa
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.140029ad0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140012000
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5f90]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5fa0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400d4c64]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400272ff
mov rcx, rbx
call fcn.140012000
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140027620
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
mov rbx, qword [0x1400d4e18]
xor ebp, ebp
cmp byte [rbx + 0x5ee8], bpl
jne 0x1400276ff
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400276f8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140011a80
mov rsi, rax
test rax, rax
je 0x1400276f8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140027684
mov rcx, rax
call fcn.140027850
mov r8, qword [0x1400d4e18]
test r8, r8
je 0x1400276ef
movsx rdx, word [r8 + 0x6048]
lea rcx, [r8 + 0x604c]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400276e4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6048], cx
movsx rax, cx
lea rcx, [r8 + 0x604c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6044]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5ee8], 1
movss xmm0, dword [rbx + 0x5eec]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14002778e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5eec], xmm0
jb 0x14002778e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140027781
mov rax, qword [0x1400d4e18]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5eec], ebp
call fcn.140027ab0
lea rdx, [0x1400bdfb4]
mov rcx, rdi
mov rsi, rax
call fcn.140011990
mov rdi, rax
test rax, rax
je 0x140027788
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140027788
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5eec], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400277b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400d4e18]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140027813
mov qword [rsp], rbx
lea rbx, [0x1400b3650]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400277f3
cmp byte [r8], r9b
jne 0x1400277f3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400277e0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f00]
not eax
mov r8, qword [r10 + 0x5f08]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14002783f
cmp dword [r8 + 8], eax
je 0x140027846
add r8, 0x48
cmp r8, rcx
jne 0x140027830
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14004f920
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14004f954
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14004f940
ret
Function at 0x1400558a0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14005596c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14005596c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140055985
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14005595c
cmp byte [rax], 0x5c
jne 0x140055956
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140055956
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140055942
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140055953
test r8b, 0x10
jne 0x140055956
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140055956
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140051440
test edi, edi
jne 0x1400558c0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140051430
int3
Function at 0x140077f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov edi, edx
and edi, 7
je 0x140077fc4
cmp edx, edi
jge 0x140077fb5
mov r8d, dword [rcx + 0x14]
mov eax, 1
mov ecx, edx
mov r10d, edx
shl eax, cl
mov r9d, edx
cmp r8d, eax
jae 0x140077fab
mov r11, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r11
jb 0x140077f73
xor cl, cl
jmp 0x140077f7c
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
lea edx, [r10 + 8]
mov ecx, r10d
mov dword [rbx + 0x10], edx
shl eax, cl
or r8d, eax
mov dword [rbx + 0x14], r8d
cmp edx, 0x18
jg 0x140077fb5
mov ecx, edx
mov eax, 1
shl eax, cl
mov r10d, edx
mov r9d, edx
cmp r8d, eax
jb 0x140077f67
mov rax, qword [rbx + 8]
mov edx, r9d
mov qword [rbx], rax
mov eax, dword [rbx + 0x14]
mov ecx, edi
shr eax, cl
sub edx, edi
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x10], edx
xor r8d, r8d
mov eax, edx
test edx, edx
jle 0x140077ffe
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x140077fe0
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x14007802b
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14007805f
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax + rax]
cmp rax, r8
jb 0x140078049
xor dl, dl
jmp 0x140078052
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x140078040
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x140078002
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1400780c8
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1400780e6
mov rcx, rbx
call fcn.1400773a0
test eax, eax
je 0x14007801e
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140087940
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1400d1aa0], 0
jne 0x140087955
xor edx, edx
mov ecx, 0x10001
jmp fcn.140087e60
jmp 0x140089440
push rbx
sub rsp, 0xa0
mov rax, qword [0x1400d0fc0]
xor rax, rsp
mov qword [rsp + 0x80], 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 0x1400894da
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1400894a5
mov rbx, qword [0x1400d1e90]
test rbx, rbx
je 0x1400894bb
mov rcx, rbx
call fcn.140087050
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140089493
jmp 0x1400894bb
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 0x140089480
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1400895d7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x1400895cf
movdqa xmm0, xmmword [0x1400b0d30]
xor ebx, ebx
movdqa xmm1, xmmword [0x1400b0d40]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x1400d3578]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x14008959e
cmp byte [rbp + rdi + 0x88], 1
jne 0x14008959e
call fcn.14008ae20
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.140085730
inc rbx
cmp rbx, 4
jl 0x140089560
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x1400d3f18]
test rbx, rbx
je 0x14008965c
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 0x14008961e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14008965c
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 + 0x80]
xor rcx, rsp
call fcn.140092e60
add rsp, 0xa0
pop rbx
ret
Function at 0x140087a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x1400d1aa0], 0
mov r10d, r9d
mov r11d, r8d
jne 0x140087a6b
xor edx, edx
mov ecx, 0x10001
jmp fcn.140087e60
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x140087ac0
test r9d, r9d
jle 0x140087ac0
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x140087a9c
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.140087e60
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
mov dword [rcx + 0x2c], r8d
mov r8d, r11d
mov dword [rcx + 0x30], r9d
mov r9d, r10d
mov dword [rcx + 0x40], eax
jmp fcn.140089ac0
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.140087e60

Function at 0x140088d20
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.14008a670
test eax, eax
je 0x140088e73
cmp dword [rdi], 0
je 0x140088de1
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x140088d80
call fcn.140090830
test eax, eax
je 0x140088e73
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1400903b0
jmp 0x140088dc6
cmp eax, 0x36002
jne 0x140088da4
call fcn.140091c30
test eax, eax
je 0x140088e73
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140091720
jmp 0x140088dc6
cmp eax, 0x36003
jne 0x140088dce
call fcn.140092a70
test eax, eax
je 0x140088e73
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140092830
test eax, eax
je 0x140088e73
mov rdx, rdi
mov rcx, rbx
call fcn.14008c5e0
test eax, eax
je 0x140088e73
cmp qword [rbx + 0x48], 0
je 0x140088e46
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.14008a190
mov rcx, rbx
call fcn.14008ad80
cmp dword [rsi + 0x2c], 0
je 0x140088e6c
mov rcx, rbx
call fcn.140085420
mov eax, 1
jmp 0x140088e75
cmp dword [rsi + 0x14], 0
je 0x140088e6c
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x140088e6c
mov rcx, rbx
call fcn.140088f50
mov eax, 1
jmp 0x140088e75
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 0x140089440
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1400d1aa0], 0
jne 0x140087955
xor edx, edx
mov ecx, 0x10001
jmp fcn.140087e60
jmp 0x140089440
push rbx
sub rsp, 0xa0
mov rax, qword [0x1400d0fc0]
xor rax, rsp
mov qword [rsp + 0x80], 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 0x1400894da
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1400894a5
mov rbx, qword [0x1400d1e90]
test rbx, rbx
je 0x1400894bb
mov rcx, rbx
call fcn.140087050
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140089493
jmp 0x1400894bb
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 0x140089480
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1400895d7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x1400895cf
movdqa xmm0, xmmword [0x1400b0d30]
xor ebx, ebx
movdqa xmm1, xmmword [0x1400b0d40]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x1400d3578]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x14008959e
cmp byte [rbp + rdi + 0x88], 1
jne 0x14008959e
call fcn.14008ae20
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.140085730
inc rbx
cmp rbx, 4
jl 0x140089560
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x1400d3f18]
test rbx, rbx
je 0x14008965c
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 0x14008961e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14008965c
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 + 0x80]
xor rcx, rsp
call fcn.140092e60
add rsp, 0xa0
pop rbx
ret
Function at 0x14008a3d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
xor r10d, r10d
mov edi, r8d
mov rbx, rdx
mov r11d, 0x7fffffff
test ecx, ecx
jle 0x14008a436
mov qword [rsp + 0x10], rsi
imul edi, r9d
mov r9, rdx
mov esi, ecx
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, r11d
imul eax, dword [rbx]
lea rbx, [rbx + 0x10]
mov r8, r10
mov r10, r9
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
cmovl r11d, eax
cmp eax, ecx
cmovge r10, r8
add r9, 0x10
sub rsi, 1
jne 0x14008a400
mov rsi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r10
pop rdi
ret

Function at 0x14008ab70
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1400d3f18], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14008abcc
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 [0x1400d3f08], xmm0
movsd qword [0x1400d3f10], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x14008ac10
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14008abf1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x14008ac18
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 0x14008ac18
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140085420
mov rcx, rbx
call fcn.14008afc0
cmp dword [rbx + 0x1f8], 0
je 0x14008ac6b
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 0x14008ac6b
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.14008e4c0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14008ac80
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x14008acd0
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 0x14008acd0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.14008e4c0
xor ecx, ecx
mov qword [0x1400d3f18], 0
call fcn.14008afc0
cvttsd2si ecx, qword [0x1400d3f08]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1400d3f10]
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 0x14008ad64
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14008ad48
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 0x14008ae20
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 esi, 0x8000
or edi, 2
mov ecx, 0x12
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove 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

Function at 0x14008e220
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 0x14008e250
lea rdx, [0x1400b1680]
mov ecx, 0x10008
call fcn.14008e4c0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret