joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40abb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a6a8]
jne 0x40abba
repz ret
jmp fcn.00411c3c

Function at 0x417d2c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a6a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f6c5
and dword [ebp - 0x14], 0
cmp dword [0x44d1bc], 0
mov dword [ebp - 0x18], eax
jne 0x417ddf
push 0x403824
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417e87
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403818
push ebx
call edi
test eax, eax
je 0x417e87
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403808
push ebx
mov dword [0x44d1bc], eax
call edi
push eax
call esi
push 0x4037f4
push ebx
mov dword [0x44d1c0], eax
call edi
push eax
call esi
push 0x4037d8
push ebx
mov dword [0x44d1c4], eax
call edi
push eax
call esi
mov dword [0x44d1cc], eax
test eax, eax
je 0x417ddf
push 0x4037c0
push ebx
call edi
push eax
call esi
mov dword [0x44d1c8], eax
mov eax, dword [0x44d1c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417e38
cmp dword [0x44d1cc], ecx
je 0x417e38
push eax
call esi
push dword [0x44d1cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417e38
test ebx, ebx
je 0x417e38
call edi
test eax, eax
je 0x417e2f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417e2f
test byte [ebp - 8], 1
jne 0x417e38
or dword [ebp + 0x10], 0x200000
jmp 0x417e6b
mov eax, dword [0x44d1c0]
cmp eax, dword [ebp - 0x18]
je 0x417e6b
push eax
call esi
test eax, eax
je 0x417e6b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417e6b
mov eax, dword [0x44d1c4]
cmp eax, dword [ebp - 0x18]
je 0x417e6b
push eax
call esi
test eax, eax
je 0x417e6b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44d1bc]
call esi
test eax, eax
je 0x417e87
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417e89
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040abb0
leave
ret
Function at 0x422630
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00421970
cmp dword [0x7edf40], 0x37
jne 0x4226e5
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x404480
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4044b0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea eax, [esp + 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ecx, dword [0x7edf44]
mov eax, dword [0x7ea3b0]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1004
ret
Function at 0x401012
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x4ba3eb]
shl eax, 2
mov dword [0x4ba3ef], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004963a8
pop edx
call fcn.0049630c
call fcn.004963e8
push 0
call fcn.00497828
pop ecx
push 0x4ba394
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4ba3f3], eax
push 0
jmp fcn.004a0298

Function at 0x4016ec
Capabilities:
Acquire debug privileges
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push dword [ebp + 8]
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401867
call sub.KERNEL32.DLL_GetLastError
cmp eax, 5
je 0x40171f
xor eax, eax
jmp 0x40189e
mov dword [ebp - 0xa4], 0x94
lea edx, [ebp - 0xa4]
push edx
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x94], 2
je 0x40174c
push 5
call sub.KERNEL32.DLL_SetLastError
xor eax, eax
jmp 0x40189e
mov dword [ebp - 0xc], 0x10
lea edx, [ebp - 0x10]
push edx
push 0
push 0x28
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.ADVAPI32.DLL_OpenThreadToken
test eax, eax
jne 0x401799
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3f0
je 0x40177d
xor eax, eax
jmp 0x40189e
lea edx, [ebp - 0x10]
push edx
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
jne 0x401799
xor eax, eax
jmp 0x40189e
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xa8], 2
lea edx, [ebp - 0xb0]
push edx
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0xc4]
push eax
push 0x10
lea edx, [ebp - 0xb4]
push edx
push 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
test eax, eax
jne 0x401801
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 8]
call sub.KERNEL32.DLL_SetLastError
xor eax, eax
jmp 0x40189e
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x514
jne 0x401820
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push 5
call sub.KERNEL32.DLL_SetLastError
xor eax, eax
jmp 0x40189e
push dword [ebp + 8]
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 8], eax
push 0
push 0
push 0x10
lea edx, [ebp - 0xc4]
push edx
push 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 4], 0
jne 0x401867
push 0
call sub.KERNEL32.DLL_SetLastError
xor eax, eax
jmp 0x40189e
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.DLL_TerminateProcess
test eax, eax
jne 0x401891
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 8], eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 8]
call sub.KERNEL32.DLL_SetLastError
xor eax, eax
jmp 0x40189e
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4018a4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov eax, 0x5c3484
call fcn.00496c14
mov word [ebp - 0x24], 8
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x38], eax
mov word [ebp - 0x24], 0
jmp 0x4018df
cmp dword [ebp - 0x38], 0xffffffff
jne 0x4018f6
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x401acf
mov word [ebp - 0x24], 0x14
mov dword [ebp - 0x164], 0x128
mov word [ebp - 0x24], 0
jmp 0x401919
mov word [ebp - 0x24], 0x20
lea ecx, [ebp - 0x164]
push ecx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_Process32First
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x24], 0
jmp 0x401944
cmp dword [ebp - 0x3c], 0
je 0x401aa2
mov word [ebp - 0x24], 0x2c
mov word [ebp - 0x24], 0x38
lea eax, [ebp - 8]
call fcn.00401ad8
push eax
inc dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
call fcn.004a451c
inc dword [ebp - 0x18]
mov eax, dword [eax]
pop edx
call fcn.0048b828
lea eax, [ebp - 8]
call fcn.00401b08
push eax
call sub.USER32.DLL_CharLowerA
push eax
lea eax, [ebp - 0x10]
call fcn.00401ad8
push eax
inc dword [ebp - 0x18]
lea edx, [ebp - 0x140]
lea eax, [ebp - 0xc]
call fcn.004a451c
inc dword [ebp - 0x18]
mov eax, dword [eax]
pop edx
call fcn.0048b828
lea eax, [ebp - 0x10]
call fcn.00401b08
push eax
call sub.USER32.DLL_CharLowerA
push eax
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
sete dl
and edx, 1
push edx
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
pop ecx
test cl, cl
je 0x401a37
mov word [ebp - 0x24], 0x44
push dword [ebp - 0x15c]
call fcn.004016ec
pop ecx
mov word [ebp - 0x24], 0x2c
jmp 0x401a37
mov word [ebp - 0x24], 0
jmp 0x401a4a
mov word [ebp - 0x24], 0x50
mov dword [ebp - 0x164], 0x128
mov word [ebp - 0x24], 0
jmp 0x401a6d
mov word [ebp - 0x24], 0x5c
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_Process32Next
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x24], 0
jmp 0x401a98
cmp dword [ebp - 0x3c], 0
jne 0x40194e
mov word [ebp - 0x24], 0x68
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
mov word [ebp - 0x24], 0
jmp 0x401ac3
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b28
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
mov eax, 0x5c364c
call fcn.00496c14
mov word [ebp - 0x24], 8
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x38], eax
mov word [ebp - 0x24], 0
jmp 0x401b63
cmp dword [ebp - 0x38], 0xffffffff
jne 0x401b7a
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x401d85
mov word [ebp - 0x24], 0x14
mov dword [ebp - 0x168], 0x128
mov word [ebp - 0x24], 0
jmp 0x401b9d
mov word [ebp - 0x24], 0x20
lea ecx, [ebp - 0x168]
push ecx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_Process32First
mov dword [ebp - 0x40], eax
mov word [ebp - 0x24], 0
jmp 0x401bc8
cmp dword [ebp - 0x40], 0
je 0x401d58
mov word [ebp - 0x24], 0x2c
mov word [ebp - 0x24], 0x38
lea eax, [ebp - 8]
call fcn.00401ad8
push eax
inc dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
call fcn.004a451c
inc dword [ebp - 0x18]
mov eax, dword [eax]
pop edx
call fcn.0048b828
lea eax, [ebp - 8]
call fcn.00401b08
push eax
call sub.USER32.DLL_CharLowerA
push eax
lea eax, [ebp - 0x10]
call fcn.00401ad8
push eax
inc dword [ebp - 0x18]
lea edx, [ebp - 0x144]
lea eax, [ebp - 0xc]
call fcn.004a451c
inc dword [ebp - 0x18]
mov eax, dword [eax]
pop edx
call fcn.0048b828
lea eax, [ebp - 0x10]
call fcn.00401b08
push eax
call sub.USER32.DLL_CharLowerA
push eax
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
sete dl
and edx, 1
push edx
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
pop ecx
test cl, cl
je 0x401ced
mov word [ebp - 0x24], 0x44
push dword [ebp - 0x160]
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x24], 0x2c
jmp 0x401cc4
cmp dword [ebp - 0x3c], 0
je 0x401ced
mov word [ebp - 0x24], 0x50
push 0
push dword [ebp - 0x3c]
call sub.KERNEL32.DLL_TerminateProcess
mov word [ebp - 0x24], 0x2c
jmp 0x401ced
mov word [ebp - 0x24], 0
jmp 0x401d00
mov word [ebp - 0x24], 0x5c
mov dword [ebp - 0x168], 0x128
mov word [ebp - 0x24], 0
jmp 0x401d23
mov word [ebp - 0x24], 0x68
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_Process32Next
mov dword [ebp - 0x40], eax
mov word [ebp - 0x24], 0
jmp 0x401d4e
cmp dword [ebp - 0x40], 0
jne 0x401bd2
mov word [ebp - 0x24], 0x74
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
mov word [ebp - 0x24], 0
jmp 0x401d79
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401de8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe34
push ebx
push esi
push edi
mov eax, 0x5c36fc
call fcn.00496c14
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4554
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 0x14
lea edx, [ebp - 0x1bc]
push edx
push 0x101
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x401e57
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401f83
lea eax, [ebp + 8]
call fcn.00401b08
push eax
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x401e91
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401f83
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x401ec8
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401f83
mov word [ebp - 0x1cc], 2
push 0x35
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x1ca], ax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x1c8], ecx
push 0x10
lea eax, [ebp - 0x1cc]
push eax
push dword [ebp - 0x2c]
call sub.WSOCK32.DLL_connect
test eax, eax
je 0x401f24
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401f83
push dword [ebp - 0x2c]
call sub.WSOCK32.DLL_closesocket
call sub.WSOCK32.DLL_WSACleanup
mov al, 1
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401f83
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402558
Capabilities:
Create udp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
lea eax, [ebp - 0x194]
push eax
push 0x202
call sub.WSOCK32.DLL_WSAStartup
cmp dword [ebp + 8], 0
jne 0x402582
mov eax, 7
jmp 0x40263c
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x1c], ecx
push 0x11
push 2
push 2
call sub.WSOCK32.DLL_socket
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
test eax, eax
jge 0x4025b3
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 3
mov eax, 3
jmp 0x40263c
push dword [ebp + 0xc]
call sub.WSOCK32.DLL_inet_addr
test eax, eax
je 0x4025cc
push dword [ebp + 0xc]
call sub.WSOCK32.DLL_inet_addr
cmp eax, 0xffffffff
jne 0x40260a
push dword [ebp + 0xc]
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 4], eax
test eax, eax
jne 0x4025ec
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 1
mov eax, 1
jmp 0x40263c
mov edx, dword [ebp - 4]
movsx ecx, word [edx + 0xa]
push ecx
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xc]
push dword [ecx]
call sub.KERNEL32.DLL_lstrcpynA
jmp 0x402618
push dword [ebp + 0xc]
call sub.WSOCK32.DLL_inet_addr
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], eax
mov eax, dword [ebp + 8]
mov word [eax + 0x20], 2
mov cx, word [ebp + 0x10]
push ecx
call sub.WSOCK32.DLL_htons
mov edx, dword [ebp + 8]
mov word [edx + 0x22], ax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x18], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x402652
mov eax, 7
pop ecx
pop ebp
ret
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x1c], ecx
call fcn.0049f2e4
xor edx, edx
mov dword [eax], edx
push 0x10
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x14]
call sub.WSOCK32.DLL_sendto
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x18], eax
xor eax, eax
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp dword [ebp + 8], 0
jne 0x4026ab
mov eax, 7
jmp 0x4026fe
mov dword [ebp - 8], 0x10
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x1c], ecx
push 0x30
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0049668c
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp + 0xc]
add edx, 0x20
push edx
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x14]
call sub.WSOCK32.DLL_recvfrom
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x18], eax
xor eax, eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x408458
Capabilities:
Enumerate services
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
xor eax, eax
mov dword [ebp - 0x18], eax
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov dword [ebp - 4], eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 3
push 0x30
push dword [ebp - 4]
call sub.ADVAPI32.DLL_EnumServicesStatusA
push dword [ebp - 0x10]
call fcn.0049621c
pop ecx
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 3
push 0x30
push dword [ebp - 4]
call sub.ADVAPI32.DLL_EnumServicesStatusA
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jae 0x40858b
push 0x100
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.004966fc
add esp, 0xc
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
mov ecx, dword [ebp - 0xc]
push dword [ecx + edx*4]
lea eax, [ebp - 0x244]
push eax
call fcn.0049687c
add esp, 8
xor edx, edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
movsx eax, byte [ebp + ecx - 0x244]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.0049cb58
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x144], al
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x100
jb 0x408504
lea ecx, [ebp - 0x144]
push ecx
push dword [ebp + 8]
call sub.USER32.DLL_CharLowerA
push eax
call fcn.00496830
add esp, 8
test eax, eax
jne 0x40857c
push 0x20
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0xc]
push dword [edx + eax*4]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x44]
push ecx
push 1
push dword [ebp - 8]
call sub.ADVAPI32.DLL_ControlService
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jb 0x4084ce
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 0xc]
call fcn.0049622c
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4085a4
Capabilities:
Enumerate services
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push 2
push dword [ebp + 8]
call fcn.004086fc
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], eax
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov dword [ebp - 4], eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 3
push 0x30
push dword [ebp - 4]
call sub.ADVAPI32.DLL_EnumServicesStatusA
push dword [ebp - 0x10]
call fcn.0049621c
pop ecx
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 3
push 0x30
push dword [ebp - 4]
call sub.ADVAPI32.DLL_EnumServicesStatusA
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jae 0x4086e2
push 0x100
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.004966fc
add esp, 0xc
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
mov ecx, dword [ebp - 0xc]
push dword [ecx + edx*4]
lea eax, [ebp - 0x244]
push eax
call fcn.0049687c
add esp, 8
xor edx, edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
movsx eax, byte [ebp + ecx - 0x244]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.0049cb58
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x144], al
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x100
jb 0x40865d
lea ecx, [ebp - 0x144]
push ecx
push dword [ebp + 8]
call sub.USER32.DLL_CharLowerA
push eax
call fcn.00496830
add esp, 8
test eax, eax
jne 0x4086d3
push 0x10
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0xc]
push dword [edx + eax*4]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 8], eax
push 0
push 0
push dword [ebp - 8]
call sub.ADVAPI32.DLL_StartServiceA
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jb 0x408627
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 0xc]
call fcn.0049622c
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4086fc
Capabilities:
Enumerate services
Modify service
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x400f003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov dword [ebp - 4], eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 3
push 0x30
push dword [ebp - 4]
call sub.ADVAPI32.DLL_EnumServicesStatusA
push dword [ebp - 0x10]
call fcn.0049621c
pop ecx
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 3
push 0x30
push dword [ebp - 4]
call sub.ADVAPI32.DLL_EnumServicesStatusA
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jae 0x4088ac
push 0x100
push 0
lea eax, [ebp - 0x14c]
push eax
call fcn.004966fc
add esp, 0xc
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
mov ecx, dword [ebp - 0xc]
push dword [ecx + edx*4]
lea eax, [ebp - 0x24c]
push eax
call fcn.0049687c
add esp, 8
xor edx, edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
movsx eax, byte [ebp + ecx - 0x24c]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.0049cb58
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x14c], al
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x100
jb 0x4087a8
lea ecx, [ebp - 0x14c]
push ecx
push dword [ebp + 8]
call sub.USER32.DLL_CharLowerA
push eax
call fcn.00496830
add esp, 8
test eax, eax
jne 0x40889d
push 1
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0xc]
push dword [edx + eax*4]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
push dword [ebp - 8]
call sub.ADVAPI32.DLL_QueryServiceConfigA
push dword [ebp - 0x2c]
call fcn.0049621c
pop ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_QueryServiceConfigA
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
push 2
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
mov ecx, dword [ebp - 0xc]
push dword [ecx + edx*4]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
push dword [eax + 0x20]
push 0
mov edx, dword [ebp - 0x30]
push dword [edx + 0x1c]
mov ecx, dword [ebp - 0x30]
push dword [ecx + 0x18]
push 0
mov eax, dword [ebp - 0x30]
push dword [eax + 0x10]
mov edx, dword [ebp - 0x30]
push dword [edx + 0xc]
mov ecx, dword [ebp - 0x30]
push dword [ecx + 8]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
push dword [eax]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_ChangeServiceConfigA
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
inc dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jb 0x408772
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 0xc]
call fcn.0049622c
pop ecx
mov esp, ebp
pop ebp
ret