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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400306a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140030680]
test rbx, rbx
je 0x140011bdc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140011bd3
test rsi, rsi
je 0x140011bd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140011bb8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011f10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001ab60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140011f30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140011f38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140011f30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140011f8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140011f84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140011f30
add rax, 0x28
cmp rax, r9
jne 0x140011f70
xor eax, eax
ret

Function at 0x140011f90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001ab60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140011faf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140011fb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140011faf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140012050
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001ab60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001206f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140012078
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14112c86c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14112c876
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14112c89f
pop rbp
sub rbp, 0x33
sub rbp, 0x112c86c
sub rsp, 0x20
insb byte [rdi], dx
enter 0x112, 0x48
sub esp, 0x20
jmp 0x14112c8be
mov rax, 0x112c86c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff9ef6383d
xor byte [rax], dl
inc rax
dec rcx
jne 0x14112c8dd
jmp 0x14112c8f4
jne 0x14112c8aa
invalid
Function at 0x140001850
Capabilities:
Enumerate gui resources
Execute command

Disassembly:
sub rsp, 0x28
call fcn.1400012d0
mov dword [0x140063f80], eax
test eax, eax
jne 0x14000186c
lea rdx, str.Could_not_find_val_process_id._n
jmp 0x1400018a0
xor edx, edx
lea rcx, [0x1400017f0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [0x140063f90], 0
jne 0x14000188e
lea rdx, str.Could_not_find_val_window._n
jmp 0x1400018a0
mov qword [0x140063f78], 0
lea rdx, str.Could_not_get_base_address._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001a20
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
add rsp, 0x28
ret

Function at 0x140008d10
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 0x140008d53
jmp 0x140008e45
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 0x140008d8c
lea rdx, str.Win32:_Failed_to_allocate_global_handle_for_clipboard
mov ecx, 0x10008
call fcn.140015ca0
jmp 0x140008e45
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140008dc5
lea rdx, [0x140036ca8]
mov ecx, 0x10008
call fcn.140015ca0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140008e45
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 [0x140062468]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140008e29
lea rdx, [0x140036cd0]
mov ecx, 0x10008
call fcn.140015ca0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140008e45
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 0x140008e60
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
sub rsp, 0x30
mov rcx, qword [0x140062468]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140008e8f
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.140015ca0
xor eax, eax
jmp 0x140008f2b
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140008ec2
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.140015ca0
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x140008f2b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140008ef5
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.140015ca0
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x140008f2b
mov rcx, qword [0x140062480]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x28]
call fcn.1400158f0
mov qword [0x140062480], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x140062480]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a970
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x120
lea rdi, [rsp + 0x30]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14005af10]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14000aa18
cmp dword [rsp + 0x40], 0x12
jne 0x14000aa00
mov rax, qword [0x1400611a0]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14000a9fe
mov rcx, qword [rsp + 0x80]
call fcn.140008660
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
jmp 0x14000a9d1
jmp 0x14000aa16
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14000a99c
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14000aba6
lea rdx, str.GLFW
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetPropW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14000aba6
mov dword [rsp + 0x98], 0xa0
mov dword [rsp + 0x9c], 0x154
mov dword [rsp + 0xa0], 0xa1
mov dword [rsp + 0xa4], 0x158
mov dword [rsp + 0xa8], 0x5b
mov dword [rsp + 0xac], 0x157
mov dword [rsp + 0xb0], 0x5c
mov dword [rsp + 0xb4], 0x15b
mov dword [rsp + 0x88], 0
jmp 0x14000aacd
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 4
jge 0x14000aba6
movsxd rax, dword [rsp + 0x88]
lea rax, [rsp + rax*8 + 0x98]
mov ecx, 4
imul rcx, rcx, 0
mov eax, dword [rax + rcx]
mov dword [rsp + 0xc4], eax
movsxd rax, dword [rsp + 0x88]
lea rax, [rsp + rax*8 + 0x98]
mov ecx, 4
imul rcx, rcx, 1
mov eax, dword [rax + rcx]
mov dword [rsp + 0xc8], eax
movsxd rax, dword [rsp + 0xc8]
lea rcx, [0x140062888]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0xcc], eax
mov ecx, dword [rsp + 0xc4]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14000ab57
jmp 0x14000aabd
movsxd rax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
movsx eax, byte [rcx + rax + 0x90]
cmp eax, 1
je 0x14000ab79
jmp 0x14000aabd
call fcn.14000c050
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, dword [rsp + 0xcc]
mov edx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
call fcn.140004460
jmp 0x14000aabd
mov rax, qword [0x140063228]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14000ac49
lea r8, [rsp + 0xf4]
lea rdx, [rsp + 0xd4]
mov rcx, qword [rsp + 0x80]
call fcn.1400095b0
mov eax, dword [rsp + 0xd4]
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x394], eax
jne 0x14000ac19
mov eax, dword [rsp + 0xf4]
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x398], eax
je 0x14000ac49
mov eax, dword [rsp + 0xf4]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm0, eax
mov eax, dword [rsp + 0xd4]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm1, eax
movaps xmm2, xmm0
mov rcx, qword [rsp + 0x80]
call fcn.1400088d0
mov rcx, rsp
lea rdx, [0x140024d80]
call fcn.14001c5a8
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14001bcc0
add rsp, 0x120
pop rdi
ret
Function at 0x14000ba00
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 0x14000ba78
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140015ca0
mov rcx, rsp
lea rdx, [0x140025070]
call fcn.14001c5a8
add rsp, 0x50
pop rdi
ret

Function at 0x14000baa0
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 0x14000bb10
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140015ca0
mov rcx, rsp
lea rdx, [0x1400250c0]
call fcn.14001c5a8
add rsp, 0x50
pop rdi
ret

Function at 0x14000c050
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 0x14000c07e
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 0x14000c09e
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 0x14000c0be
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 0x14000c0f6
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 0x14000c114
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 0x14000c132
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 0x1400133a0
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 0x1400133d0
mov r8d, 0x29
lea rdx, [0x140055260]
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 0x1400133fe
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140015ca0
xor eax, eax
jmp 0x14001340e
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140013460
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 0x140013490
mov r8d, 0x40
lea rdx, [0x140055330]
lea rcx, [0x140055390]
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 0x1400134b0
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 0x1400134e5
mov r8d, 0x46
lea rdx, [0x1400553e0]
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 0x140015df0
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 [0x14005af10]
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, [0x140062b42]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x20
jmp 0x140015e55
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x140016059
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x140062888]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x140015e86
jmp 0x140015e4b
cmp dword [rsp + 0x40], 0x140
jl 0x140015f62
cmp dword [rsp + 0x40], 0x14e
jg 0x140015f62
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 0x140015f7b
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 0x140015ff5
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 0x140016004
jmp 0x140015e4b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x140062b42]
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 0x140015e4b
mov rcx, rsp
lea rdx, [0x140026a20]
call fcn.14001c5a8
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.14001bcc0
add rsp, 0x220
pop rdi
ret
Function at 0x14001a680
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14005af10]
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 [0x140063498], 0
je 0x14001a6db
mov eax, 1
jmp 0x14001a85b
mov dword [rsp + 0x20], 0
jmp 0x14001a6ef
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 0x14001a721
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140063498], rax
cmp qword [0x140063498], 0
je 0x14001a71f
jmp 0x14001a721
jmp 0x14001a6e5
cmp qword [0x140063498], 0
jne 0x14001a743
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14000e810
xor eax, eax
jmp 0x14001a85b
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x140063498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400634a0], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x140063498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400634a8], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x140063498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400634b0], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x140063498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400634b8], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x140063498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400634c0], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x140063498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400634c8], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x140063498]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400634d0], rax
cmp qword [0x1400634a0], 0
je 0x14001a83c
cmp qword [0x1400634b0], 0
je 0x14001a83c
cmp qword [0x1400634b8], 0
je 0x14001a83c
cmp qword [0x1400634c0], 0
je 0x14001a83c
cmp qword [0x1400634c8], 0
je 0x14001a83c
cmp qword [0x1400634d0], 0
jne 0x14001a856
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14000e810
call fcn.14001a890
xor eax, eax
jmp 0x14001a85b
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400273b0]
call fcn.14001c5a8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001bcc0
add rsp, 0x70
pop rdi
ret

Function at 0x14001c804
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0055f3d0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0055f3e0]
mov dword [rax], 1
mov rax, qword [0x0055f3f0]
mov dword [rax], 1
mov rax, qword [0x0055f3c0]
mov dword [rax], 1
mov rax, qword [0x0055f280]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x0055f3b0]
mov dword [0x00562008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sub.msvcrt.dll___set_app_type
mov rcx, 0xffffffffffffffff
call fcn.00487b90
mov rdx, qword [0x0055f310]
mov qword [rdx], rax
mov rdx, qword [0x0055f300]
mov qword [rdx], rax
mov rax, qword [0x0055f370]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0055f230]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sub.msvcrt.dll___set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.c
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x487d80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00562054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x487e9a
mov rax, qword [0x00562058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x487dce
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x487e80
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x487db2
mov rcx, rbx
call sym._3
test rax, rax
mov r12, rax
je 0x487ed2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00562058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call sym._4
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00562058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x487eb5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x487e79
sub eax, 0x40
and eax, 0xffffffbf
je 0x487e79
mov r9, rbp
add r9, qword [0x00562058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x487ea1
add dword [0x00562054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.004890f0
xor ebp, ebp
jmp 0x487ddb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00487d10
mov rax, qword [0x00562058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00487d10
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00487d10
nop
nop word cs:[rax + rax]

Function at 0x488ab0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x488ac0
xor eax, eax
ret
jmp sym._13

Function at 0x488ad0
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 0x488b11
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x488b08
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x488b13
add rax, 0x28
cmp rax, r9
jne 0x488af4
xor eax, eax
repz ret

Function at 0x488bc0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0055f280]
cmp word [rbx], 0x5a4d
je 0x488be0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._13
test eax, eax
je 0x488bd4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym._2