joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012f653
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x1402e3170
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0xa20
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1c0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa48]
mov rax, qword [0x1404edd40]
xor rax, rbp
mov qword [rbp + 0x9f8], rax
lea rcx, [0x1405276d5]
call fcn.1401347d9
mov rax, qword [rbp + 0xa20]
mov qword [rax], 0
mov rax, qword [rbp + 0xa20]
mov qword [rax + 8], 0
mov rax, qword [rbp + 0xa20]
mov qword [rax + 0x10], 0
mov edx, dword [rbp + 0xa28]
mov ecx, 0x18
call fcn.1401310ed
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0xffffffffffffffff
jne 0x1402e324c
mov r9, qword [rbp + 0xa30]
lea r8, str.Failed_to_get__s__invalid_handle_value
mov edx, 0xff
lea rcx, [rbp + 0x60]
call fcn.14012fc98
mov r9d, 0x10
lea r8, str.ERROR
lea rdx, [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rax, qword [rbp + 0xa20]
jmp 0x1402e32ea
mov dword [rbp + 0x280], 0x438
lea rdx, [rbp + 0x280]
mov rcx, qword [rbp + 0x38]
call fcn.140132047
test eax, eax
je 0x1402e32d9
mov rdx, qword [rbp + 0xa30]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x1402e32c5
mov rax, qword [rbp + 0x298]
mov qword [rbp + 0x9d8], rax
mov rax, qword [rbp + 0x2a8]
mov qword [rbp + 0x9e0], rax
mov eax, dword [rbp + 0x2a0]
mov qword [rbp + 0x9e8], rax
lea rax, [rbp + 0x9d8]
mov rdi, qword [rbp + 0xa20]
mov rsi, rax
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
jmp 0x1402e32d9
lea rdx, [rbp + 0x280]
mov rcx, qword [rbp + 0x38]
call fcn.14012eefb
test eax, eax
jne 0x1402e326a
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0xa20]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1403ef170]
call fcn.1401335c3
mov rax, rdi
mov rcx, qword [rbp + 0x9f8]
xor rcx, rbp
call fcn.1401311e7
lea rsp, [rbp + 0xa00]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140130698
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x1402ead80
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1405276ec]
call fcn.1401347d9
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rbp + 8], rax
mov rax, qword [0x1404f8e68]
cmp qword [rbp + 8], rax
je 0x1402eadd3
mov rax, qword [0x1404f8e70]
cmp qword [rbp + 8], rax
je 0x1402eadd3
xor edx, edx
mov rcx, qword [0x1404f8e70]
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1402eae60
mov edx, 5
mov rcx, qword [0x1404f8e70]
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x1404f8e38]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x1402eae60
movzx eax, byte [0x140460bc9]
test eax, eax
jne 0x1402eae10
mov dword [rbp + 0xd4], 1
jmp 0x1402eae1a
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
mov byte [0x140460bc9], al
movzx eax, byte [0x140460bc9]
test eax, eax
jne 0x1402eae3e
mov dword [rbp + 0xd4], 1
jmp 0x1402eae48
mov dword [rbp + 0xd4], 0
mov r8d, dword [rbp + 0xd4]
mov edx, 0x2000d
mov rcx, qword [0x1404f8ee8]
call fcn.14013512f
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140130c5b
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14037c630
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x14037c665
mov r8d, 0x46
lea rdx, [0x1404e75b0]
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x20
pop rdi
ret

Function at 0x140130ed1
Capabilities:
Log keystrokes

Disassembly:
jmp 0x140376a70
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x40]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1404edd40]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosb byte [rdi], al
mov r8d, 0x6d1
xor edx, edx
lea rcx, [0x140503672]
call fcn.140132da8
mov dword [rsp + 0x40], 0x20
jmp 0x140376ad5
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x140376cd9
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x1405033b8]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x140376b06
jmp 0x140376acb
cmp dword [rsp + 0x40], 0x140
jl 0x140376be2
cmp dword [rsp + 0x40], 0x14e
jg 0x140376be2
mov dword [rsp + 0x1b8], 0x60
mov dword [rsp + 0x1bc], 0x61
mov dword [rsp + 0x1c0], 0x62
mov dword [rsp + 0x1c4], 0x63
mov dword [rsp + 0x1c8], 0x64
mov dword [rsp + 0x1cc], 0x65
mov dword [rsp + 0x1d0], 0x66
mov dword [rsp + 0x1d4], 0x67
mov dword [rsp + 0x1d8], 0x68
mov dword [rsp + 0x1dc], 0x69
mov dword [rsp + 0x1e0], 0x6e
mov dword [rsp + 0x1e4], 0x6f
mov dword [rsp + 0x1e8], 0x6a
mov dword [rsp + 0x1ec], 0x6d
mov dword [rsp + 0x1f0], 0x6b
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x1b8]
mov dword [rsp + 0x164], eax
jmp 0x140376bfb
mov edx, 1
mov ecx, dword [rsp + 0x168]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 0xffffffff
jne 0x140376c75
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 1
jge 0x140376c84
jmp 0x140376acb
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x140503672]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x178]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x140376acb
mov rcx, rsp
lea rdx, [0x140427450]
call fcn.1401335c3
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1401311e7
add rsp, 0x220
pop rdi
ret
Function at 0x1401319f8
Capabilities:
Terminate process

Disassembly:
jmp 0x1403848d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1401321e6
Capabilities:
Write file on windows

Disassembly:
jmp 0x14016ef00
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14052736b]
call fcn.1401347d9
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140132268
Capabilities:
Get geographical location

Disassembly:
jmp 0x140387e70
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140387ead
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14013478e
add rsp, 0x58
ret

Function at 0x1401324f2
Capabilities:
Read file on windows

Disassembly:
jmp 0x14016ee90
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14052736b]
call fcn.1401347d9
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fread]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140132515
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x14016fdc0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rcx, [0x14052736b]
call fcn.1401347d9
mov eax, dword [rbp + 0x1a0]
not eax
mov dword [rbp + 0x1a0], eax
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
lea rax, [0x1403a3b30]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x198], 0
je 0x14016ff05
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x198]
dec rax
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x158], 0
je 0x14016fe59
mov dword [rbp + 0x160], 1
jmp 0x14016fe63
mov dword [rbp + 0x160], 0
cmp dword [rbp + 0x160], 0
je 0x14016ff00
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x64]
cmp eax, 0x23
jne 0x14016feda
cmp qword [rbp + 0x198], 2
jb 0x14016feda
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14016feda
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14016feda
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x64]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x14016fe24
jmp 0x14016ff9f
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x84], al
movzx eax, byte [rbp + 0x84]
test eax, eax
je 0x14016ff9f
movzx eax, byte [rbp + 0x84]
cmp eax, 0x23
jne 0x14016ff76
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14016ff76
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14016ff76
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x84]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x14016ff05
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14013277c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140386d20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140386d40
xor al, al
jmp 0x140386dc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140386d53
xor al, al
jmp 0x140386dc1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140386d7d
xor al, al
jmp 0x140386dc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140386d91
xor al, al
jmp 0x140386dc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140386da3
xor al, al
jmp 0x140386dc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140386dbf
xor al, al
jmp 0x140386dc1
mov al, 1
add rsp, 0x38
ret
Function at 0x1401328b7
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
jmp 0x14036dba0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14036dbe3
jmp 0x14036dcd5
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov rdx, rax
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14036dc1c
lea rdx, str.Win32:_Failed_to_allocate_global_handle_for_clipboard
mov ecx, 0x10008
call fcn.14012ff8b
jmp 0x14036dcd5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14036dc55
lea rdx, [0x1404e59d0]
mov ecx, 0x10008
call fcn.14012ff8b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14036dcd5
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [0x140502f98]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14036dcb9
lea rdx, [0x1404e59f8]
mov ecx, 0x10008
call fcn.14012ff8b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14036dcd5
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rsp + 0x38]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
add rsp, 0x50
pop rdi
ret
Function at 0x1401332c6
Capabilities:
Create process on windows

Disassembly:
jmp 0x1402c0fb0
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14052772d]
call fcn.1401347d9
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.https:__github.com_chres0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140133b1d
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14037c5e0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x14037c610
mov r8d, 0x40
lea rdx, [0x1404e7500]
lea rcx, [0x1404e7560]
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x20
pop rdi
ret
Function at 0x140133fcd
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x14016fca0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x14052736b]
call fcn.1401347d9
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x1403a3b30]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x158]
dec rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x118], 0
je 0x14016fd1f
mov dword [rbp + 0x120], 1
jmp 0x14016fd29
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x14016fd72
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
mov rdx, qword [rbp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
jmp 0x14016fcea
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140134441
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
jmp 0x14036dcf0
push rdi
sub rsp, 0x30
mov rcx, qword [0x140502f98]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14036dd1f
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.14012ff8b
xor eax, eax
jmp 0x14036ddbb
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14036dd52
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.14012ff8b
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x14036ddbb
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14036dd85
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.14012ff8b
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x14036ddbb
mov rcx, qword [0x140502fb0]
call qword [sym.imp.ucrtbased.dll_free]
mov rcx, qword [rsp + 0x28]
call fcn.140131043
mov qword [0x140502fb0], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x140502fb0]
add rsp, 0x30
pop rdi
ret

Function at 0x1401344eb
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14037c520
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x14037c550
mov r8d, 0x29
lea rdx, [0x1404e7430]
lea rcx, str.tls__win32.allocated__GLFW_FALSE
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 0xffffffff
jne 0x14037c57e
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.14012ff8b
xor eax, eax
jmp 0x14037c58e
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14013466c
Capabilities:
Write file on windows

Disassembly:
jmp 0x1402c7090
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1404edd40]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x140527702]
call fcn.1401347d9
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x1402c70f6
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1402c70fd
mov al, 1
jmp 0x1402c726d
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.14012fb8f
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.14012fb8f
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.1401331a9
movzx eax, al
test eax, eax
je 0x1402c7160
xor al, al
jmp 0x1402c726d
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x1402c71d3
cmp dword [rbp + 0x160], 1
je 0x1402c71de
cmp dword [rbp + 0x160], 3
je 0x1402c725c
jmp 0x1402c726b
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1402c722e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1402c722e
xor al, al
jmp 0x1402c726d
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1402c7249
mov dword [rbp + 0x154], 1
jmp 0x1402c7253
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1402c726d
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1402c726d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1403f5b90]
call fcn.1401335c3
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.1401311e7
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140370890
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov eax, 1
mov word [rsp + 0x28], ax
mov eax, 2
mov word [rsp + 0x2a], ax
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x358]
mov qword [rsp + 0x30], rax
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140370908
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.14012ff8b
mov rcx, rsp
lea rdx, [0x1404262e0]
call fcn.1401335c3
add rsp, 0x50
pop rdi
ret

Function at 0x140370930
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov eax, 1
mov word [rsp + 0x28], ax
mov eax, 2
mov word [rsp + 0x2a], ax
mov dword [rsp + 0x2c], 1
mov qword [rsp + 0x30], 0
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1403709a0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.14012ff8b
mov rcx, rsp
lea rdx, [0x140426330]
call fcn.1401335c3
add rsp, 0x50
pop rdi
ret

Function at 0x140370ee0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140370f0e
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140370f2e
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140370f4e
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
mov dword [rsp + 0x24], eax
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
mov ecx, dword [rsp + 0x24]
or ecx, eax
mov eax, ecx
and eax, 0x8000
test eax, eax
je 0x140370f86
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x140370fa4
mov eax, dword [rsp + 0x20]
or eax, 0x10
mov dword [rsp + 0x20], eax
mov ecx, 0x90
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x140370fc2
mov eax, dword [rsp + 0x20]
or eax, 0x20
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret