joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000de20
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003c350
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
mov dword fs:[0], ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], edi
push eax
call fcn.100380b0
add esp, 4
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
cmp ecx, 0x80000000
jne 0x1000de93
mov edi, dword [ebp - 0x40]
mov ebx, eax
mov edx, eax
shrd ebx, edi, 8
shr edi, 8
jmp 0x1000df2a
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x48]
mov edx, esi
push edi
call fcn.100380b0
add esp, 4
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
cmp esi, 0x80000000
jne 0x1000dee6
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov edx, ebx
shrd ebx, edi, 8
shr edi, 8
test ecx, ecx
je 0x1000df2a
add ecx, ecx
push 2
push ecx
push eax
mov esi, edx
call sym.kso.dll___rust_dealloc
mov edx, esi
add esp, 0xc
jmp 0x1000df2a
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1000df40
mov dl, 4
test esi, esi
je 0x1000df0c
add esi, esi
push 2
push esi
push ebx
mov esi, edx
call sym.kso.dll___rust_dealloc
mov edx, esi
add esp, 0xc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000df27
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
mov esi, edx
call sym.kso.dll___rust_dealloc
mov edx, esi
add esp, 0xc
mov ebx, dword [ebp - 0x28]
cmp dl, 4
jne 0x1000df59
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl eax, 0x18
xor edx, edx
shr edi, 8
mov dword [ebp - 0x28], eax
test esi, esi
jne 0x1000defa
jmp 0x1000df0c
shld edi, ebx, 8
shl ebx, 8
movzx eax, dl
mov dword [ebp - 0x70], 0x1007f900
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x10], 1
or eax, ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x44], sym.kso.dll___std::path::Display_as_core::fmt::Debug_::fmt::hef71e90172f725c9
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], sym.kso.dll___std::path::Display_as_core::fmt::Debug_::fmt::hef71e90172f725c9
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x34], sym.kso.dll___std::io::error::Error_as_core::fmt::Display_::fmt::hc311fd6605f5ab1e
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 3
lea eax, [ebp - 0x70]
push 0x1007f918
push eax
call sym.kso.dll_core::panicking::panic_fmt::h502dc0a95427940e
add esp, 8
ud2
Function at 0x1000e050
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003c360
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push eax
call fcn.100380b0
add esp, 4
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
cmp esi, 0x80000000
jne 0x1000e0b4
mov edi, dword [ebp - 0x34]
mov eax, ebx
mov ecx, ebx
shrd eax, edi, 8
shr edi, 8
jmp 0x1000e0dd
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1000e0f3
mov cl, 4
test esi, esi
je 0x1000e0dd
add esi, esi
push 2
push esi
push ebx
mov esi, eax
mov ebx, ecx
call sym.kso.dll___rust_dealloc
mov ecx, ebx
mov eax, esi
add esp, 0xc
cmp cl, 4
jne 0x1000e109
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl eax, 0x18
xor ecx, ecx
shr edi, 8
test esi, esi
jne 0x1000e0c7
jmp 0x1000e0dd
shld edi, eax, 8
shl eax, 8
movzx ecx, cl
mov dword [ebp - 0x3c], 0x1007f950
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
or ecx, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], sym.kso.dll___std::path::Display_as_core::fmt::Debug_::fmt::hef71e90172f725c9
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x48], sym.kso.dll___std::io::error::Error_as_core::fmt::Display_::fmt::hc311fd6605f5ab1e
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 2
push 0x1007f960
lea eax, [ebp - 0x3c]
push eax
call sym.kso.dll_core::panicking::panic_fmt::h502dc0a95427940e
add esp, 8
ud2
Function at 0x1000f970
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x1000fab3
js 0x1000faee
movzx eax, byte [sym.kso.dll___rust_no_alloc_shim_is_unstable]
push 1
push ebx
call sym.kso.dll___rust_alloc
add esp, 8
test eax, eax
je 0x1000faf3
mov esi, eax
mov edi, eax
push ebx
push dword [esp + 0x18]
push esi
call fcn.1006f790
add esp, 0xc
cmp ebx, 8
mov ecx, esi
jb 0x1000fabe
xor eax, eax
cmp ebx, 0x20
jb 0x1000fa52
movdqa xmm0, xmmword [0x1007e550]
movdqa xmm1, xmmword [0x1007e500]
movdqa xmm2, xmmword [0x1007e510]
mov eax, ebx
xor ecx, ecx
and eax, 0xffffffe0
nop word cs:[eax + eax]
movdqu xmm4, xmmword [edi + ecx]
movdqu xmm3, xmmword [edi + ecx + 0x10]
movdqa xmm5, xmm4
movdqa xmm6, xmm3
paddb xmm5, xmm0
paddb xmm6, xmm0
movdqa xmm7, xmm5
pminub xmm7, xmm1
pcmpeqb xmm7, xmm5
movdqa xmm5, xmm6
pminub xmm5, xmm1
pand xmm7, xmm2
pcmpeqb xmm5, xmm6
pxor xmm7, xmm4
pand xmm5, xmm2
movdqu xmmword [edi + ecx], xmm7
pxor xmm5, xmm3
movdqu xmmword [edi + ecx + 0x10], xmm5
add ecx, 0x20
cmp eax, ecx
jne 0x1000f9f0
cmp eax, ebx
je 0x1000fada
test bl, 0x18
je 0x1000faba
movdqa xmm0, xmmword [0x1007e560]
movdqa xmm1, xmmword [0x1007e530]
movdqa xmm2, xmmword [0x1007e540]
mov edx, ebx
and edx, 0xfffffff8
lea ecx, [esi + edx]
nop word cs:[eax + eax]
nop dword [eax]
movq xmm3, qword [edi + eax]
movdqa xmm4, xmm3
paddb xmm4, xmm0
movdqa xmm5, xmm4
pmaxub xmm5, xmm1
pcmpeqb xmm5, xmm4
pandn xmm5, xmm2
pxor xmm5, xmm3
movq qword [edi + eax], xmm5
add eax, 8
cmp edx, eax
jne 0x1000fa80
cmp edx, ebx
jne 0x1000fabe
jmp 0x1000fada
mov edi, 1
jmp 0x1000fada
add eax, esi
mov ecx, eax
add esi, ebx
movzx eax, byte [ecx]
mov edx, eax
add dl, 0x9f
cmp dl, 0x1a
setb dl
shl dl, 5
xor dl, al
mov byte [ecx], dl
inc ecx
cmp ecx, esi
jne 0x1000fac0
mov eax, dword [esp + 0x10]
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov byte [eax + 0xc], 0
pop esi
pop edi
pop ebx
ret
call sym.kso.dll_alloc::raw_vec::capacity_overflow::hb4380fcd4c99d9cf
push ebx
push 1
call sym.kso.dll_alloc::alloc::handle_alloc_error::h0f7631ec9b341a7f
int3
Function at 0x100185e0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
xorps xmm0, xmm0
mov esi, ecx
lea edi, [esp + 0x20]
mov eax, esp
mov dword [esp], 0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], eax
movups xmmword [esp + 0x30], xmm0
movups xmmword [esp + 0x20], xmm0
lea eax, [esp + 0xc]
push 0x1002fde0
push eax
push 0x20
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1001865a
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [esp], 0
je 0x10018630
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x10018678
mov ecx, ebx
call fcn.100379e0
cmp al, 0xb
jne 0x1001866d
mov ecx, dword [esp + 0x54]
xor ebp, ebp
mov ebx, dword [ecx + 8]
jmp 0x10018690
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebx
call fcn.100379e0
cmp al, 0xb
je 0x1001864f
mov dword [esi], 0
mov dword [esi + 4], ebx
jmp 0x100186ad
mov ebp, dword [esp + 8]
cmp ebp, 0x21
jae 0x100186c9
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
sub eax, ebx
cmp eax, ebp
jb 0x100186b5
mov eax, dword [ecx + 4]
add eax, ebx
push ebp
push edi
push eax
mov edi, ecx
call fcn.1006f790
add esp, 0xc
add ebx, ebp
mov dword [esi + 4], ebp
mov byte [esi], 4
mov dword [edi + 8], ebx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
push ebp
call fcn.1007c050
mov ecx, dword [esp + 0x58]
add esp, 4
mov ebx, dword [ecx + 8]
jmp 0x10018690
push 0x10080220
push 0x20
push ebp
call sym.kso.dll_core::slice::index::slice_end_index_len_fail::h3099cda8f6e1d372
int3

Function at 0x1001a7c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
xor ebp, ebp
mov ecx, dword [eax]
cmp edi, 0x3b9aca00
je 0x1001a81e
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebx, 0x3e8
mov dword [esp], ecx
mul ebx
mov ebp, eax
mov eax, esi
seto cl
mul ebx
mov ebx, edx
mov esi, eax
add ebx, ebp
mov ebp, 0xffffffff
setb al
or al, cl
jne 0x1001a81b
mov ecx, 0x431bde83
mov eax, edi
mul ecx
shr edx, 0x12
add esi, edx
adc ebx, 0
jae 0x1001a866
mov ecx, dword [esp]
mov dword [esp + 4], ebp
lea eax, [esp + 4]
push 4
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [esp + 0x1c]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001a85a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
imul eax, edx, 0xf4240
xor ecx, ecx
sub edi, eax
setne cl
add esi, ecx
mov ecx, dword [esp]
adc ebx, 0
jb 0x1001a81e
xor ebp, ebp
neg ebx
sbb ebp, ebp
or ebp, esi
jne 0x1001a81e
mov esi, dword [esp + 0x1c]
mov byte [esi], 2
mov dword [esi + 4], 0x10081b40
jmp 0x1001a85c
Function at 0x1001a8a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
xor ebp, ebp
mov ecx, dword [eax]
cmp edi, 0x3b9aca00
je 0x1001a8fe
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebx, 0x3e8
mov dword [esp], ecx
mul ebx
mov ebp, eax
mov eax, esi
seto cl
mul ebx
mov ebx, edx
mov esi, eax
add ebx, ebp
mov ebp, 0xffffffff
setb al
or al, cl
jne 0x1001a8fb
mov ecx, 0x431bde83
mov eax, edi
mul ecx
shr edx, 0x12
add esi, edx
adc ebx, 0
jae 0x1001a946
mov ecx, dword [esp]
mov dword [esp + 4], ebp
lea eax, [esp + 4]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [esp + 0x1c]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001a93a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
imul eax, edx, 0xf4240
xor ecx, ecx
sub edi, eax
setne cl
add esi, ecx
mov ecx, dword [esp]
adc ebx, 0
jb 0x1001a8fe
xor ebp, ebp
neg ebx
sbb ebp, ebp
or ebp, esi
jne 0x1001a8fe
mov esi, dword [esp + 0x1c]
mov byte [esi], 2
mov dword [esi + 4], 0x10081b40
jmp 0x1001a93c

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

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, closesocket
cmp eax, 0x7fffffff
cmovb edx, eax
push 2
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1001ab20
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x1001ab2a
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
ret
mov byte [esi], 0
mov dword [esi + 4], ecx
mov eax, esi
pop esi
ret

Function at 0x1001ab40
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
xor edx, edx
cmp dword [esp + 0x20], 0x3b9aca00
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
setne bl
je 0x1001ab62
mov ecx, dword [esp + 0x18]
mov dl, bl
mov word [esp], dx
mov word [esp + 2], cx
mov ecx, esp
push 4
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001ab9f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
pop ebx
ret

Function at 0x1001ac40
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push 4
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001ac80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
ret
Function at 0x1001acf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
jb 0x1001ad5e
cmp ecx, 0x7fffffff
mov edx, closesocket
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmovb edx, ecx
mov ecx, dword [edi]
add ecx, ebx
push 0
push edx
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1001ad40
add eax, ebx
mov dword [edi + 8], eax
mov ecx, dword [edi + 0xc]
cmp ecx, eax
cmova eax, ecx
mov dword [edi + 0xc], eax
jmp 0x1001ad4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1001ad56
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x1001ad50
push 0x1007e78c
push eax
push ebx
call sym.kso.dll_core::slice::index::slice_start_index_len_fail::h148b5e412c56b9cc
int3

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

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp], 0
mov dword [esp + 4], 0
lea edi, [esp + 4]
mov ebx, esp
mov ecx, dword [ecx]
push 0
push 0
push edi
push ebx
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x1001adc6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1001add1
mov dword [esi + 4], 0
jmp 0x1001adcc
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1001add7
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
ret

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

Disassembly:
push edi
push esi
push eax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], 0
mov edi, esp
mov ecx, dword [ecx]
push 0
push 0
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1001ae1e
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1001ae2d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
ret

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

Disassembly:
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov edx, closesocket
mov ecx, dword [ecx]
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1001ae82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x1001ae8c
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
ret
mov byte [esi], 0
mov dword [esi + 4], ecx
mov eax, esi
pop esi
ret
Function at 0x1001aea0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
jb 0x1001af10
mov eax, dword [esp + 0x14]
cmp ecx, 0x7fffffff
mov edx, closesocket
mov esi, dword [esp + 0x10]
cmovb edx, ecx
mov ecx, dword [edi]
mov eax, dword [eax]
add ecx, ebx
push 0
push edx
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1001aef2
add eax, ebx
mov dword [edi + 8], eax
mov ecx, dword [edi + 0xc]
cmp ecx, eax
cmova eax, ecx
mov dword [edi + 0xc], eax
jmp 0x1001aeff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1001af08
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x1001af02
push 0x1007e78c
push eax
push ebx
call sym.kso.dll_core::slice::index::slice_start_index_len_fail::h148b5e412c56b9cc
int3

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

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea edi, [esp + 4]
mov ebx, esp
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [esp], 0
mov dword [esp + 4], 0
push 0
push 0
push edi
push ebx
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x1001af78
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1001af83
mov dword [esi + 4], 0
jmp 0x1001af7e
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1001af89
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
ret

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

Disassembly:
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov edx, closesocket
mov ecx, dword [ecx]
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1001afda
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret

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

Disassembly:
push edi
push esi
push eax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, esp
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [esp], 0
push 0
push 0
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1001b040
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1001b04f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
ret
Function at 0x1001b350
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov ecx, dword [ecx]
mov dword [esp], eax
mov eax, esp
push 4
push eax
push 4
push 0
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001b38f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
ret

Function at 0x1001b410
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push 4
push ecx
push 0x1b
push 0x29
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001b450
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
ret

Function at 0x1001b540
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1001b572
mov byte [esi], 4
mov eax, esi
add esp, 4
pop esi
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
ret

Function at 0x1001b7e0
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push 4
push ecx
push 0x20
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001b823
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
ret

Function at 0x1001b8a0
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push 4
push ecx
push 0xb
push 0
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001b8e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
ret