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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140428040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140284f59
mov rax, qword [rax + 8]
add rsp, 0x28
ret

Function at 0x140284f60
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140428040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140284f8a
cmp qword [rax], rbx
jne 0x140284f84
mov rax, qword [rax + 8]
jmp 0x140284f8a
mov rax, qword [rax + 0x10]
jmp 0x140284f74
add rsp, 0x20
pop rbx
ret

Function at 0x140285020
Capabilities:
Get socket status

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x240
mov esi, edx
mov eax, r8d
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x14028504a
mov edx, 0x2719
mov rcx, r9
or ebx, 0xffffffff
call fcn.1402c6050
jmp 0x1402850c3
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], 1
and sil, 1
jne 0x140285076
xor edx, edx
test r8d, r8d
js 0x140285087
mov r8d, 0x3e8
cdq
idiv r8d
imul edx, edx, 0x3e8
jmp 0x14028507a
xor eax, eax
xor edx, edx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], edx
lea rdx, [rsp + 0x30]
inc ecx
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor edx, edx
lea r8, [rsp + 0x38]
call qword [sym.imp.WSOCK32.dll_select]
mov rcx, rdi
mov edx, eax
mov ebx, eax
shr edx, 0x1f
call fcn.140285ad0
test ebx, ebx
jne 0x1402850c3
test sil, sil
je 0x1402850c3
mov edx, 0x2733
mov rcx, rdi
call fcn.1402c6050
mov eax, ebx
add rsp, 0x240
pop rbx
pop rsi
pop rdi
ret

Function at 0x1402850d0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov r10, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rax, rdx
mov edx, r8d
mov r8d, r9d
mov r9, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
jne 0x1402850fa
mov edx, 0x2719
jmp 0x140285114
cmp edx, 0xa5100000
sete r11b
cmp r8d, 2
jne 0x140285121
test r11b, r11b
je 0x140285121
mov edx, 0x2726
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1402c61d0
cmp r8d, 1
jne 0x14028515a
test r11b, r11b
je 0x14028515a
cmp r10, 4
jne 0x14028510f
mov cl, byte [rax]
mov edx, ecx
and edx, 0xfffffffb
cmp dword [r9], 0
je 0x140285144
or ecx, 4
mov edx, ecx
mov byte [rax], dl
xor edx, edx
xor eax, eax
mov dword [rbx], eax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
add rsp, 0x30
pop rbx
ret
cmp edx, 0xffff
jne 0x14028516e
cmp r8d, 0x80
jne 0x14028516e
or byte [rax], 8
mov dword [rsp + 0x20], r10d
call qword [sym.imp.WSOCK32.dll_setsockopt]
xor edx, edx
mov rcx, rbx
test eax, eax
setne dl
add rsp, 0x30
pop rbx
jmp fcn.140285ad0
Function at 0x140285190
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov r10, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rax, rdx
mov edx, r8d
mov r8d, r9d
mov r9, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
jne 0x1402851ba
mov edx, 0x2719
jmp 0x1402851d4
cmp edx, 0xa5100000
sete r11b
cmp r8d, 2
jne 0x1402851e1
test r11b, r11b
je 0x1402851e1
mov edx, 0x2726
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1402c6200
cmp r8d, 1
jne 0x14028521a
test r11b, r11b
je 0x14028521a
cmp r10, 4
jne 0x1402851cf
mov cl, byte [rax]
mov edx, ecx
and edx, 0xfffffffb
cmp dword [r9], 0
je 0x140285204
or ecx, 4
mov edx, ecx
mov byte [rax], dl
xor edx, edx
xor eax, eax
mov dword [rbx], eax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
add rsp, 0x30
pop rbx
ret
cmp edx, 0xffff
jne 0x14028522e
cmp r8d, 0x80
jne 0x14028522e
or byte [rax], 8
mov dword [rsp + 0x20], r10d
call qword [sym.imp.WSOCK32.dll_setsockopt]
xor edx, edx
mov rcx, rbx
test eax, eax
setne dl
add rsp, 0x30
pop rbx
jmp fcn.140285ad0

Function at 0x140285250
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov r10, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rax, rdx
mov edx, r8d
mov r8d, r9d
mov r9, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
jne 0x14028527a
mov edx, 0x2719
jmp 0x140285294
cmp edx, 0xa5100000
sete r11b
cmp r8d, 2
jne 0x1402852a1
test r11b, r11b
je 0x1402852a1
mov edx, 0x2726
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1402c6260
cmp r8d, 1
jne 0x1402852da
test r11b, r11b
je 0x1402852da
cmp r10, 4
jne 0x14028528f
mov cl, byte [rax]
mov edx, ecx
and edx, 0xfffffffb
cmp dword [r9], 0
je 0x1402852c4
or ecx, 4
mov edx, ecx
mov byte [rax], dl
xor edx, edx
xor eax, eax
mov dword [rbx], eax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
add rsp, 0x30
pop rbx
ret
cmp edx, 0xffff
jne 0x1402852ee
cmp r8d, 0x80
jne 0x1402852ee
or byte [rax], 8
mov dword [rsp + 0x20], r10d
call qword [sym.imp.WSOCK32.dll_setsockopt]
xor edx, edx
mov rcx, rbx
test eax, eax
setne dl
add rsp, 0x30
pop rbx
jmp fcn.140285ad0

Function at 0x140285310
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov r10, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rax, rdx
mov edx, r8d
mov r8d, r9d
mov r9, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
jne 0x14028533a
mov edx, 0x2719
jmp 0x140285354
cmp edx, 0xa5100000
sete r11b
cmp r8d, 2
jne 0x140285361
test r11b, r11b
je 0x140285361
mov edx, 0x2726
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1402c62c0
cmp r8d, 1
jne 0x14028539a
test r11b, r11b
je 0x14028539a
cmp r10, 4
jne 0x14028534f
mov cl, byte [rax]
mov edx, ecx
and edx, 0xfffffffb
cmp dword [r9], 0
je 0x140285384
or ecx, 4
mov edx, ecx
mov byte [rax], dl
xor edx, edx
xor eax, eax
mov dword [rbx], eax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
add rsp, 0x30
pop rbx
ret
cmp edx, 0xffff
jne 0x1402853ae
cmp r8d, 0x80
jne 0x1402853ae
or byte [rax], 8
mov dword [rsp + 0x20], r10d
call qword [sym.imp.WSOCK32.dll_setsockopt]
xor edx, edx
mov rcx, rbx
test eax, eax
setne dl
add rsp, 0x30
pop rbx
jmp fcn.140285ad0
Function at 0x1402853d0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov r10, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rax, rdx
mov edx, r8d
mov r8d, r9d
mov r9, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
jne 0x1402853fa
mov edx, 0x2719
jmp 0x140285414
cmp edx, 0xa5100000
sete r11b
cmp r8d, 2
jne 0x140285421
test r11b, r11b
je 0x140285421
mov edx, 0x2726
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1402c62f0
cmp r8d, 1
jne 0x14028545a
test r11b, r11b
je 0x14028545a
cmp r10, 4
jne 0x14028540f
mov cl, byte [rax]
mov edx, ecx
and edx, 0xfffffffb
cmp dword [r9], 0
je 0x140285444
or ecx, 4
mov edx, ecx
mov byte [rax], dl
xor edx, edx
xor eax, eax
mov dword [rbx], eax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
add rsp, 0x30
pop rbx
ret
cmp edx, 0xffff
jne 0x14028546e
cmp r8d, 0x80
jne 0x14028546e
or byte [rax], 8
mov dword [rsp + 0x20], r10d
call qword [sym.imp.WSOCK32.dll_setsockopt]
xor edx, edx
mov rcx, rbx
test eax, eax
setne dl
add rsp, 0x30
pop rbx
jmp fcn.140285ad0

Function at 0x140285490
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov r10, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rax, rdx
mov edx, r8d
mov r8d, r9d
mov r9, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
jne 0x1402854ba
mov edx, 0x2719
jmp 0x1402854d4
cmp edx, 0xa5100000
sete r11b
cmp r8d, 2
jne 0x1402854e1
test r11b, r11b
je 0x1402854e1
mov edx, 0x2726
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1402c6320
cmp r8d, 1
jne 0x14028551a
test r11b, r11b
je 0x14028551a
cmp r10, 4
jne 0x1402854cf
mov cl, byte [rax]
mov edx, ecx
and edx, 0xfffffffb
cmp dword [r9], 0
je 0x140285504
or ecx, 4
mov edx, ecx
mov byte [rax], dl
xor edx, edx
xor eax, eax
mov dword [rbx], eax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
add rsp, 0x30
pop rbx
ret
cmp edx, 0xffff
jne 0x14028552e
cmp r8d, 0x80
jne 0x14028552e
or byte [rax], 8
mov dword [rsp + 0x20], r10d
call qword [sym.imp.WSOCK32.dll_setsockopt]
xor edx, edx
mov rcx, rbx
test eax, eax
setne dl
add rsp, 0x30
pop rbx
jmp fcn.140285ad0

Function at 0x140285550
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov r10, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rax, rdx
mov edx, r8d
mov r8d, r9d
mov r9, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
jne 0x14028557a
mov edx, 0x2719
jmp 0x140285594
cmp edx, 0xa5100000
sete r11b
cmp r8d, 2
jne 0x1402855a1
test r11b, r11b
je 0x1402855a1
mov edx, 0x2726
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1402c6350
cmp r8d, 1
jne 0x1402855da
test r11b, r11b
je 0x1402855da
cmp r10, 4
jne 0x14028558f
mov cl, byte [rax]
mov edx, ecx
and edx, 0xfffffffb
cmp dword [r9], 0
je 0x1402855c4
or ecx, 4
mov edx, ecx
mov byte [rax], dl
xor edx, edx
xor eax, eax
mov dword [rbx], eax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
add rsp, 0x30
pop rbx
ret
cmp edx, 0xffff
jne 0x1402855ee
cmp r8d, 0x80
jne 0x1402855ee
or byte [rax], 8
mov dword [rsp + 0x20], r10d
call qword [sym.imp.WSOCK32.dll_setsockopt]
xor edx, edx
mov rcx, rbx
test eax, eax
setne dl
add rsp, 0x30
pop rbx
jmp fcn.140285ad0
Function at 0x140285610
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov r10, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rax, rdx
mov edx, r8d
mov r8d, r9d
mov r9, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
jne 0x14028563a
mov edx, 0x2719
jmp 0x140285654
cmp edx, 0xa5100000
sete r11b
cmp r8d, 2
jne 0x140285661
test r11b, r11b
je 0x140285661
mov edx, 0x2726
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1402c6380
cmp r8d, 1
jne 0x14028569a
test r11b, r11b
je 0x14028569a
cmp r10, 4
jne 0x14028564f
mov cl, byte [rax]
mov edx, ecx
and edx, 0xfffffffb
cmp dword [r9], 0
je 0x140285684
or ecx, 4
mov edx, ecx
mov byte [rax], dl
xor edx, edx
xor eax, eax
mov dword [rbx], eax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
add rsp, 0x30
pop rbx
ret
cmp edx, 0xffff
jne 0x1402856ae
cmp r8d, 0x80
jne 0x1402856ae
or byte [rax], 8
mov dword [rsp + 0x20], r10d
call qword [sym.imp.WSOCK32.dll_setsockopt]
xor edx, edx
mov rcx, rbx
test eax, eax
setne dl
add rsp, 0x30
pop rbx
jmp fcn.140285ad0

Function at 0x1402856d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, r8
mov rsi, r9
cmp rcx, 0xffffffffffffffff
jne 0x1402856f5
mov edx, 0x2719
mov rcx, r9
or ebx, 0xffffffff
call fcn.1402c6200
jmp 0x140285720
mov rax, qword [r8]
lea r8, [rsp + 0x2c]
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WSOCK32.dll_getsockname]
xor edx, edx
mov rcx, rsi
mov ebx, eax
movsxd rax, dword [rsp + 0x2c]
test ebx, ebx
mov qword [rdi], rax
setne dl
call fcn.140285ad0
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x140285730
Capabilities:
Get socket status

Disassembly:
push rsi
sub rsp, 0x460
mov eax, edx
mov rsi, r8
cmp rcx, 0xffffffffffffffff
jne 0x140285755
mov edx, 0x2719
mov rcx, r8
call fcn.1402c60b0
or eax, 0xffffffff
jmp 0x1402857c9
mov qword [rsp + 0x58], rcx
xor edx, edx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x260], rcx
mov dword [rsp + 0x258], 1
test eax, eax
js 0x140285798
mov r8d, 0x3e8
cdq
idiv r8d
imul edx, edx, 0x3e8
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], edx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
inc ecx
lea r8, [rsp + 0x50]
xor edx, edx
lea r9, [rsp + 0x258]
call qword [sym.imp.WSOCK32.dll_select]
mov rcx, rsi
mov edx, eax
mov dword [rsp + 0x3c], eax
shr edx, 0x1f
call fcn.140285ad0
mov eax, dword [rsp + 0x3c]
add rsp, 0x460
pop rsi
ret
Function at 0x1402857e0
Capabilities:
Connect socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rbx, r9
cmp rcx, 0xffffffffffffffff
jne 0x140285803
mov edx, 0x2719
mov rcx, r9
call fcn.1402c60b0
jmp 0x140285818
call qword [sym.imp.WSOCK32.dll_connect]
xor edx, edx
mov rcx, rbx
test eax, eax
setne dl
call fcn.140285ad0
lea rdi, [rsp + 0x30]
mov edx, 0x2734
mov rcx, rdi
call fcn.1402c5870
mov rdx, rdi
mov rcx, rbx
call fcn.1402c7480
test al, al
je 0x14028585e
lea rbp, [rsp + 0x48]
mov edx, 0x2733
mov rcx, rbp
call fcn.1402c5870
mov rdx, rbp
mov rcx, rbx
call fcn.1402c7480
test al, al
jne 0x1402858ed
or edx, 0xffffffff
mov r8, rbx
mov rcx, rsi
call fcn.140285730
test eax, eax
js 0x1402858ed
xor eax, eax
mov dword [rsp + 0x30], eax
cmp rsi, 0xffffffffffffffff
jne 0x14028588b
mov edx, 0x2719
mov rcx, rbx
call fcn.1402c60b0
jmp 0x1402858ed
lea rbp, [rsp + 0x48]
mov rcx, rsi
mov r9, rdi
mov edx, 0xffff
mov r8d, 0x1007
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WSOCK32.dll_getsockopt]
xor edx, edx
mov rcx, rbx
test eax, eax
mov esi, eax
setne dl
call fcn.140285ad0
inc esi
je 0x1402858ed
mov edx, dword [rsp + 0x30]
lea r8, [0x1404280e0]
mov rcx, rbp
call fcn.1402c4f90
mov rax, qword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x48]
mov qword [rbx + 0x10], rax
movups xmmword [rbx], xmm0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140285900
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov r14, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
mov qword [rsp + 0xf0], rcx
inc rcx
mov rdi, r9
mov esi, edx
mov qword [rsp + 0x100], r8
je 0x140285958
lea rax, [rsp + 0x6c]
mov r15, qword [sym.imp.WS2_32.dll_WSARecvFrom]
lea rbp, [rsp + 0x88]
mov qword [rsp + 0x58], rax
jmp 0x1402859d3
mov edx, 0x2719
mov rcx, rbx
call fcn.1402c6140
jmp 0x140285ab7
cmp eax, 0x4d2
jne 0x140285a68
mov edx, 0x274d
mov rcx, rbx
call fcn.1402c6140
test r13d, r13d
je 0x140285a7a
test sil, 1
jne 0x140285ab7
mov edx, 0x2733
mov rcx, r12
call fcn.1402c5930
mov rdx, r12
mov rcx, rbx
call fcn.1402c7400
test al, al
je 0x140285a97
mov rcx, qword [rsp + 0xf0]
or r8d, 0xffffffff
xor edx, edx
mov r9, rbx
call fcn.140287860
test eax, eax
js 0x140285ab7
xor r8d, r8d
xor ecx, ecx
lea r12, [rsp + 0x70]
mov r9, qword [rsp + 0x58]
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x6c], ecx
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xf0]
mov dword [rsp + 0x70], eax
mov rax, qword [r14]
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x38], r8
mov r8d, edi
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call r15
mov edx, 1
mov rcx, rbx
mov r13d, eax
call fcn.140285ad0
movsxd rax, dword [rsp + 0x88]
mov rcx, rbx
mov qword [r14], rax
call fcn.1402ee400
mov edx, 0x2746
cmp eax, 0x40
jne 0x14028596a
jmp 0x14028597a
cmp eax, 0xea
je 0x140285a7a
cmp eax, 0x2738
jne 0x140285982
xor eax, eax
xor edx, edx
mov dword [rbx], eax
movsxd rax, dword [rsp + 0x6c]
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
test eax, eax
js 0x14028598b
jmp 0x140285ab9
mov edx, 0x4d5
mov rcx, rbp
call fcn.1402c5930
mov rdx, rbp
mov rcx, rbx
call fcn.1402c7400
test al, al
jne 0x1402859b5
xor eax, eax
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140285cb0
Capabilities:
Set socket configuration

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov r12, qword [rsp + 0xb0]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rbx, r9
mov rcx, qword [rsp + 0xc0]
call fcn.1402ee400
cmp eax, 0x40
jne 0x140285cf2
mov rcx, qword [rsp + 0xc0]
mov edx, 0x2745
call fcn.1402c63b0
mov rcx, qword [rsp + 0xc0]
call fcn.1402ee430
test al, al
jne 0x140285dfc
test rbx, rbx
je 0x140285d9d
test r12, r12
je 0x140285d9d
xor eax, eax
xor edx, edx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x4c]
mov r9d, esi
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], edx
xor edx, edx
mov qword [rsp + 0x58], rcx
mov rcx, rdi
mov dword [rsp + 0x4c], r8d
mov r8d, esi
call sub.WSOCK32.dll_GetAcceptExSockaddrs
movsxd rax, dword [rsp + 0x4c]
cmp qword [r12], rax
jae 0x140285d8c
mov rcx, qword [rsp + 0xc0]
mov edx, 0x2726
call fcn.1402c63b0
jmp 0x140285d9d
mov rsi, qword [rsp + 0x58]
mov rdi, rbx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov qword [r12], rax
cmp qword [rsp + 0xb8], 0xffffffffffffffff
mov qword [rsp + 0x58], rbp
jne 0x140285dc1
mov rcx, qword [rsp + 0xc0]
mov edx, 0x2719
call fcn.1402c63b0
jmp 0x140285dfc
mov edx, 0xffff
lea r9, [rsp + 0x58]
mov rcx, qword [rsp + 0xb8]
mov dword [rsp + 0x20], 8
mov r8d, 0x700b
call qword [sym.imp.WSOCK32.dll_setsockopt]
xor edx, edx
mov rcx, qword [rsp + 0xc0]
test eax, eax
setne dl
call fcn.140285ad0
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140285e10
Capabilities:
Get socket status

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x470
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rcx
mov rsi, rcx
mov rbx, rdx
mov qword [rsp + 0x40], r8
xor edx, edx
lea r9, [rsp + 0x268]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x270], rcx
lea ecx, [rcx + 1]
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x268], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.dll_select]
mov edx, eax
xor eax, eax
test edx, edx
je 0x140285f0f
xor ecx, ecx
mov dword [rsp + 0x3c], ecx
cmp rsi, 0xffffffffffffffff
jne 0x140285e91
mov edx, 0x2719
mov rcx, rbx
call fcn.1402c61d0
jmp 0x140285ed1
lea rdi, [rsp + 0x48]
mov rcx, rsi
mov edx, 0xffff
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x3c]
mov r8d, 0x1007
call qword [sym.imp.WSOCK32.dll_getsockopt]
xor edx, edx
mov rcx, rbx
test eax, eax
mov esi, eax
setne dl
call fcn.140285ad0
test esi, esi
je 0x140285ed5
mov al, 1
jmp 0x140285f0f
mov edx, dword [rsp + 0x3c]
test edx, edx
je 0x140285eff
lea r8, [0x1404280e0]
mov rcx, rdi
call fcn.1402c51d0
movups xmm0, xmmword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
jmp 0x140285ed1
xor edx, edx
xor eax, eax
mov dword [rbx], eax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
jmp 0x140285ed1
add rsp, 0x470
pop rbx
pop rsi
pop rdi
ret
Function at 0x140285fc0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [rsp + 0xa0]
mov rdi, rcx
mov rcx, qword [rdx + 8]
mov rbx, r8
mov rsi, r9
call fcn.1402f42a0
test eax, eax
jne 0x140285ff5
mov edx, 0x3e3
mov rcx, rbp
call fcn.1402c6260
jmp 0x140286050
test r8, r8
je 0x140286002
cmp byte [r8], 0
jne 0x140286002
xor ebx, ebx
test rsi, rsi
je 0x14028600e
cmp byte [rsi], 0
jne 0x14028600e
xor esi, esi
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov r9, qword [rsp + 0x98]
mov rdx, rsi
mov rcx, rbx
mov r8, qword [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
lea rcx, [rsp + 0x20]
mov edx, eax
call fcn.140286120
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbp], xmm0
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
movups xmm1, xmmword [rbp]
mov qword [rdi + 0x10], rax
mov rax, rdi
movups xmmword [rdi], xmm1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret

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

Disassembly:
push rsi
push rbx
sub rsp, 0x58
xor r11d, r11d
xor r10d, r10d
mov rbx, qword [rsp + 0x90]
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x48], r10d
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x4c], r9d
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edx, 1
mov rcx, rbx
mov esi, eax
call fcn.140285ad0
mov rcx, rbx
call fcn.1402ee400
mov edx, 0x2746
cmp eax, 0x40
je 0x1402862fa
cmp eax, 0x4d2
jne 0x140286304
mov edx, 0x274d
mov rcx, rbx
call fcn.1402c61d0
jmp 0x140286326
cmp eax, 0x2738
je 0x140286312
cmp eax, 0xea
jne 0x140286326
xor eax, eax
xor edx, edx
mov dword [rbx], eax
mov eax, dword [rsp + 0x48]
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
jmp 0x14028632d
test esi, esi
je 0x140286312
or eax, 0xffffffff
add rsp, 0x58
pop rbx
pop rsi
ret

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

Disassembly:
push rsi
push rbx
sub rsp, 0x58
xor r11d, r11d
xor r10d, r10d
mov rbx, qword [rsp + 0x90]
mov dword [rsp + 0x4c], r10d
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], r9d
lea r9, [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_WSASend]
mov edx, 1
mov rcx, rbx
mov esi, eax
call fcn.140285ad0
mov rcx, rbx
call fcn.1402ee400
mov edx, 0x2746
cmp eax, 0x40
je 0x1402863a0
cmp eax, 0x4d2
jne 0x1402863a8
mov edx, 0x274d
mov rcx, rbx
call fcn.1402c6050
or eax, 0xffffffff
test esi, esi
jne 0x1402863c1
xor edx, edx
xor eax, eax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
mov dword [rbx], eax
mov eax, dword [rsp + 0x4c]
add rsp, 0x58
pop rbx
pop rsi
ret
Function at 0x1402863d0
Capabilities:
Set socket configuration

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rbx, rcx
mov rdi, rdx
mov rsi, r9
cmp rcx, 0xffffffffffffffff
je 0x1402864dc
test r8b, r8b
je 0x140286445
mov al, byte [rdx]
test al, 8
je 0x140286445
xor edx, edx
xor ecx, ecx
or eax, 8
mov r8d, pe_nt_image_headers64
mov dword [rsp + 0x40], edx
lea r9, [rsp + 0x40]
mov dword [rsp + 0x58], edx
mov edx, 0xffff
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rcx
mov rcx, rbx
mov byte [rdi], al
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.dll_setsockopt]
xor edx, edx
lea rcx, [rsp + 0x58]
test eax, eax
setne dl
call fcn.140285ad0
mov rcx, rbx
mov r12, qword [sym.imp.WSOCK32.dll_closesocket]
call r12
xor edx, edx
mov rcx, rsi
test eax, eax
mov ebp, eax
setne dl
call fcn.140285ad0
test ebp, ebp
je 0x1402864dc
lea rbp, [rsp + 0x58]
mov edx, 0x2733
mov rcx, rbp
call fcn.1402c57b0
mov rdx, rbp
mov rcx, rsi
call fcn.1402c7400
test al, al
je 0x1402864bb
xor eax, eax
lea r8, [rsp + 0x3c]
mov edx, 0x8004667e
mov rcx, rbx
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
and byte [rdi], 0xfc
mov rcx, rbx
call r12
xor edx, edx
mov rcx, rsi
test eax, eax
setne dl
call fcn.140285ad0
jmp 0x1402864dc
lea rbp, [rsp + 0x40]
mov edx, 0x4d5
mov rcx, rbp
call fcn.1402c57b0
mov rdx, rbp
mov rcx, rsi
call fcn.1402c7400
test al, al
jne 0x140286488
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140286850
Capabilities:
Set socket configuration

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbx, rcx
mov rdi, rdx
mov rsi, r9
cmp rcx, 0xffffffffffffffff
je 0x140286958
test r8b, r8b
je 0x1402868c1
test byte [rdx], 8
je 0x1402868c1
lea rax, [rsp + 0x68]
xor edx, edx
xor ecx, ecx
mov r9d, pe_nt_image_headers64
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov r8d, 0xffff
mov qword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x68], edx
mov rdx, rdi
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
mov rcx, rbx
call fcn.1402850d0
mov rcx, rbx
mov r12, qword [sym.imp.WSOCK32.dll_closesocket]
call r12
xor edx, edx
mov rcx, rsi
test eax, eax
mov ebp, eax
setne dl
call fcn.140285ad0
test ebp, ebp
je 0x140286958
lea rbp, [rsp + 0x68]
mov edx, 0x2733
mov rcx, rbp
call fcn.1402c59b0
mov rdx, rbp
mov rcx, rsi
call fcn.1402c7400
test al, al
je 0x140286937
xor eax, eax
lea r8, [rsp + 0x4c]
mov edx, 0x8004667e
mov rcx, rbx
mov dword [rsp + 0x4c], eax
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
and byte [rdi], 0xfc
mov rcx, rbx
call r12
xor edx, edx
mov rcx, rsi
test eax, eax
setne dl
call fcn.140285ad0
jmp 0x140286958
lea rbp, [rsp + 0x50]
mov edx, 0x4d5
mov rcx, rbp
call fcn.1402c59b0
mov rdx, rbp
mov rcx, rsi
call fcn.1402c7400
test al, al
jne 0x140286904
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret