joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004690
Capabilities:
Empty the recycle bin

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
xor eax, eax
je 0x100046aa
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x100046c6
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
xor edx, edx
mov ecx, 0x124
div ecx
cmp dword [ebp - 8], eax
jae 0x100046ff
push 3
push 0x100123d0
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10005980
mov ecx, dword [ebp - 4]
add ecx, 0x124
mov dword [ebp - 4], ecx
jmp 0x100046bd
push 7
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004720
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000473a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000475e
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0x1b62
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004770
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000478a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x200
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100047b6
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], 0x1b61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100048c0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x100048d7
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x120
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0xc]
add edx, 0x18
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 8
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x120
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x10004948
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
mov ecx, dword [ebp + 8]
push ecx
push 0x1001205c
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x80
mov eax, dword [ebp + 0xc]
add eax, 0xa0
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x80
mov eax, dword [ebp + 0xc]
add eax, 0x20
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004a80
Capabilities:
Get disk information
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
mov dword [ebp - 0x354], ecx
push eax
xor eax, eax
xor eax, eax
je 0x10004aa0
push ebp
adc byte [ecx], 0x58
pop eax
mov ecx, dword [ebp - 0x354]
call fcn.10007010
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
jne 0x10004acd
mov eax, dword [ebp - 0x354]
mov dword [eax + 4], 0x1b69
jmp 0x10004bd3
mov byte [ebp - 0x204], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x204]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 4], eax
mov dword [ebp - 0x208], 0
jmp 0x10004b16
mov edx, dword [ebp - 0x208]
add edx, 4
mov dword [ebp - 0x208], edx
mov eax, dword [ebp - 0x208]
cmp eax, dword [ebp - 4]
jae 0x10004bc6
mov ecx, dword [ebp - 0x208]
lea edx, [ebp + ecx - 0x204]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp - 0x208]
movsx ecx, byte [ebp + eax - 0x204]
cmp ecx, 0x41
je 0x10004bc1
mov edx, dword [ebp - 0x208]
movsx eax, byte [ebp + edx - 0x204]
cmp eax, 0x42
je 0x10004bc1
mov dword [ebp - 0x34c], 0
mov ecx, 0x4e
xor eax, eax
lea edi, [ebp - 0x344]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x208]
lea eax, [ebp + edx - 0x204]
push eax
call fcn.100048c0
add esp, 8
mov dword [ebp - 0x350], 0
push 0
lea ecx, [ebp - 0x350]
push ecx
push 0x140
lea edx, [ebp - 0x34c]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10004b07
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004c70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x754
push ebx
push esi
push edi
mov dword [ebp - 0x754], ecx
push eax
xor eax, eax
xor eax, eax
je 0x10004c90
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x754]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x20c], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x74c], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x74b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x74c]
push ecx
push str._s.
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x54c], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x548]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10004d44
mov edx, dword [ebp - 0x754]
mov dword [edx + 4], 0x1b58
jmp 0x10004e53
mov ecx, dword [ebp - 0x754]
call fcn.10007010
mov dword [ebp - 0x750], eax
cmp dword [ebp - 0x750], 0xffffffff
jne 0x10004d7a
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x754]
mov dword [ecx + 4], 0x1b69
jmp 0x10004e53
mov dword [ebp - 4], 0
mov byte [ebp - 0x40c], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x40b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebp - 4], 0
jne 0x10004e3c
push 0x1001206c
lea edx, [ebp - 0x520]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10004e0c
push 0x10012068
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10004e0c
lea ecx, [ebp - 0x520]
push ecx
lea edx, [ebp - 0x74c]
push edx
push str._s_s
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x40c]
push ecx
mov edx, dword [ebp - 0x750]
push edx
mov ecx, dword [ebp - 0x754]
call fcn.10004be0
lea eax, [ebp - 0x54c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004e37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10004e35
mov dword [ebp - 4], 1
jmp 0x10004e37
jmp 0x10004e3c
jmp 0x10004d9a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x754
push ebx
push esi
push edi
mov dword [ebp - 0x754], ecx
push eax
xor eax, eax
xor eax, eax
je 0x10005060
push ebp
adc byte [ecx], 0x58
pop eax
mov byte [ebp - 0x208], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x748], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x747]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x748]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x748]
push edx
push str._s.
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x548], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x544]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x548]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100050fd
xor eax, eax
jmp 0x1000524f
mov dword [ebp - 4], 0
mov byte [ebp - 0x408], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x407]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebp - 4], 0
jne 0x10005240
push 0x1001206c
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10005204
push 0x10012068
lea ecx, [ebp - 0x51c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10005204
lea edx, [ebp - 0x51c]
push edx
lea eax, [ebp - 0x748]
push eax
push str._s_s
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x548]
and edx, 0x10
test edx, edx
je 0x100051c3
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 0x754]
call fcn.10005040
test eax, eax
jne 0x100051c1
xor eax, eax
jmp 0x1000524f
jmp 0x10005204
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 0x528]
mov dword [ebp - 0x750], ecx
mov edx, dword [ebp - 0x52c]
mov dword [ebp - 0x74c], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x750]
mov edx, dword [eax + 4]
adc edx, dword [ebp - 0x74c]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea ecx, [ebp - 0x548]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000523b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1000522d
mov dword [ebp - 4], 1
jmp 0x1000523b
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1000524f
jmp 0x1000511d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10005260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000527a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
push 5
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100057b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74c
push ebx
push esi
push edi
mov dword [ebp - 0x74c], ecx
push eax
xor eax, eax
xor eax, eax
je 0x100057d0
push ebp
adc byte [ecx], 0x58
pop eax
mov byte [ebp - 0x208], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x748], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x747]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x748]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x748]
push edx
push str._s.
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x548], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x544]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x548]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1000586d
xor eax, eax
jmp 0x10005974
mov dword [ebp - 4], 0
mov byte [ebp - 0x408], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x407]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebp - 4], 0
jne 0x10005965
push 0x1001206c
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10005929
push 0x10012068
lea ecx, [ebp - 0x51c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10005929
lea edx, [ebp - 0x51c]
push edx
lea eax, [ebp - 0x748]
push eax
push str._s_s
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x548]
and edx, 0x10
test edx, edx
je 0x10005913
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x408]
push ecx
mov ecx, dword [ebp - 0x74c]
call fcn.100057b0
test eax, eax
jne 0x10005911
xor eax, eax
jmp 0x10005974
jmp 0x10005929
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x74c]
call fcn.10005620
lea ecx, [ebp - 0x548]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10005960
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10005952
mov dword [ebp - 4], 1
jmp 0x10005960
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10005974
jmp 0x1000588d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005d60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
push eax
xor eax, eax
xor eax, eax
je 0x10005d7a
push ebp
adc byte [ecx], 0x58
pop eax
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [ebp - 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005dd0
Capabilities:
Enumerate processes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
mov dword [ebp - 0x244], ecx
push eax
xor eax, eax
xor eax, eax
je 0x10005df0
push ebp
adc byte [ecx], 0x58
pop eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10005e15
mov eax, dword [ebp - 0x244]
mov dword [eax + 4], 0x1b59
jmp 0x1000600f
mov dword [ebp - 0x238], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x234]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x238], 0x128
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10005e68
mov eax, dword [ebp - 0x244]
mov dword [eax + 4], 0x1b59
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000600f
mov ecx, dword [ebp - 0x244]
call fcn.10005d60
mov ecx, dword [ebp - 0x244]
call fcn.10007010
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
jne 0x10005e9f
mov edx, dword [ebp - 0x244]
mov dword [edx + 4], 0x1b69
jmp 0x1000600f
mov dword [ebp - 0x110], 0
mov ecx, 0x42
xor eax, eax
lea edi, [ebp - 0x10c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x110], edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
jne 0x10005f1b
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.10009af0
add esp, 8
mov dword [ebp - 0x23c], 0
push 0
lea edx, [ebp - 0x23c]
push edx
push 0x10c
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10005ff8
mov ecx, 0x43
xor eax, eax
lea edi, [ebp - 0x110]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x110], eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
jne 0x10005fd1
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call fcn.10009af0
add esp, 8
push 0
lea eax, [ebp - 0x23c]
push eax
push 0x10c
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10005f47
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000603a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
call fcn.10005d60
mov eax, dword [ebp - 4]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000607c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0x1b6a
jmp 0x100060ac
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x100060a2
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b6a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100060ac
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100060c0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push eax
xor eax, eax
xor eax, eax
je 0x100060da
push ebp
adc byte [ecx], 0x58
pop eax
mov ecx, dword [ebp - 0x10]
call fcn.10005d60
push 0xe00f003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000610a
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b5c
jmp 0x100061b5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
push 0xf01ff
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006148
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x1b5b
jmp 0x100061b5
mov ecx, dword [ebp - 8]
add ecx, 0x114
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x10006197
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0x1b5b
jmp 0x100061b5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100061c0
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x30], ecx
push eax
xor eax, eax
xor eax, eax
je 0x100061da
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x30]
call fcn.10005d60
push 0xe00f003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10006213
mov edx, dword [ebp - 0x30]
mov dword [edx + 4], 0x1b5b
jmp 0x100062dc
push 0xf01ff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006248
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x30]
mov dword [eax + 4], 0x1b5b
jmp 0x100062dc
mov dword [ebp - 8], 0
mov dword [ebp - 0x2c], 0
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x200]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x10006286
sub dword [ebp - 0x38], 1
cmp dword [ebp - 0x38], 0
je 0x10006299
jmp 0x100062ac
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 8], eax
jmp 0x100062ac
lea edx, [ebp - 0x2c]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100062be
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 4], 0
jmp 0x100062c8
mov edx, dword [ebp - 0x30]
mov dword [edx + 4], 0x1b5b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret