joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140234560
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14023462a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.1401a6220
xorps xmm15, xmm15
mov r14, qword [0x1406ef470]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x14023460f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x14047f6a0]
xor ebx, ebx
mov rcx, rdx
call fcn.1401ebda0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.1402352c0
inc rbx
cmp rcx, rbx
jae 0x1402345fe
mov edi, 1
lea rsi, [0x14047f6a0]
call fcn.1401ebe80
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x140522a38]
lea rsi, [0x1405219e8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.1402040a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140234560
Function at 0x14025ca80
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x14025ca97
inc rax
cmp rax, 4
jge 0x14025caaf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x14025ca94
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x14025cac0
inc rax
cmp rax, 4
jge 0x14025cace
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x14025caf7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x14025cadb
jmp 0x14025cabd
Function at 0x1402b0380
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x1402b0455
movdqa xmm0, xmmword [0x140521c60]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x1402b03c1
movdqa xmm0, xmmword [0x140521c70]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x1402b04d7
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x1402b04ab
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x140521990]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x140521c80]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x1402b9680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1402b98fc
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rcx
xor edx, edx
xor esi, esi
xor edi, edi
xor r8d, r8d
jmp 0x1402b96b4
lea rdx, [r12 + 1]
mov rcx, r13
cmp rbx, rdx
jle 0x1402b98b8
mov qword [rsp + 0x20], rdx
mov byte [rsp + 0x1f], r8b
mov byte [rsp + 0x1e], dil
mov qword [rsp + 0x28], rsi
movzx r9d, byte [rax + rdx]
test r8b, r8b
je 0x1402b97a0
nop
cmp r9b, 0x3e
jne 0x1402b9790
mov r9, qword [0x140457fc8]
mov r10, rdx
sub rdx, r9
lea r11, [rdx + 1]
nop dword [rax + rax]
test r11, r11
jl 0x1402b9785
lea r12, [r10 + 1]
cmp r12, r11
jb 0x1402b98f0
mov r12, r10
sub r10, rdx
mov r13, rcx
sub rcx, rdx
lea r15, [rcx - 1]
neg r15
sar r15, 0x3f
and r15, r11
lea r11, [rax + r15]
cmp r9, r10
je 0x1402b973d
xor ecx, ecx
jmp 0x1402b9775
mov rbx, qword [0x140457fc0]
mov rax, r11
mov rcx, r10
call fcn.1401a5d20
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x28]
movzx edi, byte [rsp + 0x1e]
movzx r8d, byte [rsp + 0x1f]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x50]
mov ecx, eax
mov rax, qword [rsp + 0x40]
test cl, cl
je 0x1402b96ac
xor r8d, r8d
jmp 0x1402b96ac
mov r12, r10
mov r13, rcx
jmp 0x1402b96ac
mov r12, rdx
mov r13, rcx
jmp 0x1402b96ac
test dil, dil
je 0x1402b97b7
cmp dil, r9b
jne 0x1402b97ac
xor edi, edi
mov r12, rdx
mov r13, rcx
jmp 0x1402b96ac
cmp r9b, 0x27
je 0x1402b97c6
nop dword [rax]
cmp r9b, 0x22
jne 0x1402b97d4
mov r12, rdx
mov r13, rcx
mov edi, r9d
jmp 0x1402b96ac
cmp r9b, 0x3c
jne 0x1402b9887
mov r9, qword [0x140457fa8]
lea r10, [rdx + r9]
cmp rbx, r10
jle 0x1402b9879
cmp rcx, r10
jb 0x1402b98e5
nop dword [rax + rax]
cmp rdx, r10
ja 0x1402b98d7
mov rbx, qword [0x140457fa0]
mov rsi, rdx
sub rdx, rcx
sar rdx, 0x3f
and rdx, rsi
add rdx, rax
mov rax, rdx
mov rcx, r9
call fcn.1401a5d20
test al, al
je 0x1402b9855
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x48]
movzx edi, byte [rsp + 0x1e]
mov rsi, qword [rsp + 0x28]
mov r8d, 1
jmp 0x1402b987c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x28]
movzx edi, byte [rsp + 0x1e]
movzx r8d, byte [rsp + 0x1f]
inc rsi
mov r12, rdx
mov r13, rcx
jmp 0x1402b96ac
cmp r9b, 0x3e
jne 0x1402b98a5
test rsi, rsi
je 0x1402b98b0
dec rsi
mov r12, rdx
mov r13, rcx
nop dword [rax + rax]
jmp 0x1402b96ac
mov r12, rdx
mov r13, rcx
jmp 0x1402b96ac
xor eax, eax
add rsp, 0x30
pop rbp
ret
test rsi, rsi
jne 0x1402b98cb
nop dword [rax]
test dil, dil
jne 0x1402b98cb
xor r8d, 1
jmp 0x1402b98ce
xor r8d, r8d
mov eax, r8d
add rsp, 0x30
pop rbp
ret
mov rax, rdx
mov rcx, r10
nop dword [rax]
call fcn.140206400
mov rdx, rcx
mov rcx, r10
call fcn.1402063c0
mov rax, r11
mov rcx, r12
call fcn.140206400
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.1402040a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop
jmp fcn.1402b9680
Function at 0x140308110
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1406f3300]
test eax, eax
je 0x140308130
lea rcx, [0x1406f491c]
add rsp, 0x28
jmp fcn.140315690
xor edx, edx
mov ecx, 0x10001
call fcn.140307920
xor eax, eax
add rsp, 0x28
ret

Function at 0x14030b840
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1406f3300]
test eax, eax
je 0x14030b860
add rsp, 0x28
jmp 0x140317ec0
xor edx, edx
mov ecx, 0x10001
call fcn.140307920
xor eax, eax
add rsp, 0x28
ret
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, qword [0x14068b040]
mov rcx, qword [rbx + 0x16b8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140317f50
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r12, rax
test rax, rax
je 0x140317f78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r13, rax
test rax, rax
je 0x140317f98
mov rcx, qword [rbx + 0x16d0]
call sub.msvcrt.dll_free
mov rcx, r13
call fcn.140311540
mov rcx, r12
mov qword [rbx + 0x16d0], rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov r12, qword [rbx + 0x16d0]
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
xor r12d, r12d
call fcn.140311370
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.140311370
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140317f3e
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
xor r12d, r12d
call fcn.140311370
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140317f3e
Function at 0x14030fb00
Capabilities:
Link many functions at runtime

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
lea rax, str.OSMesa.dll
cmp qword [0x1406f59a8], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
je 0x14030fb40
mov r12d, 1
mov eax, r12d
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
mov rsi, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rbx, [rsp + 0x20]
lea rcx, str.libOSMesa.dll
jmp 0x14030fb69
mov rcx, qword [rbx + 8]
add rbx, 8
test rcx, rcx
je 0x14030fca8
call rsi
mov qword [0x1406f59a8], rax
test rax, rax
je 0x14030fb58
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call rbx
mov rcx, qword [0x1406f59a8]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1406f59b0], rax
call rbx
mov rcx, qword [0x1406f59a8]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1406f59b8], rax
call rbx
mov rcx, qword [0x1406f59a8]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1406f59c0], rax
call rbx
mov rcx, qword [0x1406f59a8]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1406f59c8], rax
call rbx
mov rcx, qword [0x1406f59a8]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1406f59d0], rax
call rbx
mov rcx, qword [0x1406f59a8]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1406f59d8], rax
call rbx
cmp qword [0x1406f59b0], 0
mov qword [0x1406f59e0], rax
je 0x14030fc60
cmp qword [0x1406f59c0], 0
je 0x14030fc60
cmp qword [0x1406f59c8], 0
je 0x14030fc60
cmp qword [0x1406f59d0], 0
je 0x14030fc60
cmp qword [0x1406f59d8], 0
je 0x14030fc60
test rax, rax
jne 0x14030fb27
nop word cs:[rax + rax]
mov ecx, 0x10008
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
xor r12d, r12d
call fcn.140307920
mov rcx, qword [0x1406f59a8]
test rcx, rcx
je 0x14030fb2d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, r12d
mov qword [0x1406f59a8], 0
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
xor r12d, r12d
call fcn.140307920
jmp 0x14030fb2d

Function at 0x1403109d0
Capabilities:
Log keystrokes via polling

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x10
call rbx
mov ecx, 0x11
movsx r12d, ax
call rbx
mov esi, r12d
mov ecx, 0x12
shr esi, 0x1f
mov r12d, esi
or r12d, 2
test ax, ax
cmovns r12d, esi
call rbx
mov ecx, 0x5b
mov r8d, eax
mov eax, r12d
or eax, 4
test r8w, r8w
cmovs r12d, eax
call rbx
mov ecx, 0x5c
mov esi, eax
call rbx
mov ecx, 0x14
mov r8d, eax
mov eax, r12d
or eax, 8
or si, r8w
cmovs r12d, eax
call rbx
mov ecx, 0x90
mov r8d, eax
mov eax, r12d
or eax, 0x10
and r8d, 1
cmovne r12d, eax
call rbx
mov r8d, eax
mov eax, r12d
or eax, 0x20
and r8d, 1
cmovne r12d, eax
mov eax, r12d
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
Function at 0x140311f50
Capabilities:
Log keystrokes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x188
xor ebx, ebx
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x148], 0
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x158], 0
mov qword [rsp + 0x160], 0
mov qword [rsp + 0x168], 0
mov qword [rsp + 0x170], 0
mov qword [rsp + 0x178], 0
mov rbp, qword [0x14068b040]
lea rdi, [rbp + 0x1d9a]
lea rax, [rbp + 0x1d92]
mov qword [rbp + 0x1d92], 0
and rdi, 0xfffffffffffffff8
lea rsi, [rbp + 0x1e32]
mov qword [rbp + 0x245b], 0
sub rax, rdi
add eax, 0x6d1
shr eax, 3
mov ecx, eax
xor eax, eax
rep stosq qword [rdi], rax
mov rdi, qword [sym.imp.USER32.dll_ToUnicode]
jmp 0x14031218e
test eax, eax
jle 0x140312179
mov qword [rsp + 0x20], rsi
mov r9d, 1
mov r8, r14
xor edx, edx
mov qword [rsp + 0x38], 0
mov ecx, 0xfde9
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add rbx, 1
add rsi, 5
cmp rbx, 0x13d
je 0x140312211
movsx r12d, word [rbp + rbx*2 + 0x1b18]
cmp r12w, 0xffff
je 0x140312179
lea eax, [rbx - 0x120]
cmp eax, 0xe
jbe 0x140312225
mov edx, 1
mov ecx, r12d
lea r14, [rsp + 0x40]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r15d, eax
lea r13, [rsp + 0x80]
mov r9, r14
mov edx, r12d
mov ecx, r15d
mov dword [rsp + 0x28], 0
mov r8, r13
mov dword [rsp + 0x20], 0x10
call rdi
cmp eax, 0xffffffff
jne 0x140312140
mov r9, r14
mov r8, r13
mov edx, r12d
mov ecx, r15d
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
call rdi
jmp 0x140312140
add rsp, 0x188
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movabs rax, 0x6100000060
mov dword [rsp + 0x78], 0x6b
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], rax
movabs rax, 0x6300000062
mov qword [rsp + 0x48], rax
movabs rax, 0x6500000064
mov qword [rsp + 0x50], rax
movabs rax, 0x6700000066
mov qword [rsp + 0x58], rax
movabs rax, 0x6900000068
mov qword [rsp + 0x60], rax
movabs rax, 0x6f0000006e
mov qword [rsp + 0x68], rax
movabs rax, 0x6d0000006a
mov qword [rsp + 0x70], rax
mov r15d, dword [rsp + rbx*4 - 0x440]
jmp 0x1403121bf
Function at 0x1403155d0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
test eax, eax
jne 0x140315600
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
je 0x140315628
mov eax, 1
mov dword [rbx], 1
add rsp, 0x20
pop rbx
ret
mov r8d, 0x29
lea rdx, str.D:_sf_newgo_vendorgithub.comgo_glglfw_v3.3glfw_glfw_src_win32_thread.c
lea rcx, str.tls__win32.allocated__GLFW_FALSE
call qword [sym.imp.msvcrt.dll__wassert]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x1403155ec
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140311370
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140315690
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 1
mov rbx, rcx
je 0x1403156b7
mov r8d, 0x40
lea rdx, str.D:_sf_newgo_vendorgithub.comgo_glglfw_v3.3glfw_glfw_src_win32_thread.c
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.msvcrt.dll__wassert]
mov ecx, dword [rbx + 4]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1403156d0
Capabilities:
Set thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
cmp dword [rcx], 1
mov rbx, rcx
mov r12, rdx
je 0x1403156fc
mov r8d, 0x46
lea rdx, str.D:_sf_newgo_vendorgithub.comgo_glglfw_v3.3glfw_glfw_src_win32_thread.c
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.msvcrt.dll__wassert]
mov ecx, dword [rbx + 4]
mov rdx, r12
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x140317ec0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1406f3300]
test eax, eax
je 0x14030b860
add rsp, 0x28
jmp 0x140317ec0
xor edx, edx
mov ecx, 0x10001
call fcn.140307920
xor eax, eax
add rsp, 0x28
ret
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, qword [0x14068b040]
mov rcx, qword [rbx + 0x16b8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140317f50
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r12, rax
test rax, rax
je 0x140317f78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r13, rax
test rax, rax
je 0x140317f98
mov rcx, qword [rbx + 0x16d0]
call sub.msvcrt.dll_free
mov rcx, r13
call fcn.140311540
mov rcx, r12
mov qword [rbx + 0x16d0], rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov r12, qword [rbx + 0x16d0]
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
xor r12d, r12d
call fcn.140311370
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.140311370
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140317f3e
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
xor r12d, r12d
call fcn.140311370
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140317f3e
Function at 0x140329aa0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140334d70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140334d70
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140329b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1406f6a14]
mov r12, rcx
test ebx, ebx
jle 0x140329c40
mov rax, qword [0x1406f6a18]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140329b5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140329be3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140329b40
mov rcx, r12
call fcn.14032a4b0
mov rsi, rax
test rax, rax
je 0x140329c62
mov rax, qword [0x1406f6a18]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14032a5e0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1406f6a18]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140329c47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140329bdc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140329bf0
add dword [0x1406f6a14], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1406f6a18]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140329bdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140329aa0
nop dword [rax]
xor ebx, ebx
jmp 0x140329b67
mov rax, qword [0x1406f6a18]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140329aa0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140329aa0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14032a120
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1406f6a80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1406f6a60]
test rbx, rbx
je 0x14032a174
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14032a16b
test r12, r12
je 0x14032a16b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14032a150
lea rcx, [0x1406f6a80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14032a4b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14068ade0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14032a4d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14032a4d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14032a4d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14032a525
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14032a51c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14032a4d0
add rax, 0x28
cmp rax, r9
jne 0x14032a508
xor eax, eax
ret

Function at 0x14032a530
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14068ade0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14032a550
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14032a558
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14032a550
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14032a5e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14068ade0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14032a600
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14032a608
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14032c010
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [str._ko_]
mov rax, qword [rsi]
test rax, rax
je 0x14032c0a0
cmp qword [rax + 0x30], 0
jne 0x14032c0c0
lea rbx, [0x14046da88]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14032c070
cmp qword [rax + 0x30], 0
jne 0x14032c090
lea rdx, [0x14046da88]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140335190
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140330f10
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14032c052
test rax, rax
jne 0x14032c090
call fcn.140330f10
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14032c060
call fcn.140330f10
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14032c030
test rax, rax
jne 0x14032c0c0
call fcn.140330f10
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14032c03b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x14032c0d0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14032c1e2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14032c1ba
add rax, 1
cmp rax, 0x6b
je 0x14032c1d7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14032c1b0
cmp edx, 0x6a
je 0x14032c1d7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14032c1cb