joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401335e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140432c18]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
add rax, 0x58
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
call fcn.1400e01a0
nop
mov rax, qword [rsp + 0x30]
mov edx, dword [rax]
lea rcx, [rsp + 0x58]
call fcn.1400e6e30
lea rcx, [rsp + 0x58]
call fcn.14015d110
cdqe
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1403155b0
mov dword [rsp + 0x24], 0
jmp 0x140133666
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jge 0x1401336ca
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call fcn.1400e2ae0
movzx eax, word [rax]
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x58]
call fcn.1400e2b00
mov ecx, dword [rsp + 0x38]
mov dword [rax + 4], ecx
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call fcn.1400e2ae0
movzx eax, word [rax + 2]
mov dword [rsp + 0x3c], eax
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x58]
call fcn.1400e2b00
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 8], ecx
jmp 0x14013365c
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.1400e2b00
mov r8d, dword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.140133da0
mov dword [rsp + 0x20], 0
jmp 0x1401336fc
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x20], eax
jge 0x1401337dc
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1400e2b00
cmp dword [rax + 0x14], 0
je 0x1401337d7
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1400e2b00
movzx eax, word [rax + 0xc]
mov word [rsp + 0x28], ax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.1400e2ae0
movzx ecx, word [rsp + 0x28]
mov word [rax + 4], cx
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1400e2b00
movzx eax, word [rax + 0x10]
mov word [rsp + 0x2a], ax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.1400e2ae0
movzx ecx, word [rsp + 0x2a]
mov word [rax + 6], cx
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1400e2b00
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1400e2b00
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x10]
add ecx, dword [rax + 8]
mov eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x34]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
call fcn.14013f4e0
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x34], eax
jmp 0x1401336f2
lea rcx, [rsp + 0x58]
call fcn.1400e22e0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140313160
add rsp, 0x78
ret
Function at 0x1401d0f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1404341e8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
and eax, 1
test eax, eax
jne 0x1401d0f36
jmp 0x1401d1150
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
and eax, 0xc0
test eax, eax
jne 0x1401d0f51
mov byte [rsp + 0x20], 1
jmp 0x1401d0f56
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1401d0f7d
mov rax, qword [rsp + 0x80]
movss xmm0, dword [rax + 0x50]
movss dword [rsp + 0x38], xmm0
jmp 0x1401d0f86
xorps xmm0, xmm0
movss dword [rsp + 0x38], xmm0
mov rax, qword [rsp + 0x80]
movss xmm0, dword [rax + 0x2c]
subss xmm0, dword [rsp + 0x38]
movss dword [rsp + 0x2c], xmm0
mov rax, qword [rsp + 0x88]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x10]
comiss xmm0, dword [rsp + 0x90]
jbe 0x1401d0fc6
mov dword [rsp + 0x3c], 0xffffffff
jmp 0x1401d0fce
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call fcn.14020f790
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
jmp 0x1401d101b
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x1401d1122
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jge 0x1401d1122
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
call fcn.1400e2c00
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
and eax, 0x20
test eax, eax
je 0x1401d106e
jmp 0x1401d1122
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
and eax, 0xc0
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 4]
and ecx, 0xc0
cmp eax, ecx
je 0x1401d1095
jmp 0x1401d1122
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x10]
mov rax, qword [rsp + 0x50]
subss xmm0, dword [rax + 0x3834]
movss dword [rsp + 0x48], xmm0
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
addss xmm0, dword [rax + 0x14]
mov rax, qword [rsp + 0x50]
addss xmm0, dword [rax + 0x3834]
movss dword [rsp + 0x4c], xmm0
cmp dword [rsp + 0x30], 0
jge 0x1401d1104
movss xmm0, dword [rsp + 0x90]
comiss xmm0, dword [rsp + 0x48]
ja 0x1401d111b
cmp dword [rsp + 0x30], 0
jle 0x1401d111d
movss xmm0, dword [rsp + 0x4c]
comiss xmm0, dword [rsp + 0x90]
jbe 0x1401d111d
jmp 0x1401d1122
jmp 0x1401d100b
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x34], eax
je 0x1401d1150
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov r8d, eax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1401d0ec0
add rsp, 0x78
ret
Function at 0x1401e0300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1404341e8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x3bf8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
movss xmm0, dword [rax + 0x3c00]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rsp + 0x24]
divss xmm0, dword [rax + 0x14]
movss dword [rsp + 0x3c], xmm0
xorps xmm2, xmm2
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x70]
call fcn.1400e20f0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x30], rax
jae 0x1401e044e
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xa
jne 0x1401e0410
movss xmm1, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax]
call fcn.1401ce1b0
mov rax, qword [rsp + 0x70]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x1401e040b
jmp 0x1401e044e
jmp 0x1401e0381
cmp dword [rsp + 0x28], 0xd
jne 0x1401e041c
jmp 0x1401e0381
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.14020f3b0
mulss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x40], xmm0
movss xmm0, dword [rsp + 0x20]
addss xmm0, dword [rsp + 0x40]
movss dword [rsp + 0x20], xmm0
jmp 0x1401e0381
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rax]
jbe 0x1401e046d
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
movss dword [rax], xmm0
cmp qword [rsp + 0x90], 0
je 0x1401e04a9
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
movaps xmm2, xmm0
movss xmm1, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1400e20f0
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [0x140373f8c]
ja 0x1401e04cd
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
ucomiss xmm0, dword [0x140373f8c]
jp 0x1401e04e7
jne 0x1401e04e7
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
cmp qword [rsp + 0x88], 0
je 0x1401e0502
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1402b3a30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
xor r10d, r10d
mov edi, r8d
mov rbx, rdx
mov r11d, 0x7fffffff
test ecx, ecx
jle 0x1402b3a96
mov qword [rsp + 0x10], rsi
imul edi, r9d
mov r9, rdx
mov esi, ecx
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, r11d
imul eax, dword [rbx]
lea rbx, [rbx + 0x10]
mov r8, r10
mov r10, r9
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
cmovl r11d, eax
cmp eax, ecx
cmovge r10, r8
add r9, 0x10
sub rsi, 1
jne 0x1402b3a60
mov rsi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r10
pop rdi
ret

Function at 0x1402b42f0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x14043dd78], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1402b4349
mov rcx, qword [rbx + 0x358]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x14043dd68], xmm0
movsd qword [0x14043dd70], xmm1
mov eax, dword [rbx + 0x84]
cmp eax, 0x34001
je 0x1402b4361
cmp eax, 0x34004
je 0x1402b4361
xor ecx, ecx
jmp 0x1402b4380
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1402b4370
mov rcx, qword [rcx + 8]
jmp 0x1402b4380
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.1402af930
mov rcx, rbx
call fcn.1402b39b0
cmp dword [rbx + 0x200], 0
je 0x1402b43dd
mov rax, qword [rbx + 0x358]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1402b43dd
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1402b6980
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1402b43f0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1402b4432
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1402b6980
add rsp, 0x38
ret
Function at 0x1402b4440
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x200], 0
mov rbx, rcx
je 0x1402b4490
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1402b4490
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1402b6980
xor ecx, ecx
mov qword [0x14043dd78], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x14043dd68]
mov qword [0x14043dd80], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x14043dd70]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x394], ecx
mov rcx, qword [rbx + 0x358]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x398], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [rbx + 0x84]
cmp eax, 0x34001
je 0x1402b4514
cmp eax, 0x34004
je 0x1402b4514
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1402b452d
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]

Function at 0x1402b4550
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x358]
mov edx, 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1402b4592
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1402b6980
add rsp, 0x38
ret

Function at 0x1402b4640
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, reloc.WS2_32.dll_recvfrom
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, reloc.WS2_32.dll_select
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, reloc.WS2_32.dll_sendto
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1402b5b90
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x1402b5bc0
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1402ad6e0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1402b6d20
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x140432c18]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call fcn.1403155b0
xor edx, edx
lea rcx, [0x14043d692]
mov r8d, 0x6d1
call fcn.1403155b0
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x14043d418]
xor r12d, r12d
lea r15, [0x14043d732]
mov ebx, reloc.WLDAP32.dll_Ordinal_32
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x1402b6ed8
cmp ebx, 0x140
jb 0x1402b6e3f
cmp ebx, 0x14e
ja 0x1402b6e3f
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], WSAGetLastError
mov dword [rsp + 0x64], WSAGetLastError
mov dword [rsp + 0x68], WSAGetLastError
mov dword [rsp + 0x6c], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0x74], WSAGetLastError
mov dword [rsp + 0x78], WSAGetLastError
mov edi, dword [r14]
jmp 0x1402b6e4e
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1402b6ea1
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x1402b6ed8
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x1402b6da1
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140313160
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1402bb080
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140432c18]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14043cf10], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x1402bb0d5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140313160
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x14043cf10], rax
mov rcx, rax
test rax, rax
jne 0x1402bb104
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1402bb0e0
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x1402bb133
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1402ad6e0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140313160
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043cf10]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x14043cf18], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043cf10]
lea rdx, str.OSMesaDestroyContext
mov qword [0x14043cf20], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043cf10]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x14043cf28], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043cf10]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x14043cf30], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043cf10]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x14043cf38], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043cf10]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x14043cf40], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x14043cf18], 0
mov qword [0x14043cf48], rax
je 0x1402bb21d
cmp qword [0x14043cf28], 0
je 0x1402bb21d
cmp qword [0x14043cf30], 0
je 0x1402bb21d
cmp qword [0x14043cf38], 0
je 0x1402bb21d
cmp qword [0x14043cf40], 0
je 0x1402bb21d
test rax, rax
jne 0x1402bb0be
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1402ad6e0
mov rcx, qword [0x14043cf10]
test rcx, rcx
je 0x1402bb24a
call fcn.1402bbae0
mov qword [0x14043cf10], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140313160
add rsp, 0x48
ret
Function at 0x1402d30e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1402d3122
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1402d32c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x140432c18]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x230]
mov r14, qword [rcx + r8*8 + 0x1e8]
add rbx, rax
mov rax, qword [rcx + 0x418]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x1402d33cc
lea rax, [0x1402d3170]
cmp qword [rcx + r8*8 + 0x210], rax
jne 0x1402d33cc
cmp qword [rbx], 0
je 0x1402d3351
test rdi, rdi
je 0x1402d33cc
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.1402e3b70
cmp eax, 0xffffffff
je 0x1402d33cc
test al, 1
je 0x1402d33cc
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1402d33ab
mov eax, dword [rbp + 0x71c]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.140329e88]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x1402d3406
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1402d33cc
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x1402d3445
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1402d3415
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x1402d3445
mov dword [rsi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x1402d3448
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1402e6f60
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1402d2e50
mov dword [rbp + 0xdd4], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140313160
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1402d38d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x280], 0
je 0x1402d38ed
call fcn.1402cca00
test eax, eax
je 0x1402d3919
mov al, 1
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1e8]
cmp rcx, 0xffffffffffffffff
je 0x1402d3919
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret