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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x248]
sub rsp, 0x330
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403284b0]
xor rax, rsp
mov qword [rbp + 0x228], rax
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x80], rax
mov rax, qword [rdx + 0x18]
mov qword [rbp - 0x78], rax
add rdx, 0x20
lea rcx, [rbp - 0x70]
call fcn.14005c260
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0xc8], xmm0
lea rdx, [rbx + 0x10]
lea rcx, [rbp + 0xd8]
call fcn.14005e410
nop
lea rsi, [rdi + 8]
mov rdi, qword [rdi]
mov rbx, qword [rsi]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140061242
cmp qword [rax], rbx
je 0x140061393
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140061230
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x80]
mov ecx, 0x2d8
call fcn.140022380
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.140061a50]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
lea rcx, [rbx + 0x38]
lea rdx, [rbp - 0x80]
call fcn.14005e410
movups xmm2, xmmword [rbp + 0xc8]
movups xmmword [rcx + 0x148], xmm2
add rcx, 0x158
lea rdx, [rbp + 0xd8]
call fcn.14005e410
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140025180
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
test al, al
je 0x14006133f
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rdi + 0x28]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8, [rsp + 0x68]
mov rdx, rbx
call fcn.140061a50
nop
lea rcx, [rsp + 0x20]
call fcn.140024f40
nop
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp + 0x1f0]
call fcn.1400355e0
lea rcx, [rbp + 0x118]
call fcn.1400355e0
lea rcx, [rbp + 0x98]
call fcn.1400355e0
lea rcx, [rbp - 0x40]
call fcn.1400355e0
mov rcx, qword [rbp + 0x228]
xor rcx, rsp
call fcn.1402225a0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp qword [rax + 8], 0
je 0x140061242
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140061c70
nop
jmp 0x14006133f
Function at 0x140061c70
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
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rdi, [rcx + 0x158]
lea rsi, [rcx + 0x150]
mov rbp, qword [rcx + 0x148]
mov rbx, qword [rsi]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140061cd2
nop
cmp qword [rax], rbx
je 0x140061db6
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140061cc0
mov qword [rsp + 0x60], rdi
mov rdx, rdi
mov ecx, 0x180
call fcn.140022380
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.140062090]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
lea rcx, [rbx + 0x38]
mov rdx, rdi
call fcn.14005e410
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140025180
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], r14
test al, al
je 0x140061da8
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x48]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x28], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea r8, [rsp + 0x38]
mov rdx, rbx
call fcn.140062090
nop
lea rcx, [rsp + 0x28]
call fcn.140024f40
nop
mov rdx, qword [rsp + 0x58]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp qword [rax + 8], 0
je 0x140061cd2
mov rdx, rdi
mov rcx, rdi
call fcn.140057b40
nop
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140061de0
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
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa8
mov qword [rsp + 0x58], 0xfffffffffffffffe
lea rsi, [rcx + 0x20]
lea r14, [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
mov rbx, qword [r14]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140061e39
cmp qword [rax], rbx
je 0x140061f56
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140061e27
mov qword [rsp + 0x60], rsi
mov rdx, rsi
mov ecx, 0x48
call fcn.140022380
mov rdi, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x140061fc0]
mov qword [rdi + 0x28], rax
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
mov dword [rdi + 0x30], r15d
movups xmm0, xmmword [rsi]
movups xmmword [rdi + 0x38], xmm0
mov r8, rdi
mov rdx, r14
mov rcx, rbp
call fcn.140025180
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], r15
test al, al
je 0x140061f46
mov rax, qword [r14]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp + 0x28]
mov qword [rsp + 0x48], rbx
mov rax, qword [r14]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rdi + 0x38]
movups xmmword [rsp + 0x20], xmm0
lea rax, [rsp + 0x20]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], r15
lea r8, [rsp + 0x20]
lea edx, [r15 + 0x48]
mov rcx, rdi
call fcn.1400223d0
mov qword [rsp + 0x80], r15
test rbx, rbx
je 0x140061f29
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.1400621c0
nop
lea rcx, [rsp + 0x48]
call fcn.140024f40
nop
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp qword [rax + 8], 0
je 0x140061e39
mov rdx, rsi
mov rcx, rsi
call fcn.1400621c0
nop
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400622b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x1400622d8
mov qword [rdi], 0
mov rax, rdi
add rsp, 0x20
pop rdi
ret
cmp qword [rsp + 0x40], 0
jle 0x1400622c8
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x38]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14006230c
inc ebx
cmp ebx, 3
ja 0x140062342
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400622f6
mov rbx, qword [rsp + 0x30]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x38]
xorps xmm0, xmm0
mulsd xmm1, qword [0x1402d5c28]
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov qword [rdi], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov qword [rdi], 0
add rsp, 0x20
pop rdi
ret
Function at 0x1400701a0
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 0x1400701ec
lea rax, [0x1402c41e8]
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 0x140070246
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, [0x1402c41e8]
setne byte [rsp + 0x24]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
test edi, edi
jne 0x140070244
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 0x140070260
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, [0x1402c41e8]
mov edx, dword [rdx]
mov rbx, rcx
sub edx, 0x79
je 0x1400702b8
sub edx, 0x450
je 0x1400702af
sub edx, 6
je 0x1400702a6
cmp edx, 1
jne 0x1400702ce
mov dword [rbp - 0x10], 0x2751
jmp 0x1400702bf
mov dword [rbp - 0x10], 0x2743
jmp 0x1400702bf
mov dword [rbp - 0x10], 0x274d
jmp 0x1400702bf
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 0x14007033e
cmp rbx, 0xffffffffffffffff
jne 0x1400702e6
mov dword [rbp - 0x10], 0x2719
mov byte [rbp - 0xc], 1
jmp 0x140070333
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 0x14007033e
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 0x140070420
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, [0x1402c41e8]
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 0x1400704c0
mov dword [rsp + 0x40], 0x2746
jmp 0x1400704d0
cmp ecx, 0x4d2
jne 0x1400704e4
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 0x1400704f4
cmp ecx, 0x2738
je 0x14007050a
cmp ecx, 0xea
je 0x14007050a
test ebx, ebx
je 0x14007050a
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 0x140070540
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 [0x1403284b0]
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 0x1400705b1
lea rdi, [0x1402c41e8]
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 0x14007073c
mov qword [rsp + 0x2a8], r14
mov qword [rsp + 0x2a0], r15
movzx r15d, r13b
and r15b, 0x10
cmp byte [rbp + 0x208], 0
je 0x1400705ff
test r15b, r15b
je 0x1400705ff
xor r14d, r14d
lea rdi, [0x1402c41e8]
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 0x14007072c
mov r8, r9
mov qword [rsp + 0x2e8], rsi
mov rdx, rax
mov qword [rsp + 0x20], rbx
call fcn.140070420
test eax, eax
jg 0x140070722
lea rdi, [0x1402c41e8]
xor r14d, r14d
movabs rsi, 0x8fafd21e25c5e09b
test r15b, r15b
je 0x140070640
test eax, eax
je 0x14007075a
test r13b, 1
jne 0x1400707a8
mov ecx, dword [rbx]
cmp ecx, 0x2733
jne 0x14007065e
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rsi
je 0x140070678
cmp ecx, 0x4d5
jne 0x1400707a8
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rsi
jne 0x1400707a8
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 0x1400706e2
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 0x140070703
jle 0x1400706fb
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], r14b
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test esi, esi
js 0x1400707a8
mov r8, qword [rsp + 0x50]
mov rcx, r12
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
call fcn.140070420
test eax, eax
jle 0x140070629
cdqe
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.1402225a0
add rsp, 0x2b0
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
call fcn.140022300
mov rdi, rax
mov dword [rsp + 0x40], 2
mov rax, qword [rax + 8]
cmp rax, rsi
je 0x140070795
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x140070795
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x30]
lea rcx, [method.boost::asio::error::detail::misc_category.virtual_48]
cmp rax, rcx
jne 0x1400707af
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 0x140070724
mov edx, 2
mov rcx, rdi
call rax
jmp 0x140070797
Function at 0x140070950
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, [0x1402c41e8]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rbx, 0xffffffffffffffff
jne 0x1400709ca
mov rax, rbx
jmp 0x140070a12
cmp esi, 0x17
jne 0x1400709f4
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 0x140070a30
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 0x140070b7b
cmp dword [rax + 8], 0
je 0x140070b7b
test r8, r8
je 0x140070a72
cmp byte [r8], 0
jne 0x140070a74
xor edi, edi
test rbx, rbx
je 0x140070a7f
cmp byte [r9], 0
jne 0x140070a81
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 0x140070b0a
je 0x140070b01
test eax, eax
je 0x140070ae2
sub edx, 8
je 0x140070ad6
sub edx, 0x271e
je 0x140070aca
cmp edx, 0x16
jne 0x140070b24
mov dword [rbp - 0x10], 0x273c
jmp 0x140070b66
mov dword [rbp - 0x10], 0x2726
jmp 0x140070b66
mov dword [rbp - 0x10], reloc.WS2_32.dll_ntohl
jmp 0x140070b66
lea rax, [0x1402c41e8]
mov dword [rbp - 0x10], 0
mov qword [rbp - 8], rax
mov byte [rbp - 0xc], 0
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140070b95
mov dword [rbp - 0x10], 0x273f
jmp 0x140070b66
sub edx, 0x277d
je 0x140070b5f
sub edx, 0x37c
je 0x140070b56
sub edx, 1
je 0x140070b4d
cmp edx, 1
je 0x140070b44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x10], eax
test eax, eax
lea rax, [0x1402c41e8]
setne byte [rbp - 0xc]
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140070b95
mov dword [rbp - 0x10], 0x2afb
jmp 0x140070b66
mov dword [rbp - 0x10], 0x2afa
jmp 0x140070b66
mov dword [rbp - 0x10], 0x2af9
jmp 0x140070b66
mov dword [rbp - 0x10], 0x277d
lea rax, [0x1402c41e8]
mov byte [rbp - 0xc], 1
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x140070b95
lea rax, [0x1402c41e8]
mov dword [rbp - 0x10], 0x3e3
mov qword [rbp - 8], rax
mov byte [rbp - 0xc], 1
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 0x140071640
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 0x14007167f
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.140071260
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.140070c10
add rsp, 0x28
ret
Function at 0x140072180
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 0x1400721ba
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.14006fd60
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x1400721e2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.14006fd60
xor eax, eax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov r8d, r10d
mov eax, dword [rsp + 0x70]
mov rdx, r11
mov qword [rsp + 0x60], 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 + 0x58]
je 0x140072261
cmp eax, 0x3e5
je 0x140072261
mov r9d, dword [rsp + 0x50]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.14006fd60
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.14006fcc0
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x88], 0
je 0x1400722bd
mov rdx, qword [rsp + 0x90]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x50
pop rbx
jmp fcn.14006fd60
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x1400722e5
mov rdx, qword [rsp + 0x90]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x50
pop rbx
jmp fcn.14006fd60
mov eax, dword [rsp + 0x80]
lea r9, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], edx
mov r8d, r10d
mov qword [rsp + 0x68], rsi
mov rdx, r11
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x90]
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 0x140072341
mov eax, 0x2746
jmp 0x14007234e
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x68]
je 0x14007237d
cmp eax, 0x3e5
je 0x14007237d
mov r9d, dword [rsp + 0x60]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14006fd60
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14006fcc0
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret