joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d001
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [esp + 0xc], edi
jne 0x1001d023
push 0x57
pop ebx
jmp 0x1001d12b
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
cmp ebx, edi
jne 0x1001d105
xor ebx, ebx
inc ebx
push 0x54
mov dword [esp + 0x10], ebx
call fcn.100012ea
mov esi, eax
cmp esi, edi
jne 0x1001d059
push 8
pop ebx
jmp 0x1001d120
push 0x54
push edi
push esi
call sub.ntdll.dll_memset
push 0x10
push dword [ebp + 8]
lea eax, [esi + 0x2c]
push eax
call sub.ntdll.dll_memcpy
add esp, 0x18
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
or dword [esi + 0x3c], 0xffffffff
push edi
push edi
push ebx
push edi
mov dword [esi + 4], esi
mov dword [esi], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x40], eax
je 0x1001d10e
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [esi + 0x44], eax
jne 0x1001d0b4
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], eax
je 0x1001d10e
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_StrDupA]
push 6
push ebx
push 2
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], fcn.1001c800
mov dword [esi + 0x28], 0x1001c834
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x3c], eax
je 0x1001d10e
lea eax, [esi + 0x50]
push eax
push edi
push esi
push 0x1001cd9b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x1001d10e
mov dword [0x1003e148], esi
xor ebx, ebx
jmp 0x1001d109
mov esi, dword [esp + 0xc]
cmp ebx, 0xffffffff
jne 0x1001d116
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
je 0x1001d12b
cmp dword [esp + 0xc], edi
je 0x1001d12b
call fcn.1001d136
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001ed12
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x1003e200]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1a4]
push eax
push 0x202
xor ebx, ebx
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
cmp esi, ebx
jne 0x1001ef14
call fcn.10013d95
mov dword [0x1003e2b8], eax
mov edi, 0x1003e0c4
xor esi, esi
mov eax, dword [esi + 0x10039b20]
call fcn.1001f56d
mov dword [edi - 4], eax
push 0x20
pop ecx
sub ecx, dword [esi + 0x10039b24]
xor eax, eax
inc eax
shl eax, cl
dec eax
push eax
call dword [sym.imp.WS2_32.dll_htonl]
not eax
mov dword [edi], eax
add esi, 0xc
add edi, 8
cmp esi, 0xc0
jb 0x1001ed57
push 8
pop esi
push 0x8f0
call fcn.100012ea
mov edi, eax
cmp edi, ebx
je 0x1001ef14
push 0x8f0
push ebx
push edi
call sub.ntdll.dll_memset
add esp, 0xc
push dword [ebp + 8]
mov eax, edi
call fcn.1001e4f4
mov esi, eax
cmp esi, ebx
jne 0x1001ef14
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call esi
cmp eax, ebx
mov dword [edi + 0x710], eax
jne 0x1001edeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1001ef10
push ebx
push ebx
push 1
push ebx
call esi
cmp eax, ebx
mov dword [edi + 0x718], eax
je 0x1001edde
movzx eax, word [edi + 0x2e]
lea esi, [edi + 0x7c4]
push esi
push ebx
push edi
push 0x1002430d
push ebx
push 1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push 2
call fcn.1002e8e2
mov esi, dword [esi]
cmp esi, ebx
mov dword [ebp + 8], eax
je 0x1001ee40
push edi
call fcn.1002e886
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1001ee5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
je 0x1001ee5a
mov esi, dword [edi + 0x7c4]
cmp esi, ebx
je 0x1001ee5a
call fcn.1002ec00
mov dword [edi + 0x7c4], ebx
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x1001ef14
mov ax, word [ebp - 8]
mov word [edi + 0x2e], ax
mov eax, edi
call fcn.1002ccae
mov esi, eax
cmp esi, ebx
jne 0x1001ef14
call fcn.1002498e
xor eax, eax
cmp dword [edi + 0x728], ebx
push edi
setne al
push eax
xor eax, eax
cmp dword [edi + 0x724], ebx
setne al
push eax
lea eax, [edi + 8]
call fcn.10023543
cmp eax, ebx
mov dword [edi + 0x890], eax
jne 0x1001eeb3
push 8
pop esi
jmp 0x1001ef14
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x1001dcc7
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [edi + 0x71c], eax
je 0x1001edde
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x1002b0a4
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [edi + 0x720], eax
je 0x1001edde
push dword [edi + 0x718]
mov dword [edi + 0x714], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
xor esi, esi
cmp esi, ebx
je 0x1001ef1a
push edi
call fcn.1001ef23
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1001f1e5
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
push esi
push edi
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push 0x1003847c
push 1
push edi
push 0x100384bc
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, eax
cmp esi, edi
jne 0x1001f301
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, edi
jne 0x1001f301
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, edi
jne 0x1001f301
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x50]
mov esi, eax
cmp esi, edi
jne 0x1001f301
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push dword [ebp + 8]
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x1001f2b4
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x44]
mov esi, eax
cmp esi, edi
jne 0x1001f297
cmp word [ebp - 0x18], di
jne 0x1001f301
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x48]
mov esi, eax
cmp esi, edi
je 0x1001f301
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], edi
lea eax, [ebp - 4]
push eax
push 0x1003844c
push 1
push edi
push 0x1003849c
call ebx
mov esi, eax
cmp esi, edi
jne 0x1001f301
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov esi, eax
cmp esi, edi
jne 0x1001f301
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0x1003fa5c
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jne 0x1001f301
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x1001f30e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x1001f31b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x1001f328
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x1001f335
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x1001f342
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1001f34b
Capabilities:
Access firewall policy via inetfwpolicy2
Access firewall rule properties via inetfwrule

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1003846c
xor esi, esi
push 1
push esi
push 0x100384ac
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, esi
jne 0x1001f46b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x48]
mov edi, eax
cmp edi, esi
jne 0x1001f46b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
mov esi, 0x1003fa5c
push esi
push eax
call dword [ecx + 0x28]
mov edi, eax
test edi, edi
jne 0x1001f3f2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0x84]
test eax, eax
jne 0x1001f3cd
cmp word [ebp - 0xc], ax
jne 0x1001f46b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x88]
mov edi, eax
test edi, edi
je 0x1001f46b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x1003845c
push 1
push 0
push 0x1003848c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jne 0x1001f46b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xa8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0x10039dc8
push eax
call dword [ecx + 0x80]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x88]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov edi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001f478
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001f485
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1001f492
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1001f843
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
mov dword [ebp - 8], ebx
xor edi, edi
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x2e
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
mov dword [ebp - 4], eax
jne 0x1001f899
test esi, esi
je 0x1001f876
push esi
call fcn.100012ff
mov eax, dword [ebp - 8]
add eax, 0x90
push eax
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x1001f892
inc ebx
cmp ebx, 0xa
jb 0x1001f854
jmp 0x1001f89e
mov dword [ebp - 4], 8
cmp dword [ebp - 4], edi
je 0x1001f8aa
test esi, esi
je 0x1001f8c2
push esi
call fcn.100012ff
jmp 0x1001f8c2
test esi, esi
mov eax, esi
je 0x1001f8b8
mov eax, dword [eax + 8]
inc edi
test eax, eax
jne 0x1001f8b0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x22d8], edi
mov dword [ebp - 8], edi
mov dword [ebp + 8], edi
jle 0x10021e60
lea esi, [ebx + 0x78]
jmp 0x10021e07
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, esi
call fcn.10014165
test eax, eax
je 0x10021e47
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 0x30]
push eax
call fcn.10014193
test eax, eax
jl 0x10021e39
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add esi, 0xb0
cmp eax, dword [ebx + 0x22d8]
jl 0x10021e04
cmp dword [ebp + 8], 0x32
jne 0x10021e5d
push 0x6f
pop eax
jmp 0x10021f22
imul edi, edi, 0xb0
lea esi, [edi + ebx + 0x78]
mov dword [ebp - 8], 0xb7
jmp 0x10021ee3
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x22d8]
cmp eax, 0x32
jge 0x10021e72
inc eax
mov dword [ebx + 0x22d8], eax
mov eax, dword [ebx + 0x22d8]
dec eax
cmp eax, edi
jle 0x10021ea7
mov ecx, eax
imul ecx, ecx, 0xb0
sub eax, edi
lea edx, [ecx + ebx + 0x78]
mov dword [ebp - 4], eax
dec dword [ebp - 4]
lea eax, [edx - 0xb0]
push 0x2c
mov edi, edx
pop ecx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edx, eax
jne 0x10021e8e
mov edi, dword [ebp + 8]
imul edi, edi, 0xb0
push 0xb0
lea esi, [edi + ebx + 0x78]
push 0
push esi
call sub.ntdll.dll_memset
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi + 0xa4], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
xor eax, dword [esi]
xor ecx, dword [esi + 4]
mov edi, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x14], ecx
xor eax, dword [ebx + 0x38]
mov ecx, dword [esi + 0xc]
xor ecx, dword [ebx + 0x3c]
push edi
push dword [ebp + 0x14]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x20]
push eax
mov dword [esi + 0x1c], ecx
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0xa0], edi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1002256b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
push edi
push 0
add ecx, 3
pop ebx
adc eax, ebx
cmp eax, dword [edx + 0x3c]
jg 0x1002268a
jl 0x10022597
cmp ecx, dword [edx + 0x38]
ja 0x1002268a
cmp dword [esi + 4], ebx
jne 0x1002268a
mov edi, dword [esi + 0x22d8]
cmp edi, ebx
jne 0x100225b4
call fcn.10022367
jmp 0x1002268a
cmp dword [esi + 0x24f4], ebx
jne 0x1002261a
mov eax, dword [esi + 0x10]
call fcn.10022110
cmp al, 2
jne 0x1002261a
cmp dword [esi + 0x22dc], 6
jl 0x1002261a
xor eax, eax
test edi, edi
mov edx, 0xb0
jle 0x100225fa
lea ecx, [esi + 0x124]
cmp ebx, 2
jge 0x100225fa
cmp dword [ecx - 4], 0
jne 0x1002261a
cmp dword [ecx], 0
je 0x100225f3
inc ebx
inc eax
add ecx, edx
cmp eax, edi
jl 0x100225e2
cmp eax, edi
jge 0x1002261a
mov ecx, eax
imul ecx, ecx, 0xb0
lea ecx, [ecx + esi + 0x78]
cmp dword [ecx + 0xa8], 0
jne 0x10022672
inc eax
add ecx, edx
cmp eax, edi
jl 0x1002260a
test edi, edi
jle 0x1002268a
lea ebx, [esi + 0x78]
xor eax, eax
cmp dword [ebx + 0xac], eax
je 0x10022676
cmp dword [ebx + 0xa8], eax
je 0x1002263d
push esi
push dword [esp + 0x18]
call fcn.100223cf
mov eax, dword [esi + 0x22d8]
lea ecx, [eax - 1]
test ecx, ecx
jle 0x10022661
imul eax, eax, 0xb0
push eax
lea eax, [esi + 0x128]
push eax
push ebx
call sub.ntdll.dll_memcpy
add esp, 0xc
dec dword [esi + 0x22d8]
cmp dword [esi + 0x22d8], 0
jg 0x10022621
jmp 0x1002268a
push 1
jmp 0x1002267f
inc dword [esi + 0x22dc]
push eax
mov ecx, ebx
mov edi, dword [esp + 0x18]
mov edx, esi
call fcn.10022148
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x100236c6
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor edi, edi
push 0x100
lea eax, [ebp - 0x100]
push edi
push eax
xor esi, esi
mov dword [ebp - 0x104], edi
call sub.ntdll.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x10]
push edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10023742
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x10023749
mov eax, dword [ebp + 8]
push edi
push edi
mov dword [ebp - 0x100], eax
lea ecx, [ebp - 0x104]
push ecx
xor eax, eax
inc eax
push edi
push eax
mov dword [ebp - 0x104], eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x10023749
add esi, ebx
cmp esi, dword [ebp + 0x10]
jl 0x100236f1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10023752
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
push 0x100
lea eax, [ebp - 0x124]
push ebx
push eax
mov dword [ebp - 0x128], ebx
call sub.ntdll.dll_memset
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
add esp, 0xc
stosd dword es:[edi], eax
call fcn.10013d95
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov esi, eax
push ebx
xor eax, eax
lea ecx, [ebp - 0x128]
inc eax
push ecx
push eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jl 0x10023806
je 0x1002380e
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
je 0x10023817
cmp eax, 0xffffffff
je 0x10023820
sub dword [ebp + 0x10], eax
add dword [ebp + 0xc], eax
add dword [ebp - 0xc], eax
call fcn.10013d95
sub esi, eax
add dword [ebp - 8], esi
cmp dword [ebp + 0x10], ebx
je 0x10023829
cmp dword [ebp - 8], ebx
jge 0x10023769
jmp 0x10023829
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10023826
mov dword [ebp - 4], 0x5b4
jmp 0x10023829
mov dword [ebp - 4], 0x4d4
jmp 0x10023829
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x10023835
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
lea ecx, [eax + 7]
and ecx, 0xfffffff8
mov dword [ebp - 0x10], ecx
xor ecx, ecx
cmp dword [edi + 0x828], ecx
push ebx
lea ebx, [edi + 0x834]
mov dword [ebp - 8], ecx
jle 0x100244a6
add edx, 8
add eax, 0xfffffff8
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
push esi
mov eax, dword [edi + 0x824]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax]
push 8
push ebx
mov dword [ebp - 0x14], eax
call fcn.100147a6
push ebx
lea esi, [ebp - 0x11c]
call fcn.10024fee
push dword [ebp - 0x18]
lea eax, [ebx + 8]
push dword [ebp - 0xc]
mov ecx, esi
call fcn.10024f6e
push 0x10
lea eax, [edi + 0x7f0]
push eax
push 0
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 4], 0x90
cmp eax, dword [edi + 0x828]
jl 0x10024445
pop esi
pop ebx
leave
ret
Function at 0x1002587e
Capabilities:
Terminate thread

Disassembly:
push 0x1b58
push dword [esi + 0x34]
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100258b3
cmp eax, 0x80
je 0x100258b3
mov eax, dword [esi + 0x38]
test eax, eax
je 0x100258c5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x38]
jmp 0x100258bf
mov eax, dword [esi + 0x38]
and dword [esi + 0x3c], 0
test eax, eax
je 0x100258c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x38], 0
ret

Function at 0x10025a01
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi]
push ebx
xor ebx, ebx
cmp eax, 2
jne 0x10025a14
movzx ecx, word [edi + 4]
jmp 0x10025a16
xor ecx, ecx
cmp eax, 2
mov word [edi + 0x10], cx
mov cx, word [ebp + 0xc]
mov word [edi + 4], cx
jne 0x10025a2d
movzx ecx, word [edi + 6]
jmp 0x10025a2f
xor ecx, ecx
cmp eax, 2
mov word [edi + 0x12], cx
mov cx, word [ebp + 8]
mov word [edi + 6], cx
jne 0x10025a46
movzx eax, word [edi + 8]
jmp 0x10025a48
xor eax, eax
push esi
mov esi, dword [edi + 0x2c]
cmp esi, ebx
mov word [edi + 0x14], ax
mov word [edi + 8], bx
mov dword [edi], 1
mov dword [edi + 0xc], ebx
je 0x10025a71
call fcn.10030070
push dword [edi + 0x2c]
call fcn.100012ff
mov dword [edi + 0x2c], ebx
mov eax, dword [edi + 0x30]
cmp eax, ebx
pop esi
je 0x10025a82
push eax
call fcn.100012ff
mov dword [edi + 0x30], ebx
cmp dword [edi + 0x3c], ebx
jne 0x10025a9d
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
push 0x100258ca
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x38], eax
pop ebx
pop ebp
ret 8

Function at 0x10025aa2
Capabilities:
Create thread

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x3c], edi
jne 0x10025b15
cmp dword [esi + 0x18], edi
je 0x10025b15
push edi
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x10025ac5
cmp eax, 0x80
jne 0x10025b15
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x10025b15
cmp dword [esi + 0x30], edi
je 0x10025b15
cmp dword [eax], edi
je 0x10025b15
cmp word [esi + 6], di
je 0x10025b15
mov eax, dword [esi + 0x38]
cmp eax, edi
mov dword [esi + 0xc], 1
je 0x10025af9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 4]
push eax
push edi
push esi
push 0x100258ca
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
xor eax, eax
inc eax
jmp 0x10025b17
xor eax, eax
pop edi
pop ecx
ret
Function at 0x10026718
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
and dword [esp], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10026754
movzx ebx, word [ebp + 0x24]
mov esi, dword [edi + 0x458]
push ebx
push dword [ebp + 0x20]
add esi, 4
push esi
call sub.ntdll.dll_memcpy
add esp, 0xc
push ebx
push esi
call fcn.1002cf2b
mov dword [esp + 0xc], eax
jmp 0x100267cf
mov ebx, dword [ebp + 0x10]
movzx eax, word [ebx]
cmp ax, 2
jne 0x1002676b
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x724]
jmp 0x1002677a
cmp ax, 0x17
jne 0x100267c7
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x728]
test eax, eax
je 0x100267c7
push dword [esi + 0xc0]
mov edi, dword [eax]
push dword [ebp + 0x18]
movzx eax, word [ebp + 0x24]
mov ecx, dword [ebp + 0x1c]
push eax
push dword [ebp + 0x20]
mov eax, esi
call fcn.100264e0
movzx eax, ax
test ax, ax
je 0x100267cf
push dword [ebp + 0x14]
mov esi, dword [esi + 0x7bc]
push ebx
push 0
movzx eax, ax
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x100267cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002674e
mov dword [esp + 0xc], 0x57
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20