joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003b00
Capabilities:
Access peb ldr_data
Encode data using xor
Execute command
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x140062948]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140062948]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.1400037d0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140003bb7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140003bb7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x3c8323ad
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140003bb2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140003b90
cmp r8d, 0xcb45132d
je 0x140003bbc
test r9d, r9d
jne 0x140003b70
mov rax, qword [rax]
jmp 0x140003b40
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov edx, 0xd
mov rcx, qword [0x14015da80]
add rax, r10
call rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._n_______n_____n____________________________n
call fcn.1400043b0
mov rcx, rax
call fcn.140004580
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140003c87
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140003c87
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xb6d58f00
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140003c82
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140003c60
cmp r8d, 0xf95de576
je 0x140003c8c
test r9d, r9d
jne 0x140003c40
mov rax, qword [rax]
jmp 0x140003c10
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov edx, 7
mov rcx, qword [0x14015da80]
add rax, r10
call rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__i___Join_Discord_for_Updates_n_n
call fcn.1400043b0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__i___Press_any_key_to_load_cheat_n_n
call fcn.1400043b0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14015e7c0]
call fcn.14000b120
call fcn.140053340
mov rbx, qword [rsp + 0x30]
mov eax, dword [rax + 0x70]
add rsp, 0x20
pop rdi
ret
Function at 0x14001fb50
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14015da40]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x14001fbb1
cmp byte [rbx + 0x4a2e], 0
jne 0x14001fbb1
movsx r9d, word [rbx + 0x5b32]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14000f410
test dil, 1
je 0x14001fcd8
jmp 0x14001fc3a
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b32]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14006934c]
mulss xmm1, dword [0x14006932c]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x14006924c]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.14000f410
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001fc90
lea r11, [0x140063f90]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14001fc73
cmp byte [r8], r9b
jne 0x14001fc73
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001fc60
not ecx
call fcn.140016e00
test rax, rax
je 0x14001fcd8
cmp byte [rax + 0xae], 0
je 0x14001fcd8
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b32]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b32]
call fcn.14000f410
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140019550
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005cc30
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14005b940
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor esi, esi
lea r8, [0x1400538c0]
mov rbx, rcx
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rax, [0x140053460]
mov qword [rsp + 0x70], 0x50
mov edx, 0x7f00
mov qword [rsp + 0x78], rax
xor ecx, ecx
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rsi
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0x90], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
xorps xmm0, xmm0
lea rdi, str.Chrome
mov edx, 0x7f00
mov qword [rsp + 0x98], rax
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rdi
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsp + 0xb8], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [rsp + 0x88]
mov r9d, 0x80000000
mov qword [rsp + 0x58], rsi
mov r8, rdi
mov qword [rsp + 0x50], rax
mov rdx, rdi
mov eax, dword [rsp + 0x6c]
xor ecx, ecx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea edx, [rsi - 0x14]
mov r8d, 0x80020
mov rcx, rax
mov qword [rbx + 0x50], rax
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [rbx + 0x50]
lea r9d, [rsi + 2]
mov r8b, 0xff
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x1400694a0]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rbx + 0x50]
movdqu xmmword [rsp + 0xc0], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [rbx + 0x50]
lea edx, [rsi + 5]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
call fcn.1400534d0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.14005b120
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14005cc30
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14005d8b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005d8fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005d8fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005d8fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005d8fe
cmp dword [rcx + 0x84], 0xe
jbe 0x14005d8fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005d900
xor al, al
add rsp, 0x28
ret
Function at 0x140bf6530
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x10]
je 0x140bf6587
mov eax, 0xde2d17bb
lea rax, [0x140c10918]
push 0xffffffffdd0654b3
movzx r8d, byte [rdx]
xor r8d, r10d
and r8d, 0xff
mov r8d, dword [rax + r8*4]
shr r10d, 8
xor r10d, r8d
inc rdx
xor r10d, 0x7c12be3e
sar byte [rsp + 1], 0x62
sar dword [rsp + 4], 0xf2
dec r11
lea rsp, [rsp + 8]
jne 0x140bf6547
jmp 0x140c1c75b

Function at 0x140c1156b
Capabilities:
Encode data using xor

Disassembly:
add rsi, 0xc
push 0xfffffffff72605b6
xor ebp, ebp
test r9, r9
mov qword [rsp + 8], 0xffffffffdd08fdad
lea rsp, [rsp + 0x18]
je 0x140c1cb93
mov edx, 0x19a49033
push rsi
lea rdx, [0x140c19bc8]
mov esi, 0xde816a06
sub esi, esi
adc sil, byte [r8 + rsi*2]
push 0xfffffffffe8e74ab
xor esi, ebp
neg word [rsp + 5]
and esi, 0xff
mov esi, dword [rdx + rsi*4]
or dword [rsp], 0xc3093528
shr ebp, 8
sal dword [rsp + 3], 0x69
xor ebp, esi
inc r8
xor ebp, 0x6d10470d
dec r9
lea rsp, [rsp + 8]
jne 0x140c1159d
call fcn.140c1cb89
Function at 0x1400670d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401070f0]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140067136
lea rcx, [0x1401070e0]
xor edx, edx
call fcn.140055400
mov eax, dword [0x140107108]
mov ecx, dword [0x1400fc89c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140067171
lea rcx, [0x1401070f8]
xor edx, edx
add rsp, 0x28
jmp fcn.140055400
lea rcx, [0x1401070f0]
call fcn.1400674d0
cmp dword [0x1401070f0], 0xffffffff
jne 0x1400670f5
xorps xmm0, xmm0
movups xmmword [0x1401070e0], xmm0
lea rcx, [0x1401070e0]
xor edx, edx
call fcn.140035f00
lea rcx, [0x1401070f0]
call fcn.140067568
jmp 0x1400670f5
lea rcx, [0x140107108]
call fcn.1400674d0
cmp dword [0x140107108], 0xffffffff
jne 0x140067124
xorps xmm0, xmm0
movups xmmword [0x1401070f8], xmm0
lea rcx, [0x1401070f8]
xor edx, edx
call fcn.140035f00
lea rcx, [0x140107108]
call fcn.140067568
jmp 0x140067124

Function at 0x1400672c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140107110]
cmp rsi, 1
jbe 0x1400672e3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140055400
lea rcx, [0x140107110]
call fcn.14003a630
test al, al
je 0x140067328
xorps xmm0, xmm0
movups xmmword [0x140107118], xmm0
lea rdi, [0x140107110]
lea rsi, [0x140107118]
mov rcx, rsi
xor edx, edx
call fcn.140035f00
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14003a6f0
jmp 0x1400672d3
mov rsi, qword [0x140107110]
jmp 0x1400672d3

Function at 0x1400767e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140076938
Function at 0x14000d330
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
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 0x14000d373
jmp 0x14000d465
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 0x14000d3ac
lea rdx, str.Win32:_Failed_to_allocate_global_handle_for_clipboard
mov ecx, 0x10008
call fcn.14001a370
jmp 0x14000d465
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000d3e5
lea rdx, [0x14008f758]
mov ecx, 0x10008
call fcn.14001a370
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14000d465
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 [0x140189278]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14000d449
lea rdx, [0x14008f780]
mov ecx, 0x10008
call fcn.14001a370
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14000d465
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
add rsp, 0x50
pop rdi
ret

Function at 0x14000d480
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
sub rsp, 0x30
mov rcx, qword [0x140189278]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14000d4af
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.14001a370
xor eax, eax
jmp 0x14000d54b
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000d4e2
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.14001a370
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x14000d54b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000d515
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.14001a370
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x14000d54b
mov rcx, qword [0x140189290]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x28]
call fcn.140019fc0
mov qword [0x140189290], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x140189290]
add rsp, 0x30
pop rdi
ret
Function at 0x140010020
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, ntohs
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, reloc.WS2_32.dll_recv
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140010098
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.14001a370
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.140061a90
add rsp, 0x50
pop rdi
ret

Function at 0x1400100c0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, ntohs
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
xor byte [rax], al
add byte [rax], al
add byte [rcx - 0x48], al
adc byte [rax], al
add byte [rax], al
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140010130
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.14001a370
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.140061a90
add rsp, 0x50
pop rdi
ret

Function at 0x140010670
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14001069e
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1400106be
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1400106de
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 0x140010716
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
mov ecx, reloc.WS2_32.dll_sendto
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x140010734
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 0x140010752
mov eax, dword [rsp + 0x20]
or eax, 0x20
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x1400164d0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x140016500
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rdx, [0x1400ad260]
lea rcx, str.tls__win32.allocated__GLFW_FALSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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 0x14001652e
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.14001a370
xor eax, eax
jmp 0x14001653e
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140016590
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x1400165c0
mov r8d, 0x40
lea rdx, [0x1400ad330]
lea rcx, [0x1400ad390]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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 0x1400165e0
Capabilities:
Set thread local storage value

Disassembly:
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 0x140016615
mov r8d, 0x46
lea rdx, [0x1400ad3e0]
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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 0x14001a4c0
Capabilities:
Log keystrokes

Disassembly:
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x40]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400b2f80]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov r8d, 0x6d1
xor edx, edx
lea rcx, [0x140189952]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], reloc.WLDAP32.dll_Ordinal_32
jmp 0x14001a525
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x14001a729
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x140189698]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x14001a556
jmp 0x14001a51b
cmp dword [rsp + 0x40], 0x140
jl 0x14001a632
cmp dword [rsp + 0x40], 0x14e
jg 0x14001a632
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], WSAGetLastError
mov dword [rsp + 0x1d0], WSASetLastError
mov dword [rsp + 0x1d4], WSASetLastError
mov dword [rsp + 0x1d8], WSASetLastError
mov dword [rsp + 0x1dc], WSASetLastError
mov dword [rsp + 0x1e0], WSASetLastError
mov dword [rsp + 0x1e4], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x1e8], WSASetLastError
mov dword [rsp + 0x1ec], WSASetLastError
mov dword [rsp + 0x1f0], WSASetLastError
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x1b8]
mov dword [rsp + 0x164], eax
jmp 0x14001a64b
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], reloc.WS2_32.dll_recv
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 0x14001a6c5
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
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 0x14001a6d4
jmp 0x14001a51b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x140189952]
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 0x14001a51b
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140061a90
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400611e0
add rsp, 0x220
pop rdi
ret
Function at 0x14001d7b0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400b2f80]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, str.libOSMesa.dll
mov qword [rsp + 0x38], rax
lea rax, str.OSMesa.dll
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
cmp qword [0x14018a2a8], 0
je 0x14001d80b
mov eax, 1
jmp 0x14001d98b
mov dword [rsp + 0x20], 0
jmp 0x14001d81f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x14001d851
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14018a2a8], rax
cmp qword [0x14018a2a8], 0
je 0x14001d84f
jmp 0x14001d851
jmp 0x14001d815
cmp qword [0x14018a2a8], 0
jne 0x14001d873
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140012e30
xor eax, eax
jmp 0x14001d98b
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x14018a2a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018a2b0], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x14018a2a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018a2b8], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x14018a2a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018a2c0], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x14018a2a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018a2c8], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x14018a2a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018a2d0], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x14018a2a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018a2d8], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x14018a2a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14018a2e0], rax
cmp qword [0x14018a2b0], 0
je 0x14001d96c
cmp qword [0x14018a2c0], 0
je 0x14001d96c
cmp qword [0x14018a2c8], 0
je 0x14001d96c
cmp qword [0x14018a2d0], 0
je 0x14001d96c
cmp qword [0x14018a2d8], 0
je 0x14001d96c
cmp qword [0x14018a2e0], 0
jne 0x14001d986
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140012e30
call fcn.14001d9c0
xor eax, eax
jmp 0x14001d98b
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.140061a90
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400611e0
add rsp, 0x70
pop rdi
ret
Function at 0x140022a20
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret