joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098830
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
movsd xmm0, qword [str.jXT_SP]
movsd qword [rsp + 0x20], xmm0
mov eax, dword [0x140191d78]
mov dword [rsp + 0x28], eax
cmp byte [0x140191d7b], 0
je 0x1400989c0
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140098980
movdqa xmm4, xmmword [0x140192b30]
mov eax, 5
movd xmm6, eax
mov eax, Ordinal_33
movd xmm5, eax
movdqa xmm2, xmmword [0x140192830]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401928d0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140192a00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140192a70]
movd xmm0, dword [str.jXT_SP]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm3, xmmword [0x140192840]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401928d0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140192a00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140192a70]
movd xmm0, dword [rsp + 0x24]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
mov ecx, 8
mov eax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop word [rax + rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x38
add dl, cl
xor byte [r8], dl
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xc
jl 0x140098990
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x1400989fb
mov edx, 2
mov r8d, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400989fb
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
Function at 0x140098f80
Capabilities:
Encode data using xor
Terminate process

Disassembly:
sub rsp, 0xe8
mov r11, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x30]
movaps xmmword [rsp + 0xd0], xmm6
movaps xmm6, xmm0
call fcn.1400991d0
mov r10, rax
cmp byte [rax + 0x62], 0
je 0x140099180
xor r8d, r8d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140099141
movdqa xmm0, xmmword [0x140192a30]
mov eax, 1
movdqa xmm5, xmmword [0x140192830]
mov rcx, r10
movdqa xmm4, xmmword [0x140192a10]
movaps xmmword [rsp + 0xc0], xmm7
movaps xmmword [rsp + 0xb0], xmm8
movdqa xmm8, xmmword [0x1401928b0]
movd xmm7, eax
mov eax, Ordinal_33
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movaps xmmword [rsp + 0xa0], xmm9
movd xmm9, eax
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm7
movdqa xmm0, xmm1
psrld xmm0, xmm9
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140192a00]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 8], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm7
movdqa xmm0, xmm1
psrld xmm0, xmm9
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140192a00]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
cmp r8d, 0x60
jl 0x140099020
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm8, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
cmp r8d, 0x63
jge 0x140099180
movsxd r9, r8d
add r9, r10
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, dl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0x63
jl 0x140099150
mov rdx, r10
mov rcx, r11
call fcn.14007aa70
movaps xmm1, xmm6
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___float____ptr64]
lea rdx, [rsp + 0xf8]
mov dword [rsp + 0xf8], 0x5dc
lea rcx, [rsp + 0x100]
call fcn.14000d280
mov rcx, rax
call fcn.14000d290
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400ab8c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rax, qword [str.fZXXOW:pPECHU_OY]
xor r11d, r11d
cmp byte [0x140192387], r11b
mov rbx, rcx
mov dword [rcx], r11d
mov qword [rcx + 8], r11
mov qword [rcx + 0x10], r11
mov qword [rcx + 0x18], r11
mov dword [rcx + 0x20], 3
mov qword [rcx + 0x28], r11
mov qword [rsp + 0x40], rax
je 0x1400aba61
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400aba1e
movdqa xmm2, xmmword [0x140192830]
mov eax, 4
movdqa xmm4, xmmword [0x140192aa0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140192840]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x20], xmm6
movd xmm6, eax
mov eax, Ordinal_33
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movd xmm5, eax
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401928a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x40]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140192a00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140192a40]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x40], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0x20]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401928a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x44]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140192a00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140192a40]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
jmp 0x1400aba61
lea r9, [rsp + 0x40]
mov r8d, r11d
nop word [rax + rax]
mov eax, 0x4d4873ed
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x1400aba30
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], r11
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x48], r11
nop dword [rax]
inc r8
cmp byte [rax + r8], r11b
jne 0x1400aba80
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x30]
call fcn.140016340
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1400ae1e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1401c8928]
movaps xmmword [rsp + 0x20], xmm6
xorps xmm6, xmm6
movss xmm0, dword [rax + 0x90]
ucomiss xmm0, xmm6
jp 0x1400ae206
je 0x1400ae371
call fcn.1400a9c30
test al, al
je 0x1400ae371
mov rax, qword [0x1401cda88]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movabs rsi, 0x7fffffffffffffff
mov qword [rsp + 0x30], rdi
cmp dword [rax + 4], 0
je 0x1400ae2dd
movabs rdi, 0x7ffffffffff0bdbe
nop word [rax + rax]
mov rax, qword [0x1401c8928]
movss xmm0, dword [rax + 0x90]
ucomiss xmm0, xmm6
jp 0x1400ae266
je 0x1400ae2e4
call fcn.1400a9c30
test al, al
je 0x1400ae2dd
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1400ae28d
imul rax, rax, 0x64
jmp 0x1400ae2ab
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, rdi
jg 0x1400ae2bd
add rax, 0xf4240
mov qword [rsp + 0x40], rax
jmp 0x1400ae2c2
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x40]
call fcn.14000d3c0
mov rax, qword [0x1401cda88]
cmp dword [rax + 4], 0
jne 0x1400ae250
mov rax, qword [0x1401c8928]
cvttss2si eax, dword [rax + 0x94]
movsxd rbx, eax
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x1400ae30d
imul rax, rax, 0x64
jmp 0x1400ae32b
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
cmp rbx, 1
jl 0x1400ae35d
imul rdx, rbx, 0xf4240
mov rcx, rsi
sub rcx, rdx
cmp rax, rcx
jge 0x1400ae358
lea rcx, [rdx + rax]
mov qword [rsp + 0x40], rcx
jmp 0x1400ae35d
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x40]
call fcn.14000d3c0
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [0x1401cda88]
cmp dword [rax + 4], 0
je 0x1400ae448
call fcn.1400adca0
test al, al
je 0x1400ae448
mov rax, qword [0x1401c8928]
movss xmm0, dword [rax + 0x84]
ucomiss xmm0, xmm6
jp 0x1400ae3b5
jne 0x1400ae3b5
call fcn.14009a600
test al, al
jne 0x1400ae3d7
mov rax, qword [0x1401c8928]
movss xmm0, dword [rax + 0x84]
ucomiss xmm0, xmm6
jp 0x1400ae3c8
je 0x1400ae448
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1401cd178]
jne 0x1400ae448
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rcx, qword [0x1401c8928]
test ax, ax
js 0x1400ae3fd
movss xmm0, dword [rcx + 0x88]
ucomiss xmm0, xmm6
jp 0x1400ae3fd
je 0x1400ae448
movss xmm0, dword [rcx + 0x90]
ucomiss xmm0, xmm6
jp 0x1400ae40c
je 0x1400ae41c
call fcn.1400a9c30
test al, al
jne 0x1400ae448
mov rcx, qword [0x1401c8928]
movss xmm0, dword [rcx + 0x98]
ucomiss xmm0, xmm6
jp 0x1400ae42b
je 0x1400ae43c
mov ecx, dword [reloc.WS2_32.dll_recv]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x1400ae448
mov al, 1
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
ret
movaps xmm6, xmmword [rsp + 0x20]
xor al, al
add rsp, 0x38
ret
Function at 0x1400b3190
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401c8928]
movss xmm0, dword [rax + 0x1c]
ucomiss xmm0, dword [0x1401925a0]
jp 0x1400b3425
jne 0x1400b3425
cvttss2si ecx, xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400b3425
call fcn.14009a600
test al, al
je 0x1400b3425
mov qword [rsp + 0x38], rbx
xorps xmm0, xmm0
mov rbx, qword [0x1401c8928]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rdi
movss xmm1, dword [rbx + 8]
ucomiss xmm1, xmm0
jp 0x1400b3336
jne 0x1400b3336
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1400b321e
imul rax, rax, 0x64
jmp 0x1400b323c
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
movabs rcx, 0x7ffffffffd050f7e
movabs rdi, 0x7fffffffffffffff
cmp rax, rcx
jg 0x1400b3262
add rax, 0x2faf080
mov qword [rsp + 0x30], rax
jmp 0x1400b3267
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.14000d3c0
mov rax, qword [0x1401cda88]
cmp dword [rax], 0
je 0x1400b33fb
movabs rsi, 0x7ffffffffff0bdbe
nop dword [rax + rax]
mov rax, qword [0x1401c8928]
cvttss2si ecx, dword [rax + 0xc]
mov edx, ecx
call fcn.140099550
movd xmm0, eax
cvtdq2ps xmm0, xmm0
call fcn.1400b2480
test al, al
jne 0x1400b33fb
call fcn.14009a600
test al, al
je 0x1400b33fb
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1400b32e2
imul rax, rax, 0x64
jmp 0x1400b3300
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, rsi
jg 0x1400b3312
add rax, 0xf4240
mov qword [rsp + 0x30], rax
jmp 0x1400b3317
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.14000d3c0
mov rax, qword [0x1401cda88]
cmp dword [rax], 0
jne 0x1400b3290
jmp 0x1400b33fb
cvttss2si edx, dword [rbx + 0x18]
cvttss2si ecx, dword [rbx + 0x14]
call fcn.140099550
movss xmm1, dword [0x140192788]
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [rbx + 8]
comiss xmm0, xmm1
jb 0x1400b3376
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1400b3376
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttss2si rbx, xmm0
add rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x1400b339c
imul rax, rax, 0x64
jmp 0x1400b33ba
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
mov qword [rsp + 0x30], rax
cmp rbx, 1
jl 0x1400b33f1
imul rdx, rbx, 0xf4240
movabs rdi, 0x7fffffffffffffff
mov rcx, rdi
sub rcx, rdx
cmp rax, rcx
jge 0x1400b33ec
lea rcx, [rax + rdx]
mov qword [rsp + 0x30], rcx
jmp 0x1400b33f1
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.14000d3c0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r9d, r9d
mov edx, 0x202
mov rcx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x1400c0ac0
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 0x1400c0b26
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 0x1400c0af0
mov rsi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r10
pop rdi
ret

Function at 0x1400c1430
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1401cc118], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400c1489
mov rcx, qword [rbx + 0x368]
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 [0x1401cc108], xmm0
movsd qword [0x1401cc110], xmm1
mov eax, dword [rbx + 0x90]
cmp eax, 0x34001
je 0x1400c14a6
cmp eax, 0x34004
je 0x1400c14a6
mov rcx, qword [0x1401cc138]
jmp 0x1400c14c5
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400c14b5
mov rcx, qword [rcx + 8]
jmp 0x1400c14c5
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.1400bcb70
mov rcx, rbx
call fcn.1400c0a40
cmp dword [rbx + 0x210], 0
je 0x1400c1522
mov rax, qword [rbx + 0x368]
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 0x1400c1522
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400c3ba0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400c1530
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
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 0x1400c1572
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400c3ba0
add rsp, 0x38
ret
Function at 0x1400c1580
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x210], 0
mov rbx, rcx
je 0x1400c15d0
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 0x1400c15d0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400c3ba0
xor ecx, ecx
mov qword [0x1401cc118], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1401cc108]
mov qword [0x1401cc120], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1401cc110]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x3a8], ecx
mov rcx, qword [rbx + 0x368]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x3ac], 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]
mov eax, dword [rbx + 0x90]
cmp eax, 0x34001
je 0x1400c1659
cmp eax, 0x34004
je 0x1400c1659
mov rcx, qword [0x1401cc138]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400c1672
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]

Function at 0x1400c1690
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x368]
mov edx, 1
lea rcx, [rsp + 0x20]
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 0x1400c16d2
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400c3ba0
add rsp, 0x38
ret

Function at 0x1400c1780
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 0x1400c2db0
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 0x1400c2de0
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1400bb730
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1400c3f50
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 [0x1401b06f8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1401cba32]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1401cb7b8]
xor r12d, r12d
lea r15, [0x1401cbad2]
mov ebx, reloc.WLDAP32.dll_Ordinal_32
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x1400c4108
cmp ebx, 0x140
jb 0x1400c406f
cmp ebx, 0x14e
ja 0x1400c406f
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], WSAGetLastError
mov dword [rsp + 0x64], WSAGetLastError
mov dword [rsp + 0x68], WSAGetLastError
mov dword [rsp + 0x6c], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0x74], WSAGetLastError
mov dword [rsp + 0x78], WSAGetLastError
mov edi, dword [r14]
jmp 0x1400c407e
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], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1400c40d1
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x1400c4108
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 0x1400c3fd1
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401292a0
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 0x1400c8340
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1401b06f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1401cb2b0], 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 0x1400c8395
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401292a0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x1401cb2b0], rax
test rax, rax
jne 0x1400c83d7
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1400c83a0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400bb730
jmp 0x1400c84f4
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb2b0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1401cb2b8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb2b0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1401cb2c0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb2b0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1401cb2c8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb2b0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1401cb2d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb2b0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1401cb2d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb2b0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1401cb2e0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1401cb2b8], 0
mov qword [0x1401cb2e8], rax
je 0x1400c84c7
cmp qword [0x1401cb2c8], 0
je 0x1400c84c7
cmp qword [0x1401cb2d0], 0
je 0x1400c84c7
cmp qword [0x1401cb2d8], 0
je 0x1400c84c7
cmp qword [0x1401cb2e0], 0
je 0x1400c84c7
test rax, rax
je 0x1400c84c7
mov eax, 1
jmp 0x1400c84f6
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400bb730
mov rcx, qword [0x1401cb2b0]
test rcx, rcx
je 0x1400c84f4
call fcn.1400c8d80
mov qword [0x1401cb2b0], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401292a0
add rsp, 0x48
ret