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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
add rsp, 0x28
jmp 0x14005aaf0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x90
lea rbx, [rcx + 0x20]
mov rbp, qword [rcx + 0x10]
lea rsi, [rcx + 0x18]
mov rdi, qword [rsi]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005ab42
nop dword [rax]
cmp qword [rax], rdi
je 0x14005ac6b
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14005ab30
mov qword [rsp + 0x58], rbx
mov rdx, rbx
mov ecx, 0x48
call fcn.140021f90
mov rdi, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [0x14005acd0]
mov qword [rdi + 0x28], rax
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
mov dword [rdi + 0x30], r14d
movups xmm0, xmmword [rbx]
movups xmmword [rdi + 0x38], xmm0
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140024b00
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x14005ac4d
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp + 0x28]
mov qword [rsp + 0x30], rbx
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdi + 0x38]
movups xmmword [rsp + 0x20], xmm0
lea rax, [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], r14
lea r8, [rsp + 0x20]
lea edx, [r14 + 0x48]
mov rcx, rdi
call fcn.140022020
mov qword [rsp + 0x78], r14
test rbx, rbx
je 0x14005ac30
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14005af50
nop
nop
lea rcx, [rsp + 0x30]
call fcn.1400248e0
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x14005ab42
nop
mov rdx, rbx
mov rcx, rbx
call fcn.14005af50
nop
nop
jmp 0x14005ac4d
Function at 0x14005aaf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
add rsp, 0x28
jmp 0x14005aaf0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x90
lea rbx, [rcx + 0x20]
mov rbp, qword [rcx + 0x10]
lea rsi, [rcx + 0x18]
mov rdi, qword [rsi]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005ab42
nop dword [rax]
cmp qword [rax], rdi
je 0x14005ac6b
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14005ab30
mov qword [rsp + 0x58], rbx
mov rdx, rbx
mov ecx, 0x48
call fcn.140021f90
mov rdi, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [0x14005acd0]
mov qword [rdi + 0x28], rax
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
mov dword [rdi + 0x30], r14d
movups xmm0, xmmword [rbx]
movups xmmword [rdi + 0x38], xmm0
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140024b00
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x14005ac4d
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp + 0x28]
mov qword [rsp + 0x30], rbx
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdi + 0x38]
movups xmmword [rsp + 0x20], xmm0
lea rax, [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], r14
lea r8, [rsp + 0x20]
lea edx, [r14 + 0x48]
mov rcx, rdi
call fcn.140022020
mov qword [rsp + 0x78], r14
test rbx, rbx
je 0x14005ac30
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14005af50
nop
nop
lea rcx, [rsp + 0x30]
call fcn.1400248e0
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x14005ab42
nop
mov rdx, rbx
mov rcx, rbx
call fcn.14005af50
nop
nop
jmp 0x14005ac4d
Function at 0x1400663e0
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 rbx, r9
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14006642c
lea rax, [0x140275440]
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x28], rax
mov eax, ecx
mov byte [rsp + 0x24], 1
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r9], xmm0
jmp 0x140066486
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
lea rax, [0x140275440]
setne byte [rsp + 0x24]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
test edi, edi
jne 0x140066484
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x24], dil
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400664a0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, rdx
lea rsi, [0x140275440]
mov edx, dword [rdx]
mov rbx, rcx
sub edx, 0x79
je 0x1400664f8
sub edx, 0x450
je 0x1400664ef
sub edx, 6
je 0x1400664e6
cmp edx, 1
jne 0x14006650e
mov dword [rbp - 0x10], 0x2751
jmp 0x1400664ff
mov dword [rbp - 0x10], 0x2743
jmp 0x1400664ff
mov dword [rbp - 0x10], 0x274d
jmp 0x1400664ff
mov dword [rbp - 0x10], 0x274c
mov byte [rbp - 0xc], 1
mov qword [rbp - 8], rsi
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
cmp dword [rdi], 0
jne 0x14006657e
cmp rbx, 0xffffffffffffffff
jne 0x140066526
mov dword [rbp - 0x10], 0x2719
mov byte [rbp - 0xc], 1
jmp 0x140066573
xor ecx, ecx
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 ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rbp - 0x10], eax
mov qword [rbp - 8], rsi
setne byte [rbp - 0xc]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x14006657e
mov dword [rbp - 0x10], ebx
mov byte [rbp - 0xc], bl
mov qword [rbp - 8], rsi
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
Function at 0x140066660
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rbp
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x80], ebp
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, [0x140275440]
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 0x140066700
mov dword [rsp + 0x40], 0x2746
jmp 0x140066710
cmp ecx, 0x4d2
jne 0x140066724
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 0x140066734
cmp ecx, 0x2738
je 0x14006674a
cmp ecx, 0xea
je 0x14006674a
test ebx, ebx
je 0x14006674a
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x44], bpl
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140066780
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1402ba410]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [rbp + 0x210]
mov rax, r8
mov qword [rsp + 0x30], rax
movzx r13d, dl
mov qword [rsp + 0x50], r9
mov r12, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400667f1
lea rdi, [0x140275440]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rdi
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140066972
mov qword [rsp + 0x2a8], r14
mov qword [rsp + 0x2a0], r15
movzx r15d, r13b
and r15b, 0x10
cmp byte [rbp + 0x208], 0
je 0x14006683f
test r15b, r15b
je 0x14006683f
xor r14d, r14d
lea rdi, [0x140275440]
mov dword [rsp + 0x30], r14d
xor eax, eax
mov byte [rsp + 0x34], r14b
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140066962
mov r8, r9
mov qword [rsp + 0x2e8], rsi
mov rdx, rax
mov qword [rsp + 0x20], rbx
call fcn.140066660
test eax, eax
jg 0x140066958
lea rdi, [0x140275440]
xor r14d, r14d
movabs rcx, 0x8fafd21e25c5e09b
test r15b, r15b
je 0x140066880
test eax, eax
je 0x140066990
test r13b, 1
jne 0x1400669e1
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x14006689e
cmp eax, 0x4d5
jne 0x1400669e1
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x1400669e1
xor ecx, ecx
mov qword [rbp - 0x78], r12
mov dword [rbp - 0x80], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r12 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, [rbp - 0x80]
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 + 0x58], eax
mov qword [rsp + 0x60], rdi
setne byte [rsp + 0x5c]
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x140066916
mov dword [rsp + 0x68], r14d
mov byte [rsp + 0x6c], r14b
mov qword [rsp + 0x70], rdi
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
jmp 0x140066939
jle 0x140066931
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], r14b
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
jmp 0x140066939
test esi, esi
js 0x1400669e1
mov r8, qword [rsp + 0x50]
mov rcx, r12
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
call fcn.140066660
test eax, eax
jle 0x140066869
mov eax, eax
mov rsi, qword [rsp + 0x2e8]
mov r14, qword [rsp + 0x2a8]
mov r15, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1401ebfb0
add rsp, 0x2b0
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rax, qword [0x1402ba480]
lea rdi, [0x1402ba478]
mov dword [rsp + 0x40], 2
cmp rax, rcx
je 0x1400669ce
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400669ce
mov rax, qword [0x1402ba478]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x1400669d0
mov al, 1
mov byte [rsp + 0x44], al
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x14006695a
Function at 0x140066b60
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x1402ba410]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, qword [rbp + 0x200]
mov rax, r9
mov qword [rsp + 0x30], rax
mov r13, r8
movzx r12d, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140066bd1
lea rdi, [0x140275440]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rdi
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140066d2c
cmp byte [rbp + 0x1f8], 0
mov qword [rsp + 0x290], r14
je 0x140066c10
test r12b, 0x10
je 0x140066c10
xor r14d, r14d
lea rdi, [0x140275440]
mov dword [rsp + 0x30], r14d
xor eax, eax
mov byte [rsp + 0x34], r14b
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140066d24
mov r8, rax
mov qword [rsp + 0x2d8], rsi
mov rdx, r13
mov qword [rsp + 0x20], rbx
call fcn.1400236e0
test eax, eax
jns 0x140066d1a
and r12b, 1
lea rdi, [0x140275440]
xor r14d, r14d
movabs rcx, 0x8fafd21e25c5e09b
test r12b, r12b
jne 0x140066d4c
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x140066c65
cmp eax, 0x4d5
jne 0x140066d4c
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x140066d4c
xor ecx, ecx
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x70], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r15 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
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 + 0x40], eax
mov qword [rsp + 0x48], rdi
setne byte [rsp + 0x44]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x140066cde
mov dword [rsp + 0x50], r14d
mov byte [rsp + 0x54], r14b
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
jmp 0x140066cfd
jle 0x140066cf9
mov dword [rsp + 0x60], r14d
mov byte [rsp + 0x64], r14b
mov qword [rsp + 0x68], rdi
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
jmp 0x140066cfd
test esi, esi
js 0x140066d4c
mov r8, qword [rsp + 0x30]
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rbx
call fcn.1400236e0
test eax, eax
js 0x140066c3e
mov eax, eax
mov rsi, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1401ebfb0
add rsp, 0x298
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x140066d1c
Function at 0x140066d50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov ebx, r8d
mov edi, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, ebx
mov dword [rsp + 0x20], 0
mov edx, edi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
lea rdi, [0x140275440]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rbx, 0xffffffffffffffff
jne 0x140066dca
mov rax, rbx
jmp 0x140066e12
cmp esi, 0x17
jne 0x140066df4
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
mov rax, rbx
mov byte [rsp + 0x34], 0
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140066e30
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rdx + 8]
mov rbx, r9
mov rdi, r8
mov rsi, rcx
test rax, rax
je 0x140066f5d
cmp dword [rax + 8], 0
je 0x140066f5d
test r8, r8
je 0x140066e6a
cmp byte [r8], 0
jne 0x140066e6c
xor edi, edi
test rbx, rbx
je 0x140066e77
cmp byte [r9], 0
jne 0x140066e79
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, qword [rsp + 0x68]
mov rdx, rbx
mov r8, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
cmp eax, 0x273f
jg 0x140066ef2
je 0x140066ee8
test eax, eax
je 0x140066ed9
sub edx, 8
je 0x140066ecf
sub edx, 0x271e
je 0x140066ec5
cmp edx, 0x16
jne 0x140066f0c
mov dword [rsp + 0x20], 0x273c
jmp 0x140066f45
mov dword [rsp + 0x20], 0x2726
jmp 0x140066f45
mov dword [rsp + 0x20], reloc.WS2_32.dll_ntohl
jmp 0x140066f45
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x24], 0
jmp 0x140066f4a
mov dword [rsp + 0x20], 0x273f
jmp 0x140066f45
sub edx, 0x277d
je 0x140066f3d
sub edx, 0x37c
je 0x140066f33
sub edx, 1
je 0x140066f29
cmp edx, 1
je 0x140066f1f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
setne byte [rsp + 0x24]
jmp 0x140066f4a
mov dword [rsp + 0x20], 0x2afb
jmp 0x140066f45
mov dword [rsp + 0x20], 0x2afa
jmp 0x140066f45
mov dword [rsp + 0x20], 0x2af9
jmp 0x140066f45
mov dword [rsp + 0x20], 0x277d
mov byte [rsp + 0x24], 1
lea rax, [0x140275440]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140066f7b
lea rax, [0x140275440]
mov dword [rsp + 0x20], 0x3e3
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x24], 1
movups xmm0, xmmword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmmword [rax], xmm0
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140066fa0
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
cmp rdi, 0xffffffffffffffff
je 0x140067016
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 0x140067016
cmp eax, 0x2733
je 0x140066fe4
cmp eax, 0x4d5
jne 0x140067016
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 0x1400675f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
mov qword [rsp + 0x38], rsi
mov rsi, rcx
cmp rdi, 0xffffffffffffffff
je 0x140067668
xor ecx, ecx
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
je 0x140067668
cmp eax, 0x2733
je 0x140067636
cmp eax, 0x4d5
jne 0x140067668
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]
mov rdi, qword [rsi + 8]
mov rsi, qword [rsp + 0x38]
cmp rdi, 0xffffffffffffffff
je 0x1400676d4
xor ecx, ecx
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
je 0x1400676d4
cmp eax, 0x2733
je 0x1400676a2
cmp eax, 0x4d5
jne 0x1400676d4
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]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140067a30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp edx, 2
jne 0x140067a6f
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.1400675f0
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.140067020
add rsp, 0x28
ret
Function at 0x140068580
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x1400685ba
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.140065fa0
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x1400685e2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.140065fa0
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], eax
mov r8d, r10d
mov eax, dword [rsp + 0x70]
mov rdx, r11
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rsi
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 0x140068661
cmp eax, 0x3e5
je 0x140068661
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140065fa0
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140065f00
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x1400686ba
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.140065fa0
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x1400686e2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.140065fa0
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x78], edx
mov r8d, r10d
mov qword [rsp + 0x58], rsi
mov rdx, r11
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14006873b
mov eax, 0x2746
jmp 0x140068748
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x140068777
cmp eax, 0x3e5
je 0x140068777
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.140065fa0
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.140065f00
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
Function at 0x14006ba40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rdi + 0x10]
mov ecx, 0x58
call fcn.140021f90
xor edx, edx
lea rcx, [0x140058870]
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov dword [rax + 0x30], edx
movups xmm0, xmmword [rdi]
movups xmmword [rax + 0x38], xmm0
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rax + 0x48], xmm0
mov rcx, qword [rsi + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140022d60