joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c0450
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xfc8]
mov eax, 0x10c8
call fcn.1800da820
sub rsp, rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x1000
call fcn.18010bdb0
xor esi, esi
lea rdi, [rbp + 0xff8]
mov qword [rsp + 0x60], rsi
call fcn.180027440
mov qword [rsp + 0x30], rdi
lea r9, [rsi - 1]
mov qword [rsp + 0x28], rsi
lea rdx, [rbp - 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call fcn.1800e96e8
lea edx, [rsi + 0x4a]
mov dword [rsp + 0x68], 0x4a0000
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1800c04f4
add rsp, 0x10c8
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx r8d, word [rsp + 0x6a]
xor edx, edx
mov rcx, rax
call fcn.18010bdb0
lea rdx, [0x180181eb0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov dword [rsp + 0x50], esi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rsi
lea r9, [rsp + 0x78]
mov dword [rsp + 0x40], 0x20
lea r8, [rbp - 0x78]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], 2
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x100004
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0x78], 0x30
mov qword [rbp - 0x70], rsi
mov dword [rbp - 0x60], 0x40
mov qword [rbp - 0x68], rax
movdqu xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
js 0x1800c05cd
mov rcx, qword [rsp + 0x60]
mov eax, 0xffffffff
mov qword [rsp + 0x40], rsi
test ebx, ebx
mov qword [rsp + 0x38], rsi
cmovs ebx, eax
lea rax, [rbp - 0x40]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1800c05dd
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
add rsp, 0x10c8
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1800c05f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rsi, r8
mov r8, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov dword [rsp + 0x20], 1
xor edx, edx
mov r9, rsi
call fcn.18001c8f0
test rsi, rsi
je 0x1800c0652
mov ecx, ebx
nop word [rax + rax]
add rcx, qword [rdi]
lea eax, [rbx + 0x64]
xor byte [rcx], al
inc ebx
movsxd rcx, ebx
cmp rcx, rsi
jb 0x1800c0640
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800c06c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov ecx, dword [0x180186fe0]
mov edx, 0x44
movups xmm0, xmmword [str.tF_RD_]
movzx eax, word [0x180186fe4]
mov dword [rbp - 0x30], ecx
xor ax, 0x3a
xor word [rbp - 0x2e], 0x39
xor cx, 0x38
movups xmmword [rbp - 0x40], xmm0
xor word [rbp - 0x3e], 0x31
xor word [rbp - 0x3c], 0x32
xor word [rbp - 0x3a], 0x33
xor word [rbp - 0x38], 0x34
xor word [rbp - 0x36], 0x35
xor word [rbp - 0x34], 0x36
xor word [rbp - 0x32], 0x37
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 0x1800c092f
cmp byte [0x180187077], 0
movups xmm0, xmmword [str.tF_zGvYZHVIRHTQQ]
movups xmmword [rbp - 0x2a], xmm0
movsd xmm0, qword [0x180187070]
movsd qword [rbp - 0x1a], xmm0
je 0x1800c08ff
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1800c08be
movdqa xmm0, xmmword [str.00000000000000009999999999999999]
lea rcx, [rbp - 0x26]
movdqa xmm5, xmmword [0x1801873c0]
xor edx, edx
movdqa xmm4, xmmword [0x1801876f0]
movdqa xmmword [rbp - 0x50], xmm0
mov r8d, dword [rbp - 0x50]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x180187460]
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 [0x180187520]
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 [0x180187520]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x18
jl 0x1800c07b0
movaps xmm6, xmmword [rsp + 0x60]
jmp 0x1800c08ff
lea r8, [rbp - 0x2a]
xor ecx, ecx
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
inc ecx
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp ecx, 0x18
jl 0x1800c08d0
lea rdx, [rbp - 0x2a]
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800c092f
lea rcx, [rbp + 0x10]
mov dword [rbp + 0x10], 0
call rax
test eax, eax
js 0x1800c092f
cmp dword [rbp + 0x10], 0
setne al
add rsp, 0x70
pop rbp
ret
mov al, 1
add rsp, 0x70
pop rbp
ret
Function at 0x1800c0eb0
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 0x1800c0fc7
movsxd rax, dword [rcx + 0x3c]
test eax, eax
je 0x1800c0fc7
mov rcx, rax
add rcx, r8
je 0x1800c0fc7
movzx eax, word [r8]
add eax, dword [rcx]
cmp eax, 0x9f9d
jne 0x1800c0fc7
mov eax, dword [rcx + 0x50]
mov ecx, dword [rcx + 0x88]
add rcx, r8
je 0x1800c0fc7
mov esi, eax
cmp rcx, r8
jbe 0x1800c0fc7
add rax, r8
cmp rcx, rax
jae 0x1800c0fc7
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 0x1800c0fc7
cmp r14, rax
jae 0x1800c0fc7
cmp r11, r8
jbe 0x1800c0fc7
cmp r11, rax
jae 0x1800c0fc7
cmp rbx, r8
jbe 0x1800c0fc7
cmp rbx, rax
jae 0x1800c0fc7
mov ebp, dword [rcx + 0x14]
xor edi, edi
test ebp, ebp
je 0x1800c0fc7
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 0x1800c0fb9
lea rcx, [rsi + r8]
cmp rax, rcx
jae 0x1800c0fb9
cmp r10, r8
jbe 0x1800c0fb9
lea rcx, [rsi + r8]
cmp r10, rcx
jae 0x1800c0fb9
mov r9, r15
sub r9, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1800c0fb5
inc rax
test ecx, ecx
jne 0x1800c0fa2
test edx, edx
je 0x1800c0fe2
inc edi
add rbx, 2
add r11, 4
cmp edi, ebp
jb 0x1800c0f70
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 0x1800c0fc9
Function at 0x1800c18e0
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 0x1800c1975
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 0x1800c196b
lea rax, [rsp + 0x20]
mov qword [rsp + 0x278], rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1800c19a3
mov rax, qword [rcx]
lea rdx, [rsp + 0x278]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rdi
test al, al
je 0x1800c196e
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800c1931
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1800c1992
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.1800d4240
nop
int3
Function at 0x1800c2d30
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 [0x180187330]
movdqu xmmword [rbp - 0x79], xmm1
mov word [rsp + 0x50], r12w
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.180009c90
mov rbx, qword [r14]
mov rsi, qword [r14 + 8]
cmp rbx, rsi
je 0x1800c2e71
movabs r13, 0x7ffffffffffffffe
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 1
jb 0x1800c2f7b
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1800c2df1
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x180181f9c]
lea rcx, [rbp - 0x69]
call fcn.180009f50
nop
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x50]
call fcn.180009c90
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 7
jbe 0x1800c2e64
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c2e5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c2f8d
call fcn.1800d9c4c
add rbx, 0x20
cmp rbx, rsi
jne 0x1800c2dd0
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 0x1800c2ef7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c2ef2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c2f87
call fcn.1800d9c4c
movdqa xmm0, xmmword [0x180187330]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x50], r12w
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x1800c2f45
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800c2f40
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800c2f81
mov rcx, r8
call fcn.1800d9c4c
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov rcx, r14
call fcn.180013f70
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.1800035b0
nop
call fcn.1800e5fb0
nop
call fcn.1800e5fb0
nop
call fcn.1800e5fb0
int3
Function at 0x1800c5860
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x1800c5970
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, [0x180181fe4]
lea rcx, [rsp + 0xd0]
call fcn.180007a50
nop
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x68]
call fcn.1800c56b0
nop
lea rcx, [rsp + 0xd0]
call fcn.180007900
lea rcx, [rsp + 0x68]
call fcn.180007590
movzx eax, al
test eax, eax
je 0x1800c5a02
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
call fcn.180013ea0
nop
mov rcx, qword [rsp + 0x148]
call fcn.1800075f0
movzx eax, byte [rsp + 0x40]
jmp 0x1800c5c60
lea rcx, [rsp + 0x68]
call fcn.1800c64f0
lea rcx, [rsp + 0xb0]
call fcn.180007bc0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1800075b0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x60]
call fcn.1800075a0
mov qword [rsp + 0x88], rax
jmp 0x1800c5a55
mov rax, qword [rsp + 0x50]
add rax, 0x20
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x50], rax
je 0x1800c5afd
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rax
lea r8, [0x180182004]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0xf0]
call fcn.1800088a0
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.180009c90
nop
lea rcx, [rsp + 0xf0]
call fcn.180007900
lea rcx, [rsp + 0xb0]
call fcn.1800c5860
movzx eax, al
test eax, eax
jne 0x1800c5af8
lea rcx, [rsp + 0xb0]
call fcn.1800078b0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1800c5a47
call fcn.1803b5200
push rax
pop rcx
fld st(6)
cwde
cmpsd dword [rsi], dword [rdi]
pop rdx
xchg byte [rdx], ch
jmp 0x12780a203
add rsp, 0x130
pop rdi
ret
Function at 0x1800c8630
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1803a02a0], 0
jne 0x1800c8645
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800c8a40
jmp 0x1800c9730
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 0x1800c97ca
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1800c9795
mov rbx, qword [0x1803a0690]
test rbx, rbx
je 0x1800c97ab
mov rcx, rbx
call fcn.1800c7e40
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800c9783
jmp 0x1800c97ab
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 0x1800c9770
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1800c98c7
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 0x1800c98bf
movdqa xmm0, xmmword [0x180131390]
xor ebx, ebx
movdqa xmm1, xmmword [0x1801313a0]
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, [0x1803a15f8]
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 0x1800c988e
cmp byte [rbp + rdi + 0x80], 1
jne 0x1800c988e
call fcn.1800cac50
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1800cc3f0
inc rbx
cmp rbx, 4
jl 0x1800c9850
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 [0x1803a1f98]
test rbx, rbx
je 0x1800c9949
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 0x1800c990d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x37c], eax
je 0x1800c9949
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.1800da640
add rsp, 0xa0
pop rbx
ret
Function at 0x1800c8650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x1803a02a0], 0
mov r10d, r9d
mov r11d, r8d
jne 0x1800c866b
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800c8a40
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x1800c86c0
test r9d, r9d
jle 0x1800c86c0
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x1800c869c
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.1800c8a40
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.1800c9c50
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.1800c8a40
Function at 0x1800c9730
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1803a02a0], 0
jne 0x1800c8645
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800c8a40
jmp 0x1800c9730
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 0x1800c97ca
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1800c9795
mov rbx, qword [0x1803a0690]
test rbx, rbx
je 0x1800c97ab
mov rcx, rbx
call fcn.1800c7e40
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800c9783
jmp 0x1800c97ab
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 0x1800c9770
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1800c98c7
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 0x1800c98bf
movdqa xmm0, xmmword [0x180131390]
xor ebx, ebx
movdqa xmm1, xmmword [0x1801313a0]
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, [0x1803a15f8]
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 0x1800c988e
cmp byte [rbp + rdi + 0x80], 1
jne 0x1800c988e
call fcn.1800cac50
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1800cc3f0
inc rbx
cmp rbx, 4
jl 0x1800c9850
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 [0x1803a1f98]
test rbx, rbx
je 0x1800c9949
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 0x1800c990d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x37c], eax
je 0x1800c9949
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.1800da640
add rsp, 0xa0
pop rbx
ret
Function at 0x1800cac50
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 0x1800cd9f0
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 0x1800cda20
lea rdx, [0x1801315e0]
mov ecx, 0x10008
call fcn.1800cdc90
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1800ce390
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.18010bdb0
xor edx, edx
lea rcx, [0x1803a18b2]
mov r8d, 0x6d1
call fcn.18010bdb0
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x1803a1638]
xor r13d, r13d
lea r12, [0x1803a1952]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x1800ce535
cmp ebx, 0x140
jb 0x1800ce4b0
cmp ebx, 0x14e
ja 0x1800ce4b0
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 0x1800ce4bf
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 0x1800ce502
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 0x1800ce535
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 0x1800ce412
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1800da640
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