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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x10050c59
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x10050c51
je 0x10050c06
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10050c0a
mov edi, dword [eax]
mov dword [eax], 0
test edi, edi
je 0x10050c0c
mov edi, dword [eax + 4]
jmp 0x10050c0c
xor eax, eax
jmp 0x10050c51
xor edi, edi
mov eax, dword [0x1017b554]
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10050c75
mov dword [eax], edi
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x10050c4e
push 4
push 8
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sym.std::sys::thread_local::key::windows::LazyKey::init::h0bd71fcfbfc5b9bd
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x10050bec
jmp 0x10050c51
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
nop

Function at 0x10055bf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
and ecx, 0x3f
mov dword [ebp - 4], ecx
jne 0x10055c08
add esp, 0x1c
pop ebp
ret
mov dword [ebp - 0x1c], str.unaligned_pointer
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 4]
mov edx, 0x1015e964
push 0x1015e9d4
push eax
call sym.__ZN4core9panicking13assert_failed17hd26c32256d101e91E.llvm.12271727460100579316
nop word cs:[eax + eax]
nop dword [eax + eax]
Function at 0x10055c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xffffffc0
sub esp, 0x240
mov esi, dword [0x1017b554]
mov dword [esp + 0x40], 0
mov dword [esp + 4], 0
mov dword [esp + 0x80], 0
movzx eax, byte [esi]
push 4
push 0x40c
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10055e6d
mov dword [eax + 0x408], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x80], eax
movaps xmm1, xmmword [esp + 0xa0]
movaps xmm2, xmmword [esp + 0x90]
movaps xmm0, xmmword [esp + 0xb0]
mov eax, dword [esp + 0x78]
movaps xmmword [esp + 0x160], xmm1
movaps xmm1, xmmword [esp + 0x80]
movaps xmmword [esp + 0x150], xmm2
movaps xmm2, xmmword [esp + 0x70]
movaps xmmword [esp + 0x170], xmm0
movaps xmmword [esp + 0x140], xmm1
movaps xmm1, xmmword [esp + 0x60]
movaps xmmword [esp + 0x130], xmm2
movaps xmm2, xmmword [esp + 0x40]
movaps xmmword [esp + 0x120], xmm1
movaps xmm1, xmmword [esp + 0x50]
movaps xmmword [esp + 0x100], xmm2
movsd xmm2, qword [esp + 0x68]
movaps xmmword [esp + 0x110], xmm1
movsd xmm1, qword [esp + 0x70]
mov dword [esp + 0xc0], 1
mov dword [esp + 0xc4], 1
mov dword [esp + 0x180], 0
movsd qword [esp + 0x1ac], xmm2
movsd xmm2, qword [esp + 0x58]
mov dword [esp + 0x1bc], eax
mov eax, dword [esp + 0x3c]
movsd qword [esp + 0x1b4], xmm1
movsd xmm1, qword [esp + 0x60]
movsd qword [esp + 0x19c], xmm2
movsd xmm2, qword [esp + 0x40]
movsd qword [esp + 0x1a4], xmm1
movsd xmm1, qword [esp + 0x50]
movsd qword [esp + 0x184], xmm2
movsd xmm2, qword [esp + 0x2c]
movsd qword [esp + 0x194], xmm1
movsd xmm1, qword [esp + 0x48]
movsd qword [esp + 0x18c], xmm1
movsd xmm1, qword [esp + 0x34]
mov dword [esp + 0x1c0], 0
movsd qword [esp + 0x1ec], xmm2
movsd xmm2, qword [esp + 0x1c]
mov dword [esp + 0x1fc], eax
movsd qword [esp + 0x1f4], xmm1
movsd xmm1, qword [esp + 0x24]
movsd qword [esp + 0x1dc], xmm2
movsd xmm2, qword [esp + 4]
movsd qword [esp + 0x1e4], xmm1
movsd xmm1, qword [esp + 0x14]
movsd qword [esp + 0x1c4], xmm2
movsd qword [esp + 0x1d4], xmm1
movsd xmm1, qword [esp + 0xc]
movsd qword [esp + 0x1cc], xmm1
movzx eax, byte [esi]
push 0x40
push 0x140
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10055e7e
lea ecx, [esp + 0xc0]
push 0x140
push ecx
push eax
mov esi, eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
push 0x40c
push 4
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
add esp, 8
jmp 0x10055e94
lea edi, [esp + 0x100]
push 0x140
push 0x40
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
add esp, 8
ud2

Function at 0x10055ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.__LT_crossbeam_epoch..collector..Collector_u20_as_u20_core..default..Default_GT_::default::h4e5021ed2b5673b9
Function at 0x10056600
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [esi + 4]
push 1
push edi
call sub.kernel32.dll_TlsSetValue
mov eax, dword [esi]
mov ecx, dword [eax + 0x410]
lea edx, [ecx - 1]
xor ecx, 1
mov dword [eax + 0x410], edx
or ecx, dword [eax + 0x40c]
jne 0x10056638
push eax
call sym.crossbeam_epoch::internal::Local::finalize::hb03cf478c23a69a0
add esp, 4
push 4
push 8
push esi
call sym.___rust_dealloc
add esp, 0xc
push 0
push edi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret

Function at 0x10057900
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
and ecx, 0x3c
mov dword [ebp - 4], ecx
jne 0x10057921
push eax
push dword [ebp + 0xc]
call sym.crossbeam_epoch::guard::Guard::defer_unchecked::hae7d2132fb4485db
add esp, 0x24
pop ebp
ret
mov dword [ebp - 0x1c], str.unaligned_pointer
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 4]
mov edx, 0x1015e964
push 0x1015e9d4
push eax
call sym.__ZN4core9panicking13assert_failed17hd26c32256d101e91E.llvm.12271727460100579316
nop
nop
nop

Function at 0x10057f90
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
mov eax, dword [edi]
dec dword [eax]
jne 0x10057fbe
dec dword [eax + 4]
jne 0x10057fbe
push 8
push 0x158
push eax
call sym.___rust_dealloc
add esp, 0xc
push 4
push 8
push edi
call sym.___rust_dealloc
add esp, 0xc
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret
Function at 0x10059880
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 4
jne 0x10059896
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0x18
pop ebp
ret
lea ecx, [ebp + 0xc]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call sym.core::panicking::assert_failed::h5777e701eb046f02
nop dword [eax + eax]
Function at 0x1005e1d0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
je 0x1005e20b
push 2
push ebx
push dword [ebp + 8]
push 0
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x1005e20b
mov edi, eax
push ebx
push dword [ebp + 8]
call sub.advapi32.dll_SystemFunction036
and edi, 0x7fffffff
xor esi, esi
test al, al
cmove esi, edi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1005f920
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 0x1005f974
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 0x1005f97e
mov dword [esi], 0x100f3034
add esp, 0x1ac
pop esi
pop edi
pop ebp
ret
push 0x10161e14
call sym.core::option::unwrap_failed::h4002a2165d665d64
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
mov edx, 0x10162ea0
push 0x10162ec4
push eax
call sym.core::panicking::assert_failed::h6a7846da8fea5b10
nop dword [eax + eax]
Function at 0x10082dd0
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 0x10082e04
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x10082e14
mov eax, dword [0x10163680]
mov ecx, dword [0x10163684]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x100842e0
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 0x10084340
jmp 0x1008432e
jbe 0x100843b8
cmp esi, 0x201
jae 0x10084340
mov dword [ebp - 0x20], 0x200
lea edi, [ebp - 0x434]
mov ebx, esi
jmp 0x1008436e
mov ebx, dword [ebp - 0x24]
sub esi, ebx
je 0x10084362
mov edx, ebx
lea ecx, [ebp - 0x18]
push 2
push 2
push esi
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
add esp, 0xc
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 0x1008438b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x10084408
cmp esi, ebx
jne 0x10084320
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x10084426
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x1008432e
jmp 0x10084340
mov eax, dword [ebp - 0x20]
cmp esi, eax
ja 0x1008443c
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::h63b25de594ca01f2
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 0x100843fa
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 0x100843ea
jmp 0x100843fa
push 0x101637a0
push 0x28
push str.internal_error:_entered_unreachable_code
call sym.core::panicking::panic::hf6244c8fb5815825
add esp, 0xc
jmp 0x1008444b
push 0x10163790
push eax
push esi
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 0xc
ud2

Function at 0x10084470
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 0x1008448a
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], 0x10163070
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::h62d66a0e473f1718
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x30]
push 0x10163078
push eax
call sym.core::panicking::panic_fmt::hced28cb7137b21e1
add esp, 8
ud2
Function at 0x10085fe0
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
js 0x1008615e
je 0x10086123
mov eax, dword [0x1017b554]
movzx eax, byte [eax]
push 1
push ebx
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10086167
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 0x1008612e
xor eax, eax
cmp ebx, 0x20
jb 0x100860c2
movdqa xmm0, xmmword [0x1015f6c0]
movdqa xmm1, xmmword [0x1015f6d0]
movdqa xmm2, xmmword [0x1015f6e0]
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 0x10086060
cmp eax, ebx
je 0x1008614a
test bl, 0x18
je 0x1008612a
movdqa xmm0, xmmword [0x1015f6f0]
movdqa xmm1, xmmword [0x1015f700]
movdqa xmm2, xmmword [0x1015f710]
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 0x100860f0
cmp edx, ebx
jne 0x1008612e
jmp 0x1008614a
mov edi, 1
jmp 0x1008614a
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 0x10086130
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::he63c9115d026ec98
mov eax, 1
push ebx
push eax
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x1008fe00
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 0x1008fe62
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 0x1008fe5f
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebx
adc eax, 0
jae 0x1008fea5
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 0x1008fe99
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 0x1008fe62
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 0x1008fe62
mov esi, dword [ebp + 8]
mov eax, dword [0x10162f00]
mov ecx, dword [0x10162f04]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x1008fe9b

Function at 0x1008ff00
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 0x1008ff62
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 0x1008ff5f
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebx
adc eax, 0
jae 0x1008ffa5
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 0x1008ff99
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 0x1008ff62
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 0x1008ff62
mov esi, dword [ebp + 8]
mov eax, dword [0x10162f00]
mov ecx, dword [0x10162f04]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x1008ff9b
Function at 0x10090140
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 0x1009017d
call sub.ws2_32.dll_WSAGetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x10090188
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 0x100901a0
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 0x100901c1
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 0x100901fc
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 0x10090290
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 0x100902cf
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 0x10090340
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 0x1009038a
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 0x10090396
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100903a0
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 0x10090399
Function at 0x100903b0
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 0x10090402
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1009040d
mov dword [esi + 4], 0
jmp 0x10090408
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x10090413
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 0x10090420
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 0x1009045d
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1009046b
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 0x100904e0
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 0x1009052d
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 0x10090539
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x10090543
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 0x1009053c

Function at 0x10090550
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 0x100905a4
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100905af
mov dword [esi + 4], 0
jmp 0x100905aa
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x100905b5
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret