joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002df10
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rbp + 0x37], rax
movzx esi, r8b
mov rdi, rdx
lea r15, [0x1401a5390]
mov qword [rbp - 0x31], r15
mov rcx, r15
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14002df6d
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
movdqa xmm0, xmmword [0x140147820]
movdqu xmmword [rbp - 0x49], xmm0
xor r14d, r14d
mov word [rbp - 0x59], r14w
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdi + r8*2], r14w
jne 0x14002df90
mov rdx, rdi
lea rcx, [rbp - 0x59]
call fcn.140004a60
nop
lea rdx, [rbp - 0x29]
call fcn.14002f240
mov rcx, rax
mov rdx, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rax, rdx
sub rax, r9
mov r10, qword [rbp - 0x41]
mov r8, qword [rbp - 0x49]
cmp r8, rax
jbe 0x14002dff2
mov rax, r10
sub rax, r8
cmp rax, r9
jb 0x14002dff2
cmp rdx, 8
jb 0x14002dfe2
mov rcx, qword [rcx]
mov r8, rcx
xor edx, edx
lea rcx, [rbp - 0x59]
call fcn.140014600
jmp 0x14002e004
lea rdx, [rbp - 0x59]
cmp r10, 8
cmovae rdx, qword [rbp - 0x59]
call fcn.140012db0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
movups xmmword [rbp + 7], xmm1
movups xmmword [rbp - 9], xmm0
lea rcx, [rbp - 0x29]
call fcn.1400049f0
nop
lea rcx, [rbp - 0x59]
call fcn.1400049f0
test sil, sil
je 0x14002e0a6
lea rdi, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdi, qword [rbp - 9]
call fcn.14002e110
cmp dword [reloc.WS2_32.dll_closesocket], 3
jl 0x14002e0a6
movdqa xmm0, xmmword [0x140147820]
movdqu xmmword [rbp + 0x27], xmm0
mov word [rbp + 0x17], r14w
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14002e070
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x17]
call fcn.140004a60
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rcx, qword [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp + 0x17]
call fcn.1400049f0
lea rbx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rbx, qword [rbp - 9]
call fcn.14002e110
mov rdx, rbx
call fcn.14002f860
nop
lea rcx, [rbp - 9]
call fcn.1400049f0
nop
mov rcx, r15
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test eax, eax
je 0x14002e0e2
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400acdf0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002e110
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rax, qword [0x1401a5300]
test rax, rax
jne 0x14002e1e0
lea rdi, [0x1401a5320]
mov qword [rsp + 0x50], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14002e156
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rbx, qword [0x1401a5300]
test rbx, rbx
jne 0x14002e1c7
lea ecx, [rbx + 1]
call fcn.1400ace1c
mov rbx, rax
mov qword [rsp + 0x58], rax
call fcn.14002e650
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1401a4e48], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [0x1401a4e40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14002dd10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
nop
mov qword [0x1401a5300], rbx
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test eax, eax
je 0x14002e1dd
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140042670
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1401a580c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
test rax, rax
je 0x1400426a2
mov rax, qword [rax + 8]
jmp 0x1400426a5
mov rax, rdi
lea rbx, [rsi + 3]
shr rbx, 2
test rax, rax
je 0x1400426d8
mov rcx, qword [rax]
test rcx, rcx
je 0x1400426d8
mov qword [rax], rdi
movzx eax, byte [rcx]
cmp rax, rbx
jb 0x1400426d3
mov byte [rcx + rsi], al
mov rax, rcx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
call fcn.1400ad488
lea rcx, [rbx*4 + 1]
call fcn.1400ace1c
cmp rbx, 0xff
movzx ecx, bl
cmovbe edi, ecx
mov byte [rax + rsi], dil
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x140042700
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 [0x1401a580c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14004272d
mov r8, qword [rax + 8]
jmp 0x140042730
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x140042754
test r8, r8
je 0x140042754
cmp qword [r8], 0
jne 0x140042754
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.1400ad488
Function at 0x140042ca0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r15d, r15d
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x140042d18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x30], ebx
call fcn.1400e5a00
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140042e34
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], r15
jne 0x140042d69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x30], ebx
call fcn.1400e5a00
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140042e46
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x28], rax
lea r8, [0x140042e60]
mov r9, rsi
mov dword [rsp + 0x20], r15d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x140042de5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x140042dbf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140042dce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x30], ebx
call fcn.1400e5a00
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140042e22
test rdi, rdi
je 0x140042e01
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400acdf0
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.14000af10
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.14000af10
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.14000af10
int3
Function at 0x140043d50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
xor ebx, ebx
mov qword [r11 - 0x48], rbx
call fcn.1400e5a00
mov qword [rsp + 0x38], rax
mov rdi, qword [rdi + 0x10]
mov eax, ebx
lock xadd dword [rdi + 0x30], eax
test eax, eax
jne 0x140043dc0
mov rcx, rdi
call fcn.1400433d0
mov dword [rsp + 0x30], ebx
call fcn.1400e5a00
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x140043e77
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1401a580c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1401a580c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r8, [rsp + 0x30]
mov rcx, rdi
call fcn.140043610
test rax, rax
je 0x140043e41
nop
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
lea r8, [rsp + 0x30]
mov rcx, rdi
call fcn.140043610
test rax, rax
jne 0x140043e20
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1401a580c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x58]
mov esi, 2
nop dword [rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140043e6d
call fcn.1400ad488
add rdi, 8
sub rsi, 1
jne 0x140043e60
cmp dword [rsp + 0x30], 0
jne 0x140043ea0
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400acdf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, [rsp + 0x30]
call fcn.140042610
int3
Function at 0x140043f80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov rdi, r9
mov rbp, rdx
mov r14, rcx
mov esi, r15d
cmp rcx, 0xffffffffffffffff
je 0x1400440bd
test r8b, r8b
je 0x14004400f
test byte [rdx], 8
je 0x14004400f
mov dword [rsp + 0x40], r15d
call fcn.1400e5a00
or byte [rbp], 8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.1400e5a00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14004400f
call fcn.1400e5a00
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.1400e5a00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
je 0x1400440bd
call fcn.1400e5a00
cmp qword [rdi + 8], rax
jne 0x140044058
cmp dword [rdi], 0x2733
je 0x14004406b
call fcn.1400e5a00
cmp qword [rdi + 8], rax
jne 0x1400440b9
cmp dword [rdi], 0x4d5
jne 0x1400440b9
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbp], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.1400e5a00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x1400440d4
mov dword [rsp + 0x30], r15d
call fcn.1400e5a00
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400acdf0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140044100
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140044144
mov dword [rsp + 0x20], 0x2719
call fcn.1400e5a00
mov qword [rsp + 0x28], rax
mov eax, ebx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
jmp 0x140044198
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call fcn.1400e5a00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x140044196
mov dword [rsp + 0x20], esi
call fcn.1400e5a00
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400441b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov edx, dword [rdx]
sub edx, 0x79
je 0x1400441f7
sub edx, 0x450
je 0x1400441ed
sub edx, 6
je 0x1400441e3
cmp edx, 1
jne 0x140044211
mov dword [rsp + 0x30], 0x2751
jmp 0x1400441ff
mov dword [rsp + 0x30], 0x2743
jmp 0x1400441ff
mov dword [rsp + 0x30], 0x274d
jmp 0x1400441ff
mov dword [rsp + 0x30], 0x274c
call fcn.1400e5a00
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp dword [rsi], 0
jne 0x14004429a
cmp rbx, 0xffffffffffffffff
jne 0x14004422a
mov dword [rsp + 0x30], 0x2719
jmp 0x140044288
xor ecx, ecx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.1400e5a00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
test edi, edi
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jne 0x14004429a
mov dword [rsp + 0x30], 0
call fcn.1400e5a00
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
Function at 0x140044360
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0xa0]
mov rbx, rcx
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rbp
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x50], ebp
lea r8d, [rbp + 1]
mov dword [rsp + 0x54], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.1400e5a00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov ecx, dword [rsi]
cmp ecx, 0x40
jne 0x1400443f6
mov dword [rsp + 0x40], 0x2746
jmp 0x140044406
cmp ecx, 0x4d2
jne 0x14004441a
mov dword [rsp + 0x40], 0x274d
call fcn.1400e5a00
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x14004442c
cmp ecx, 0x2738
je 0x14004442a
cmp ecx, 0xea
jne 0x14004442c
mov dword [rsi], ebp
test edi, edi
je 0x140044437
mov eax, 0xffffffff
jmp 0x140044451
mov dword [rsp + 0x40], ebp
call fcn.1400e5a00
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400acdf0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140044560
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov edi, r8d
mov ebx, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, edi
mov dword [rsp + 0x20], 0
mov edx, ebx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.1400e5a00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x1400445d8
mov rax, rdi
jmp 0x140044620
cmp esi, 0x17
jne 0x140044602
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
call fcn.1400e5a00
mov qword [rsp + 0x38], rax
mov rax, rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400acdf0
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400448d0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [rdx + 8]
mov rbx, r9
mov rdi, r8
mov rsi, rcx
test rax, rax
je 0x140044a70
cmp dword [rax + 8], 0
je 0x140044a70
test r8, r8
je 0x140044912
cmp byte [r8], 0
jne 0x140044914
xor edi, edi
test rbx, rbx
je 0x14004491f
cmp byte [r9], 0
jne 0x140044921
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, qword [rbp + 0x38]
mov rdx, rbx
mov r8, qword [rbp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
cmp eax, 0x273f
jg 0x1400449e3
je 0x1400449ca
test eax, eax
je 0x1400449b1
sub edx, 8
je 0x140044998
sub edx, 0x271e
je 0x14004497f
cmp edx, 0x16
jne 0x1400449fd
mov dword [rbp - 0x10], 0x273c
call fcn.1400e5a00
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140044a84
mov dword [rbp - 0x10], 0x2726
call fcn.1400e5a00
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140044a84
mov dword [rbp - 0x10], reloc.WS2_32.dll_ntohl
call fcn.1400e5a00
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140044a84
mov dword [rbp - 0x10], 0
call fcn.1400e5a00
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140044a84
mov dword [rbp - 0x10], 0x273f
call fcn.1400e5a00
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140044a84
sub edx, 0x277d
je 0x140044a5a
sub edx, 0x37c
je 0x140044a44
sub edx, 1
je 0x140044a2e
cmp edx, 1
je 0x140044a18
call fcn.1400e5a00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x10], eax
mov qword [rbp - 8], rbx
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140044a84
mov dword [rbp - 0x10], 0x2afb
call fcn.1400e5a00
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140044a84
mov dword [rbp - 0x10], 0x2afa
call fcn.1400e5a00
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140044a84
mov dword [rbp - 0x10], 0x2af9
call fcn.1400e5a00
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140044a84
mov dword [rbp - 0x10], 0x277d
call fcn.1400e5a00
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140044a84
mov dword [rbp - 0x10], 0x3e3
call fcn.1400e5a00
mov qword [rbp - 8], rax
movups xmm0, xmmword [rbp - 0x10]
mov rax, qword [rbp + 0x40]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
movups xmmword [rsi], xmm0
movups xmmword [rax], xmm0
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret
Function at 0x1400456a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov dword [rsp + 0x48], 1
call fcn.1400e5a00
mov rbx, qword [rbx + 8]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x44], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.1400e5a00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x140045724
cmp eax, 0x4d2
jne 0x140045729
call fcn.1400e5a00
test ebx, ebx
jne 0x140045732
call fcn.1400e5a00
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400acdf0
add rsp, 0x60
pop rbx
ret

Function at 0x140045a30
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp edx, 2
jne 0x140045a6f
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.140045620
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.140044fd0
add rsp, 0x28
ret
Function at 0x140046260
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140194020]
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 0x1400462b0
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.140043570
jmp 0x140046348
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x1400462d0
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
call fcn.140043570
jmp 0x140046348
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 0x14004633c
cmp eax, 0x3e5
je 0x14004633c
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.140043570
jmp 0x140046348
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.1400434e0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400acdf0
add rsp, 0x58
pop rdi
pop rsi
ret

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

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x140194020]
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 0x1400463b0
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.140043570
jmp 0x140046461
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x1400463d3
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
call fcn.140043570
jmp 0x140046461
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 0x140046422
mov eax, 0x2746
jmp 0x14004642f
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x50]
je 0x140046455
cmp eax, 0x3e5
je 0x140046455
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.140043570
jmp 0x140046461
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.1400434e0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400acdf0
add rsp, 0x58
pop rdi
pop rbx
ret