joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004dd0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x26c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push ebx
call esi
test eax, eax
je 0x10004ec3
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x68]
mov dword [esp + 0x10], 0x208
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.Applicationsiexplore.exe_shellopencommand
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004ec3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x68]
push ecx
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x68]
push edx
call esi
test eax, eax
je 0x10004ec3
lea eax, [esp + 0x68]
push 0x100170c4
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10004ec3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x278]
mov dword [esp + 0x24], 0x44
test eax, eax
je 0x10004e9d
mov dword [esp + 0x2c], 0x100170a0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x84]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x264
ret

Function at 0x10004ed0
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10004f20
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x10004f07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10005170
Capabilities:
Create thread
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push 0x10019f58
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1001a5b0]
push 0x10019f58
inc ecx
mov dword [0x1001a5b0], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], esi
call fcn.10005040
add esp, 8
cmp eax, esi
je 0x1000530f
mov ebx, dword [esp + 0x120]
cmp eax, 1
je 0x10005256
cmp eax, 2
je 0x10005256
cmp eax, 3
je 0x10005256
cmp eax, 4
jne 0x100052cf
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x130]
lea edx, [esp + 0x20]
sub ecx, eax
push edx
add eax, edi
push ecx
push eax
call fcn.10004fb0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
lea ecx, [ebx + 4]
push eax
push ecx
call fcn.10005830
add esp, 0x1c
test eax, eax
je 0x1000530f
mov edi, str.HTTP_1.0_200_OK_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx]
repne scasb al, byte es:[edi]
not ecx
push esi
push ecx
push str.HTTP_1.0_200_OK_r_n_r_n
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x100052cf
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x12c]
mov ecx, dword [esp + 0x124]
push eax
push esi
push edi
push ecx
call fcn.100050e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1000530f
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x1c]
sub esi, eax
sub esi, 7
lea ecx, [eax + edi + 7]
push esi
push ecx
call fcn.10004fb0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
lea esi, [ebx + 4]
push edx
push eax
push esi
call fcn.10005830
add esp, 0x1c
test eax, eax
je 0x1000530f
mov ecx, dword [esp + 0x124]
mov edx, dword [esi]
push 0
push ebp
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000530f
cmp dword [ebx], 0
je 0x1000530f
mov eax, dword [ebx + 4]
test eax, eax
je 0x1000530f
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push 0x10006170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100052ff
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
Function at 0x10005320
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x204
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
mov al, byte [ebp]
mov byte [esp + 0xe], 5
cmp al, 5
mov byte [esp + 0xf], 0
je 0x10005350
pop edi
pop esi
and eax, 0xff
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 2]
lea esi, [ebp + 2]
test al, al
je 0x1000536a
cmp al, 2
je 0x1000536a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov edi, 0x1001a3b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
neg ecx
sbb cl, cl
lea eax, [esp + 0x12]
and ecx, 2
push 2
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x21c]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100053ad
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
cmp byte [esp + 0xf], 2
jne 0x10005503
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
push 0x5000
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100054f7
test eax, eax
je 0x100054f7
cmp byte [ebp], 1
je 0x1000540d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 1]
test al, al
je 0x10005436
mov ecx, eax
and ecx, 0xff
cmp ecx, 0x100
jg 0x10005436
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and eax, 0xff
add eax, ebp
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x10005465
cmp ecx, 0x100
jg 0x10005465
lea esi, [eax + 3]
mov eax, ecx
lea edi, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10]
mov eax, 0x1001a3b0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10005492
test cl, cl
je 0x1000548e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10005492
add eax, 2
add esi, 2
test cl, cl
jne 0x1000546e
xor eax, eax
jmp 0x10005497
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100054d9
lea esi, [esp + 0x110]
mov eax, 0x1001a4b0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100054cb
test cl, cl
je 0x100054c7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100054cb
add eax, 2
add esi, 2
test cl, cl
jne 0x100054a7
xor eax, eax
jmp 0x100054d0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100054d9
mov byte [ebp + 1], al
jmp 0x100054dd
mov byte [ebp + 1], 0xff
mov eax, dword [esp + 0x214]
push 0
push 2
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10005503
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x204
ret
Function at 0x10005520
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
push ebp
push 0x10019f4c
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
je 0x100055fd
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
cmp dword [eax + ecx], 0
je 0x10005606
mov edx, dword [esp + 0x28]
xor ebx, ebx
mov byte [edx], 0
cmp word [ebp + 0xa], bx
jle 0x100055f3
test ebx, ebx
jle 0x10005598
mov edi, 0x10017aa4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x28]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx]
xor eax, eax
lea ecx, [esp + 0x14]
mov al, byte [edx + ebx]
push eax
push 0x10017aa0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x28]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
movsx eax, word [ebp + 0xa]
cmp ebx, eax
jl 0x10005568
add dword [esp + 0x10], 4
jmp 0x10005544
mov eax, dword [esp + 0x1c]
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x14
ret

Function at 0x10005620
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10005630
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret

Function at 0x10005830
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov word [esp + 0xe], ax
call edi
cmp eax, 0xffffffff
push esi
jne 0x10005887
call fcn.10005620
add esp, 4
test eax, eax
je 0x100058e2
push esi
call fcn.10005620
add esp, 4
push eax
call edi
push 6
push 1
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x100058e2
lea edx, [esp + 0x24]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x38], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi]
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100058ea
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x10005900
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.10005320
add esp, 0xc
test eax, eax
je 0x100059a7
cmp eax, 4
jne 0x10005948
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.10005640
add esp, 0x14
neg eax
sbb eax, eax
pop edi
pop esi
and eax, 4
pop ebx
ret
mov edx, dword [edi]
push 0
push 0x5000
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100059a7
test eax, eax
je 0x100059a7
cmp byte [esi], 5
jne 0x100059a7
mov cl, byte [esi + 3]
cmp cl, 1
je 0x10005974
cmp cl, 3
jne 0x100059a7
mov edx, dword [esp + 0x20]
and ecx, 0xff
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
push esi
call fcn.10005640
add esp, 0x14
test eax, eax
je 0x100059a7
mov al, byte [esi + 1]
cmp al, 1
je 0x1000599e
cmp al, 3
jne 0x100059a7
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x100059b0
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x124
xor eax, eax
push esi
mov dword [esp + 8], eax
push 0x11
mov dword [esp + 0x10], eax
push 2
mov dword [esp + 0x18], eax
push 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x10
mov word [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100059fe
xor eax, eax
pop esi
add esp, 0x124
ret
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10005a1b
xor eax, eax
pop esi
add esp, 0x124
ret
mov edx, dword [esp + 0x130]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push esi
mov dword [edx], esi
call dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 0x28]
push edx
call fcn.10005520
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x12c]
pop esi
mov dword [ecx + 4], eax
mov ax, word [esp + 6]
mov word [ecx + 8], ax
mov eax, 1
add esp, 0x124
ret
Function at 0x10005d70
Capabilities:
Create tcp socket
Create thread
Initialize winsock library
Start tcp server

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10005e5f
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005e5f
mov dx, word [0x10019f50]
xor ecx, ecx
mov dword [esp + 6], ecx
push edx
mov dword [esp + 0xe], ecx
mov word [esp + 8], 2
mov dword [esp + 0x12], ecx
mov word [esp + 0x16], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10005e5f
push ebx
push ebp
push esi
push 0x32
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10005e0c
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov ebx, dword [sym.imp.WS2_32.dll_accept]
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0
push 0
push edi
call ebx
push 8
mov esi, eax
call ebp
add esp, 4
test eax, eax
je 0x10005e18
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10005a70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10005e56
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10005e18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10005e18
xor eax, eax
pop edi
add esp, 0x1a4
ret

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
test esi, esi
jle 0x10005efb
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push 0
lea ecx, [edi + eax]
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x10005f02
sub esi, eax
add edi, eax
test esi, esi
jg 0x10005ed6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x10006590
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edi
push eax
xor edi, edi
push 0x8004667e
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test esi, esi
jle 0x100065d5
mov ebp, dword [esp + 0x18]
push 0
lea ecx, [edi + ebp]
push esi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100065d5
sub esi, eax
add edi, eax
test esi, esi
jg 0x100065bb
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100065e0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x2104
call fcn.10012430
mov eax, dword [esp + 0x2108]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
push edi
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 1
xor eax, eax
lea ecx, [esp + 0x14]
cmp dword [ecx], ebx
je 0x1000663a
inc eax
add ecx, 4
cmp eax, 1
jb 0x1000662d
cmp eax, 1
jne 0x1000664b
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 2
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x100066f0
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100066a7
push 0
lea edx, [esp + 0x118]
push 0x2000
push edx
push ebp
call edi
mov esi, eax
test esi, esi
jle 0x100066f0
lea eax, [esp + 0x114]
push esi
push eax
push ebx
call fcn.10006590
add esp, 0xc
test eax, eax
je 0x100066f0
cmp eax, esi
jne 0x100066f0
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000661b
push 0
lea edx, [esp + 0x118]
push 0x2000
push edx
push ebx
call edi
mov esi, eax
test esi, esi
jle 0x100066f0
lea eax, [esp + 0x114]
push esi
push eax
push ebp
call fcn.10006590
add esp, 0xc
test eax, eax
je 0x100066f0
cmp eax, esi
je 0x1000661b
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebp
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2104
ret 4

Function at 0x10006710
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000672e
xor eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000676e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x100067a0
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 0x10006870
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
mov eax, 0x1038
call fcn.10012430
push ebx
push ebp
push esi
push edi
mov ecx, 0x40c
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x18], 0x100134ec
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1054]
lea ecx, [esp + 0x1c]
push eax
push 0x10017aa8
push 0x20
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [esp + 0x1060]
mov ecx, dword [esp + 0x105c]
mov dx, word [esp + 0x1068]
push eax
push ecx
mov word [esp + 0x54], dx
call fcn.10006780
mov esi, eax
add esp, 0x18
test esi, esi
jbe 0x1000695a
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x40], esi
push 0
lea edx, [esp + 0x16]
push 2
push edx
push esi
call edi
test eax, eax
jle 0x1000695a
mov edx, dword [0x1001a5b8]
mov eax, dword [esp + 0x44]
inc edx
cmp eax, 0x800
mov dword [0x1001a5b8], edx
jge 0x1000692d
mov cx, word [esp + 0x12]
inc eax
mov dword [esp + 0x44], eax
mov word [esp + eax*2 + 0x48], cx
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 0
push eax
push 0x100067d0
push 0
push 0
call ebx
test eax, eax
je 0x1000694d
push eax
call ebp
jmp 0x100068f6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100068f6
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1038
ret

Function at 0x10006b30
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10006b4f
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10006b4f
mov eax, dword [eax]
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x10006b60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status

Disassembly:
sub esp, 0x11c
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006b84
or eax, eax
pop esi
add esp, 0x11c
ret
push edi
mov edi, dword [esp + 0x128]
push edi
call fcn.10006b30
add esp, 4
test eax, eax
jne 0x10006ba0
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x12c]
push eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push esi
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
lea edx, [esp + 8]
lea eax, [esp + 0x20]
push edx
push 0
push 0
lea ecx, [esi + 1]
push eax
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x32
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
pop edi
jge 0x10006c17
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x11c
ret
mov eax, esi
pop esi
add esp, 0x11c
ret
Function at 0x10006e60
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x6b0
lea eax, [esp + 0x120]
push ebx
push ebp
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x2c]
push 0x104
push ecx
xor ebx, ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x10006ea7
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ebp, dword [ecx]
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov ecx, 0x100
mov eax, 0x41414141
lea edi, [esp + 0x2c0]
rep stosd dword es:[edi], eax
push 0x41c
mov dword [0x1001a7bc], 0x41c
mov byte [esp + 0x1c], 0x45
mov byte [esp + 0x1d], bl
call esi
mov edx, dword [esp + 0x6c4]
push 0x115c
mov word [esp + 0x1e], ax
mov word [esp + 0x20], bx
mov word [esp + 0x22], bx
mov byte [esp + 0x24], 0x80
mov byte [esp + 0x25], 0x11
mov word [esp + 0x26], bx
mov dword [esp + 0x2c], edx
call esi
mov word [esp + 0x10], ax
mov eax, dword [esp + 0x6c8]
push eax
call esi
push 0x408
mov word [esp + 0x16], ax
call esi
mov dx, ax
mov ecx, 0x10f
xor eax, eax
mov edi, 0x10019f70
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x6c4]
mov word [esp + 0x14], dx
mov word [esp + 0x16], bx
mov ebx, dword [esp + 0x10]
mov word [0x10019f7a], dx
mov edx, dword [esp + 0x14]
mov dword [0x10019f74], ecx
mov ecx, 0x100
lea esi, [esp + 0x2c0]
mov edi, 0x10019f84
mov dword [0x10019f70], ebp
mov byte [0x10019f79], 0x11
mov dword [0x10019f7c], ebx
mov dword [0x10019f80], edx
push 0x414
push 0x10019f70
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], ebp
call fcn.10006e00
mov ecx, 5
lea esi, [esp + 0x20]
mov edi, 0x10019f70
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x1c]
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x100
lea esi, [esp + 0x2c0]
mov edi, 0x10019f8c
mov dword [0x10019f84], ebx
mov dword [0x10019f88], eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6b0
ret