joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140185200
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
xor eax, eax
mov word [rsp + 0x20], ax
jmp 0x140185247
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140185362
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rsp + 0x20]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
lea rdx, str..text
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14018535d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov r8d, 0x40
mov edx, eax
call fcn.140183100
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x1401852da
mov eax, 9
jmp 0x140185367
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x68]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx + 0xc]
mov r8, qword [rsp + 0x60]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x40], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov r8d, dword [rsp + 0x24]
mov edx, eax
call fcn.140183100
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140185359
mov eax, 0xa
jmp 0x140185367
xor eax, eax
jmp 0x140185367
jmp 0x14018523a
mov eax, reloc.WS2_32.dll_inet_addr
add rsp, 0x58
ret

Function at 0x1401885b0
Capabilities:
Set socket configuration

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [0x1403ee900]
xor rax, rsp
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x1401885df
mov dword [rsp + 0x20], 1
jmp 0x1401885e7
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140248f60
add rsp, 0x38
ret
Function at 0x1401896d0
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret

Function at 0x14018a8e0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x1403ee900]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x190]
call fcn.14017d8f0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 3
jne 0x14018a93c
mov eax, dword [rsp + 0x40]
jmp 0x14018aabe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14018a985
mov eax, 5
jmp 0x14018aabe
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14018a9ce
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 6
jmp 0x14018aabe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14018a9f0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 7
jmp 0x14018aabe
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14018aa3c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
jmp 0x14018aabe
call fcn.14018a250
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x190]
call fcn.140185200
mov dword [rsp + 0x40], eax
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtFlushInstructionCache
call fcn.1401857f0
cmp dword [rsp + 0x40], 0
je 0x14018aa9b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
jmp 0x14018aabe
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140248f60
add rsp, 0x188
ret
Function at 0x140194830
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1403ee900]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x28]
call fcn.140157ff0
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140157be0
lea rcx, [rsp + 0x30]
call fcn.14015aeb0
movzx eax, al
test eax, eax
je 0x1401948c7
lea rcx, [rsp + 0x30]
call fcn.1401898a0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x24], 0
je 0x1401948c7
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140182530
mov rcx, rax
call fcn.1401506c0
cmp eax, 0x2fa62ca8
jne 0x1401948c5
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140174820
jmp 0x1401948de
jmp 0x14019487f
lea rcx, [rsp + 0x28]
call fcn.140182670
movzx eax, al
test eax, eax
jne 0x14019484d
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140248f60
add rsp, 0x58
ret
Function at 0x1401aaf90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rax, qword [0x1403ee900]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
mov rcx, qword [rsp + 0x200]
call fcn.1400b2940
movzx eax, al
test eax, eax
jne 0x1401aafd4
mov rcx, qword [rsp + 0x200]
call fcn.1400232b0
test rax, rax
ja 0x1401aafe6
mov rcx, qword [rsp + 0x200]
call fcn.140012650
jmp 0x1401ab24e
call fcn.1400147d0
add rax, 0x10
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 5
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1401ab241
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1401a3a00
mov rcx, rax
call fcn.1401b5050
mov qword [rsp + 0x48], rax
call fcn.1400147d0
add rax, 0x10
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.14000f9b0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x1c8]
call fcn.1400088b0
nop
lea rcx, [rsp + 0xe0]
call fcn.140012650
call fcn.1400147d0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rsp + 0x58]
call fcn.14000f910
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.14004de10
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x31]
call fcn.1401a3c70
mov rcx, rax
call fcn.1401b4b50
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x200]
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x100]
call fcn.140023f40
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x1a8]
call fcn.1400088b0
nop
lea rcx, [rsp + 0x100]
call fcn.140012650
call fcn.1400147d0
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x1a8]
mov rcx, qword [rsp + 0x98]
call fcn.14000f910
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call fcn.14004de90
movzx eax, al
test eax, eax
jne 0x1401ab225
call fcn.1400147d0
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x1a8]
mov rcx, qword [rsp + 0xb8]
call fcn.14000f910
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
call fcn.14007ee10
nop
lea rcx, [rsp + 0x1a8]
call fcn.140012650
nop
lea rcx, [rsp + 0x1c8]
call fcn.140012650
nop
mov rcx, qword [rsp + 0x200]
call fcn.140012650
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.140248f60
add rsp, 0x1f8
ret
Function at 0x1401c3570
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1403ee900]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x68]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401c35d7
mov eax, 0xffffffff
jmp 0x1401c35dc
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140248f60
add rsp, 0x58
ret
Function at 0x1401c44b0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14041f560], 0
jne 0x1401c44c5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1401c36a0
jmp 0x1401c6800
push rbx
sub rsp, 0xa0
mov rax, qword [0x1403ee900]
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 0x1401c689a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1401c6865
mov rbx, qword [0x14041f950]
test rbx, rbx
je 0x1401c687b
mov rcx, rbx
call fcn.1401c3c50
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1401c6853
jmp 0x1401c687b
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 0x1401c6840
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1401c6997
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 0x1401c698f
movdqa xmm0, xmmword [0x1402b51f0]
xor ebx, ebx
movdqa xmm1, xmmword [0x1402b5200]
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, [0x140421038]
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 0x1401c695e
cmp byte [rbp + rdi + 0x88], 1
jne 0x1401c695e
call fcn.1401c7de0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1401c4d70
inc rbx
cmp rbx, 4
jl 0x1401c6920
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 [0x1404219d8]
test rbx, rbx
je 0x1401c6a1c
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 0x1401c69de
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x1401c6a1c
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.140248f60
add rsp, 0xa0
pop rbx
ret
Function at 0x1401c44d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x14041f560], 0
mov r10d, r9d
mov r11d, r8d
jne 0x1401c44eb
xor edx, edx
mov ecx, 0x10001
jmp fcn.1401c36a0
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x1401c4540
test r9d, r9d
jle 0x1401c4540
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x1401c451c
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.1401c36a0
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
mov dword [rcx + 0x2c], r8d
mov r8d, r11d
mov dword [rcx + 0x30], r9d
mov r9d, r10d
mov dword [rcx + 0x40], eax
jmp fcn.1401c6d20
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.1401c36a0

Function at 0x1401c5120
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub rsp, 0x28
cmp dword [0x14041f560], 0
jne 0x1401c5140
xor edx, edx
mov ecx, 0x10001
call fcn.1401c36a0
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x1401c6470
sub rsp, 0x28
mov rcx, qword [0x140420c18]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1401c649d
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.1401ca8b0
xor eax, eax
add rsp, 0x28
ret
mov ecx, reloc.WS2_32.dll_listen
mov qword [rsp + 0x30], rbx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
jne 0x1401c64d8
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.1401ca8b0
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x28
ret
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
jne 0x1401c6516
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.1401ca8b0
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov rcx, qword [0x140420c30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call fcn.1401ca700
mov rcx, rbx
mov qword [0x140420c30], rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x140420c30]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1401c5500
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
cmp dword [0x14041f560], 0
jne 0x1401c5515
xor edx, edx
mov ecx, 0x10001
jmp fcn.1401c36a0
mov rcx, rdx
jmp 0x1401c6a50
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor eax, eax
mov rsi, rcx
mov r8, rcx
mov dword [rsp + 0x28], eax
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
lea r9d, [rax - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
test eax, eax
je 0x1401c6b5e
mov rdx, rdi
mov qword [rsp + 0x40], rbx
add rdx, rdx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
jne 0x1401c6ac5
lea rdx, str.Win32:_Failed_to_allocate_global_handle_for_clipboard
mov ecx, 0x10008
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.1401ca8b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x1401c6adc
lea rdx, str.Win32:_Failed_to_lock_global_handle
jmp 0x1401c6b1c
mov dword [rsp + 0x28], edi
mov r9d, 0xffffffff
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [0x140420c18]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1401c6b3f
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.1401ca8b0
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1401c6180
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.1401c7630
test eax, eax
je 0x1401c62d3
cmp dword [rdi], 0
je 0x1401c6241
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x1401c61e0
call fcn.1401cdf90
test eax, eax
je 0x1401c62d3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1401cdb10
jmp 0x1401c6226
cmp eax, 0x36002
jne 0x1401c6204
call fcn.1401cf390
test eax, eax
je 0x1401c62d3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1401cee80
jmp 0x1401c6226
cmp eax, 0x36003
jne 0x1401c622e
call fcn.1401d01d0
test eax, eax
je 0x1401c62d3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1401cff90
test eax, eax
je 0x1401c62d3
mov rdx, rdi
mov rcx, rbx
call fcn.1401c9da0
test eax, eax
je 0x1401c62d3
cmp qword [rbx + 0x48], 0
je 0x1401c62a6
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.1401c73f0
mov rcx, rbx
call fcn.1401c7d40
cmp dword [rsi + 0x2c], 0
je 0x1401c62cc
mov rcx, rbx
call fcn.1401c4a60
mov eax, 1
jmp 0x1401c62d5
cmp dword [rsi + 0x14], 0
je 0x1401c62cc
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x1401c62cc
mov rcx, rbx
call fcn.1401c63b0
mov eax, 1
jmp 0x1401c62d5
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 0x1401c6470
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub rsp, 0x28
cmp dword [0x14041f560], 0
jne 0x1401c5140
xor edx, edx
mov ecx, 0x10001
call fcn.1401c36a0
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x1401c6470
sub rsp, 0x28
mov rcx, qword [0x140420c18]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1401c649d
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.1401ca8b0
xor eax, eax
add rsp, 0x28
ret
mov ecx, reloc.WS2_32.dll_listen
mov qword [rsp + 0x30], rbx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
jne 0x1401c64d8
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.1401ca8b0
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x28
ret
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
jne 0x1401c6516
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.1401ca8b0
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov rcx, qword [0x140420c30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call fcn.1401ca700
mov rcx, rbx
mov qword [0x140420c30], rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x140420c30]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1401c6800
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14041f560], 0
jne 0x1401c44c5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1401c36a0
jmp 0x1401c6800
push rbx
sub rsp, 0xa0
mov rax, qword [0x1403ee900]
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 0x1401c689a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1401c6865
mov rbx, qword [0x14041f950]
test rbx, rbx
je 0x1401c687b
mov rcx, rbx
call fcn.1401c3c50
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1401c6853
jmp 0x1401c687b
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 0x1401c6840
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1401c6997
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 0x1401c698f
movdqa xmm0, xmmword [0x1402b51f0]
xor ebx, ebx
movdqa xmm1, xmmword [0x1402b5200]
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, [0x140421038]
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 0x1401c695e
cmp byte [rbp + rdi + 0x88], 1
jne 0x1401c695e
call fcn.1401c7de0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1401c4d70
inc rbx
cmp rbx, 4
jl 0x1401c6920
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 [0x1404219d8]
test rbx, rbx
je 0x1401c6a1c
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 0x1401c69de
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x1401c6a1c
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.140248f60
add rsp, 0xa0
pop rbx
ret