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

Disassembly:
jmp 0x140072960
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140022110
mov rcx, qword [rsp + 0x40]
lea r8, [rcx + 0x10]
cmp rcx, r8
je 0x140072b3e
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], rdi
nop word [rax + rax]
movups xmm1, xmmword [rcx]
mov eax, dword [rsi]
mov dword [rsp + 0x40], eax
movdqa xmm0, xmm1
movq rdx, xmm1
psrldq xmm0, 8
movq r10, xmm0
mov r11, r10
cmp r10, 4
jb 0x1400729fa
movzx ebx, byte [rsp + 0x42]
mov r9, r10
movzx edi, byte [rsp + 0x41]
shr r9, 2
imul r10, r9, 0xfffffffffffffffc
add r10, r11
movzx r11d, byte [rsp + 0x43]
xor byte [rdx], al
xor byte [rdx + 1], dil
xor byte [rdx + 2], bl
xor byte [rdx + 3], r11b
add rdx, 4
sub r9, 1
jne 0x1400729e3
test r10, r10
je 0x140072b22
xor ebx, ebx
cmp r10, 0x40
jb 0x140072ab5
lea r9, [rdx - 1]
add r9, r10
lea rax, [rsp + r10 + 0x3f]
cmp rdx, rax
ja 0x140072a2e
lea rax, [rsp + 0x40]
cmp r9, rax
jae 0x140072ab5
mov rdi, r10
and rdi, 0xffffffffffffffc0
lea r9, [rsp + 0x40]
sub r9, rdx
lea r11, [rsp + 0x50]
sub r11, rdx
lea rax, [rdx + 0x20]
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x20]
add rbx, 0x40
movdqu xmm1, xmmword [r9 + rax - 0x20]
movdqu xmm2, xmmword [rax + r9]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
movdqu xmm1, xmmword [r11 + rax - 0x60]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rax + r11 - 0x40]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rbx, rdi
jb 0x140072a50
cmp rbx, r10
jae 0x140072ae2
lea r9, [rbx + rdx]
lea r11, [rsp + 0x40]
sub r11, rdx
mov rdx, r10
sub rdx, rbx
nop word [rax + rax]
movzx eax, byte [r9 + r11]
xor byte [r9], al
lea r9, [r9 + 1]
sub rdx, 1
jne 0x140072ad0
mov eax, dword [rsi]
mov dword [rsp + 0x40], eax
mov rax, r10
and eax, 3
movzx eax, byte [rsp + rax + 0x40]
mov byte [rsi], al
lea rax, [r10 + 1]
and eax, 3
movzx eax, byte [rsp + rax + 0x40]
mov byte [rsi + 1], al
lea rax, [r10 - 2]
and eax, 3
movzx eax, byte [rsp + rax + 0x40]
mov byte [rsi + 2], al
lea rax, [r10 - 1]
and eax, 3
movzx eax, byte [rsp + rax + 0x40]
mov byte [rsi + 3], al
add rcx, 0x10
cmp rcx, r8
jne 0x1400729a0
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret
Function at 0x140077a40
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140077a40
jmp 0x1400b4ce0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x140077a90
mov rax, qword [rax + 8]
test rax, rax
je 0x140077a90
mov rdx, qword [rax]
test rdx, rdx
je 0x140077a90
mov qword [rax], rsi
movzx eax, byte [rdx]
cmp al, 0x12
jb 0x140077a88
mov byte [rdx + 0x48], al
jmp 0x140077aa1
mov rcx, rdx
call fcn.14001b300
mov ecx, 0x49
call fcn.140002480
mov rdx, rax
mov byte [rax + 0x48], reloc.WS2_32.dll_select
mov qword [rdx + 0x20], rsi
lea rax, [0x140014b50]
mov qword [rdx + 0x28], rax
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rsi
mov dword [rdx + 0x30], esi
mov rax, qword [rbx]
mov qword [rdx + 0x38], rax
mov qword [rbx], rsi
mov rcx, qword [rdi]
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140017f10
lea r8, [rcx + 0x20]
add rcx, 0x18
jmp 0x14000f7e0

Function at 0x140080980
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140080980
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x14023d880], eax
inc eax
cmp eax, 1
jne 0x1400809cd
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14023d884], eax
test dil, dil
je 0x1400809e0
xor eax, eax
lock xadd dword [0x14023d884], eax
test eax, eax
jne 0x140080a04
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14000fde0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
lea rdx, str.winsock
lea rax, [0x1401e1a10]
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140015770
int3

Function at 0x14008e9f0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14008e9f0
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
cmp rdi, 0xffffffffffffffff
je 0x14008ea66
xor ecx, ecx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x38]
je 0x14008ea66
cmp eax, 0x2733
je 0x14008ea34
cmp eax, 0x4d5
jne 0x14008ea66
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x20
pop rdi
ret
Function at 0x14009e510
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14009e510
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
lea r15, [0x1401e1a10]
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov ebx, ebp
cmp rcx, 0xffffffffffffffff
je 0x14009e64f
test r8b, r8b
je 0x14009e589
movzx eax, byte [rdx]
test al, 8
je 0x14009e589
or al, 8
mov dword [rsp + 0x60], ebp
xor ecx, ecx
mov byte [rdx], al
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
je 0x14009e64f
mov eax, dword [rdi]
cmp eax, 0x2733
jne 0x14009e5e4
mov rcx, qword [rdi + 8]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rcx + 8], rdx
je 0x14009e5ff
jmp 0x14009e665
cmp eax, 0x4d5
jne 0x14009e665
mov rax, qword [rdi + 8]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rdx
jne 0x14009e665
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x14009e665
mov dword [rsp + 0x30], ebp
mov byte [rsp + 0x34], bpl
mov qword [rsp + 0x38], r15
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400acd30
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x1400acd30
push rbx
sub rsp, 0x50
mov rbx, qword [rcx + 8]
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x68], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x50
pop rbx
ret
Function at 0x1400ace30
Capabilities:
Terminate thread

Disassembly:
jmp 0x1400ace30
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rsi, rcx
test rbx, rbx
je 0x1400acef9
mov qword [rsp + 0x40], rdi
nop
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x14023d814], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400acea0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400acec2
mov rdx, rcx
xor r8d, r8d
lea rcx, [0x14000bb00]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsi]
mov rbx, qword [rdi + 0x18]
mov qword [rsi], rbx
test rdi, rdi
je 0x1400aceeb
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x20
mov rcx, rdi
call fcn.140019f20
mov rbx, qword [rsi]
test rbx, rbx
jne 0x1400ace50
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret

Function at 0x1400acf40
Capabilities:
Terminate thread

Disassembly:
jmp 0x1400acf40
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x14023d814], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400acf9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [0x14000bb00]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x1400adad0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400adad0
push rbx
mov r9, qword [rcx + 8]
mov r11, rdx
mov eax, dword [rdx]
mov rcx, qword [rcx]
mov dword [rsp + 0x10], eax
cmp r9, 4
jb 0x1400adb26
movzx edx, byte [rsp + 0x13]
mov r10, r9
movzx ebx, byte [rsp + 0x11]
shr r10, 2
imul r8, r10, 0xfffffffffffffffc
add r9, r8
movzx r8d, byte [rsp + 0x12]
nop word [rax + rax]
xor byte [rcx], al
xor byte [rcx + 1], bl
xor byte [rcx + 2], r8b
xor byte [rcx + 3], dl
add rcx, 4
sub r10, 1
jne 0x1400adb10
test r9, r9
je 0x1400adc56
xor r8d, r8d
cmp r9, 0x40
jb 0x1400adbe8
lea rdx, [rcx - 1]
add rdx, r9
lea rax, [rsp + r9 + 0xf]
cmp rcx, rax
ja 0x1400adb5b
lea rax, [rsp + 0x10]
cmp rdx, rax
jae 0x1400adbe8
mov rbx, r9
mov qword [rsp + 0x18], rdi
and rbx, 0xffffffffffffffc0
lea rdx, [rsp + 0x10]
sub rdx, rcx
lea r10, [rsp + 0x20]
sub r10, rcx
lea rax, [rcx + 0x20]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
add r8, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x20]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
movdqu xmm1, xmmword [r10 + rax - 0x60]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [r10 + rax - 0x40]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp r8, rbx
jb 0x1400adb80
mov rdi, qword [rsp + 0x18]
cmp r8, r9
jae 0x1400adc11
lea rdx, [r8 + rcx]
lea r10, [rsp + 0x10]
sub r10, rcx
mov rcx, r9
sub rcx, r8
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub rcx, 1
jne 0x1400adc00
mov eax, dword [r11]
mov dword [rsp + 0x10], eax
mov rax, r9
and eax, 3
movzx eax, byte [rsp + rax + 0x10]
mov byte [r11], al
lea rax, [r9 + 1]
and eax, 3
movzx eax, byte [rsp + rax + 0x10]
mov byte [r11 + 1], al
lea rax, [r9 - 2]
and eax, 3
movzx eax, byte [rsp + rax + 0x10]
mov byte [r11 + 2], al
lea rax, [r9 - 1]
and eax, 3
movzx eax, byte [rsp + rax + 0x10]
mov byte [r11 + 3], al
pop rbx
ret
Function at 0x1400b4ae0
Capabilities:
Get socket status

Disassembly:
jmp 0x1400b4ae0
push rbp
push rbx
push rdi
push r14
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rbx, r9
movzx edi, dl
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400b4b3e
lea rax, [0x1401e1a10]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
mov eax, ecx
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r9], xmm0
jmp 0x1400b4c55
mov qword [rsp + 0x298], rsi
mov qword [rsp + 0x260], r15
xor r15d, r15d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 1
and dil, 1
je 0x1400b4b70
mov qword [rsp + 0x30], r15
lea rsi, [rsp + 0x30]
jmp 0x1400b4ba2
test r8d, r8d
js 0x1400b4b9f
mov eax, 0x10624dd3
lea rsi, [rsp + 0x30]
mul r8d
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x1400b4ba2
mov rsi, r15
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r14 + 1]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
lea rax, [0x1401e1a10]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x1400b4c2a
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
test dil, dil
je 0x1400b4c1b
mov dword [rsp + 0x30], 0x2733
mov byte [rsp + 0x34], 1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax]
jmp 0x1400b4c40
mov dword [rsp + 0x30], r15d
mov byte [rsp + 0x34], r15b
movups xmm0, xmmword [rax]
jmp 0x1400b4c40
jle 0x1400b4c43
mov dword [rsp + 0x30], r15d
mov byte [rsp + 0x34], r15b
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov r15, qword [rsp + 0x260]
mov eax, esi
mov rsi, qword [rsp + 0x298]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x268
pop r14
pop rdi
pop rbx
pop rbp
ret

Function at 0x1400b5f00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
jmp 0x1400b5f00
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, r9
movzx ecx, word [rcx + 8]
mov rsi, rdx
cmp cx, word [rdi + 0xa]
jb 0x1400b5f45
mov rdx, qword [rdi]
sub rdx, r8
mov r8, rbx
add rdx, rcx
mov rcx, rsi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14000fef0
xor edx, edx
mov qword [rsp + 0x30], r14
movzx r14d, word [rdi + 0xc]
mov eax, r14d
sub rax, r8
add rax, rcx
mov rcx, rsi
div r14
sub r14, rdx
add rdx, qword [rdi]
cmp rbx, r14
jbe 0x1400b5f7d
mov r8, r14
call fcn.14000fef0
mov rdx, qword [rdi]
lea rcx, [r14 + rsi]
sub rbx, r14
mov r8, rbx
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14000fef0
Function at 0x1400b66d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x1400b66d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rbp, rcx
mov ebx, r9d
xor ecx, ecx
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r14d, r14d
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x88]
mov r8d, edi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov dword [rsp + 0x88], r14d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [rsp + 0x90]
test eax, eax
mov dword [rsp + 0x40], eax
lea rax, [0x1401e1a10]
setne byte [rsp + 0x44]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
mov ecx, dword [rdx]
cmp ecx, 0x40
jne 0x1400b6776
mov dword [rsp + 0x40], 0x2746
jmp 0x1400b6786
cmp ecx, 0x4d2
jne 0x1400b679a
mov dword [rsp + 0x40], 0x274d
mov byte [rsp + 0x44], 1
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
jmp 0x1400b67aa
cmp ecx, 0x2738
je 0x1400b67b5
cmp ecx, 0xea
je 0x1400b67b5
test ebx, ebx
je 0x1400b67b5
mov eax, 0xffffffff
jmp 0x1400b67d3
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], r14b
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x1400b6f40
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400b6f40
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400b6f76
mov rax, qword [rax + 0x38]
test rax, rax
je 0x1400b6f6e
xor edx, edx
mov rcx, rax
mov rax, qword [rax]
call qword [case.0x14006bf61.0]
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400b6fcb
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b6fbb
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400b6fbb
cmp qword [rcx], 0
jne 0x1400b6fbb
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
mov qword [rcx], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.14001b300
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b7a90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1400b7a90
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
mov rbx, rcx
xor edi, edi
mov eax, edi
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x1400b7af0
call fcn.140004fd0
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x24], dil
lea rax, [0x1401e1a10]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
lea rax, [rcx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14000cef0
test rax, rax
je 0x1400b7b74
lea rax, [rdi + 1]
cmp rdi, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
mov r8, rsi
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14000cef0
test rax, rax
jne 0x1400b7b50
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rsp + 0x38]
mov esi, 3
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400b7b9d
call fcn.14001b300
add rbx, 8
sub rsi, 1
jne 0x1400b7b90
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400b7ec0
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x1400b7ec0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rbp, rcx
mov ebx, r9d
xor ecx, ecx
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r14d, r14d
lea r9, [rsp + 0x88]
mov qword [rsp + 0x30], r14
mov r8d, edi
mov qword [rsp + 0x28], r14
mov rdx, rsi
mov rcx, rbp
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x88], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x90]
test eax, eax
mov dword [rsp + 0x40], eax
lea rax, [0x1401e1a10]
setne byte [rsp + 0x44]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov edx, dword [rcx]
cmp edx, 0x40
jne 0x1400b7f56
mov dword [rsp + 0x40], 0x2746
jmp 0x1400b7f66
cmp edx, 0x4d2
jne 0x1400b7f78
mov dword [rsp + 0x40], 0x274d
mov byte [rsp + 0x44], 1
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
test ebx, ebx
je 0x1400b7f83
mov eax, 0xffffffff
jmp 0x1400b7fa1
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], r14b
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x1400bc240
Capabilities:
Get socket status

Disassembly:
jmp 0x1400bc240
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, qword [rbp + 0x210]
lea r13, [0x1401e1a10]
mov r15, r9
mov qword [rsp + 0x2f8], rdi
mov r12, r8
movzx r14d, dl
mov rsi, rcx
movabs rdx, 0x8fafd21e25c5e09b
cmp rsi, 0xffffffffffffffff
jne 0x1400bc2bb
mov dword [rsp + 0x48], 0x2719
mov byte [rsp + 0x4c], 1
mov qword [rsp + 0x50], r13
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
jmp 0x1400bc333
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdx, r12
mov rcx, rsi
test r15, r15
je 0x1400bc2ed
mov eax, dword [r15]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], eax
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
movsxd rax, dword [rsp + 0x30]
mov qword [r15], rax
jmp 0x1400bc301
xor r8d, r8d
mov dword [rsp + 0x30], 0
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x60], r13
setne byte [rsp + 0x5c]
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x1400bc44f
movabs rdx, 0x8fafd21e25c5e09b
mov ecx, dword [rbx]
cmp ecx, 0x2733
jne 0x1400bc359
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rdx
je 0x1400bc36f
cmp ecx, 0x2745
jne 0x1400bc375
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rdx
jmp 0x1400bc37b
cmp ecx, 0x4d5
jne 0x1400bc347
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rdx
jne 0x1400bc446
test r14b, 1
jmp 0x1400bc385
cmp ecx, 0x86
jne 0x1400bc446
test r14b, 4
jne 0x1400bc446
cmp rsi, 0xffffffffffffffff
je 0x1400bc42c
xor ecx, ecx
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x70], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rsi + 1]
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [rbp - 0x70]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x70], r13
setne byte [rsp + 0x6c]
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
test edi, edi
jne 0x1400bc402
mov dword [rsp + 0x78], edi
mov byte [rsp + 0x7c], dil
mov qword [rbp - 0x80], r13
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbx], xmm0
jmp 0x1400bc28f
jle 0x1400bc423
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x3c], 0
mov qword [rsp + 0x40], r13
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
jmp 0x1400bc28f
test edi, edi
js 0x1400bc446
jmp 0x1400bc28f
mov dword [rsp + 0x38], 0x2719
mov byte [rsp + 0x3c], 1
mov qword [rsp + 0x40], r13
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
mov rax, 0xffffffffffffffff
jmp 0x1400bc46c
mov dword [rsp + 0x38], 0
mov rax, rdi
mov byte [rsp + 0x3c], 0
mov qword [rsp + 0x40], r13
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
mov rdi, qword [rsp + 0x2f8]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret