joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400527b0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140052958
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140052815
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140052815
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140052815
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14005284c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400528a2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400528a2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400528a2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400528a2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400528a2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140052260
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140052904
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002e9e0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140052630
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140052950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14002e9e0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400540c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140084080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140054155
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400541b6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14002e9e0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140067250
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140054271
sub ecx, 1
je 0x1400542e4
sub ecx, 1
je 0x140054220
cmp ecx, 1
je 0x140054203
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140073a50]
call fcn.14002e9e0
jmp 0x1400542e4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140053df0
test eax, eax
je 0x1400542e4
jmp 0x14005418a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400542e4
sub rax, rsi
cmp rax, rbp
jae 0x1400542e4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14002eb60
jmp 0x1400542e4
cmp r8d, 4
jle 0x1400542e4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400542e4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14002e900
mov esi, eax
test eax, eax
je 0x1400542c3
mov edx, 5
mov rcx, rbx
call fcn.140054db0
mov eax, esi
jmp 0x14005418a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14003d1e0
mov rcx, r14
call fcn.14003d4c0
test eax, eax
je 0x140054188
mov edx, 5
mov rcx, rbx
call fcn.140054db0
mov eax, Ordinal_46
jmp 0x14005418a
Function at 0x140067080
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400670c2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140067109
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140067162
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140067120
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400671a3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400791da]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400791db]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140067170
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140068080
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400680ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400680ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400680ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400680ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400680ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400680cc
xor al, al
add rsp, 0x28
ret
Function at 0x1400098c0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140009959
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 4
mov dword [rsp + 0x24], 0
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x140080d58], ecx
jle 0x140009940
lea rcx, [0x140080d58]
call fcn.14005cb04
cmp dword [0x140080d58], 0xffffffff
jne 0x140009940
lea rcx, [0x140063b00]
call fcn.14005d15c
lea rcx, [0x140080d58]
call fcn.14005ca98
lea rax, [0x14007c058]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x50]
jne 0x14000996e
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005ca70
add rsp, 0x40
pop rbx
ret
lea rdx, [0x140065860]
lea rcx, [rsp + 0x20]
call fcn.140009790
int3

Function at 0x140009a10
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1400812c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140009a49
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.140022390
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.140022390

Function at 0x140009a60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1400812c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x140009a90
mov r9, qword [rax + 8]
jmp 0x140009a93
mov r9, r8
cmp rdi, 0x3fc
ja 0x140009ab7
test r9, r9
je 0x140009ab7
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x140009ac5
inc r8d
inc rax
cmp rax, 2
jl 0x140009aa4
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.14005d174
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, r8d
mov qword [r9 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x140009e60
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 0x30], rax
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 [0x140080d34], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140009ed9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005ca70
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140009c60]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005ca70
add rsp, 0x40
pop rbx
ret
Function at 0x14000a890
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14000a8eb
call fcn.14000aa70
mov dword [rsp + 0x20], ebx
lea rax, [0x14007c068]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x14000a9e8
mov dword [rsp + 0x90], ebx
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x1400812c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x1400812c0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.14000ae90
test rax, rax
je 0x14000a9a4
nop dword [rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.14000ae90
test rax, rax
jne 0x14000a980
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x1400812c0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x40]
mov esi, 0xa
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000a9cd
call fcn.14005d174
add rdi, 8
sub rsi, 1
jne 0x14000a9c0
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14005ca70
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000ab50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x1400812c0]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000ac7f
cmp qword [rax], rbx
je 0x14000ab8c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14000ab78
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x14000ac7f
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x14000ac40
cmp ecx, 1
jne 0x14000ac7f
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x50], 2
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea r8, [0x140078b80]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call qword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
jmp 0x14000ac65
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_]
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
add rsp, 0x70
pop rbx
ret
Function at 0x14000b8b0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov rdi, r9
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
je 0x14000ba71
mov qword [r11 + 0x18], rbx
test r8b, r8b
je 0x14000b938
movzx eax, byte [rdx]
test al, 8
je 0x14000b938
lea rcx, [0x14007c068]
mov dword [r11 - 0x48], r15d
or al, 8
mov qword [r11 - 0x38], rcx
mov byte [rdx], al
lea r9, [r11 - 0x48]
mov edx, 0xffff
mov qword [r11 - 0x40], r15
mov rcx, rsi
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rsp + 0x38]
setne dl
call fcn.14000b820
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.14000b820
test ebx, ebx
je 0x14000ba6d
mov rcx, qword gs:[0x58]
mov edx, dword [0x140080d58]
mov qword [rsp + 0x50], rbp
mov ebp, 4
add rbp, qword [rcx]
cmp edx, dword [rbp]
jle 0x14000b9ae
lea rcx, [0x140080d58]
call fcn.14005cb04
mov edx, dword [0x140080d58]
cmp edx, 0xffffffff
jne 0x14000b9ae
lea rcx, [0x140063b00]
call fcn.14005d15c
lea rcx, [0x140080d58]
call fcn.14005ca98
mov edx, dword [0x140080d58]
mov rcx, qword [rdi + 8]
mov rax, qword [0x14007c060]
cmp qword [rcx + 8], rax
jne 0x14000b9c7
cmp dword [rdi], 0x2733
je 0x14000ba12
cmp edx, dword [rbp]
jle 0x14000b9f9
lea rcx, [0x140080d58]
call fcn.14005cb04
cmp dword [0x140080d58], 0xffffffff
jne 0x14000b9f9
lea rcx, [0x140063b00]
call fcn.14005d15c
lea rcx, [0x140080d58]
call fcn.14005ca98
mov rdx, qword [rdi + 8]
mov rax, qword [0x14007c060]
cmp qword [rdx + 8], rax
jne 0x14000ba46
cmp dword [rdi], 0x4d5
jne 0x14000ba46
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.14000b820
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005ca70
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
ret
mov eax, ebx
jmp 0x14000ba4d
mov eax, r15d
jmp 0x14000ba55
Function at 0x14000c5f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x44]
xor eax, eax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x48], 1
lea r8d, [rax + 1]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140080d58], eax
jle 0x14000c68f
lea rcx, [0x140080d58]
call fcn.14005cb04
cmp dword [0x140080d58], 0xffffffff
jne 0x14000c68f
lea rcx, [0x140063b00]
call fcn.14005d15c
lea rcx, [0x140080d58]
call fcn.14005ca98
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14000c6a1
mov edx, 0x2746
jmp 0x14000c6ad
cmp eax, 0x4d2
jne 0x14000c6b7
mov edx, 0x274d
lea rcx, [rsp + 0x58]
call fcn.1400224f0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005ca70
add rsp, 0x78
ret
Function at 0x14000d880
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15d, r9d
mov r14, r8
mov rdi, rdx
mov r13, rcx
mov ebp, dword [rsp + 0xd0]
mov r8d, dword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe0]
cmp qword [r14], 0xffffffffffffffff
je 0x14000d8e1
mov edx, 1
mov rcx, rbx
call fcn.140022570
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
jmp 0x14000da5e
mov dword [rsp + 0x28], 1
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov edx, ebp
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
sete dl
mov rcx, rbx
call fcn.14000b820
cmp rsi, 0xffffffffffffffff
je 0x14000d941
cmp r15d, 0x17
jne 0x14000d941
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
lea edx, [r15 + 0x12]
lea r8d, [r15 + 4]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
cmp rsi, 0xffffffffffffffff
jne 0x14000d94f
movups xmm0, xmmword [rbx]
jmp 0x14000da5b
mov rdx, qword [r13 + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
lea r13, [0x14007c068]
test rax, rax
jne 0x14000d9d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov eax, 4
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x140080d58], ecx
jle 0x14000d9c4
lea rcx, [0x140080d58]
call fcn.14005cb04
cmp dword [0x140080d58], 0xffffffff
jne 0x14000d9c4
lea rcx, [0x140063b00]
call fcn.14005d15c
lea rcx, [0x140080d58]
call fcn.14005ca98
mov dword [rsp + 0x38], r15d
lea rax, [0x14007c058]
mov qword [rsp + 0x40], rax
jmp 0x14000d9e1
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r13
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
cmp dword [rbx], 0
je 0x14000da17
movups xmmword [rdi], xmm0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov byte [rsp + 0x30], 0
lea r9, [rsp + 0x38]
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14000b8b0
jmp 0x14000da5e
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [r14], rsi
sub ebp, 1
je 0x14000da3b
cmp ebp, 1
je 0x14000da34
mov byte [r14 + 8], 0
jmp 0x14000da40
mov byte [r14 + 8], 0x20
jmp 0x14000da40
mov byte [r14 + 8], select
lea rcx, [r14 + 0x10]
call fcn.1400225f0
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r13
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
movups xmmword [rdi], xmm0
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005ca70
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000da80
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xa0]
mov r11, r9
mov rax, qword [rcx + 8]
mov r10, r8
mov rsi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x98], 0
je 0x14000dad0
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.14000ada0
jmp 0x14000db68
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14000daf0
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
call fcn.14000ada0
jmp 0x14000db68
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov r8d, r11d
mov eax, dword [rsp + 0x90]
mov rdx, r10
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x14000db5c
cmp eax, 0x3e5
je 0x14000db5c
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.14000ada0
jmp 0x14000db68
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.14000ad10
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005ca70
add rsp, 0x58
pop rdi
pop rsi
ret

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

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rsp + 0xa0]
mov r11, r9
mov rax, qword [rcx + 8]
mov r10, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x98], 0
je 0x14000dbd0
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.14000ada0
jmp 0x14000dc81
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14000dbf3
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
call fcn.14000ada0
jmp 0x14000dc81
mov eax, dword [rsp + 0x90]
lea r9, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], edx
mov r8d, r11d
mov qword [rsp + 0x28], rbx
mov rdx, r10
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rsi
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14000dc42
mov eax, 0x2746
jmp 0x14000dc4f
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x50]
je 0x14000dc75
cmp eax, 0x3e5
je 0x14000dc75
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.14000ada0
jmp 0x14000dc81
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.14000ad10
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005ca70
add rsp, 0x58
pop rdi
pop rbx
ret