joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400021d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140002224
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 0x14000221b
test r12, r12
je 0x14000221b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002200
lea rcx, [0x140007100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002460
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002470
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400024b5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400024ac
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400024b7
add rax, 0x28
cmp rax, r9
jne 0x140002498
xor eax, eax
ret

Function at 0x140002560
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140004380]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400025d9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400025d9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400025d6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400025cd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400025d9
add r8, 0x28
cmp r8, r9
jne 0x1400025b8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400026c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004380]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000272f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000272f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000272d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002724
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002738
add rax, 0x28
cmp rax, r9
jne 0x140002710
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002750
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140004380]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400027c8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400027c8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400027c8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400027c8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x1400027bc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400027d0
add rdx, 0x28
cmp rdx, r10
jne 0x1400027a8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1400027e0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400027ee
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400027c5
test r8d, r8d
jg 0x1400027d8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400faa5f
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x1402ebbd0
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1404ceb80]
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 [0x1404e3788], 0
je 0x1402ebc2b
mov eax, 1
jmp 0x1402ebdab
mov dword [rsp + 0x20], 0
jmp 0x1402ebc3f
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 0x1402ebc71
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1404e3788], rax
cmp qword [0x1404e3788], 0
je 0x1402ebc6f
jmp 0x1402ebc71
jmp 0x1402ebc35
cmp qword [0x1404e3788], 0
jne 0x1402ebc93
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400fc7ab
xor eax, eax
jmp 0x1402ebdab
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x1404e3788]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e3790], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x1404e3788]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e3798], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x1404e3788]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e37a0], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x1404e3788]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e37a8], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x1404e3788]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e37b0], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x1404e3788]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e37b8], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x1404e3788]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e37c0], rax
cmp qword [0x1404e3790], 0
je 0x1402ebd8c
cmp qword [0x1404e37a0], 0
je 0x1402ebd8c
cmp qword [0x1404e37a8], 0
je 0x1402ebd8c
cmp qword [0x1404e37b0], 0
je 0x1402ebd8c
cmp qword [0x1404e37b8], 0
je 0x1402ebd8c
cmp qword [0x1404e37c0], 0
jne 0x1402ebda6
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400fc7ab
call fcn.1400fa9e7
xor eax, eax
jmp 0x1402ebdab
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1403792b0]
call fcn.1400fdd72
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400fc364
add rsp, 0x70
pop rdi
ret
Function at 0x1400fafa5
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140264340
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [0x1404ceb80]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x1404fe479]
call fcn.1400fea5b
xor edx, edx
mov ecx, 2
call fcn.1400fc2c9
mov qword [rbp + 8], rax
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rbp + 0x30], 0x238
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1402643bb
xor eax, eax
jmp 0x14026441b
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400fccab
test eax, eax
jne 0x1402643d0
xor eax, eax
jmp 0x14026441b
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400fdf84
test eax, eax
je 0x14026440f
mov rcx, qword [rbp + 0x420]
call fcn.1400fb92d
mov rdx, rax
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x14026440d
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x38]
jmp 0x14026441b
jmp 0x1402643d0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14034df50]
call fcn.1400fdd72
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.1400fc364
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x1400fb072
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140264990
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 [0x1404ceb80]
xor rax, rbp
mov qword [rbp + 0x9f8], rax
lea rcx, [0x1404fe479]
call fcn.1400fea5b
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.1400fc2c9
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0xffffffffffffffff
jne 0x140264a6c
mov r9, qword [rbp + 0xa30]
lea r8, str.Failed_to_get__s__invalid_handle_value
mov edx, 0xff
lea rcx, [rbp + 0x60]
call fcn.1400fb4aa
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 0x140264b0a
mov dword [rbp + 0x280], 0x438
lea rdx, [rbp + 0x280]
mov rcx, qword [rbp + 0x38]
call fcn.1400fcda5
test eax, eax
je 0x140264af9
mov rdx, qword [rbp + 0xa30]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x140264ae5
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 0x140264af9
lea rdx, [rbp + 0x280]
mov rcx, qword [rbp + 0x38]
call fcn.1400fab0e
test eax, eax
jne 0x140264a8a
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, [0x14034deb0]
call fcn.1400fdd72
mov rax, rdi
mov rcx, qword [rbp + 0x9f8]
xor rcx, rbp
call fcn.1400fc364
lea rsp, [rbp + 0xa00]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fbb9e
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140266720
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1404fe492]
call fcn.1400fea5b
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rbp + 8], rax
mov rax, qword [0x1404d9480]
cmp qword [rbp + 8], rax
je 0x140266773
mov rax, qword [0x1404d9488]
cmp qword [rbp + 8], rax
je 0x140266773
xor edx, edx
mov rcx, qword [0x1404d9488]
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140266800
mov edx, 5
mov rcx, qword [0x1404d9488]
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x1404d944c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x140266800
movzx eax, byte [0x1403a2d19]
test eax, eax
jne 0x1402667b0
mov dword [rbp + 0xd4], 1
jmp 0x1402667ba
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
mov byte [0x1403a2d19], al
movzx eax, byte [0x1403a2d19]
test eax, eax
jne 0x1402667de
mov dword [rbp + 0xd4], 1
jmp 0x1402667e8
mov dword [rbp + 0xd4], 0
mov r8d, dword [rbp + 0xd4]
mov edx, 0x2000d
mov rcx, qword [0x1404d9490]
call fcn.1400ff11d
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400fbfc2
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1402e61a0
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 0x1402e61d5
mov r8d, 0x46
lea rdx, [0x1404c83f0]
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 0x1400fc166
Capabilities:
Log keystrokes

Disassembly:
jmp 0x1402e05e0
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x40]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1404ceb80]
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, [0x1404e2e32]
call fcn.1400fd741
mov dword [rsp + 0x40], 0x20
jmp 0x1402e0645
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x1402e0849
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x1404e2b78]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x1402e0676
jmp 0x1402e063b
cmp dword [rsp + 0x40], 0x140
jl 0x1402e0752
cmp dword [rsp + 0x40], 0x14e
jg 0x1402e0752
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 0x1402e076b
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 0x1402e07e5
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 0x1402e07f4
jmp 0x1402e063b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x1404e2e32]
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 0x1402e063b
mov rcx, rsp
lea rdx, [0x140377a30]
call fcn.1400fdd72
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400fc364
add rsp, 0x220
pop rdi
ret
Function at 0x1400fc913
Capabilities:
Terminate process

Disassembly:
jmp 0x1402ee7d0
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 0x1400fced1
Capabilities:
Write file on windows

Disassembly:
jmp 0x140137280
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, [0x1404fe114]
call fcn.1400fea5b
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 0x1400fd138
Capabilities:
Read file on windows

Disassembly:
jmp 0x140137210
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, [0x1404fe114]
call fcn.1400fea5b
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 0x1400fd15b
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x140138e70
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, [0x1404fe114]
call fcn.1400fea5b
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, [0x140302170]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x198], 0
je 0x140138fa8
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 0x140138f09
mov dword [rbp + 0x160], 1
jmp 0x140138f13
mov dword [rbp + 0x160], 0
cmp dword [rbp + 0x160], 0
je 0x140138fa3
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x64], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x64]
cmp eax, 0x23
jne 0x140138f7d
cmp qword [rbp + 0x198], 2
jb 0x140138f7d
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140138f7d
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140138f7d
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 0x140138ed4
jmp 0x140139035
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x84], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x84]
test eax, eax
je 0x140139035
movzx eax, byte [rbp + 0x84]
cmp eax, 0x23
jne 0x14013900c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14013900c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14013900c
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 0x140138fa8
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400fd322
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402f0460
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1402f0480
xor al, al
jmp 0x1402f0501
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1402f0493
xor al, al
jmp 0x1402f0501
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 0x1402f04bd
xor al, al
jmp 0x1402f0501
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1402f04d1
xor al, al
jmp 0x1402f0501
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1402f04e3
xor al, al
jmp 0x1402f0501
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1402f04ff
xor al, al
jmp 0x1402f0501
mov al, 1
add rsp, 0x38
ret

Function at 0x1400fd408
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
jmp 0x1402d7710
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 0x1402d7753
jmp 0x1402d7845
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 0x1402d778c
lea rdx, str.Win32:_Failed_to_allocate_global_handle_for_clipboard
mov ecx, 0x10008
call fcn.1400fb6c1
jmp 0x1402d7845
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1402d77c5
lea rdx, [0x1404c6810]
mov ecx, 0x10008
call fcn.1400fb6c1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1402d7845
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 [0x1404e2758]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1402d7829
lea rdx, [0x1404c6838]
mov ecx, 0x10008
call fcn.1400fb6c1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1402d7845
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 0x1400fe150
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1402e6150
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x1402e6180
mov r8d, 0x40
lea rdx, [0x1404c8340]
lea rcx, [0x1404c83a0]
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 0x1400fe4bb
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x140138d60
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, [0x1404fe114]
call fcn.1400fea5b
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x140302170]
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 0x140138ddf
mov dword [rbp + 0x120], 1
jmp 0x140138de9
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x140138e23
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 + 4], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
jmp 0x140138daa
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x1400fe7ef
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
jmp 0x1402d7860
push rdi
sub rsp, 0x30
mov rcx, qword [0x1404e2758]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1402d788f
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.1400fb6c1
xor eax, eax
jmp 0x1402d792b
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1402d78c2
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.1400fb6c1
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x1402d792b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1402d78f5
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.1400fb6c1
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x1402d792b
mov rcx, qword [0x1404e2770]
call qword [sym.imp.ucrtbased.dll_free]
mov rcx, qword [rsp + 0x28]
call fcn.1400fc251
mov qword [0x1404e2770], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x1404e2770]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fe862
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1402e6090
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x1402e60c0
mov r8d, 0x29
lea rdx, [0x1404c8270]
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 0x1402e60ee
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1400fb6c1
xor eax, eax
jmp 0x1402e60fe
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret