joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e700
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rdi, [rcx + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_EnterCriticalSection
test byte [rbx + 0x9c], 1
jne 0x14000e76c
mov rax, qword [rbx + 0xa0]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x68]
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000e7a8
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
dec dword [rbx + 0xe0]
mov rcx, rsi
call fcn.14026b828
mov rcx, rdi
call fcn.1400ee3c0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140263300
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsi + 0x58]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x90
mov r9d, 0x90
call qword [rbx + 0xd8]
mov ecx, 0x80
call fcn.140263580
mov r12, rax
mov rdx, qword [rsp + 0x50]
movsxd r8, dword [rsp + 0x4c]
mov rcx, rax
call fcn.140265d10
mov ecx, 0xe8
call fcn.140263580
mov r15, rax
mov qword [rsp + 0x40], r12
mov rdx, qword [rsi + 0x20]
lea r8, [rsp + 0x40]
mov rcx, rax
call fcn.14000e890
mov byte [r15 + 0xd8], 1
lock inc qword [r15 + 8]
mov rcx, qword [r15 + 0x58]
mov rdx, r14
mov r8, r15
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [r15 + 0x60], rax
cmp qword [rbx + 0xe8], 0
je 0x14000e868
mov rax, qword [rbx + 0xf0]
mov qword [rax + 0xd0], r15
jmp 0x14000e86f
mov qword [rbx + 0xe8], r15
mov qword [rbx + 0xf0], r15
inc dword [rbx + 0xf8]
jmp 0x14000e776

Function at 0x14000f900
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
test rdx, rdx
je 0x14000f915
mov rcx, rdx
call fcn.14026b828
mov rcx, qword [rsi + 0xa0]
mov dword [rsp + 0x20], 0
mov edx, 0xffff
mov r8d, 0x7010
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_setsockopt]
test byte [rsi + 0x9c], 2
jne 0x14000f959
lea rcx, [rsi + 0x10]
mov rax, qword [rsi + 0x10]
call qword [rax + 0x40]
test al, 1
je 0x14000f959
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
test byte [rsi + 0x9c], 4
jne 0x14000f974
mov rax, qword [rsi + 0x10]
add rsi, 0x10
mov rcx, rsi
call qword [rax + 0x40]
test al, 2
jne 0x14000f97a
add rsp, 0x30
pop rsi
ret
mov rax, qword [rsi]
mov edx, 2
mov rcx, rsi
call qword [rax + 0x28]
mov rcx, rax
mov edx, 2
add rsp, 0x30
pop rsi
jmp fcn.1400e2470
Function at 0x140013270
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400132bd
mov esi, eax
cdqe
inc esi
lea rcx, [rax*2 + 2]
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov rdi, rax
mov ecx, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, rdi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400ee6a0
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1400132d0
Capabilities:
Set current directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rcx, rdx
call fcn.1400eb650
mov rsi, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rbx, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rax
mov r9d, 0xffffffff
call rbx
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.140023770
mov rdi, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14026b828
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400138f0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140263300
mov eax, esi
add rsp, 0x60
pop rsi
ret
Function at 0x140013c50
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14001f210
test al, al
je 0x140013c77
mov rcx, rdi
mov edx, esi
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
sete al
jmp 0x140013c79
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140013c80
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140013d31
mov rsi, rax
xor r14d, r14d
mov rbx, rax
jmp 0x140013cc3
inc r14
mov rcx, rbx
call fcn.1402765d4
lea rbx, [rbx + rax*2]
add rbx, 2
movzx eax, word [rbx]
cmp eax, 0x3d
je 0x140013cb3
test eax, eax
jne 0x140013cb0
mov qword [rdi], r14
lea rcx, [r14*8]
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov rdi, rax
test r14, r14
jle 0x140013d26
xor r15d, r15d
mov rbx, rsi
jmp 0x140013d05
mov rcx, rbx
call fcn.1402765d4
lea rbx, [rbx + rax*2]
add rbx, 2
cmp r15, r14
jge 0x140013d26
cmp word [rbx], 0x3d
je 0x140013cf0
mov rcx, rbx
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee6a0
mov qword [rdi + r15*8], rax
inc r15
jmp 0x140013cf0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013d33
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140015e60
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rsi, rcx
mov rax, qword [rcx + 8]
test rax, rax
je 0x140015e8d
add qword [rsi + 0x40], rax
mov rdi, qword [rsi + 0x48]
sub rdi, rax
mov qword [rsi + 0x48], rdi
jmp 0x140015e91
mov rdi, qword [rsi + 0x48]
lea r14, [rsi + 0x30]
mov byte [rsi + 0x50], 0
xorps xmm6, xmm6
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
nop word cs:[rax + rax]
movups xmmword [rsi], xmm6
mov qword [rsi + 0x10], 0
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x18], rax
test rdi, rdi
je 0x140015ee0
mov rbx, qword [rsi + 0x38]
mov edx, 0x4000
sub rdx, rdi
jmp 0x140015f29
mov ecx, reloc.WS2_32.dll_recv
call fcn.140263580
mov rbx, rax
mov edi, 0x4000
mov ecx, 0x4000
call fcn.140263328
mov qword [rbx], rax
mov qword [rbx + 8], 0
mov rax, qword [rsi + 0x38]
add rax, 8
cmp qword [rsi + 0x30], 0
cmove rax, r14
mov qword [rax], rbx
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x48], 0x4000
xor edx, edx
add rdx, qword [rbx]
mov byte [rsi + 0x50], 1
mov rcx, qword [rsi + 0x20]
mov qword [rsp + 0x20], rsi
mov r8d, edi
xor r9d, r9d
call r15
test eax, eax
je 0x140015f62
mov rax, qword [rsi + 8]
mov rdi, qword [rsi + 0x48]
add qword [rsi + 0x40], rax
sub rdi, rax
mov qword [rsi + 0x48], rdi
mov byte [rsi + 0x50], 0
jmp 0x140015eb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
sete al
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140015f90
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [0x14039d838]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [0x14039d830]
test rax, rax
je 0x140015fcd
nop word cs:[rax + rax]
cmp dword [rax], esi
je 0x140015ff2
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x140015fc0
mov rcx, rdi
call fcn.14009c470
xor edi, edi
mov ecx, 1
xor edx, edx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140015ffe
jmp 0x140016012
mov rsi, qword [rax + 8]
mov rcx, rdi
call fcn.14009c470
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne dil
mov eax, edi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140016480
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], 0
test r8d, r8d
je 0x140016544
mov ebx, r8d
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
mov rcx, rdi
mov edx, 0x40000001
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1400165d0
xor eax, eax
cmp ebx, 1
lea r9, [rsp + 0x40]
cmovne r9, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000100
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x40000000
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 8], rax
jmp 0x1400165b8
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
mov rcx, rdi
mov edx, 0x40000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400165d0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000080
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x40]
mov rcx, rdi
mov edx, 0x80000000
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi], rax
mov sil, 1
cmp rax, 0xffffffffffffffff
jne 0x1400165e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateFile_failed__d_n
jmp 0x1400165dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateNamedPipe_failed__d_n
mov edx, eax
call fcn.140001240
xor esi, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140263300
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001f210
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rbx
sub rsp, 0x1c8
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rsi, qword [0x14039d8c0]
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov bl, 1
cmp byte [0x14039d8c8], 0
jne 0x14001f278
lea rdx, [rsp + 0x28]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete bl
je 0x14001f271
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Unable_to_initialize_Winsock:__d_n
mov edx, eax
call fcn.140001240
jmp 0x14001f278
mov byte [0x14039d8c8], 1
mov rcx, rsi
call fcn.14009c470
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140263300
mov eax, ebx
add rsp, 0x1c8
pop rbx
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x24], 0x80
mov rcx, qword [rcx + 0xa0]
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14001f3cd
lea rcx, [rsp + 0x28]
call fcn.14001ec40
mov rsi, rax
jmp 0x14001f3cf
xor esi, esi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140263300
mov rax, rsi
add rsp, 0xb0
pop rsi
ret
Function at 0x14001f5c0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1d0
mov rsi, r8
mov ebx, edx
mov rdi, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov r14, qword [0x14039d8c0]
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
cmp byte [0x14039d8c8], 0
jne 0x14001f634
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001f62d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Unable_to_initialize_Winsock:__d_n
mov edx, eax
call fcn.140001240
jmp 0x14001f634
mov byte [0x14039d8c8], 1
mov rcx, r14
call fcn.14009c470
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov ecx, ebx
call fcn.14001eba0
cwde
mov dword [rsp + 0x34], eax
movabs rax, 0x600000001
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001f6dc
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001f6dc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x18
call fcn.140263580
mov rdi, rax
mov rcx, rax
call fcn.1400ee4e0
mov qword [rsi], rdi
xor esi, esi
jmp 0x14001f7c9
mov r12, qword [rsp + 0x28]
xor edi, edi
test r12, r12
je 0x14001f70b
mov rax, r12
jmp 0x14001f6fc
inc rdi
mov rax, qword [rax + 0x28]
test rax, rax
je 0x14001f70b
mov ecx, dword [rax + 4]
cmp ecx, 0x17
je 0x14001f6f0
cmp ecx, 2
je 0x14001f6f0
jmp 0x14001f6f3
mov ecx, reloc.WS2_32.dll_recv
call fcn.140263580
mov rsi, rax
mov qword [rax], rdi
mov rax, rdi
shr rax, 0x3d
shl rdi, 3
xor ebx, ebx
neg rax
mov ecx, 0
sbb rcx, rcx
or rcx, rdi
call fcn.140263328
mov qword [rsi + 8], rax
test r12, r12
je 0x14001f7c0
mov rdi, rax
xor r13d, r13d
jmp 0x14001f780
mov r15, rbx
add r15, 0x48
mov rcx, r14
xor edx, edx
call fcn.14001e940
mov rcx, r15
mov rdx, r14
mov r8, rax
call fcn.140265d10
mov qword [rdi + r13*8], rbx
inc r13
mov r12, qword [r12 + 0x28]
test r12, r12
je 0x14001f7bb
mov eax, dword [r12 + 4]
cmp eax, 0x17
je 0x14001f78f
cmp eax, 2
jne 0x14001f776
mov ecx, 0xc8
call fcn.140263580
mov rbx, rax
mov r14, qword [r12 + 0x20]
mov rcx, r14
mov rdx, rax
mov r8d, 0x41
call fcn.14001f150
test al, al
je 0x14001f750
mov byte [rbx], 0
jmp 0x14001f750
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140263300
mov rax, rsi
add rsp, 0x1d0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001f7f0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
xor edx, edx
call fcn.14001e940
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, eax
mov r8, rbx
mov r9d, edi
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov edi, eax
test eax, eax
je 0x14001f862
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x18
call fcn.140263580
mov rbx, rax
mov rcx, rax
call fcn.1400ee4e0
mov qword [rsi], rbx
test edi, edi
sete al
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14001fd30
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx + 0xa0]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140263300
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14001fe10
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, r8b
mov dword [rsp + 0x34], eax
xor eax, eax
test rdx, rdx
mov edx, 0x29
cmove edx, eax
mov rcx, qword [rcx + 0xa0]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, recv
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140263300
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14001ff00
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
xor eax, eax
test rdx, rdx
mov edx, 0x29
cmove edx, eax
mov rcx, qword [rcx + 0xa0]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0xa
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140263300
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14001ffd0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx + 0xa0]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x20
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140263300
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140020030
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov eax, dword [rsp + 0x50]
mov rcx, qword [rcx + 0xa0]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete al
add rsp, 0x28
ret

Function at 0x1400200c0
Capabilities:
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor eax, eax
cmp word [rdx], 2
mov ebx, 0x29
cmove ebx, eax
mov dword [rsp + 0x28], r9d
lea r14, [rsp + 0x30]
mov rcx, rdx
xor edx, edx
call fcn.14001e940
mov rcx, r14
mov rdx, rsi
mov r8, rax
call fcn.140265d10
mov rcx, qword [rdi + 0xa0]
mov dword [rsp + 0x20], 0x88
lea r9, [rsp + 0x28]
mov edx, ebx
mov r8d, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140263300
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140020160
Capabilities:
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor eax, eax
cmp word [rdx], 2
mov ebx, 0x29
cmove ebx, eax
mov dword [rsp + 0x28], r9d
lea r14, [rsp + 0x30]
mov rcx, rdx
xor edx, edx
call fcn.14001e940
mov rcx, r14
mov rdx, rsi
mov r8, rax
call fcn.140265d10
mov rcx, qword [rdi + 0xa0]
mov dword [rsp + 0x20], 0x88
lea r9, [rsp + 0x28]
mov edx, ebx
mov r8d, 0x2a
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140263300
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140020360
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ecx, cx
mov edx, 1
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x14002044e
mov rdi, rax
mov dword [rsp + 0x3c], 0xa0001
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14002046c
mov ecx, 0xe8
call fcn.140263580
mov rsi, rax
mov rcx, rax
mov rdx, rdi
call fcn.14000dd50
mov qword [rsi + 0xa0], rdi
mov qword [rsi + 0xa8], 0
mov dword [rsi + 0xb0], reloc.WS2_32.dll_recv
mov qword [rsi + 0xb8], 0
mov byte [rsi + 0xc0], 1
lea rax, [0x14029cce0]
mov qword [rsi], rax
lea rax, [0x14029cd40]
mov qword [rsi + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rsi + 0xc8], xmm0
mov word [rsi + 0xd8], 0
mov qword [rsi + 0xe0], 0
mov rcx, rsi
call fcn.14000f5c0
mov dword [rsi + 0x50], 3
jmp 0x140020455
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140263300
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rax, str..._.._runtime_bin_socket_win.cc
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], reloc.WS2_32.dll_gethostname
lea rdx, str.Failed_setting_SO_LINGER_on_socket
lea rcx, [rsp + 0x28]
call fcn.140023910
int3
Function at 0x1400206e0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebp, r9d
mov r14d, r8d
mov r15d, edx
mov rdi, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx ecx, word [rcx]
mov edx, 2
mov r8d, setsockopt
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, 0xffffffffffffffff
cmp rax, 0xffffffffffffffff
je 0x140020888
mov rsi, rax
test r15b, r15b
je 0x140020766
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14002086f
test r14b, r14b
je 0x140020784
lea rcx, str.Dart_Socket_ERROR:__s:_d:__reusePort__not_supported_for_Windows.
lea rdx, str..._.._runtime_bin_socket_win.cc
mov r8d, 0xc2
call fcn.140001240
mov dword [rsp + 0x2c], ebp
xor eax, eax
cmp word [rdi], 2
mov edx, 0x29
cmove edx, eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rsi
mov r8d, 0xa
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400207db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, 0xffffffffffffffff
jmp 0x140020888
mov rcx, rdi
xor edx, edx
call fcn.14001e940
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400207b6
mov ecx, 0xc8
call fcn.140263580
mov rbx, rax
mov rcx, rax
mov rdx, rsi
call fcn.14000dd50
mov qword [rbx + 0xa0], rsi
mov qword [rbx + 0xa8], 0
mov dword [rbx + 0xb0], reloc.WS2_32.dll_recv
mov qword [rbx + 0xb8], 0
mov byte [rbx + 0xc0], 1
lea rax, [0x14029e2c0]
mov qword [rbx], rax
lea rax, [0x14029e320]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x50], 5
call fcn.14000dbc0
mov r8, qword [rbx]
mov rcx, rbx
mov rdx, rax
call qword [r8 + gethostname]
jmp 0x140020888
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140263300
mov rax, rbx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret