joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004bab0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [0x140129200]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rbx, rcx
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14004bc78
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14004bb1d
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.1400466b0
cmp rax, r11
je 0x14004bb6d
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14004bb44
cmp cx, 0x2f
jne 0x14004bb4d
add rax, 2
cmp rax, r11
jne 0x14004bb35
cmp rax, r11
je 0x14004bb6d
lea rdx, [r10 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14004bb6d
cmp cx, 0x2f
je 0x14004bb6d
mov r10, rdx
cmp rax, rdx
jne 0x14004bb52
sub r11, r10
sar r11, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
mov r8, r11
mov rdx, r10
lea rcx, [rsp + 0x48]
call fcn.140040840
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.14004ec80
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x9c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x14004bc04
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004bbff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004bc7c
call fcn.1400d8070
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], bp
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14004bc55
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004bc50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004bc83
call fcn.1400d8070
mov rcx, rsi
test edi, edi
je 0x14004bc8a
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14004bb10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14004bc94
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400d7f80
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14004e090
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx], rax
mov rdx, rcx
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
lea rcx, [0x14004de20]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140050af0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140050b24
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140050b10
ret
Function at 0x1400584e0
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 0x1400585ac
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400585ac
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 0x1400585c5
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 0x14005859c
cmp byte [rax], 0x5c
jne 0x140058596
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140058596
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140058582
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140058593
test r8b, 0x10
jne 0x140058596
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140058596
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140053200
test edi, edi
jne 0x140058500
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.1400531f0
int3
Function at 0x140060dd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140129200]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r9
mov rdi, r8
mov r14, rcx
mov ecx, 0xa0
call fcn.1400d86e4
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rax, qword [rbx]
mov qword [rsi], rax
lea rcx, [rsi + 8]
mov rdx, rdi
call fcn.14004d280
lea rax, [0x14004c1f0]
mov qword [rsi + 0x98], rax
mov qword [rsp + 0x30], rsi
lea rbx, [r14 + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rsi
lea r8, [0x1400611c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r14], rax
test rax, rax
je 0x140060e77
mov rax, r14
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d7f80
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov dword [rbx], 0
mov ecx, 6
call fcn.1400d75e0
int3
Function at 0x140063130
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140129200]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, r8
mov rbx, rcx
xor esi, esi
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov qword [rsp + 0x68], rsi
mov r8, qword [rdx]
mov edx, 0x2712
call qword [str._Y_t_]
lea r8, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_87.0.4280.88_Safari_537.36
mov edx, 0x2722
mov rcx, rbx
call qword [str._Y_t_]
lea r8, [0x140061c20]
mov edx, 0x4e2b
mov rcx, rbx
call qword [str._Y_t_]
lea r8, [rsp + 0x58]
mov edx, 0x2711
mov rcx, rbx
call qword [str._Y_t_]
lea edx, [rsi + 0x34]
lea r8d, [rsi + 1]
mov rcx, rbx
call qword [str._Y_t_]
lea edx, [rsi + 0x20]
mov r8d, 0x60000
mov rcx, rbx
call qword [str._Y_t_]
mov rcx, rbx
call qword [0x140111de8]
mov ebx, eax
test eax, eax
jne 0x140063309
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14004ec80
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call fcn.140063410
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140063263
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006325e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006325e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
movdqa xmm0, xmmword [0x140111b00]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], si
cmp qword [rbp - 8], 0
jne 0x140063284
mov ebx, reloc.WS2_32.dll_socket
jmp 0x14006329d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub r8, rdx
lea rcx, [rsp + 0x70]
call fcn.140063600
mov ebx, esi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140043960
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.1400d4b2c
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140063348
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063343
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063343
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d8070
mov eax, ebx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400d7f80
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
Function at 0x140073e70
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140154c20], 0
jne 0x140073e85
xor edx, edx
mov ecx, 0x10001
jmp fcn.140077860
jmp 0x140074e50
push rbx
sub rsp, 0xa0
mov rax, qword [0x140129200]
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 0x140074eea
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x140074eb5
mov rbx, qword [0x140155010]
test rbx, rbx
je 0x140074ecb
mov rcx, rbx
call fcn.140073610
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140074ea3
jmp 0x140074ecb
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 0x140074e90
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x140074fe7
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 0x140074fdf
movdqa xmm0, xmmword [0x1400f6f10]
xor ebx, ebx
movdqa xmm1, xmmword [0x1400f6f20]
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, [0x1401566f8]
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 0x140074fae
cmp byte [rbp + rdi + 0x88], 1
jne 0x140074fae
call fcn.1400764c0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.140071de0
inc rbx
cmp rbx, 4
jl 0x140074f70
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 [0x140157098]
test rbx, rbx
je 0x14007506c
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 0x14007502e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14007506c
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.1400d7f80
add rsp, 0xa0
pop rbx
ret
Function at 0x140074780
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.140075d10
test eax, eax
je 0x1400748d3
cmp dword [rdi], 0
je 0x140074841
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x1400747e0
call fcn.14007b210
test eax, eax
je 0x1400748d3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.14007ad90
jmp 0x140074826
cmp eax, 0x36002
jne 0x140074804
call fcn.14007c610
test eax, eax
je 0x1400748d3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.14007c100
jmp 0x140074826
cmp eax, 0x36003
jne 0x14007482e
call fcn.14007d450
test eax, eax
je 0x1400748d3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.14007d210
test eax, eax
je 0x1400748d3
mov rdx, rdi
mov rcx, rbx
call fcn.140078250
test eax, eax
je 0x1400748d3
cmp qword [rbx + 0x48], 0
je 0x1400748a6
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.140075ad0
mov rcx, rbx
call fcn.140076420
cmp dword [rsi + 0x2c], 0
je 0x1400748cc
mov rcx, rbx
call fcn.140071ad0
mov eax, 1
jmp 0x1400748d5
cmp dword [rsi + 0x14], 0
je 0x1400748cc
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x1400748cc
mov rcx, rbx
call fcn.1400749b0
mov eax, 1
jmp 0x1400748d5
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 0x140074e50
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140154c20], 0
jne 0x140073e85
xor edx, edx
mov ecx, 0x10001
jmp fcn.140077860
jmp 0x140074e50
push rbx
sub rsp, 0xa0
mov rax, qword [0x140129200]
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 0x140074eea
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x140074eb5
mov rbx, qword [0x140155010]
test rbx, rbx
je 0x140074ecb
mov rcx, rbx
call fcn.140073610
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140074ea3
jmp 0x140074ecb
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 0x140074e90
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x140074fe7
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 0x140074fdf
movdqa xmm0, xmmword [0x1400f6f10]
xor ebx, ebx
movdqa xmm1, xmmword [0x1400f6f20]
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, [0x1401566f8]
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 0x140074fae
cmp byte [rbp + rdi + 0x88], 1
jne 0x140074fae
call fcn.1400764c0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.140071de0
inc rbx
cmp rbx, 4
jl 0x140074f70
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 [0x140157098]
test rbx, rbx
je 0x14007506c
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 0x14007502e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14007506c
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.1400d7f80
add rsp, 0xa0
pop rbx
ret
Function at 0x140076210
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x140157098], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14007626c
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 [0x140157088], xmm0
movsd qword [0x140157090], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x1400762b0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140076291
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x1400762b8
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 0x1400762b8
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140071ad0
mov rcx, rbx
call fcn.140076660
cmp dword [rbx + 0x1f8], 0
je 0x14007630b
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 0x14007630b
lea rdx, [0x1400f6cf0]
mov ecx, 0x10008
call fcn.14007d950
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140076320
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x140076370
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 0x140076370
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.14007d950
xor ecx, ecx
mov qword [0x140157098], 0
call fcn.140076660
cvttsd2si ecx, qword [0x140157088]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x140157090]
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 0x140076404
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400763e8
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 0x1400764c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, reloc.WS2_32.dll_recvfrom
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, reloc.WS2_32.dll_select
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, reloc.WS2_32.dll_sendto
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 0x140079e20
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 0x140079e50
lea rdx, [0x1400f79d0]
mov ecx, 0x10008
call fcn.14007d950
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14007d450
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140129200]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1401572c8], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x14007d4a5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d7f80
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1401572c8], rax
test rax, rax
jne 0x14007d4e8
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x14007d4b0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140077860
jmp 0x14007d60d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401572c8]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1401572d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401572c8]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1401572d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401572c8]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1401572e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401572c8]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1401572e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401572c8]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1401572f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401572c8]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1401572f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1401572d0], 0
mov qword [0x140157300], rax
je 0x14007d5df
cmp qword [0x1401572e0], 0
je 0x14007d5df
cmp qword [0x1401572e8], 0
je 0x14007d5df
cmp qword [0x1401572f0], 0
je 0x14007d5df
cmp qword [0x1401572f8], 0
je 0x14007d5df
test rax, rax
je 0x14007d5df
mov eax, 1
jmp 0x14007d60f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140077860
mov rcx, qword [0x1401572c8]
test rcx, rcx
je 0x14007d60d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1401572c8], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d7f80
add rsp, 0x48
ret