joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005a6b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
push dword [ebp + 0x2c]
call fcn.1000ded2
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.10020520
and dword [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
and dword [ebp - 0x38], 0
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x2c]
mov dword [ebp - 0x44], 0x101
push dword [ebp + 0x28]
call fcn.1000ca5b
add esp, 0x10
test eax, eax
jne 0x10005b0c
push dword [ebp + 0x2c]
call fcn.1000def4
pop ecx
jmp 0x10005b78
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
push dword [ebp + 0x10]
lea edx, [ebp - 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100064bb
add esp, 0x14
cmp dword [ebp + 0xc], 0
jbe 0x10005b47
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.100072b8
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x34], eax
je 0x10005b52
or eax, 0xffffffff
push dword [ebp + 0x24]
lea esi, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10006ea6
push dword [ebp + 0x2c]
call fcn.1000def4
add esp, 0x24
pop edi
pop esi
leave
ret
Function at 0x100066bf
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
push str.NtQueueApcThread
xor esi, esi
push str.ntdll
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x100067e6
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.10006638
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x100067e6
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, esi
je 0x100067e6
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x100067e6
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebx + 8]
jne 0x10006787
push dword [ebp - 0x2c]
call fcn.1000d7fa
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
je 0x10006787
push esi
push esi
push edi
lea ecx, [edi + 0x10]
push ecx
push eax
call dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.1000d8ad
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000675c
mov edx, dword [ebp + 8]
call fcn.1000d8ad
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
lea esi, [ebp - 4]
call fcn.1000dc09
add esp, 0x10
test eax, eax
je 0x100067e6
cmp dword [ebp - 4], 0x10
jne 0x100067e6
cmp dword [ebp - 0xc], 0
jne 0x100067ec
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
mov dword [ebp - 0xc], 1
call fcn.1000dc9a
add esp, 0x10
xor eax, eax
pop edi
pop esi
leave
ret
xor eax, eax
inc eax
jmp 0x100067e8
Function at 0x10006c20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push esi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.10020520
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10006c63
xor eax, eax
jmp 0x10006d1f
cmp dword [ebp - 0x94], 5
jne 0x10006c7f
cmp dword [ebp - 0x90], 2
jne 0x10006c7f
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10006c5c
push ebx
push edi
push 0x4c
push esi
push 0x40
pop ebx
call fcn.1000d320
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp edi, esi
je 0x10006cfa
push 0x149
push esi
call fcn.1000d320
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
je 0x10006cfa
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10038028
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10038078
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
lea esi, [ebx + 0x129]
and dword [esi + 0x18], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push esi
push ebx
mov dword [esi + 0x10], eax
call edi
test eax, eax
jne 0x10006ceb
push 5
jmp 0x10006cf4
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10006cfe
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10006d1d
push esi
call fcn.1000d5fe
mov esi, 0x4000
push esi
call fcn.1000d492
push esi
mov edi, ebx
call fcn.1000d492
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10007162
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x100071bc
or eax, 0xffffffff
jmp 0x100071c4
cmp dword [ebp - 4], 0x80000
jae 0x100071c1
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, 0x80000
sub eax, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add dword [ebp + 0xc], eax
jmp 0x10007178
cmp dword [ebp - 8], esi
ja 0x1000718e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x100074c4
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx], 0
mov eax, 0x62964ee9
je 0x100074e5
push esi
movzx edx, word [ecx]
mov esi, eax
movzx edx, dx
ror esi, 8
add esi, edx
inc ecx
xor eax, esi
cmp byte [ecx], 0
jne 0x100074cf
pop esi
ret
Function at 0x100079ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
add edi, 0x3a98
call esi
cmp eax, edi
jae 0x10007a1c
xor eax, eax
push eax
push 0x100000
push 3
push eax
push eax
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10007a48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x10007a09
push 0x2710
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x10007a14
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x100079cb
jmp 0x10007a1f
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x10007a48
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x79
jne 0x10007a3a
push 4
call fcn.100026cd
jmp 0x10007a45
call esi
push eax
push 0x14
call fcn.1000266f
pop ecx
pop ecx
jmp 0x10007aa9
push 0
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x10007a74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
call fcn.1000266f
pop ecx
pop ecx
jmp 0x10007a9b
mov ecx, ebx
lea eax, [ebp - 0x2c]
call fcn.10007c1c
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
push 0x1bd
rep movsd dword es:[edi], dword [esi]
call fcn.100075e5
add esp, 0x24
test eax, eax
jne 0x10007aa9
push ebx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, ebx
call fcn.1000d8ad
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007abe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
xor esi, esi
test edi, edi
jle 0x10007af8
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007b01
cmp dword [ebp - 4], 0
je 0x10007b01
add esi, dword [ebp - 4]
cmp esi, edi
jl 0x10007acd
cmp esi, edi
jne 0x10007b01
mov eax, esi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x10007afe

Function at 0x10007b06
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
and dword [ebp - 4], esi
xor eax, eax
inc eax
cmp dword [ebp + 0x10], esi
jle 0x10007b4f
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, 0x2000
jle 0x10007b29
mov eax, 0x2000
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007b4d
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jl 0x10007b18
jmp 0x10007b4f
xor eax, eax
pop esi
leave
ret
Function at 0x10007c49
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
add esi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 8], 1
call ebx
cmp eax, 0xffffffff
jne 0x10007cb2
xor eax, eax
jmp 0x10007ce1
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10007cc3
jg 0x10007cba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10007cc3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x10007c86
jmp 0x10007cc7
mov dword [ebp + 0xc], 1
jmp 0x10007cc7
and dword [ebp + 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
call ebx
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edi, edi
jle 0x10007d3f
push 0
mov eax, 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_recv]
cmp eax, 0xffffffff
je 0x10007d48
test eax, eax
je 0x10007d3f
add esi, eax
cmp esi, edi
jl 0x10007d1a
cmp esi, edi
jne 0x10007d48
mov eax, edi
pop esi
pop ebp
ret
or eax, 0xffffffff
jmp 0x10007d45

Function at 0x10007e11
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, fcn.1001de27
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x10007d4d
mov dword [esi + 0xc], 0x10007da2
mov dword [esi + 0x10], 0x10007ddf
mov dword [esi + 0x18], 0x10007dfc
mov eax, esi
leave
ret
Function at 0x10007f09
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x494
call fcn.100081bc
pop ecx
mov esi, 0x94
push esi
push eax
mov dword [ebp - 4], eax
call fcn.10008382
lea edi, [esi + 0x6c]
push edi
push dword [ebp - 4]
mov ebx, eax
call fcn.10008382
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.10008382
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call fcn.10008382
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call fcn.10008382
add esp, 0x28
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.10002f10
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10007fb2
push 0x5c
push dword [ebp - 0x10]
call fcn.10019ee0
pop ecx
pop ecx
test eax, eax
je 0x10007fb2
inc eax
mov dword [ebp - 0x10], eax
jne 0x10007fb9
mov dword [ebp - 0x10], 0x100316de
push ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 8]
mov dword [0x10043e2c], eax
movzx eax, al
push eax
call fcn.1000241b
movzx eax, byte [ebx + 8]
pop ecx
push eax
call fcn.1000241b
movzx eax, word [ebx + 0xc]
pop ecx
push eax
call fcn.100023fb
pop ecx
push 0
call fcn.100023de
pop ecx
push dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.100023de
pop ecx
push dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.100023de
pop ecx
push dword [ebp - 0x1c]
call fcn.100023de
pop ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str._s_t_s_t_s
push edi
push dword [ebp - 0xc]
call fcn.10018956
mov eax, dword [ebp - 0xc]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008036
sub eax, ecx
cmp eax, 0x3a
jle 0x10008047
push 0x3a
pop eax
push dword [ebp - 0xc]
mov ecx, eax
call fcn.1000242d
pop ecx
push dword [ebp - 4]
call fcn.10008207
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov edi, eax
jle 0x10008502
mov eax, dword [ebp + 0xc]
push 0
sub eax, esi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
add edi, eax
add esi, eax
cmp eax, 0xffffffff
je 0x10008508
cmp esi, dword [ebp + 0xc]
jl 0x100084e2
mov eax, esi
pop edi
pop esi
pop ebp
ret
push 2
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp + 8]
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
jmp 0x10008504
Function at 0x100085b7
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 8], esi
call fcn.10002e63
push 0
push esi
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x100085e1
mov eax, edi
jmp 0x10008637
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x18], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
jne 0x10008616
push esi
call sub.WS2_32.dll_closesocket
jmp 0x100085dd
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x1000860e
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x1000860e
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x10008699
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], eax
call sub.WS2_32.dll_ntohl
mov dword [ebp - 8], eax
movzx eax, word [esi + 4]
push eax
sub edi, 6
call sub.WS2_32.dll_ntohs
mov eax, 0x3ff
xor ebx, ebx
call fcn.10002e63
push ebx
push 2
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x10008700
push eax
call sub.WS2_32.dll_closesocket
push 4
lea eax, [ebp - 4]
push 4
push eax
call fcn.100012d0
add esp, 0xc
jmp 0x10008743
push 2
pop eax
mov word [ebp - 0x1c], ax
xor eax, eax
mov word [ebp - 0x1a], ax
push 0x10
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x10008724
push esi
jmp 0x100086e9
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
cmp eax, 0xffffffff
je 0x100086e9
mov ebx, dword [ebp - 8]
call fcn.1000859c
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008748
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi]
xor ebx, ebx
inc ebx
push eax
mov dword [ebp - 8], ebx
add esi, 4
mov dword [ebp - 4], eax
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0xc], eax
movzx eax, word [esi]
inc esi
push eax
inc esi
sub edi, 6
call sub.WS2_32.dll_ntohs
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, 0x3ff
cmp edi, eax
jl 0x1000878e
mov edi, eax
push edi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.1001f330
add esp, 0xc
mov byte [ebp + edi - 0x420], 0
call fcn.10002e63
push 0
push ebx
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x100087d7
push edi
call sub.WS2_32.dll_closesocket
push 4
lea eax, [ebp - 4]
push 4
push eax
call fcn.100012d0
add esp, 0xc
jmp 0x1000884e
lea eax, [ebp - 0x420]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x100087ea
push esi
jmp 0x100087c0
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.1001f330
add esp, 0xc
push 2
pop eax
push dword [ebp - 0x10]
mov word [ebp - 0x20], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x1e], ax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
je 0x100087e7
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, edi
jne 0x10008844
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100087e7
mov ebx, dword [ebp - 0xc]
push esi
call fcn.10008581
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
add ebx, 0x7530
and dword [ebp - 8], 0
mov dword [ebp - 4], 0x64
jmp 0x1000890b
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
xor ecx, ecx
inc ecx
push 0
push 0
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x110], ecx
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10008915
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000890b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x10008915
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10008915
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, ebx
jb 0x1000887e
pop esi
pop ebx
leave
ret
Function at 0x10008919
Capabilities:
Get socket status
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
add edi, 0x7530
and dword [ebp - 8], 0
mov dword [ebp - 4], 0x64
jmp 0x100089a1
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x228]
push eax
xor ecx, ecx
inc ecx
push 0
push 0
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x120], ecx
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x120]
push eax
push dword [ebx + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x100089eb
lea eax, [ebp - 0x228]
push eax
push dword [ebx + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x100089a9
call esi
cmp eax, edi
jb 0x10008941
jmp 0x100089eb
push dword [ebp + 0x14]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x100089eb
push 2
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x18], ax
call sub.WS2_32.dll_htons
push dword [ebp + 0x14]
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
leave
ret
Function at 0x10008db3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [0x10040838]
push edi
xor edi, edi
test esi, esi
je 0x10008e4e
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 4]
test eax, eax
jne 0x10008de1
cmp dword [esi + 0xc], eax
jne 0x10008dec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov edi, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10008dcc
jmp 0x10008e4d
test eax, eax
jne 0x10008de1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jbe 0x10008de1
cmp dword [esi + 0x10], 0
jne 0x10008e0d
push 2
push dword [esi + 0x1c]
call ebx
cmp dword [esi + 0x10], 4
jne 0x10008e1a
push 2
push dword [esi + 0x1c]
call ebx
push dword [esi + 0x1c]
call sub.WS2_32.dll_closesocket
test eax, eax
je 0x10008e2c
cmp dword [esi + 0x10], 2
je 0x10008de1
mov eax, dword [esi + 0x20]
push esi
test edi, edi
je 0x10008e42
mov dword [edi + 0x20], eax
call fcn.10018722
mov esi, dword [edi + 0x20]
pop ecx
jmp 0x10008de6
mov dword [0x10040838], eax
call fcn.10018722
pop ecx
pop ebx
pop edi
pop esi
ret