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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov ecx, dword [0x180186fa0]
mov edx, 0x44
movups xmm0, xmmword [str.MV_MW]
movzx eax, word [0x180186fa4]
mov dword [rbp - 0x30], ecx
xor ax, 0x43
xor word [rbp - 0x2e], 0x42
xor cx, 0x41
movups xmmword [rbp - 0x40], xmm0
xor word [rbp - 0x3e], 0x3a
xor word [rbp - 0x3c], 0x3b
xor word [rbp - 0x3a], 0x3c
xor word [rbp - 0x38], 0x3d
xor word [rbp - 0x36], 0x3e
xor word [rbp - 0x34], 0x3f
xor word [rbp - 0x32], 0x40
mov word [rbp - 0x30], cx
lea rcx, [rbp - 0x40]
mov word [rbp - 0x40], dx
mov word [rbp - 0x2c], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r9, rax
test rax, rax
je 0x1800c0901
cmp byte [0x180186fdf], 0
movups xmm0, xmmword [str.MVuNP_1_0_1___f_._P]
movups xmmword [rbp - 0x2a], xmm0
movsd xmm0, qword [0x180186fd8]
movsd qword [rbp - 0x1a], xmm0
je 0x1800c08d1
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1800c088e
movdqa xmm0, xmmword [0x180187550]
lea rcx, [rbp - 0x26]
movdqa xmm5, xmmword [0x180187330]
xor edx, edx
movdqa xmm4, xmmword [0x180187680]
movdqa xmmword [rbp - 0x50], xmm0
mov r8d, dword [rbp - 0x50]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x180187400]
nop dword [rax]
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 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 edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1801874b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1801874b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x18
jl 0x1800c0780
movaps xmm6, xmmword [rsp + 0x60]
jmp 0x1800c08d1
lea r8, [rbp - 0x2a]
xor ecx, ecx
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
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, 0x39
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x18
jl 0x1800c08a0
lea rdx, [rbp - 0x2a]
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800c0901
lea rcx, [rbp + 0x10]
mov dword [rbp + 0x10], 0
call rax
test eax, eax
js 0x1800c0901
cmp dword [rbp + 0x10], 0
setne al
add rsp, 0x70
pop rbp
ret
mov al, 1
add rsp, 0x70
pop rbp
ret
Function at 0x1800c0e80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r15, rdx
mov r8, rcx
test rcx, rcx
je 0x1800c0f97
movsxd rax, dword [rcx + 0x3c]
test eax, eax
je 0x1800c0f97
mov rcx, rax
add rcx, r8
je 0x1800c0f97
movzx eax, word [r8]
add eax, dword [rcx]
cmp eax, 0x9f9d
jne 0x1800c0f97
mov eax, dword [rcx + 0x50]
mov ecx, dword [rcx + 0x88]
add rcx, r8
je 0x1800c0f97
mov esi, eax
cmp rcx, r8
jbe 0x1800c0f97
add rax, r8
cmp rcx, rax
jae 0x1800c0f97
mov r14d, dword [rcx + 0x1c]
lea rax, [rsi + r8]
mov r11d, dword [rcx + 0x20]
add r14, r8
mov ebx, dword [rcx + 0x24]
add r11, r8
add rbx, r8
cmp r14, r8
jbe 0x1800c0f97
cmp r14, rax
jae 0x1800c0f97
cmp r11, r8
jbe 0x1800c0f97
cmp r11, rax
jae 0x1800c0f97
cmp rbx, r8
jbe 0x1800c0f97
cmp rbx, rax
jae 0x1800c0f97
mov ebp, dword [rcx + 0x14]
xor edi, edi
test ebp, ebp
je 0x1800c0f97
nop dword [rax]
movzx eax, word [rbx]
mov r10d, dword [r14 + rax*4]
mov eax, dword [r11]
add r10, r8
add rax, r8
cmp rax, r8
jbe 0x1800c0f89
lea rcx, [rsi + r8]
cmp rax, rcx
jae 0x1800c0f89
cmp r10, r8
jbe 0x1800c0f89
lea rcx, [rsi + r8]
cmp r10, rcx
jae 0x1800c0f89
mov r9, r15
sub r9, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1800c0f85
inc rax
test ecx, ecx
jne 0x1800c0f72
test edx, edx
je 0x1800c0fb2
inc edi
add rbx, 2
add r11, 4
cmp edi, ebp
jb 0x1800c0f40
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
mov rax, r10
jmp 0x1800c0f99
Function at 0x1800c18b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rbx, rcx
mov dword [rsp + 0x20], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800c1945
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1800c193b
lea rax, [rsp + 0x20]
mov qword [rsp + 0x278], rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1800c1973
mov rax, qword [rcx]
lea rdx, [rsp + 0x278]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rdi
test al, al
je 0x1800c193e
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800c1901
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1800c1962
cmp rcx, rbx
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], 0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
call fcn.1800d4210
nop
int3
Function at 0x1800c2d00
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov r15, r8
mov r14, rdx
mov rdi, rcx
xor r12d, r12d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x45], xmm0
movups xmmword [rbp - 0x35], xmm0
movups xmmword [rbp - 0x25], xmm0
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
mov dword [rbp + 0x1b], eax
mov dword [rbp - 0x49], 0x68
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1801872a0]
movdqu xmmword [rbp - 0x79], xmm1
mov word [rsp + 0x50], r12w
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.180009c70
mov rbx, qword [r14]
mov rsi, qword [r14 + 8]
cmp rbx, rsi
je 0x1800c2e41
movabs r13, 0x7ffffffffffffffe
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 1
jb 0x1800c2f4b
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1800c2dc1
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x180181f30]
lea rcx, [rbp - 0x69]
call fcn.180009f30
nop
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x50]
call fcn.180009c70
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 7
jbe 0x1800c2e34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c2e2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c2f5d
call fcn.1800d9c1c
add rbx, 0x20
cmp rbx, rsi
jne 0x1800c2da0
lea rdx, [rsp + 0x50]
cmp qword [rbp - 0x71], 7
cmova rdx, qword [rsp + 0x50]
mov qword [rsp + 0x48], r15
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
mov rdx, qword [rbp - 0x71]
cmp rdx, 7
jbe 0x1800c2ec7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c2ec2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c2f57
call fcn.1800d9c1c
movdqa xmm0, xmmword [0x1801872a0]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x50], r12w
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x1800c2f15
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800c2f10
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800c2f51
mov rcx, r8
call fcn.1800d9c1c
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov rcx, r14
call fcn.180013f50
movzx eax, bl
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180003590
nop
call fcn.1800e5f80
nop
call fcn.1800e5f80
nop
call fcn.1800e5f80
int3
Function at 0x1800c5830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x1800c583e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800c5854
test al, 0x10
je 0x1800c5854
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x1800c5940
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
mov dword [rsp + 0x80], 0
lea rdx, [0x180181f9c]
lea rcx, [rsp + 0xd0]
call fcn.180007a30
nop
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x68]
call fcn.1800c5680
nop
lea rcx, [rsp + 0xd0]
call fcn.1800078e0
lea rcx, [rsp + 0x68]
call fcn.180007570
movzx eax, al
test eax, eax
je 0x1800c59d2
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
call fcn.180013e80
nop
mov rcx, qword [rsp + 0x148]
call fcn.1800075d0
movzx eax, byte [rsp + 0x40]
jmp 0x1800c5c30
lea rcx, [rsp + 0x68]
call fcn.1800c64c0
lea rcx, [rsp + 0xb0]
call fcn.180007ba0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180007590
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x60]
call fcn.180007580
mov qword [rsp + 0x88], rax
jmp 0x1800c5a25
mov rax, qword [rsp + 0x50]
add rax, 0x20
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x50], rax
je 0x1800c5acd
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rax
lea r8, [0x180181f98]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0xf0]
call fcn.180008880
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xb0]
call fcn.180009c70
nop
lea rcx, [rsp + 0xf0]
call fcn.1800078e0
lea rcx, [rsp + 0xb0]
call fcn.1800c5830
movzx eax, al
test eax, eax
jne 0x1800c5ac8
lea rcx, [rsp + 0xb0]
call fcn.180007890
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
ror byte [rax - 0x75], cl
enter 0x15ff, 0xffffffffffffffa0
call 0x1caf55ace
invalid
jmp 0x1800c5a17
call fcn.1803be200
push rax
test byte [rdx - 0x6b], 0x52
fucomi st(6)
cli
jp 0x1800c5afb
iretd
xor ah, byte [rax]
adc eax, 0x36691074
adc byte [rax + 2], bl
push rax
loop 0x1800c5abe
mov eax, dword [rbx - 0x2f]
adc ah, byte [rdx + rdi*2 - 0x7f29852f]
cmp dword [rdx], ebx
and dword [rsi + 0x4ed1c4ef], edi
mov ah, 0x7a
adc byte [rcx + 0x1d], bh
invalid
add rsp, 0x130
pop rdi
ret
Function at 0x1800c8600
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1803a94a0], 0
jne 0x1800c8615
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800c8a10
jmp 0x1800c9700
push rbx
sub rsp, 0xa0
mov rax, qword [0x18019e440]
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 0x1800c979a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1800c9765
mov rbx, qword [0x1803a9890]
test rbx, rbx
je 0x1800c977b
mov rcx, rbx
call fcn.1800c7e10
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800c9753
jmp 0x1800c977b
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 0x1800c9740
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1800c9897
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 0x1800c988f
movdqa xmm0, xmmword [0x180131370]
xor ebx, ebx
movdqa xmm1, xmmword [0x180131380]
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, [0x1803aa7f8]
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 0x1800c985e
cmp byte [rbp + rdi + 0x80], 1
jne 0x1800c985e
call fcn.1800cac20
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1800cc3c0
inc rbx
cmp rbx, 4
jl 0x1800c9820
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 [0x1803ab198]
test rbx, rbx
je 0x1800c9919
mov rcx, qword [rbx + 0x348]
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 ecx, eax
cmp dword [rbx + 0x378], eax
jne 0x1800c98dd
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x37c], eax
je 0x1800c9919
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x378], ecx
mov rcx, qword [rbx + 0x348]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x37c], 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.1800da610
add rsp, 0xa0
pop rbx
ret
Function at 0x1800c8620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x1803a94a0], 0
mov r10d, r9d
mov r11d, r8d
jne 0x1800c863b
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800c8a10
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x1800c8690
test r9d, r9d
jle 0x1800c8690
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x1800c866c
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.1800c8a10
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
mov dword [rcx + 0x28], r8d
mov r8d, r11d
mov dword [rcx + 0x2c], r9d
mov r9d, r10d
mov dword [rcx + 0x3c], eax
jmp fcn.1800c9c20
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.1800c8a10
Function at 0x1800c9700
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1803a94a0], 0
jne 0x1800c8615
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800c8a10
jmp 0x1800c9700
push rbx
sub rsp, 0xa0
mov rax, qword [0x18019e440]
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 0x1800c979a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1800c9765
mov rbx, qword [0x1803a9890]
test rbx, rbx
je 0x1800c977b
mov rcx, rbx
call fcn.1800c7e10
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800c9753
jmp 0x1800c977b
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 0x1800c9740
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1800c9897
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 0x1800c988f
movdqa xmm0, xmmword [0x180131370]
xor ebx, ebx
movdqa xmm1, xmmword [0x180131380]
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, [0x1803aa7f8]
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 0x1800c985e
cmp byte [rbp + rdi + 0x80], 1
jne 0x1800c985e
call fcn.1800cac20
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1800cc3c0
inc rbx
cmp rbx, 4
jl 0x1800c9820
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 [0x1803ab198]
test rbx, rbx
je 0x1800c9919
mov rcx, qword [rbx + 0x348]
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 ecx, eax
cmp dword [rbx + 0x378], eax
jne 0x1800c98dd
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x37c], eax
je 0x1800c9919
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x378], ecx
mov rcx, qword [rbx + 0x348]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x37c], 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.1800da610
add rsp, 0xa0
pop rbx
ret
Function at 0x1800cac20
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, send
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, send
and ax, si
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, socket
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
and al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
and al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1800cd9c0
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 0x1800cd9f0
lea rdx, [0x1801315c0]
mov ecx, 0x10008
call fcn.1800cdc60
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1800ce360
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x18019e440]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call fcn.18010bd80
xor edx, edx
lea rcx, [0x1803aaab2]
mov r8d, 0x6d1
call fcn.18010bd80
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x1803aa838]
xor r13d, r13d
lea r12, [0x1803aab52]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x1800ce505
cmp ebx, 0x140
jb 0x1800ce480
cmp ebx, 0x14e
ja 0x1800ce480
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 0x1800ce48f
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
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 0x1800ce4d2
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
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 0x1800ce505
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x1800ce3e2
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1800da610
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800d3b10
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x18019e440]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1803ab3c0], 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 0x1800d3b65
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800da610
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 [0x1803ab3c0], rax
test rax, rax
jne 0x1800d3ba8
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1800d3b70
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1800c8a10
jmp 0x1800d3ccd
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803ab3c0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1803ab3c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803ab3c0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1803ab3d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803ab3c0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1803ab3d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803ab3c0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1803ab3e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803ab3c0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1803ab3e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803ab3c0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1803ab3f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1803ab3c8], 0
mov qword [0x1803ab3f8], rax
je 0x1800d3c9f
cmp qword [0x1803ab3d8], 0
je 0x1800d3c9f
cmp qword [0x1803ab3e0], 0
je 0x1800d3c9f
cmp qword [0x1803ab3e8], 0
je 0x1800d3c9f
cmp qword [0x1803ab3f0], 0
je 0x1800d3c9f
test rax, rax
je 0x1800d3c9f
mov eax, 1
jmp 0x1800d3ccf
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1800c8a10
mov rcx, qword [0x1803ab3c0]
test rcx, rcx
je 0x1800d3ccd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1803ab3c0], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800da610
add rsp, 0x48
ret