joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013f3f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
je 0x1013f458
mov ecx, ebp
call fcn.1013b950
push eax
mov ecx, ebp
call fcn.1013b570
push eax
push dword [esp + 0x54]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp byte [edi + 0x20], 0
mov esi, eax
je 0x1013f443
test esi, esi
jns 0x1013f44c
call ebx
cmp eax, 0x2714
je 0x1013f403
test esi, esi
jns 0x1013f44c
call fcn.1013ebd0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
push 0
lea ecx, [esp + 0x14]
call fcn.1013a190
push 0x101f8a10
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

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

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x2c
cmp eax, 0xffffffff
je 0x1013f4aa
push 1
push 1
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1013f4a4
call fcn.1013ebd0
add esp, 0x2c
ret 4
push 0
lea ecx, [esp + 4]
call fcn.1013a190
push 0x101f8a10
lea eax, [esp + 4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1013f520
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x2c
cmp eax, 0xffffffff
je 0x1013f552
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1013f54c
call fcn.1013ebd0
add esp, 0x2c
ret 0x10
push 0
lea ecx, [esp + 4]
call fcn.1013a190
push 0x101f8a10
lea eax, [esp + 4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x10143610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018d9f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.101587d0
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
call fcn.10152c20
push dword [ebp + 8]
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [edi], vtable.Poco::Task.0
mov dword [edi + 4], vtable.Poco::Task.1.0
call fcn.10011bc0
push 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.10158810
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 3
call fcn.10143a20
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1014a600
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018de58
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x10b
ja 0x1014a7d8
je case.0x1014a64e.123
lea eax, [esi - 2]
cmp eax, 0xcc
ja case.0x1014a64e.4
movzx eax, byte [eax + 0x1014a874]
jmp dword [eax*4 + 0x1014a838]
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10140bd0
push 0x101f9c78
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10140ab0
push 0x101f9d50
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10140b80
push 0x101f9c30
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.101407a0
push 0x101f9d98
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10140870
push 0x101f9e70
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.101413b0
push 0x101f9de0
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10141150
push 0x101f9e28
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.sharing_violation
lea ecx, [ebp - 0x24]
call fcn.10011b80
mov dword [ebp - 4], 0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x64]
call fcn.10140b00
push 0x101f9bec
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.lock_violation
lea ecx, [ebp - 0x24]
call fcn.10011b80
mov dword [ebp - 4], 1
jmp 0x1014a71f
push str.EOF_reached
lea ecx, [ebp - 0x24]
call fcn.10011b80
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.10141120
push 0x101f9e28
jmp 0x1014a734
push str.disk_is_full
lea ecx, [ebp - 0x24]
call fcn.10011b80
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.10141380
push 0x101f9de0
jmp 0x1014a734
push str.negative_seek
lea ecx, [ebp - 0x24]
call fcn.10011b80
mov dword [ebp - 4], 4
jmp 0x1014a71f
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.10141060
push 0x101f9ba4
jmp 0x1014a734
cmp esi, 0x781
je case.0x1014a64e.3
cmp esi, 0x1779
je 0x1014a807
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x90]
call fcn.10140b30
push 0x101f9bec
lea eax, [ebp - 0x90]
jmp 0x1014a737
push 0x1779
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.10140c20
push 0x101f9d08
jmp 0x1014a734
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.10141010
push 0x101f9cc0
jmp 0x1014a734
Function at 0x1014ab50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018d810
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
je 0x1014abb5
mov eax, dword [esi + 0x10]
pop esi
test eax, eax
je 0x1014aba5
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x1014abe5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push str.cannot_create_thread
lea ecx, [ebp - 0x24]
call fcn.10011b80
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.101412c0
push 0x101fbb80
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x3c]
call fcn.10011b80
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x94]
call fcn.101412c0
push 0x101fbb80
lea eax, [ebp - 0x94]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x10150eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018df59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
push 0x100
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], 0x100
mov dword [esi + 0x3c], 0
call fcn.101616a1
mov dword [esi + 0x40], eax
add esp, 4
mov dword [esi + 0x44], 2
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [esi + 0x48], eax
mov eax, esi
mov dword [esi], vtable.Poco::DigestBuf.0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x10151550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018df59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
push 0x1000
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedBidirectionalStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], 0x1000
mov dword [esi + 0x3c], 0
call fcn.101616a1
push dword [esi + 0x38]
mov dword [esi + 0x40], eax
call fcn.101616a1
mov ecx, dword [esi + 0x40]
add esp, 8
mov dword [esi + 0x44], eax
add ecx, 4
mov eax, dword [esi + 0xc]
mov dword [esi + 0x48], 3
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x38]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, esi
mov dword [esi], vtable.Poco::FileStreamBuf.0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0xf
mov byte [esi + 0x50], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10151ad0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x10151b31
mov ecx, dword [esi + 0x48]
test cl, 1
je 0x10151b31
test cl, 2
je 0x10151af3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi + 0x68]
push 0
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10151b21
lea eax, [esi + 0x50]
push eax
call fcn.1014a5f0
add esp, 4
mov eax, dword [esp + 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
pop ecx
ret 0xc
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc

Function at 0x10151e10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x10151ebc
mov ecx, dword [esi + 0x48]
test cl, 2
je 0x10151ebc
test cl, 8
je 0x10151e7c
push 2
lea ecx, [esp + 0x10]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x10151e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10151e6b
lea eax, [esi + 0x50]
push eax
call fcn.1014a5f0
add esp, 4
mov eax, dword [esp + 8]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x68]
push 0
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push dword [esp + 0x20]
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10151eaa
lea eax, [esi + 0x50]
push eax
call fcn.1014a5f0
add esp, 4
mov eax, dword [esp + 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
add esp, 0xc
ret 0xc
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 0xc

Function at 0x10152120
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 0x1c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
pop esi
ret
Function at 0x1015c130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018e4fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.1015f710
lea esi, [edi + 4]
mov dword [edi], vtable.Poco::JSON::ParseHandler.0
push 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.101611e4
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
call fcn.101093f0
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0x34], al
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40670d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460104], 0
jne 0x40674b
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406721
mov dword [ecx*4 + 0x460100], eax
inc ecx
cmp ecx, 0x100
jl 0x40671c
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406778
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460100]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406759
not eax
pop ebp
ret 0xc

Function at 0x52a010
Capabilities:
Check for trap flag exception

Disassembly:
pushal
pushal
pushfd
mov ecx, cs
xor cl, cl
jecxz 0x52a025
push edx
sidt [esp - 2]
pop edx
add edx, 0xc
mov ebx, dword [edx]
popfd
popal
clc
mov eax, eax
push esi
pop esi
xor eax, eax
push ebp
call 0x52a034
add dword [esp], 0x34
push dword fs:[eax]
mov dword fs:[eax], esp
pushfd
pop eax
or eax, 0x100
push 0
push 0xffffffffffffffff
push 0
push 0
push eax
mov eax, 0x101
mov edx, esp
add edx, 4
mov dword [esp - 4], 0x340f
mov ecx, esp
sub ecx, 4
popfd
jmp ecx
Function at 0x100012a7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x1005b1e8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
call fcn.10001178
pop ecx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp esi, ebx
je 0x10001417
cmp dword [ebp + 0xc], ebx
mov dword [esi + 0xb4], ebx
jne 0x100013ff
cmp dword [esi + 0xac], ebx
lea edi, [esi + 0xac]
je 0x100013ff
cmp dword [esi + 0xa8], ebx
lea eax, [esi + 0xa8]
je 0x10001306
mov dword [eax], ebx
push 0x1005b230
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi]
push esi
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp + 8], ebx
mov dword [esi + 0x3c], eax
call fcn.10001158
test eax, eax
pop ecx
je 0x1000140f
mov eax, dword [esi + 0x10]
add eax, 0xa
push eax
call fcn.100033b9
mov edi, eax
pop ecx
cmp edi, ebx
jl 0x1000140f
lea eax, [edi + 0xa]
cmp eax, dword [esi + 0x14]
jge 0x1000140f
mov eax, dword [esi + 0x18]
cmp edi, eax
jg 0x1000140f
cmp eax, ebx
jle 0x1000140f
mov ecx, dword [esi + 0x10]
sub eax, edi
mov dword [esi + 0x78], eax
push ebx
lea ecx, [edi + ecx + 0xa]
push ebx
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x78]
lea eax, [esi + 0x38]
push 0x10
push eax
lea eax, [ebp + 8]
push ebx
push eax
push 1
push ecx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x100013a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10001417
jmp 0x1000140f
mov eax, dword [ebp + 8]
cmp eax, ebx
jbe 0x100013ae
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0x18]
sub eax, edi
cmp dword [esi + 0x1c], eax
jne 0x100013cd
push dword [esi + 0x14]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
push ebx
push dword [esi + 0x10]
call fcn.10017bc0
add esp, 0xc
mov ecx, dword [esi + 0x8c]
lea eax, [esi + 0x8c]
cmp ecx, ebx
je 0x10001417
test cl, 0x20
je 0x10001417
push 1
add ecx, 0xffffffe0
push dword [esi + 4]
mov dword [eax], ecx
push 0x403
push dword [0x1005b218]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x10001417
cmp dword [esi + 0xa8], ebx
lea eax, [esi + 0xa8]
je 0x1000140f
mov dword [eax], ebx
push dword [esi]
call fcn.10003950
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10001898
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 2], 0
push edi
xor eax, eax
lea edi, [ebp - 1]
push 2
push eax
stosb byte es:[edi], al
lea eax, [ebp - 2]
push eax
call fcn.10017bc0
add esp, 0xc
lea eax, [ebp - 2]
push 2
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
xor ecx, ecx
pop edi
test eax, eax
setg cl
mov eax, ecx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, 0x1005b1e8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
call fcn.10003003
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0x1000197a
cmp dword [esi + 0xb8], edi
lea eax, [esi + 0xb8]
je 0x1000197a
push dword [ebp + 8]
mov dword [eax], edi
push dword [0x1005b218]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, edi
je 0x10001a92
push 3
pop eax
cmp dword [esi + 0x24], eax
je 0x10001994
mov dword [esi + 0x24], eax
push 0x12c
push esi
call fcn.100037a3
push esi
call fcn.10001158
add esp, 0xc
test eax, eax
je 0x10001a10
mov eax, dword [esi + 0x18]
cmp eax, edi
jle 0x10001a92
mov edx, dword [esi + 0x1c]
cmp edx, edi
jl 0x10001a92
cmp eax, edx
jle 0x10001a92
cmp edx, dword [esi + 0x14]
jge 0x10001a92
mov ecx, dword [esi + 0x10]
sub eax, edx
add ecx, edx
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x78]
push edi
push edi
lea eax, [ebp + 8]
push edi
push eax
push 1
pop ebx
mov dword [ebp + 8], edi
push ebx
push ecx
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x10001a1a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10001a92
push dword [esi]
call fcn.10003950
pop ecx
jmp 0x10001a92
mov eax, dword [ebp + 8]
cmp eax, edi
jbe 0x10001a24
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x80], ebx
cmp eax, dword [esi + 0x18]
jne 0x10001a47
push dword [esi + 0x14]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
push edi
push dword [esi + 0x10]
call fcn.10017bc0
add esp, 0xc
mov eax, dword [esi + 0x8c]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
test al, 2
je 0x10001a71
push ebx
add eax, 0xfffffffe
push dword [esi + 4]
mov dword [esi + 0x8c], eax
push 0x402
push dword [0x1005b218]
call edi
mov eax, dword [esi + 0x8c]
test bl, al
je 0x10001a92
push ebx
dec eax
push dword [esi]
mov dword [esi + 0x8c], eax
push 0x401
push dword [0x1005b218]
call edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10003298
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret

Function at 0x100032ba
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10017bc0
add esp, 0xc
push esi
push esi
push esi
push esi
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
or ebx, 0xffffffff
mov dword [0x1005902c], eax
cmp eax, ebx
je 0x10003393
push esi
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0xffff
push dword [0x1005902c]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [0x1005902c]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
jne 0x10003352
push dword [0x1005902c]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10003393
push 0x20
push dword [0x1005902c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, ebx
je 0x10003381
push 8
push 0x401
push dword [0x1005b218]
push dword [0x1005902c]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, ebx
jne 0x10003397
push dword [0x1005902c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x1005902c], ebx
xor eax, eax
jmp 0x1000339a
push 1
pop eax
pop esi
pop ebx
leave
ret
Function at 0x100033d7
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0xf]
mov byte [ebp - 0x10], bl
push 0xb
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.10017bc0
add esp, 0xc
mov byte [ebp - 0x10], 5
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
push ebx
push 2
push 2
mov byte [ebp - 0xd], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x1000349d
lea edi, [esi + 0x38]
push ebx
mov dword [esi + 0x3c], ebx
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
push edi
push dword [esi + 4]
mov word [esi + 0x3a], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1000349d
push 0x2b
push 0x403
push dword [0x1005b218]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
je 0x1000349d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1000349d
lea eax, [ebp - 4]
mov di, word [esi + 0x3a]
push eax
lea eax, [esi + 0x38]
push eax
mov dword [ebp - 4], 0x10
push dword [esi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x100034b5
lea eax, [ebp - 0x10]
push 0xa
push eax
mov byte [ebp - 0xf], 1
push dword [esi]
call fcn.10003264
add esp, 0xc
xor eax, eax
jmp 0x1000350d
mov eax, dword [esi + 0x3c]
push 0x12c
push esi
mov word [esi + 0x3a], di
mov byte [ebp - 0x10], 5
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], 1
mov dword [ebp - 0xc], eax
mov word [ebp - 8], di
mov dword [esi + 0x24], 3
call fcn.100037a3
push dword [esi + 0x14]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
push ebx
push dword [esi + 0x10]
call fcn.10017bc0
lea eax, [ebp - 0x10]
push 0xa
push eax
push dword [esi]
call fcn.10003264
sub eax, 0xa
add esp, 0x20
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret