joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d2ec
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x45fe4a
call fcn.00451758
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x14], eax
lea edi, [ebx + 0x2c]
fild dword [0x47b6d0]
fidiv dword [0x47b6d4]
fstp qword [ebx + 0x50]
fild dword [0x47b6d4]
fidiv dword [0x47b6d0]
fstp qword [ebx + 0x58]
mov ecx, dword [0x47b6d4]
mov eax, dword [0x47b6d0]
push ecx
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0044d8a5
mov esi, eax
push 0x64
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x28], esi
call fcn.00451777
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], ecx
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x44d38a
mov eax, dword [ebx + 0x64]
mov edx, 0x4614a8
cmp eax, esi
je 0x44d373
mov edx, eax
push dword [0x47b6e0]
lea eax, [ebx + 0x2c]
push 3
push eax
push edx
push dword [ebp + 8]
call fcn.0044d5bb
jmp 0x44d38c
xor eax, eax
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov dword [ebx + 0x74], eax
call fcn.0044d916
mov dword [ebx + 0x18], eax
push dword [0x47b6ec]
call dword [sym.imp.USER32.dll_SetCursor]
push 1
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x44f174
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0xf4], 0
mov byte [ebx + 8], 1
jne 0x44f1a5
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x44f198
mov eax, 0x4614a8
push eax
call fcn.0044f23e
pop ecx
mov dword [ebx + 0xf4], eax
push dword [ebx + 0x30]
mov esi, dword [sym.imp.USER32.dll_GetParent]
call esi
push eax
call esi
push 0
push eax
mov dword [ebx + 0x128], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x118]
lea esi, [ebx + 0x110]
sub eax, dword [esi]
test eax, eax
jle 0x44f211
mov eax, dword [ebx + 0x30]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 4], eax
mov eax, dword [0x4775f0]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0044f15c
push dword [eax + 4]
mov ecx, dword [ebx + 0xf4]
push dword [eax]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044d1a5
jmp 0x44f239
mov eax, dword [0x4775f0]
mov esi, dword [ebx + 0x30]
mov ecx, ebx
mov edi, dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
call fcn.0044f15c
push dword [eax + 4]
mov ecx, dword [ebx + 0xf4]
push dword [eax]
push esi
push edi
call fcn.0044d2ec
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x5011c0], 1
mov dword [0x5011bc], 1
mov dword [0x5011b8], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x501014], eax
mov eax, dword [0x5011cc]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x5011e0]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x5011c8]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x4be0cc], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x40f950
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1ac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [eax], 0
test esi, esi
je 0x40f9a4
lea edi, [ebp - 0x1b4]
push 0x190
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x40f9ba
mov dword [esi], 0x4b4a70
add esp, 0x1ac
pop esi
pop edi
pop ebp
ret
push 0x4c24f8
push 0x2b
push 0x4c01b8
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
ud2
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
mov edx, 0x4c1bdc
push 0x4c3a3c
push eax
call sym.core::panicking::assert_failed::he065a1a15e1b7263
add esp, 8
ud2
Function at 0x42bcf0
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 0x42bd24
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x42bd31
mov dword [esi], 2
mov dword [esi + 4], 0x4c429c
mov eax, esi
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x42d240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x42c
mov ebx, 0x200
xor esi, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x1c], 0
cmp ebx, 0x201
jae 0x42d2b0
jmp 0x42d291
mov esi, dword [ebp - 0x10]
jbe 0x42d339
cmp ebx, 0x201
jae 0x42d2b0
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0x438]
mov dword [ebp - 0x18], 0x200
mov esi, ebx
jmp 0x42d2e1
mov eax, dword [ebp - 0x1c]
sub ebx, esi
sub eax, esi
cmp eax, ebx
jae 0x42d2d2
mov edx, esi
lea ecx, [ebp - 0x28]
push ebx
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h3de3c257bacc48ea
add esp, 4
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
push 0
call sub.KERNEL32.dll_SetLastError
push edi
push esi
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x42d302
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x42d386
cmp ebx, esi
jne 0x42d280
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x42d3a4
lea ebx, [esi + esi]
test esi, esi
mov esi, dword [ebp - 0x10]
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x42d291
jmp 0x42d2b0
mov eax, dword [ebp - 0x18]
cmp ebx, eax
ja 0x42d3ba
lea eax, [ebp - 0x38]
push ebx
push edi
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::hb6f6a97bb780d583
add esp, 0xc
movsd xmm0, qword [ebp - 0x38]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x30]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
test esi, esi
je 0x42d378
add esi, esi
push 2
push esi
push dword [ebp - 0x14]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp + 8]
add esp, 0x42c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], 0
mov byte [ecx + 0xc], 2
test esi, esi
jne 0x42d368
jmp 0x42d378
push 0x4c4450
push 0x28
push str.internal_error:_entered_unreachable_code_b
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
jmp 0x42d3c9
push 0x4c4460
push eax
push ebx
call sym.core::slice::index::slice_end_index_len_fail::ha90cccd5bd71ac96
add esp, 0xc
ud2
Function at 0x42d400
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 0x42d41a
mov edx, eax
add esp, 0x28
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x14], eax
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0x4c3bb4
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], sym.__LT_std..io..error..Error_u20_as_u20_core..fmt..Display_GT_::fmt::h3b8d78eac86fb792
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x30]
push 0x4c3bbc
push eax
call sym.core::panicking::panic_fmt::h1507d830b31d322e
add esp, 8
ud2
Function at 0x42dc90
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], esi
lea ecx, [ebp - 0x24]
push eax
call sym.std::sys::windows::to_u16s::inner::h9d168abf2ff990f4
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x42dcd7
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov esi, edi
shld edi, ebx, 0x18
shr esi, 8
jmp 0x42dd6a
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x44], eax
mov edx, edi
lea ecx, [ebp - 0x24]
push esi
call sym.std::sys::windows::to_u16s::inner::h9d168abf2ff990f4
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x42dd20
mov edi, dword [ebp - 0x1c]
mov eax, ebx
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov esi, edi
shld edi, ebx, 0x18
shr esi, 8
test ecx, ecx
je 0x42dd6a
add ecx, ecx
push 2
push ecx
push eax
jmp 0x42dd62
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
push eax
mov dword [ebp - 0x30], ebx
push ebx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x42dd77
mov bl, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x42dd53
add eax, eax
push 2
push eax
push dword [ebp - 0x2c]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42dd6a
add eax, eax
push 2
push eax
push dword [ebp - 0x30]
call sym.___rust_dealloc
add esp, 0xc
cmp bl, 4
jne 0x42dd91
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov esi, eax
xor ebx, ebx
shr esi, 8
shl edi, 0x18
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x42dd43
jmp 0x42dd53
shld esi, edi, 8
shl edi, 8
movzx eax, bl
mov dword [ebp - 0x44], 0x4c1438
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x4c], 0
or eax, edi
lea edi, [ebp - 0x64]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x20], sym.__LT_std..path..Display_u20_as_u20_core..fmt..Debug_GT_::fmt::hace7febe5933f785
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], sym.__LT_std..path..Display_u20_as_u20_core..fmt..Debug_GT_::fmt::hace7febe5933f785
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], sym.__LT_std..io..error..Error_u20_as_u20_core..fmt..Display_GT_::fmt::h3b8d78eac86fb792
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 3
lea eax, [ebp - 0x4c]
push 0x4c1450
push eax
call sym.core::panicking::panic_fmt::h1507d830b31d322e
add esp, 8
ud2
Function at 0x42de30
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x2c]
push eax
call sym.std::sys::windows::to_u16s::inner::h9d168abf2ff990f4
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x42de68
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov esi, edi
shld edi, ebx, 0x18
shr esi, 8
jmp 0x42de99
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
push 0
mov dword [ebp - 0x10], eax
push eax
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x42dea6
mov bl, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42de99
add eax, eax
push 2
push eax
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
cmp bl, 4
jne 0x42dec0
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov esi, eax
xor ebx, ebx
shr esi, 8
shl edi, 0x18
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x42de89
jmp 0x42de99
shld esi, edi, 8
shl edi, 8
movzx eax, bl
mov dword [ebp - 0x24], 0x4c1488
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x2c], 0
or eax, edi
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], sym.__LT_std..path..Display_u20_as_u20_core..fmt..Debug_GT_::fmt::hace7febe5933f785
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], sym.__LT_std..io..error..Error_u20_as_u20_core..fmt..Display_GT_::fmt::h3b8d78eac86fb792
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
push 0x4c1498
lea eax, [ebp - 0x2c]
push eax
call sym.core::panicking::panic_fmt::h1507d830b31d322e
add esp, 8
ud2
Function at 0x42f260
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 0x42f3a3
setns al
js 0x42f3de
movzx edi, al
push edi
push ebx
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x42f3e5
mov esi, eax
mov edi, eax
push ebx
push dword [ebp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
cmp ebx, 8
mov ecx, esi
jb 0x42f3ae
xor eax, eax
cmp ebx, 0x20
jb 0x42f342
movdqa xmm0, xmmword [0x4bfb80]
movdqa xmm1, xmmword [0x4bfb90]
movdqa xmm2, xmmword [0x4bfba0]
mov eax, ebx
xor ecx, ecx
and eax, 0xffffffe0
nop word cs:[eax + eax]
nop
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 0x42f2e0
cmp eax, ebx
je 0x42f3ca
test bl, 0x18
je 0x42f3aa
movdqa xmm0, xmmword [0x4bfbb0]
movdqa xmm1, xmmword [0x4bfbc0]
movdqa xmm2, xmmword [0x4bfbd0]
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 0x42f370
cmp edx, ebx
jne 0x42f3ae
jmp 0x42f3ca
mov edi, 1
jmp 0x42f3ca
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 0x42f3b0
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
call sym.alloc::raw_vec::capacity_overflow::he71b25d1f8f09560
ud2
push edi
push ebx
call sym.alloc::alloc::handle_alloc_error::h1460775c4f8d05ce
add esp, 8
ud2
Function at 0x438b00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [eax]
xor eax, eax
cmp dword [ebp + 0x18], 0x3b9aca00
je 0x438bb3
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, 0x3e8
mov dword [ebp - 0x10], ecx
mul ebx
mov esi, eax
mov eax, edi
seto cl
mul ebx
mov ebx, edx
mov edi, eax
add ebx, esi
setb al
or al, cl
je 0x438b8c
xor edx, edx
mov esi, dword [ebp + 8]
mov eax, 0xffffffff
test edx, edx
je 0x438bb0
imul ecx, dword [ebp + 0x18], 0x68c26139
xor edx, edx
ror ecx, 6
cmp ecx, 0x10c7
mov ecx, dword [ebp - 0x10]
setae dl
add edi, edx
adc ebx, 0
jb 0x438bb3
xor eax, eax
neg ebx
sbb eax, eax
or eax, edi
jne 0x438bb3
mov dword [esi], 2
mov dword [esi + 4], 0x4c3a6c
jmp 0x438be9
mov eax, dword [ebp + 0x18]
mov ecx, 0x431bde83
mul ecx
shr edx, 0x12
add edi, edx
adc ebx, 0
setae al
movzx edx, al
mov esi, dword [ebp + 8]
mov eax, 0xffffffff
test edx, edx
jne 0x438b54
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 4
push eax
push 0x1006
push 0xffff
push ecx
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x438be7
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, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x438c00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [eax]
xor eax, eax
cmp dword [ebp + 0x18], 0x3b9aca00
je 0x438cb3
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, 0x3e8
mov dword [ebp - 0x10], ecx
mul ebx
mov esi, eax
mov eax, edi
seto cl
mul ebx
mov ebx, edx
mov edi, eax
add ebx, esi
setb al
or al, cl
je 0x438c8c
xor edx, edx
mov esi, dword [ebp + 8]
mov eax, 0xffffffff
test edx, edx
je 0x438cb0
imul ecx, dword [ebp + 0x18], 0x68c26139
xor edx, edx
ror ecx, 6
cmp ecx, 0x10c7
mov ecx, dword [ebp - 0x10]
setae dl
add edi, edx
adc ebx, 0
jb 0x438cb3
xor eax, eax
neg ebx
sbb eax, eax
or eax, edi
jne 0x438cb3
mov dword [esi], 2
mov dword [esi + 4], 0x4c3a6c
jmp 0x438ce9
mov eax, dword [ebp + 0x18]
mov ecx, 0x431bde83
mul ecx
shr edx, 0x12
add edi, edx
adc ebx, 0
setae al
movzx edx, al
mov esi, dword [ebp + 8]
mov eax, 0xffffffff
test edx, edx
jne 0x438c54
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x438ce7
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, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x438e40
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
mov ecx, eax
cmp eax, 0xffffffff
jne 0x438e7c
call sub.WS2_32.dll_WSAGetLastError
xor ecx, ecx
cmp eax, 0x274a
jne 0x438e87
mov dword [esi + 4], ecx
mov byte [esi], 4
mov eax, esi
pop esi
pop ebp
ret
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
mov eax, esi
pop esi
pop ebp
ret

Function at 0x438eb0
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 0x438ed1
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 0x438f0c
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 0x438fa0
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 0x438fdf
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 0x439050
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi + 4]
mov ebx, dword [edi + 8]
mov eax, ecx
sub eax, ebx
jb 0x4390bf
cmp eax, 0x7fffffff
mov edx, 0x7fffffff
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmovb edx, eax
mov eax, dword [edi]
add eax, ebx
push 0
push edx
push eax
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x43909e
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 0x4390aa
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x4390b4
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x4390ad
push 0x4c1bcc
push ecx
push ebx
call sym.core::slice::index::slice_start_index_len_fail::h66d26830f9e36ca4
add esp, 0xc
ud2
Function at 0x4390d0
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 0x439122
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x43912d
mov dword [esi + 4], 0
jmp 0x439128
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x439136
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x439140
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 0x43917d
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x43918b
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 0x439220
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi + 4]
mov ebx, dword [edi + 8]
mov eax, ecx
sub eax, ebx
jb 0x439291
mov ecx, dword [ebp + 0xc]
cmp eax, 0x7fffffff
mov edx, 0x7fffffff
mov esi, dword [ebp + 8]
cmovb edx, eax
mov eax, dword [edi]
mov ecx, dword [ecx]
add eax, ebx
push 0
push edx
push eax
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x439270
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 0x43927c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x439286
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x43927f
push 0x4c1bcc
push ecx
push ebx
call sym.core::slice::index::slice_start_index_len_fail::h66d26830f9e36ca4
add esp, 0xc
ud2

Function at 0x4392b0
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 0x439304
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x43930f
mov dword [esi + 4], 0
jmp 0x43930a
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x439318
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret