joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400080a0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x40], 0
je 0x1400080c3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x3f
jb 0x1400080b0
mov byte [rcx + 0x40], 0
ret

Function at 0x1400080d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x45], 0
je 0x1400080f3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x44
jb 0x1400080e0
mov byte [rcx + 0x45], 0
ret

Function at 0x140008100
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2f], 0
je 0x140008123
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2e
jb 0x140008110
mov byte [rcx + 0x2f], 0
ret

Function at 0x140008130
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x3b], 0
je 0x140008153
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x3a
jb 0x140008140
mov byte [rcx + 0x3b], 0
ret

Function at 0x140008160
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x31], 0
je 0x140008183
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x30
jb 0x140008170
mov byte [rcx + 0x31], 0
ret

Function at 0x140008190
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2b], 0
je 0x1400081b3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2a
jb 0x1400081a0
mov byte [rcx + 0x2b], 0
ret

Function at 0x1400081c0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x24], 0
je 0x1400081e3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x23
jb 0x1400081d0
mov byte [rcx + 0x24], 0
ret

Function at 0x1400081f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x30], 0
je 0x140008213
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2f
jb 0x140008200
mov byte [rcx + 0x30], 0
ret

Function at 0x140008220
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x28], 0
je 0x140008243
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x27
jb 0x140008230
mov byte [rcx + 0x28], 0
ret

Function at 0x140008250
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x25], 0
je 0x140008273
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x24
jb 0x140008260
mov byte [rcx + 0x25], 0
ret

Function at 0x140008280
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x23], 0
je 0x1400082a3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x22
jb 0x140008290
mov byte [rcx + 0x23], 0
ret

Function at 0x1400082b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2c], 0
je 0x1400082d3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2b
jb 0x1400082c0
mov byte [rcx + 0x2c], 0
ret
Function at 0x1400082e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2e], 0
je 0x140008303
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2d
jb 0x1400082f0
mov byte [rcx + 0x2e], 0
ret

Function at 0x140008310
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x27], 0
je 0x140008333
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x26
jb 0x140008320
mov byte [rcx + 0x27], 0
ret

Function at 0x140008340
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2d], 0
je 0x140008363
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2c
jb 0x140008350
mov byte [rcx + 0x2d], 0
ret

Function at 0x140008370
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x26], 0
je 0x140008393
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x25
jb 0x140008380
mov byte [rcx + 0x26], 0
ret

Function at 0x1400083a0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x41], 0
je 0x1400083c3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x41]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x40
jb 0x1400083b0
mov byte [rcx + 0x41], 0
ret

Function at 0x1400087b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400e0f80]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140008883
cmp byte [rcx + 0x71], 0
je 0x140008883
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000887f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140008844
sub eax, 1
je 0x140008848
cmp eax, 2
jne 0x14000887f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140086e90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008876
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000887f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000882c
xor al, al
jmp 0x14000882c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140086e90
add rsp, 0x60
pop rbx
ret
Function at 0x140010fd0
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 0x140011013
jmp 0x140011105
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 0x14001104c
lea rdx, str.Win32:_Failed_to_allocate_global_handle_for_clipboard
mov ecx, 0x10008
call fcn.14001ca70
jmp 0x140011105
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140011085
lea rdx, [0x1400bcca8]
mov ecx, 0x10008
call fcn.14001ca70
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140011105
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 [0x1400e8b08]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1400110e9
lea rdx, [0x1400bccd0]
mov ecx, 0x10008
call fcn.14001ca70
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140011105
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 0x140011120
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
sub rsp, 0x30
mov rcx, qword [0x1400e8b08]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14001114f
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.14001ca70
xor eax, eax
jmp 0x1400111eb
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 0x140011182
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.14001ca70
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x1400111eb
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400111b5
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.14001ca70
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x1400111eb
mov rcx, qword [0x1400e8b20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x28]
call fcn.14001c6c0
mov qword [0x1400e8b20], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x1400e8b20]
add rsp, 0x30
pop rdi
ret
Function at 0x140013cc0
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 0x140013d38
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.14001ca70
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400878f0
add rsp, 0x50
pop rdi
ret

Function at 0x140013d60
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
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 0x140013dd0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.14001ca70
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400878f0
add rsp, 0x50
pop rdi
ret

Function at 0x140014310
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 0x14001433e
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 0x14001435e
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 0x14001437e
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 0x1400143b6
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 0x1400143d4
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 0x1400143f2
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 0x14001a170
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 0x14001a1a0
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rdx, [0x1400da7b0]
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 0x14001a1ce
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.14001ca70
xor eax, eax
jmp 0x14001a1de
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14001a230
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 0x14001a260
mov r8d, 0x40
lea rdx, [0x1400da880]
lea rcx, [0x1400da8e0]
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 0x14001a280
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 0x14001a2b5
mov r8d, 0x46
lea rdx, [0x1400da930]
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 0x14001cbc0
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 [0x1400e0f80]
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, [0x1400e91e2]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], reloc.WLDAP32.dll_Ordinal_32
jmp 0x14001cc25
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x14001ce29
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x1400e8f28]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x14001cc56
jmp 0x14001cc1b
cmp dword [rsp + 0x40], 0x140
jl 0x14001cd32
cmp dword [rsp + 0x40], 0x14e
jg 0x14001cd32
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], WSAStartup
mov dword [rsp + 0x1e0], WSAStartup
mov dword [rsp + 0x1e4], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x1e8], WSAStartup
mov dword [rsp + 0x1ec], WSAStartup
mov dword [rsp + 0x1f0], WSAStartup
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x1b8]
mov dword [rsp + 0x164], eax
jmp 0x14001cd4b
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 0x14001cdc5
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 0x14001cdd4
jmp 0x14001cc1b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x1400e91e2]
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 0x14001cc1b
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400878f0
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140086e90
add rsp, 0x220
pop rdi
ret
Function at 0x140021450
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 [0x1400e0f80]
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 [0x1400e9b38], 0
je 0x1400214ab
mov eax, 1
jmp 0x14002162b
mov dword [rsp + 0x20], 0
jmp 0x1400214bf
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 0x1400214f1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400e9b38], rax
cmp qword [0x1400e9b38], 0
je 0x1400214ef
jmp 0x1400214f1
jmp 0x1400214b5
cmp qword [0x1400e9b38], 0
jne 0x140021513
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140016ad0
xor eax, eax
jmp 0x14002162b
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x1400e9b38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e9b40], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x1400e9b38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e9b48], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x1400e9b38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e9b50], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x1400e9b38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e9b58], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x1400e9b38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e9b60], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x1400e9b38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e9b68], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x1400e9b38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e9b70], rax
cmp qword [0x1400e9b40], 0
je 0x14002160c
cmp qword [0x1400e9b50], 0
je 0x14002160c
cmp qword [0x1400e9b58], 0
je 0x14002160c
cmp qword [0x1400e9b60], 0
je 0x14002160c
cmp qword [0x1400e9b68], 0
je 0x14002160c
cmp qword [0x1400e9b70], 0
jne 0x140021626
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140016ad0
call fcn.140021660
xor eax, eax
jmp 0x14002162b
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400878f0
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140086e90
add rsp, 0x70
pop rdi
ret
Function at 0x140024530
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
cmp byte [r8 + 7], dil
je 0x140024564
mov ecx, edi
nop dword [rax]
lea eax, [rcx - 0x5b]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 6
jb 0x140024550
mov byte [r8 + 7], dil
lea rax, [r8 + 6]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x140024591
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jmp 0x1400245b0
mov qword [rsp + 0x30], 6
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
movzx eax, word [r8 + 4]
mov word [rsp + 0x24], ax
mov byte [rsp + 0x26], dil
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400245be
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140008ae0
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140024635
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024630
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024630
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140087144
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140024650
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
mov qword [rbp - 0x10], rcx
xor r9d, r9d
cmp byte [r8 + 9], r9b
je 0x140024694
mov ecx, r9d
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x5b]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 8
jb 0x140024680
mov byte [r8 + 9], r9b
lea rax, [r8 + 8]
mov qword [rbp - 0x38], r9
mov qword [rbp - 0x28], r9
mov qword [rbp - 0x20], r9
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x1400246bb
mov qword [rbp - 0x28], r9
mov byte [rbp - 0x38], r9b
jmp 0x1400246ce
mov qword [rbp - 0x28], 8
mov rax, qword [r8]
mov qword [rbp - 0x38], rax
mov byte [rbp - 0x30], r9b
cmp byte [rdx + 9], 0
je 0x1400246f3
mov rcx, r9
nop word [rax + rax]
lea eax, [rcx - 0x5b]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 8
jb 0x1400246e0
mov byte [rdx + 9], 0
lea rax, [rdx + 8]
mov qword [rbp - 0x58], r9
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x40], r9
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
cmp rdx, rax
jne 0x14002471a
mov qword [rbp - 0x48], r9
mov byte [rbp - 0x58], 0
jmp 0x14002472d
mov qword [rbp - 0x48], 8
mov rax, qword [rdx]
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x50], 0
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x58]
movzx edx, byte [rbp - 0x60]
mov rcx, rbx
call fcn.14002ae30
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140024781
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002477b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002477b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140087144
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400247bf
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400247ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400247ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140087144
mov rax, rbx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
Function at 0x1400247e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
cmp byte [r8 + 9], dil
je 0x140024814
mov ecx, edi
nop dword [rax]
lea eax, [rcx - 0x5b]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 8
jb 0x140024800
mov byte [r8 + 9], dil
lea rax, [r8 + 8]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x140024841
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jmp 0x140024857
mov qword [rsp + 0x30], 8
mov rax, qword [r8]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], dil
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140024865
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140008ae0
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400248dc
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400248d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400248d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140087144
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret