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

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov qword [rsp + 0x30], rcx
mov rsi, qword [rcx + 0x10]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14004622d
dec ecx
jmp 0x140046237
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
mov edx, 1
call sub.KERNEL32.dll_TlsSetValue
mov rdi, qword [rsp + 0x30]
cmp qword [rdi], 0
je 0x140046264
mov rax, qword [rdi + 8]
test rax, rax
je 0x140046264
lock dec qword [rax]
jne 0x140046264
mov rcx, qword [rdi + 8]
call dbg.drop_slow<std::sync::mpmc::context::Inner>
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140046282
dec ecx
jmp 0x14004628c
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
nop
add rsp, 0xa8
pop rdi
pop rsi
ret

Function at 0x140046380
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov qword [rsp + 0x30], rcx
mov rsi, qword [rcx + 0x18]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14004639d
dec ecx
jmp 0x1400463a7
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
mov edx, 1
call sub.KERNEL32.dll_TlsSetValue
mov rdi, qword [rsp + 0x30]
cmp qword [rdi], 0
je 0x1400463d4
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400463d4
lock dec qword [rax]
jne 0x1400463d4
mov rcx, qword [rdi + 0x10]
call dbg.drop_slow<std::thread::Inner>
mov edx, 0x20
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400463f2
dec ecx
jmp 0x1400463fc
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
nop
add rsp, 0xa8
pop rdi
pop rsi
ret

Function at 0x1400464f0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14004650a
dec ecx
jmp 0x140046514
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
mov edx, 1
call sub.KERNEL32.dll_TlsSetValue
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14004653c
dec ecx
jmp 0x140046546
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
xor edx, edx
add rsp, 0x98
pop rdi
pop rsi
jmp sub.KERNEL32.dll_TlsSetValue
Function at 0x140046fc0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x140046ff5
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140047005
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x140048860
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor r12d, r12d
mov r15d, 0xffffffff
xor r13d, r13d
xor ebx, ebx
cmp r8, 0x201
jae 0x1400488e0
jmp 0x1400488cf
jae 0x140048984
cmp r8, 0x201
jae 0x1400488e0
lea rdi, [rsp + 0x68]
mov esi, 0x200
mov rbp, r8
jmp 0x140048926
sub r8, rbx
sub r13, rbx
cmp r13, r8
jae 0x140048907
lea rcx, [rsp + 0x30]
mov rdx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h3ffee1938298280a
mov r12, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp r12, r15
mov ebx, 0xffffffff
cmovb rbx, r12
mov qword [rsp + 0x40], rbx
mov r13, r12
mov rdi, qword [rsp + 0x20]
mov rsi, rbx
mov rbp, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, rdi
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov r14d, eax
test eax, eax
jne 0x14004894b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400489e2
mov r8d, r14d
cmp rbp, r8
jne 0x1400488c0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140048a02
add rbp, rbp
cmp rbp, r15
cmovae rbp, r15
mov r8, rbp
cmp r8, 0x201
jb 0x1400488cf
jmp 0x1400488e0
cmp rsi, r8
jb 0x140048a1c
lea rcx, [rsp + 0x48]
mov rdx, rdi
call dbg.from_wide
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r12, r12
je 0x1400489cb
add r12, r12
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, r12
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x28]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test r12, r12
jne 0x1400489b5
jmp 0x1400489cb
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x140048a31
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call dbg.slice_end_index_len_fail
ud2
Function at 0x140048a70
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x140048a88
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h600cd89747de4836]
mov qword [rsp + 0x38], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindowsos.rs
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x140049470
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], r9
lea r14, [rsp + 0x28]
mov rcx, r14
call sym.std::sys::windows::to_u16s::inner::h1c8d3276b38eccb1
mov rdi, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
test r15, r15
je 0x14004954d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
mov rdx, rbx
mov r8, rsi
call sym.std::sys::windows::to_u16s::inner::h1c8d3276b38eccb1
mov rbx, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
test r12, r12
je 0x140049569
mov rcx, r15
mov rdx, r12
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x140049612
xor esi, esi
test rbx, rbx
je 0x14004952d
add rbx, rbx
mov r8d, 2
mov rcx, r12
mov rdx, rbx
call sym.__rust_dealloc
test rdi, rdi
je 0x140049553
add rdi, rdi
mov r8d, 2
mov rcx, r15
mov rdx, rdi
call sym.__rust_dealloc
test rsi, rsi
je 0x140049558
jmp 0x14004958a
mov rbx, rdi
mov rsi, rbx
test rsi, rsi
jne 0x14004958a
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
test rdi, rdi
je 0x140049550
add rdi, rdi
mov r8d, 2
mov rcx, r15
mov rdx, rdi
call sym.__rust_dealloc
mov rsi, rbx
test rsi, rsi
je 0x140049558
mov qword [rsp + 0x20], rsi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [sym.__std::path::Display_as_core::fmt::Debug_::fmt::hd253292194479daa]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h600cd89747de4836]
mov qword [rsp + 0x50], rax
lea rax, [0x1400ee8d0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 3
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 3
lea rdx, [0x1400ee900]
lea rcx, [rsp + 0x58]
call dbg.panic_fmt
ud2
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rbx, rbx
jne 0x140049519
jmp 0x14004952d
Function at 0x140049670
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], r8
lea rcx, [rsp + 0x40]
call sym.std::sys::windows::to_u16s::inner::h1c8d3276b38eccb1
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400496dd
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x1400496c2
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x1400496e0
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x1400496e0
mov rsi, rdi
test rsi, rsi
jne 0x1400496f0
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
lea rax, [sym.__std::path::Display_as_core::fmt::Debug_::fmt::hd253292194479daa]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x80], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h600cd89747de4836]
mov qword [rsp + 0x88], rax
lea rax, str.failed_to_remove_environment_variable__
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 2
lea rdx, [0x1400ee960]
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x14004adf0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x20], xmm6
mov rsi, r8
mov r14, rcx
test r8, r8
je 0x14004ae63
setns al
js 0x14004afa8
mov r15, rdx
movzx ebx, al
mov rcx, rsi
mov rdx, rbx
call sym.__rust_alloc
test rax, rax
je 0x14004afaf
mov rdi, rax
mov rbx, rax
mov rcx, rdi
mov rdx, r15
mov r8, rsi
call sym.memcpy
mov rcx, rdi
cmp rsi, 8
jb 0x14004af5c
cmp rsi, 0x20
jae 0x14004ae6d
xor eax, eax
jmp 0x14004aef6
mov ebx, 1
jmp 0x14004af7f
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movdqa xmm0, xmmword [0x1400ec850]
movdqa xmm1, xmmword [0x1400ec860]
movdqa xmm2, xmmword [0x1400ec870]
nop
movdqu xmm3, xmmword [rbx + rcx]
movdqu xmm4, xmmword [rbx + rcx + 0x10]
movdqa xmm5, xmm3
paddb xmm5, xmm0
movdqa xmm6, xmm4
paddb xmm6, xmm0
movdqa xmm7, xmm5
pminub xmm7, xmm1
pcmpeqb xmm7, xmm5
pand xmm7, xmm2
movdqa xmm5, xmm6
pminub xmm5, xmm1
pcmpeqb xmm5, xmm6
pand xmm5, xmm2
pxor xmm7, xmm3
pxor xmm5, xmm4
movdqu xmmword [rbx + rcx], xmm7
movdqu xmmword [rbx + rcx + 0x10], xmm5
add rcx, 0x20
cmp rax, rcx
jne 0x14004ae90
cmp rax, rsi
je 0x14004af7f
test sil, 0x18
je 0x14004af56
mov rdx, rsi
and rdx, 0xfffffffffffffff8
lea rcx, [rdi + rdx]
movdqa xmm0, xmmword [0x1400ec880]
movdqa xmm1, xmmword [0x1400ec890]
movdqa xmm2, xmmword [0x1400ec8a0]
nop dword [rax]
movq xmm3, qword [rbx + rax]
movdqa xmm4, xmm3
paddb xmm4, xmm0
movdqa xmm5, xmm4
pmaxub xmm5, xmm1
pcmpeqb xmm5, xmm4
pandn xmm5, xmm2
pxor xmm5, xmm3
movq qword [rbx + rax], xmm5
add rax, 8
cmp rdx, rax
jne 0x14004af20
cmp rdx, rsi
jne 0x14004af5c
jmp 0x14004af7f
add rax, rdi
mov rcx, rax
add rdi, rsi
nop
movzx eax, byte [rcx]
lea edx, [rax - 0x61]
cmp dl, 0x1a
setb dl
shl dl, 5
xor dl, al
mov byte [rcx], dl
lea rax, [rcx + 1]
mov rcx, rax
cmp rax, rdi
jne 0x14004af60
mov qword [r14], rsi
mov qword [r14 + 8], rbx
mov qword [r14 + 0x10], rsi
mov byte [r14 + 0x18], 0
mov rax, r14
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call dbg.capacity_overflow
ud2
mov rcx, rsi
mov rdx, rbx
call dbg.handle_alloc_error
ud2

Function at 0x14004c670
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
cmp byte [rcx], 0
je 0x14004c68e
mov rcx, rdx
mov rdx, r8
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp dbg.create_dir_all
lea rcx, [rsp + 0x28]
call dbg.maybe_verbatim
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14004c6be
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x14004c6c3
xor ebx, ebx
test rsi, rsi
jne 0x14004c6d7
jmp 0x14004c6eb
mov rbx, rsi
jmp 0x14004c6eb
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14004c6eb
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400576d0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14005773f
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14005773f
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14005773f
imul edx, edx, 0xf4240
sub r8d, edx
mov rdx, rax
inc rdx
sete r10b
test r8d, r8d
setne r8b
cmove rdx, rax
and r8b, r10b
jne 0x14005773f
mov r9d, 0xffffffff
cmp rdx, r9
cmovb r9, rdx
test r9, r9
je 0x14005777f
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14005776d
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x140057790
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x1400577ff
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x1400577ff
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x1400577ff
imul edx, edx, 0xf4240
sub r8d, edx
mov rdx, rax
inc rdx
sete r10b
test r8d, r8d
setne r8b
cmove rdx, rax
and r8b, r10b
jne 0x1400577ff
mov r9d, 0xffffffff
cmp rdx, r9
cmovb r9, rdx
test r9, r9
je 0x14005783f
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14005782d
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400579f1
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140057a18
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140057a05
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140057a18
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x140057a30
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
xor esi, esi
xor eax, eax
cmp r8d, 0x3b9aca00
setne al
cmove edx, esi
mov word [rsp + 0x28], ax
mov word [rsp + 0x2a], dx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x28]
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140057a84
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x140057b10
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140057b47
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rdx, rax
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x140057c32
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140057c43
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140057c56
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140057c56
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x140057cb1
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140057cc7
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x140057d21
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140057d48
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140057d35
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140057d48
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x140057d60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rdx, rax
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x140057dc5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140057dd6
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140057de9
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140057de9
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x140057e3c
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140057e52
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x140057eb4
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140057eca
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x140058120
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
xor edx, edx
mov r8d, 4
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x14005815c
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x1400581e0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0x29
mov r8d, 0x1b
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140058217
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140058310
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x140058339
xor eax, eax
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
Function at 0x140058580
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x20
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400585b7
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140058640
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
xor edx, edx
mov r8d, 0xb
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x14005867f
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x140058700
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
xor edx, edx
mov r8d, 0xa
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x14005873c
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x1400587c0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0x29
mov r8d, 0xb
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400587f7
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140058880
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xc
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x1400588c9
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x1400588e0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx]
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
mov edx, 0x29
mov r8d, 0xc
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14005891d
xor eax, eax
add rsp, 0x48
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x48
ret

Function at 0x140058930
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xd
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140058979
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret