joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000db60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
call 0x1000db74
pop eax
lea ecx, [edx + 0x20]
mov edi, edx
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x2c], ecx
jmp 0x1000db9d
push 0x20
push ebx
push dword [ebp - 0x2c]
push edi
lea eax, [ebp - 0x20]
push eax
call sym.flate2::zio::read::h58600f0a3ce76b2f
add esp, 0x14
cmp byte [ebp - 0x20], 4
jne 0x1000dbf0
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x1000dc79
mov eax, dword [edi + 0x6c]
cmp eax, dword [edi + 0x68]
je 0x1000dca8
push 0x10
push 0x1012854f
push 0x27
lea eax, [ebp - 0x14]
push eax
call sym.std::io::error::Error::new::hcee6dc8917941000
add esp, 0x10
movzx eax, byte [ebp - 0x14]
cmp al, 4
jne 0x1000dc00
jmp 0x1000dc74
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp al, 4
je 0x1000dc74
movzx eax, al
mov eax, dword [eax*4 + 0x1000dd44]
add eax, dword [ebp - 0x28]
jmp eax
mov esi, dword [ebp - 0x10]
jmp 0x1000dcab
cmp esi, 0x21
jae 0x1000dd0a
mov eax, dword [edi + 0x68]
mov ecx, esi
mov edx, ebx
not eax
nop dword [eax + eax]
movzx ebx, byte [edx]
inc edx
xor bl, al
shr eax, 8
movzx ebx, bl
xor eax, dword [ebx*4 + 0x101280f0]
dec ecx
jne 0x1000dc90
not eax
mov dword [edi + 0x68], eax
cmp esi, 0x21
jae 0x1000dcfd
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edi, dword [ecx + 8]
sub eax, edi
cmp eax, esi
jb 0x1000dcea
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
add eax, edi
push esi
lea ecx, [ebp - 0x4c]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x18]
add edi, esi
mov dword [ebx + 8], edi
mov dword [eax + 4], esi
mov byte [eax], 4
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h25cc18787b6fe88d
add esp, 0xc
mov edi, dword [edi + 8]
jmp 0x1000dcbe
push 0x10128e54
push 0x20
push esi
call sym.core::slice::index::slice_end_index_len_fail::hb7bcdcb5c84f7e98
push 0x10128560
push 0x20
push esi
call sym.core::slice::index::slice_end_index_len_fail::hb7bcdcb5c84f7e98
mov ecx, edi
mov edi, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x1000dd2f
push dword [ebx + 8]
push eax
push ecx
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push esi
call sym.___rust_dealloc
add esp, 0xc
push edi
call sym.__Unwind_Resume
nop
add byte [eax], al
add byte [ebx + 0x1c000000], bl
add byte [eax], al
add byte [eax + eax + 0x2e660000], ch
nop dword [eax + eax]
nop
Function at 0x1000ea90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
shl ecx, 3
nop word cs:[eax + eax]
nop
test ecx, ecx
je 0x1000eac5
mov esi, dword [eax]
add eax, 8
add ecx, 0xfffffff8
test esi, esi
je 0x1000eab0
mov ebx, dword [eax - 4]
jmp 0x1000eacc
mov ebx, 1
xor esi, esi
lea eax, [edi + 0x20]
lea ecx, [ebp - 0x14]
push esi
push ebx
push eax
push edi
push ecx
call sym.flate2::zio::read::h58600f0a3ce76b2f
add esp, 0x14
cmp byte [ebp - 0x14], 4
jne 0x1000eb1f
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x1000eb2d
cmp edx, esi
ja 0x1000eb64
add edi, 0x68
mov esi, edx
mov ecx, dword [edi]
not ecx
nop dword [eax]
movzx eax, byte [ebx]
inc ebx
xor al, cl
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101280f0]
dec edx
jne 0x1000eb00
mov eax, dword [ebp + 8]
not ecx
mov edx, esi
jmp 0x1000eb3b
movsd xmm0, qword [ebp - 0x14]
mov eax, dword [ebp + 8]
movsd qword [eax], xmm0
jmp 0x1000eb43
mov ecx, dword [edi + 0x6c]
cmp ecx, dword [edi + 0x68]
jne 0x1000eb4b
mov eax, dword [ebp + 8]
add edi, 0x68
mov dword [eax + 4], edx
mov dword [edi], ecx
mov byte [eax], 4
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10
push 0x1012854f
push 0x27
mov esi, dword [ebp + 8]
push esi
call sym.std::io::error::Error::new::hcee6dc8917941000
mov eax, esi
add esp, 0x10
jmp 0x1000eb43
push 0x10128560
push esi
push edx
call sym.core::slice::index::slice_end_index_len_fail::hb7bcdcb5c84f7e98
Function at 0x10034f60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
push eax
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10034f94
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x10034fa4
mov eax, dword [0x1012dc20]
mov ecx, dword [0x1012dc24]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x100363d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x428
mov esi, 0x200
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 2
cmp esi, 0x201
jae 0x10036430
jmp 0x1003641e
jbe 0x100364a0
cmp esi, 0x201
jae 0x10036430
mov dword [ebp - 0x20], 0x200
lea edi, [ebp - 0x434]
mov ebx, esi
jmp 0x1003645a
mov ebx, dword [ebp - 0x24]
sub esi, ebx
je 0x1003644e
mov edx, ebx
lea ecx, [ebp - 0x18]
push esi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h20e2001013f05adb
add esp, 4
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
push 0
call sub.KERNEL32.dll_SetLastError
push edi
push ebx
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov esi, eax
test eax, eax
jne 0x10036477
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x100364f0
cmp esi, ebx
jne 0x10036410
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1003650e
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x1003641e
jmp 0x10036430
mov eax, dword [ebp - 0x20]
cmp esi, eax
ja 0x10036524
lea eax, [ebp - 0x34]
push esi
push edi
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::hdc9efc66b333cddc
add esp, 0xc
movsd xmm0, qword [ebp - 0x34]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x2c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100364e2
add eax, eax
push 2
push eax
push dword [ebp - 0x14]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp + 8]
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 0x80000000
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x100364d2
jmp 0x100364e2
push 0x1012dd50
push 0x28
push str.internal_error:_entered_unreachable_code_f
call sym.core::panicking::panic::h2de0902fd6c3d9b1
add esp, 0xc
jmp 0x10036533
push 0x1012dd40
push eax
push esi
call sym.core::slice::index::slice_end_index_len_fail::hb7bcdcb5c84f7e98
add esp, 0xc
ud2

Function at 0x10036560
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x28
call sub.KERNEL32.dll_GetEnvironmentStringsW
test eax, eax
je 0x1003657a
mov edx, eax
add esp, 0x28
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], 0x1012d5f0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], sym.__LT_std..io..error..Error_u20_as_u20_core..fmt..Display_GT_::fmt::hb3a737c4f0103051
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x30]
push 0x1012d5f8
push eax
call sym.core::panicking::panic_fmt::h653fda680bf9012e
add esp, 8
ud2
Function at 0x100380b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100381f3
js 0x1003822e
mov eax, dword [0x10146090]
movzx eax, byte [eax]
push 1
push ebx
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10038237
mov esi, eax
mov edi, eax
push ebx
push dword [ebp + 0xc]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp ebx, 8
mov ecx, esi
jb 0x100381fe
xor eax, eax
cmp ebx, 0x20
jb 0x10038192
movdqa xmm0, xmmword [0x10129c40]
movdqa xmm1, xmmword [0x10129c50]
movdqa xmm2, xmmword [0x10129c60]
mov eax, ebx
xor ecx, ecx
and eax, 0x7fffffe0
nop word [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 0x10038130
cmp eax, ebx
je 0x1003821a
test bl, 0x18
je 0x100381fa
movdqa xmm0, xmmword [0x10129c70]
movdqa xmm1, xmmword [0x10129c80]
movdqa xmm2, xmmword [0x10129c90]
mov edx, ebx
and edx, 0x7ffffff8
lea ecx, [esi + edx]
nop word cs:[eax + eax]
nop
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 0x100381c0
cmp edx, ebx
jne 0x100381fe
jmp 0x1003821a
mov edi, 1
jmp 0x1003821a
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 0x10038200
mov eax, dword [ebp + 8]
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
pop ebp
ret
xor eax, eax
push ebx
push eax
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
mov eax, 1
push ebx
push eax
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x10041d30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov edi, dword [eax]
cmp ecx, 0x3b9aca00
je 0x10041d92
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0x10]
mov ebx, 0x3e8
mul ebx
mov esi, eax
mov eax, edi
seto byte [ebp - 0xd]
mul ebx
mov ebx, edx
mov edi, eax
add ebx, esi
mov esi, 0xffffffff
setb al
or al, byte [ebp - 0xd]
jne 0x10041d8f
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebx
adc eax, 0
jae 0x10041dd5
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
push 4
push eax
push 0x1006
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
mov esi, dword [ebp + 8]
mov cl, 4
cmp eax, 0xffffffff
jne 0x10041dc9
call sub.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, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
imul eax, edx, 0xf4240
sub ecx, eax
add edi, edx
adc ebx, 0
xor eax, eax
test ecx, ecx
mov edx, edi
setne al
add eax, edi
mov edi, dword [ebp - 0x14]
mov eax, ebx
adc eax, 0
jb 0x10041d92
xor eax, eax
test ecx, ecx
setne al
add edx, eax
adc ebx, 0
xor esi, esi
neg ebx
sbb esi, esi
or esi, edx
jne 0x10041d92
mov esi, dword [ebp + 8]
mov eax, dword [0x1012d478]
mov ecx, dword [0x1012d47c]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x10041dcb

Function at 0x10041e30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov edi, dword [eax]
cmp ecx, 0x3b9aca00
je 0x10041e92
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0x10]
mov ebx, 0x3e8
mul ebx
mov esi, eax
mov eax, edi
seto byte [ebp - 0xd]
mul ebx
mov ebx, edx
mov edi, eax
add ebx, esi
mov esi, 0xffffffff
setb al
or al, byte [ebp - 0xd]
jne 0x10041e8f
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebx
adc eax, 0
jae 0x10041ed5
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
push 4
push eax
push 0x1005
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
mov esi, dword [ebp + 8]
mov cl, 4
cmp eax, 0xffffffff
jne 0x10041ec9
call sub.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, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
imul eax, edx, 0xf4240
sub ecx, eax
add edi, edx
adc ebx, 0
xor eax, eax
test ecx, ecx
mov edx, edi
setne al
add eax, edi
mov edi, dword [ebp - 0x14]
mov eax, ebx
adc eax, 0
jb 0x10041e92
xor eax, eax
test ecx, ecx
setne al
add edx, eax
adc ebx, 0
xor esi, esi
neg ebx
sbb esi, esi
or esi, edx
jne 0x10041e92
mov esi, dword [ebp + 8]
mov eax, dword [0x1012d478]
mov ecx, dword [0x1012d47c]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x10041ecb
Function at 0x10042070
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb edx, eax
push 2
push edx
push dword [ebp + 0x10]
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
jne 0x100420ad
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x100420b8
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
mov dword [esi], 0
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100420d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
xor edx, edx
cmp dword [ebp + 0x18], 0x3b9aca00
mov esi, dword [ebp + 8]
mov eax, dword [eax]
setne bl
je 0x100420f1
mov ecx, dword [ebp + 0x10]
mov dl, bl
mov word [ebp - 0xc], dx
mov word [ebp - 0xa], cx
lea ecx, [ebp - 0xc]
push 4
push ecx
push pe_nt_image_headers32
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x1004212c
call sub.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
pop ebp
ret

Function at 0x100421c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push 4
push ecx
push 1
push 6
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x100421ff
call sub.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 ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x10]
mov ecx, 0x7fffffff
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
sub eax, ebx
cmp eax, 0x7fffffff
cmovb ecx, eax
mov eax, dword [edi]
add eax, ebx
push 0
push ecx
push eax
push dword [edx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x100422ba
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 0x100422c6
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100422d0
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x100422c9
Function at 0x100422e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea edi, [ebp - 0x14]
lea ebx, [ebp - 0x10]
mov edx, dword [edx]
push 0
push 0
push edi
push ebx
push ecx
push eax
push edx
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x10042332
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1004233d
mov dword [esi + 4], 0
jmp 0x10042338
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x10042343
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], 0
lea edi, [ebp - 0xc]
mov edx, dword [edx]
push 0
push 0
push 0
push edi
push ecx
push eax
push edx
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x1004238d
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1004239b
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, 0x7fffffff
mov esi, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov ebx, dword [edi + 8]
mov eax, dword [eax]
sub ecx, ebx
cmp ecx, 0x7fffffff
cmovb edx, ecx
mov ecx, dword [edi]
add ecx, ebx
push 0
push edx
push ecx
push dword [eax]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1004245d
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 0x10042469
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x10042473
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x1004246c

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea edi, [ebp - 0x14]
lea ebx, [ebp - 0x10]
mov edx, dword [edx]
mov edx, dword [edx]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
push 0
push edi
push ebx
push ecx
push eax
push edx
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x100424d4
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100424df
mov dword [esi + 4], 0
jmp 0x100424da
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x100424e5
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10042540
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea edi, [ebp - 0xc]
mov edx, dword [edx]
mov edx, dword [edx]
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push edi
push ecx
push eax
push edx
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x1004257f
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1004258d
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebp
ret

Function at 0x10042800
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
push 0
push ecx
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x1004283e
call sub.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 ebp
ret

Function at 0x100428b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push 4
push ecx
push 0x1b
push 0x29
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x100428ef
call sub.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 ebp
ret

Function at 0x100429e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x10042a0d
mov byte [esi], 4
jmp 0x10042a1b
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop ebp
ret

Function at 0x10042cc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push 4
push ecx
push 0x20
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x10042d02
call sub.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 ebp
ret