joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014070
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 0x140014131
mov rsi, rax
xor r14d, r14d
mov rbx, rax
jmp 0x1400140b0
mov rcx, rbx
call fcn.14027150c
lea rbx, [rbx + rax*2]
add rbx, 2
movzx eax, word [rbx]
cmp eax, 0x3d
je 0x1400140a0
test eax, eax
je 0x1400140c1
inc r14
jmp 0x1400140a0
mov qword [rdi], r14
lea rcx, [r14*8]
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov rdi, rax
test r14, r14
jle 0x140014126
xor r15d, r15d
mov rbx, rsi
jmp 0x140014105
mov rcx, rbx
call fcn.14027150c
lea rbx, [rbx + rax*2]
add rbx, 2
cmp r15, r14
jge 0x140014126
cmp word [rbx], 0x3d
je 0x1400140f0
mov rcx, rbx
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee270
mov qword [rdi + r15*8], rax
inc r15
jmp 0x1400140f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014133
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140016250
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 0x14001627d
add qword [rsi + 0x40], rax
mov rdi, qword [rsi + 0x48]
sub rdi, rax
mov qword [rsi + 0x48], rdi
jmp 0x140016281
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 0x1400162d0
mov rbx, qword [rsi + 0x38]
mov edx, 0x4000
sub rdx, rdi
jmp 0x140016319
mov ecx, reloc.WS2_32.dll_recv
call fcn.14025cfd8
mov rbx, rax
mov edi, 0x4000
mov ecx, 0x4000
call fcn.14025cd80
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 0x140016352
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 0x1400162a0
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 0x140016380
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [0x1403a3550]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [0x1403a3548]
test rax, rax
je 0x1400163bd
nop word cs:[rax + rax]
cmp dword [rax], esi
je 0x1400163e2
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x1400163b0
mov rcx, rdi
call fcn.14009cf50
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 0x1400163ee
jmp 0x140016402
mov rsi, qword [rax + 8]
mov rcx, rdi
call fcn.14009cf50
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 0x140016870
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1403a1f58]
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 0x140016934
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 0x1400169c0
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 0x1400169a8
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 0x1400169c0
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 0x1400169d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateFile_failed__d_n
jmp 0x1400169cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateNamedPipe_failed__d_n
mov edx, eax
call fcn.1400011f0
xor esi, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14025cd50
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x14001ef20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, word [rcx]
cmp ax, word [rdx]
jne 0x14001efc7
cmp eax, 0x17
je 0x14001efd3
cmp eax, 2
je 0x14001efcb
cmp eax, 1
jne 0x14001f031
movzx r9d, byte [rcx + 2]
cmp r9b, byte [rdx + 2]
jne 0x14001efc7
xor esi, esi
xor r8d, r8d
nop dword [rax + rax]
mov al, 1
test r9b, r9b
je 0x14001f027
movzx r9d, byte [rcx + r8 + 3]
cmp r9b, byte [rdx + r8 + 3]
jne 0x14001f017
test r9b, r9b
je 0x14001f020
movzx r9d, byte [rcx + r8 + 4]
cmp r9b, byte [rdx + r8 + 4]
jne 0x14001f017
test r9b, r9b
je 0x14001f020
cmp r8, 0x69
setae sil
je 0x14001f02c
movzx r9d, byte [rcx + r8 + 5]
lea rax, [r8 + 3]
cmp r9b, byte [rdx + r8 + 5]
mov r8, rax
je 0x14001ef70
jmp 0x14001f019
xor esi, esi
jmp 0x14001effe
mov eax, dword [rcx + 4]
cmp eax, dword [rdx + 4]
jmp 0x14001effa
movdqu xmm0, xmmword [rcx + 8]
movdqu xmm1, xmmword [rdx + 8]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
xor r8d, r8d
cmp eax, 0xffff
setne r8b
mov eax, dword [rcx + 0x18]
xor eax, dword [rdx + 0x18]
or eax, r8d
sete sil
and sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14025cd50
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor esi, esi
xor eax, eax
or sil, al
jmp 0x14001effe
xor esi, esi
or sil, al
jmp 0x14001effe
or sil, al
jmp 0x14001effe
or sil, al
jmp 0x14001effe
lea rax, str..._.._runtime_bin_socket_base.cc
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x64
lea rdx, str.unreachable_code
lea rcx, [rsp + 0x28]
call fcn.140023f00
int3

Function at 0x14001f7c0
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rbx
sub rsp, 0x1c8
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rsi, qword [0x1403a35b0]
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov bl, 1
cmp byte [0x1403a35b8], 0
jne 0x14001f828
lea rdx, [rsp + 0x28]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete bl
je 0x14001f821
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Unable_to_initialize_Winsock:__d_n
mov edx, eax
call fcn.1400011f0
jmp 0x14001f828
mov byte [0x1403a35b8], 1
mov rcx, rsi
call fcn.14009cf50
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14025cd50
mov eax, ebx
add rsp, 0x1c8
pop rbx
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, qword [0x1403a1f58]
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 0x14001f97d
lea rcx, [rsp + 0x28]
call fcn.14001f1f0
mov rsi, rax
jmp 0x14001f97f
xor esi, esi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14025cd50
mov rax, rsi
add rsp, 0xb0
pop rsi
ret
Function at 0x14001fb70
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 [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov r14, qword [0x1403a35b0]
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
cmp byte [0x1403a35b8], 0
jne 0x14001fbe4
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001fbdd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Unable_to_initialize_Winsock:__d_n
mov edx, eax
call fcn.1400011f0
jmp 0x14001fbe4
mov byte [0x1403a35b8], 1
mov rcx, r14
call fcn.14009cf50
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov ecx, ebx
call fcn.14001f150
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 0x14001fc8c
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 0x14001fc8c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x18
call fcn.14025cfd8
mov rdi, rax
mov rcx, rax
call fcn.1400ee0d0
mov qword [rsi], rdi
xor esi, esi
jmp 0x14001fd79
mov r12, qword [rsp + 0x28]
xor edi, edi
test r12, r12
je 0x14001fcbb
mov rax, r12
jmp 0x14001fcac
inc rdi
mov rax, qword [rax + 0x28]
test rax, rax
je 0x14001fcbb
mov ecx, dword [rax + 4]
cmp ecx, 0x17
je 0x14001fca0
cmp ecx, 2
je 0x14001fca0
jmp 0x14001fca3
mov ecx, reloc.WS2_32.dll_recv
call fcn.14025cfd8
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.14025cd80
mov qword [rsi + 8], rax
test r12, r12
je 0x14001fd70
mov rdi, rax
xor r13d, r13d
jmp 0x14001fd30
mov r15, rbx
add r15, 0x48
mov rcx, r14
xor edx, edx
call fcn.14001ee80
mov rcx, r15
mov rdx, r14
mov r8, rax
call fcn.14025fe70
mov qword [rdi + r13*8], rbx
inc r13
mov r12, qword [r12 + 0x28]
test r12, r12
je 0x14001fd6b
mov eax, dword [r12 + 4]
cmp eax, 0x17
je 0x14001fd3f
cmp eax, 2
jne 0x14001fd26
mov ecx, 0xc8
call fcn.14025cfd8
mov rbx, rax
mov r14, qword [r12 + 0x20]
mov rcx, r14
mov rdx, rax
mov r8d, 0x41
call fcn.14001f700
test al, al
je 0x14001fd00
mov byte [rbx], 0
jmp 0x14001fd00
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.14025cd50
mov rax, rsi
add rsp, 0x1d0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001fda0
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.14001ee80
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 0x14001fe12
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x18
call fcn.14025cfd8
mov rbx, rax
mov rcx, rax
call fcn.1400ee0d0
mov qword [rsi], rbx
test edi, edi
sete al
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400202e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403a1f58]
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.14025cd50
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1400203c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403a1f58]
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, ntohs
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14025cd50
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1400204b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403a1f58]
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.14025cd50
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140020580
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403a1f58]
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.14025cd50
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1400205e0
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 0x140020670
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 [0x1403a1f58]
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.14001ee80
mov rcx, r14
mov rdx, rsi
mov r8, rax
call fcn.14025fe70
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.14025cd50
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140020710
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 [0x1403a1f58]
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.14001ee80
mov rcx, r14
mov rdx, rsi
mov r8, rax
call fcn.14025fe70
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.14025cd50
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140020910
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ecx, word [rcx]
mov edx, 1
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x1400209fe
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 0x140020a1c
mov ecx, 0xe8
call fcn.14025cfd8
mov rsi, rax
mov rcx, rax
mov rdx, rdi
call fcn.14000e020
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, [0x14029ed80]
mov qword [rsi], rax
lea rax, [0x14029ede0]
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.14000f8d0
mov dword [rsi + 0x50], 3
jmp 0x140020a05
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14025cd50
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], 0x39
lea rdx, str.Failed_setting_SO_LINGER_on_socket
lea rcx, [rsp + 0x28]
call fcn.140023f00
int3
Function at 0x140020ca0
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 rbx, rcx
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx ecx, word [rcx]
mov edx, 2
mov r8d, shutdown
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, 0xffffffffffffffff
cmp rax, 0xffffffffffffffff
je 0x140020e48
mov rsi, rax
test r15b, r15b
je 0x140020d26
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 0x140020e2f
test r14b, r14b
je 0x140020d44
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.1400011f0
mov dword [rsp + 0x2c], ebp
xor eax, eax
cmp word [rbx], 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 0x140020d9b
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 rdi, 0xffffffffffffffff
jmp 0x140020e48
mov rcx, rbx
xor edx, edx
call fcn.14001ee80
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140020d76
mov ecx, 0xc8
call fcn.14025cfd8
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14000e020
mov qword [rdi + 0xa0], rsi
mov qword [rdi + 0xa8], 0
mov dword [rdi + 0xb0], reloc.WS2_32.dll_recv
mov qword [rdi + 0xb8], 0
mov byte [rdi + 0xc0], 1
lea rax, [0x1402a0310]
mov qword [rdi], rax
lea rax, [0x1402a0370]
mov qword [rdi + 0x10], rax
mov dword [rdi + 0x50], 5
call fcn.14000de90
mov r8, qword [rdi]
mov rcx, rdi
mov rdx, rax
call qword [r8 + 0x38]
jmp 0x140020e48
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14025cd50
mov rax, rdi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140020e70
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx ecx, word [rcx]
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x140021057
mov rsi, rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14002103e
cmp word [r14], 0x17
jne 0x140020f15
movzx eax, bl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov rcx, rsi
mov edx, 0x29
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, r14
xor edx, edx
call fcn.14001ee80
mov rcx, rsi
mov rdx, r14
mov r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14002103e
mov ecx, 0x100
call fcn.14025cfd8
mov r15, rax
mov rcx, rax
mov rdx, rsi
call fcn.14000e020
mov qword [r15 + 0xa0], rsi
lea rax, method.icu_68::LanguageBreakEngine.virtual_0
mov qword [r15], rax
lea rax, method.icu_68::LanguageBreakEngine.virtual_0
mov qword [r15 + 0x10], rax
mov qword [r15 + 0xa8], 0
lea rcx, [r15 + 0xb0]
lea rdx, [method.icu_68::SimpleFilteredSentenceBreakIterator.virtual_16]
mov r8d, 4
call fcn.1400240e0
mov byte [r15 + 0xc8], 1
lea rax, [0x1402a03c0]
mov qword [r15], rax
lea rax, [0x1402a0420]
mov qword [r15 + 0x10], rax
xorps xmm0, xmm0
movups xmmword [r15 + 0xd0], xmm0
mov dword [r15 + 0xe0], 0
movups xmmword [r15 + 0xe8], xmm0
mov dword [r15 + 0xf8], 0
mov dword [r15 + 0x50], 4
mov rcx, r14
call fcn.14001f1f0
test rax, rax
jne 0x14002107a
mov rcx, r15
call fcn.14001f930
cmp rax, 0xffff
jne 0x14002107a
mov rcx, r14
mov rdx, rdi
mov r8d, ebx
call fcn.140020e70
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
lock dec qword [r15 + 8]
jne 0x140021034
mov rax, qword [r15]
mov rcx, r15
mov edx, 1
call qword [rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14002105e
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 rdi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14025cd50
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test rdi, rdi
mov edx, 0x7fffffff
cmovg edx, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x140021098
mov rdi, r15
jmp 0x14002105e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
lock dec qword [r15 + 8]
jne 0x14002104f
mov rax, qword [r15]
mov rcx, r15
mov edx, 1
call qword [rax]
jmp 0x14002104f
Function at 0x140022020
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rdx
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x37]
lea r9, [rsp + 0x30]
mov rcx, rax
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002207b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400220a7
cmp dword [rsp + 0x30], 1
movzx eax, byte [rsp + 0x37]
mov ecx, 0xffffffff
cmove ecx, eax
mov dword [rsi], ecx
mov sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14025cd50
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor esi, esi
jmp 0x140022092

Function at 0x1400234c0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, rcx
movzx ecx, word [rcx]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
test rax, rax
js 0x14002351c
mov rcx, rdi
xor edx, edx
call fcn.14001ee80
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov rax, 0xffffffffffffffff
cmove rsi, rax
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140023530
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x24]
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
mov eax, dword [rsp + 0x24]
mov rsi, 0xffffffffffffffff
cmovne rsi, rax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14025cd50
mov rax, rsi
add rsp, 0x30
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x24], 0x80
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400235c6
lea rcx, [rsp + 0x28]
call fcn.14001f1f0
mov rsi, rax
jmp 0x1400235c8
xor esi, esi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14025cd50
mov rax, rsi
add rsp, 0xb0
pop rsi
ret

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

Disassembly:
sub rsp, 0x28
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cdqe
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cdqe
add rsp, 0x28
ret