joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140324f10
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x140535ab8]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rdx + 0xb0]
mov qword [rsp + 0x40], rax
add rdx, 0xb8
lea rcx, [rsp + 0x48]
call fcn.14032a060
mov rax, qword [rbx + 8]
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [rbx + 0x10]
movups xmmword [rsp + 0xb8], xmm0
movsd xmm1, qword [rbx + 0x20]
movsd qword [rsp + 0xc8], xmm1
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0xd0], eax
lea rdx, [rbx + 0x30]
lea rcx, [rsp + 0xd8]
call fcn.14032bef0
movups xmm0, xmmword [rbx + 0x118]
movaps xmmword [rsp + 0x1c0], xmm0
mov rax, qword [rbx + 0x128]
mov qword [rsp + 0x1d0], rax
mov rsi, qword [rdi + 0xa0]
mov rbx, qword [rdi + 0xa8]
mov ecx, dword [0x140542770]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140324fe0
cmp qword [rax], rbx
je 0x140325004
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140324fd2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x158]
cmp byte [rbx + 0x400], 0
jne 0x14032501f
mov byte [rbx + 0x400], 1
jmp 0x14032502c
cmp qword [rax + 8], 0
je 0x140324fe0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140319ef0
nop
nop
jmp 0x14032507a
mov ecx, 0x1d8
call fcn.14038a538
mov rbx, rax
xor ebp, ebp
mov qword [rbx + 0x20], rbp
lea rax, [0x140349350]
mov qword [rbx + 0x28], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x30], ebp
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x40]
call fcn.14032cb80
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov r8, rbx
lea rdx, [rdi + 0xa8]
mov rcx, rsi
call fcn.14034e960
nop
lea rcx, [rsp + 0x168]
call fcn.140331d10
lea rcx, [rsp + 0x50]
call fcn.140331d10
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.14038a8e0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403250c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [0x140535ab8]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov rdi, rdx
mov rbx, rcx
add rdx, 0x78
lea rcx, [rsp + 0x40]
call fcn.140329fd0
mov rax, qword [rbx + 8]
mov qword [rsp + 0xa8], rax
movups xmm0, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0xb0], xmm0
movsd xmm1, qword [rbx + 0x20]
movsd qword [rsp + 0xc0], xmm1
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0xc8], eax
lea rdx, [rbx + 0x30]
lea rcx, [rsp + 0xd0]
call fcn.14032c110
movups xmm0, xmmword [rbx + 0xd8]
movups xmmword [rsp + 0x178], xmm0
mov rax, qword [rbx + 0xe8]
mov qword [rsp + 0x188], rax
mov rsi, qword [rdi + 0x68]
mov rbx, qword [rdi + 0x70]
mov ecx, dword [0x140542770]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140325182
nop dword [rax]
cmp qword [rax], rbx
je 0x140325226
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140325170
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x118]
mov ecx, 0x190
call fcn.14033f540
mov rbx, rax
xor ebp, ebp
mov qword [rax + 0x20], rbp
lea rax, [0x1403496f0]
mov qword [rbx + 0x28], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x30], ebp
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x40]
call fcn.14032cc80
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov r8, rbx
lea rdx, [rdi + 0x70]
mov rcx, rsi
call fcn.14034e960
nop
lea rcx, [rsp + 0x120]
call fcn.140331d10
lea rcx, [rsp + 0x48]
call fcn.140331d10
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14038a8e0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret
cmp qword [rax + 8], 0
je 0x140325182
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140319f70
nop
nop
jmp 0x1403251ec

Function at 0x14032cf10
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140535ab8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1405423f8], eax
inc eax
cmp eax, 1
jne 0x14032cf5d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1405423fc], eax
test dil, dil
je 0x14032cf70
xor eax, eax
lock xadd dword [0x1405423fc], eax
test eax, eax
jne 0x14032cf94
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14038a8e0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
call fcn.1401692c0
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.1401681f0
int3
Function at 0x1403331b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
cmp rbx, 0xffffffffffffffff
je 0x140333259
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140333259
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
call fcn.1401692c0
mov rsi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call fcn.1401692c0
mov rcx, qword [rax + 8]
cmp qword [rsi + 8], rcx
jne 0x140333205
cmp edi, 0x2733
je 0x14033321c
call fcn.1401692c0
mov rdx, qword [rax + 8]
cmp qword [rsi + 8], rdx
jne 0x14033324f
cmp edi, 0x4d5
jne 0x14033324f
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14033324f
call fcn.1401692c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret

Function at 0x140333d70
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x300
mov rax, qword [0x140535ab8]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rdx + 0x1c8]
mov qword [rsp + 0x40], rax
add rdx, 0x1d0
lea rcx, [rsp + 0x48]
call fcn.14032a060
mov rax, qword [rbx + 8]
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [rbx + 0x10]
movups xmmword [rsp + 0xb8], xmm0
movsd xmm1, qword [rbx + 0x20]
movsd qword [rsp + 0xc8], xmm1
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0xd0], eax
lea rdx, [rbx + 0x30]
lea rcx, [rsp + 0xd8]
call fcn.14032bf80
movups xmm0, xmmword [rbx + 0x230]
movups xmmword [rsp + 0x2d8], xmm0
mov rax, qword [rbx + 0x240]
mov qword [rsp + 0x2e8], rax
mov rsi, qword [rdi + 0x1b8]
mov rbx, qword [rdi + 0x1c0]
mov ecx, dword [0x140542770]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140333e40
cmp qword [rax], rbx
je 0x140333e64
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140333e32
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x270]
cmp byte [rbx + 0x400], 0
jne 0x140333e7f
mov byte [rbx + 0x400], 1
jmp 0x140333e8c
cmp qword [rax + 8], 0
je 0x140333e40
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140319f30
nop
nop
jmp 0x140333eda
mov ecx, 0x2f0
call fcn.14038a538
mov rbx, rax
xor ebp, ebp
mov qword [rbx + 0x20], rbp
lea rax, [0x1403494f0]
mov qword [rbx + 0x28], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x30], ebp
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x40]
call fcn.14032cc00
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov r8, rbx
lea rdx, [rdi + 0x1c0]
mov rcx, rsi
call fcn.14034e960
nop
lea rcx, [rsp + 0x210]
call fcn.140332020
lea rcx, [rsp + 0x50]
call fcn.140331d10
mov rcx, qword [rsp + 0x2f8]
xor rcx, rsp
call fcn.14038a8e0
mov rbx, qword [rsp + 0x330]
add rsp, 0x300
pop rdi
pop rsi
pop rbp
ret
Function at 0x140337400
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x1f0
mov rax, qword [0x140535ab8]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
mov rbx, r8
mov r14, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rcx + 0x48], r9d
mov esi, dword [rdx]
cmp r9d, 1
je 0x14033755b
mov rdx, rbx
add rcx, 0x10
call fcn.140343f10
test esi, esi
jne 0x14033745c
test rbx, rbx
jne 0x14033745c
lea rbx, [rdi + 0x30]
jmp 0x14033747b
lea rbx, [rdi + 0x30]
mov rax, qword [rdi + 0x28]
cmp qword [rbx], rax
jae 0x14033747b
mov r8d, 0x10000
test esi, esi
cmovne r8, r15
je 0x140337567
mov rbx, qword [rbx]
lea rdx, [rdi + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140329fd0
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], rbx
mov rsi, qword [rdi + 0x50]
mov rbx, qword [rdi + 0x58]
mov ecx, dword [0x140542770]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1403374ce
nop dword [rax]
cmp qword [rax], rbx
je 0x140337540
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1403374c0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x50]
mov ecx, 0xb8
call fcn.14033f540
mov rbx, rax
mov qword [rax + 0x20], r15
lea rax, [0x140346ee0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x50]
call fcn.14032aa60
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov r8, rbx
lea rdx, [rdi + 0x58]
mov rcx, rsi
call fcn.14034e960
nop
lea rcx, [rsp + 0x58]
call fcn.140331d10
jmp 0x1403375a0
cmp qword [rax + 8], 0
je 0x1403374ce
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140319340
nop
nop
jmp 0x140337534
mov r8d, 0x10000
test esi, esi
cmovne r8, r15
mov rbx, qword [rdi + 8]
lea rdx, [rsp + 0xd0]
lea rcx, [rdi + 0x10]
call fcn.14036ceb0
lea r8, [rbx + 0x68]
lea rdx, [rbx + 8]
mov rcx, qword [rbx]
add rcx, 0x28
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rax
call fcn.14031b2b0
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.14038a8e0
mov rbx, qword [rsp + 0x238]
add rsp, 0x1f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14033f540
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, 0x30
mov rbx, rcx
mov ecx, dword [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14033f56e
mov rdx, qword [rax + 8]
jmp 0x14033f570
xor edx, edx
movzx ecx, byte [rsp + 0x20]
mov r9d, 1
mov r8, rbx
add rsp, 0x30
pop rbx
jmp fcn.140319170

Function at 0x14033f590
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 [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x14033f5c0
mov r9, qword [rax + 8]
jmp 0x14033f5c3
mov r9, r8
cmp rdi, 0x3fc
ja 0x14033f5e7
test r9, r9
je 0x14033f5e7
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x14033f5f5
inc r8d
inc rax
cmp rax, 2
jl 0x14033f5d4
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.140309430
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 0x1403413c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, rcx
lea rdi, [rcx + 0x28]
mov qword [rsp + 0x30], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov byte [rsp + 0x38], 1
mov rbx, qword [r14 + 0x50]
test rbx, rbx
je 0x140341551
xor r15d, r15d
nop word [rax + rax]
cmp qword [rbx], 0xffffffffffffffff
je 0x1403414f4
xor eax, eax
lock cmpxchg qword [r14 + 0x10], r15
je 0x140341426
lea r8, [rbx + 0x20]
mov r9b, 1
mov rdx, qword [rbx]
mov rcx, rax
call fcn.140346280
mov rdi, qword [rbx]
cmp rdi, 0xffffffffffffffff
je 0x1403414f4
movzx eax, byte [rbx + 8]
test al, 8
je 0x140341475
mov dword [rsp + 0x70], r15d
or al, 8
mov byte [rbx + 8], al
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov r8d, 0x80
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140341475
call fcn.1401692c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1403414f4
call fcn.1401692c0
mov rbp, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.1401692c0
mov rcx, qword [rax + 8]
cmp qword [rbp + 8], rcx
jne 0x1403414a9
cmp esi, 0x2733
je 0x1403414c0
call fcn.1401692c0
mov rdx, qword [rax + 8]
cmp qword [rbp + 8], rdx
jne 0x1403414f4
cmp esi, 0x4d5
jne 0x1403414f4
mov dword [rsp + 0x78], r15d
lea r8, [rsp + 0x78]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbx + 8], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1403414f4
call fcn.1401692c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbx], 0xffffffffffffffff
mov byte [rbx + 8], r15b
mov qword [rbx + 0x10], r15
mov rdi, qword [rbx + 0x18]
mov qword [rbx + 0x18], r15
test rdi, rdi
je 0x14034153f
mov eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14034153f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14034153f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140341400
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
add rcx, 0x28
jmp 0x1403413c0
Function at 0x140341be0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x80
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x140542764]
cmove rbx, rax
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140341d37
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x140341c27
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140341c10
add rsp, 0x80
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140341d37
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x140341d04
cmp ecx, 1
jne 0x140341d37
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x50], 2
lea rcx, [rsp + 0x30]
call fcn.140389134
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x58], xmm0
call fcn.140389134
lea rcx, [rsp + 0x30]
call fcn.140389214
lea rcx, [rsp + 0x20]
call fcn.140389188
lea r8, [0x14051e0b8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.14038915c
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140389134
lea rcx, [rsp + 0x20]
call fcn.140389214
lea rcx, [rsp + 0x68]
call fcn.140389214
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rax
call fcn.14038b658
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x58]
call fcn.14038912c
lea rcx, [rsp + 0x40]
call fcn.140389214
add rsp, 0x80
pop rbx
ret
lea rcx, [rsp + 0x20]
mov dword [rbx + 0x50], 1
call fcn.140389188
lea rcx, [rsp + 0x20]
call fcn.140389194
lea rcx, [rbx + 0x58]
lea rdx, [rsp + 0x20]
call fcn.14038912c
lea rcx, [rsp + 0x20]
call fcn.140389214
add rsp, 0x80
pop rbx
ret
Function at 0x140343860
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov rdi, r9
mov r14, rdx
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
je 0x1403439a6
mov qword [rsp + 0x70], rsi
test r8b, r8b
je 0x1403438cb
movzx eax, byte [rdx]
test al, 8
je 0x1403438cb
or al, 8
mov dword [rsp + 0x60], r15d
mov byte [rdx], al
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1403438cb
call fcn.1401692c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x1403438e2
mov dword [rdi], r15d
jmp 0x14034396f
mov qword [rsp + 0x68], rbx
call fcn.1401692c0
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
call fcn.1401692c0
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x140343921
cmp dword [rdi], 0x2733
je 0x14034393c
call fcn.1401692c0
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1403439a2
cmp dword [rdi], 0x4d5
jne 0x1403439a2
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], r15d
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x140343983
mov dword [rdi], r15d
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call fcn.1401692c0
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
mov eax, esi
jmp 0x14034396a
mov rbp, qword [rsp + 0x78]
mov eax, r15d
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1403439c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
mov rdi, rcx
cmp rbx, 0xffffffffffffffff
je 0x140343a67
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140343a67
mov qword [rsp + 0x38], rbp
call fcn.1401692c0
mov rbp, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.1401692c0
mov rcx, qword [rax + 8]
cmp qword [rbp + 8], rcx
jne 0x140343a18
cmp esi, 0x2733
je 0x140343a2f
call fcn.1401692c0
mov rdx, qword [rax + 8]
cmp qword [rbp + 8], rdx
jne 0x140343a62
cmp esi, 0x4d5
jne 0x140343a62
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140343a62
call fcn.1401692c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rdi + 8]
cmp rbx, 0xffffffffffffffff
je 0x140343aef
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140343aef
call fcn.1401692c0
mov rsi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call fcn.1401692c0
mov rcx, qword [rax + 8]
cmp qword [rsi + 8], rcx
jne 0x140343aa5
cmp edi, 0x2733
je 0x140343abc
call fcn.1401692c0
mov r8, qword [rax + 8]
cmp qword [rsi + 8], r8
jne 0x140343aef
cmp edi, 0x4d5
jne 0x140343aef
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140343aef
call fcn.1401692c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140343b00
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov qword [rsp + 0x50], rbx
mov rbx, rdx
mov qword [rsp + 0x30], r14
xor r14d, r14d
cmp qword [rdx], 0xffffffffffffffff
je 0x140343c15
xor eax, eax
lock cmpxchg qword [rcx + 0x10], r14
je 0x140343b3d
lea r8, [rdx + 0x20]
mov r9b, 1
mov rdx, qword [rdx]
mov rcx, rax
call fcn.140346280
mov rdi, qword [rbx]
cmp rdi, 0xffffffffffffffff
je 0x140343c15
movzx eax, byte [rbx + 8]
test al, 8
je 0x140343b8c
or al, 8
mov dword [rsp + 0x58], r14d
lea r9, [rsp + 0x58]
mov byte [rbx + 8], al
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140343b8c
call fcn.1401692c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140343c15
mov qword [rsp + 0x68], rbp
call fcn.1401692c0
mov rbp, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.1401692c0
mov rcx, qword [rax + 8]
cmp qword [rbp + 8], rcx
jne 0x140343bc5
cmp esi, 0x2733
je 0x140343bdc
call fcn.1401692c0
mov rdx, qword [rax + 8]
cmp qword [rbp + 8], rdx
jne 0x140343c10
cmp esi, 0x4d5
jne 0x140343c10
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], r14d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbx + 8], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140343c10
call fcn.1401692c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbp, qword [rsp + 0x68]
mov byte [rbx + 8], r14b
mov rsi, 0xffffffffffffffff
mov qword [rbx], rsi
mov rdi, qword [rbx + 0x18]
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x50]
test rdi, rdi
je 0x140343c6c
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140343c6c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x140343c6c
mov rax, qword [rdi]
mov rcx, rdi
add rsp, 0x38
pop rdi
pop rsi
jmp qword [rax + reloc.WS2_32.dll_htonl]
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140343c80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
mov edx, dword [rdx]
sub edx, 0x79
je 0x140343cc7
sub edx, 0x450
je 0x140343cbd
sub edx, 6
je 0x140343cb3
cmp edx, 1
jne 0x140343ce1
mov dword [rsp + 0x30], 0x2751
jmp 0x140343ccf
mov dword [rsp + 0x30], 0x2743
jmp 0x140343ccf
mov dword [rsp + 0x30], 0x274d
jmp 0x140343ccf
mov dword [rsp + 0x30], 0x274c
call fcn.1401692c0
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
cmp dword [rdi], 0
jne 0x140343d60
cmp rbx, 0xffffffffffffffff
jne 0x140343d11
mov dword [rsp + 0x30], 0x2719
call fcn.1401692c0
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
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]
test eax, eax
jne 0x140343d41
mov dword [rdi], eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.1401692c0
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
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140343e80
Capabilities:
Connect socket

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x140343eb4
mov dword [rsp + 0x20], 0x2719
call fcn.1401692c0
mov qword [rsp + 0x28], rax
mov eax, 0xffffffff
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rsi
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test eax, eax
jne 0x140343ed2
mov rsi, qword [rsp + 0x48]
mov dword [rdi], eax
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov eax, esi
mov rsi, qword [rsp + 0x48]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
movups xmmword [rdi], xmm0
add rsp, 0x30
pop rdi
ret